/* ==== CSS RESET & BASE ==== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff;
  color: #1a1a1a;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; border: none; }
button, input, textarea, select {
  font-family: inherit; font-size: inherit;
  outline: none; border: none;
  background: none;
  padding: 0; margin: 0;
}
*, *::before, *::after { box-sizing: border-box; }

/* ==== TYPOGRAPHY ==== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial', sans-serif;
  color: #111;
  font-weight: 700;
  letter-spacing: -0.02em;
}
h1 { font-size: 2.5rem; line-height: 1.12; margin-bottom: 28px; }
h2 { font-size: 2rem; line-height: 1.2; margin-bottom: 20px; }
h3 { font-size: 1.4rem; line-height: 1.2; margin-bottom: 16px; }
p, li, span, a, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #303030;
}
p { margin-bottom: 18px; max-width: 780px; }
strong { color: #111; font-weight: 600; }
em { color: #555; }

/* ==== GENERAL CONTAINERS ==== */
.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ==== SPACING & FLEX MANDATORY CLASSES ==== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.07);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 260px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: 0 6px 30px rgba(0,0,0,0.17);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 13px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.05);
  margin-bottom: 24px;
  flex: 1 1 320px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1);
  border: 1px solid #dedede;
}
.testimonial-card p {
  color: #222;
  font-size: 1.07rem;
  font-style: italic;
  flex: 1;
}
.testimonial-card span {
  font-size: 0.95rem;
  color: #14435E;
  font-weight: 500;
  white-space: nowrap;
}
.testimonial-card:hover {
  box-shadow: 0 7px 23px rgba(46,46,46,0.13);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features ul, .services ul, .case-studies ul, .about ul, .benefits ul, .team ul, .faq ul, .catalog ul, .legal ul, .contact ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 10px;
}
.features li, .services li, .benefits li, .team li, .about li, .case-studies li, .faq li, .catalog > ul > li, .legal li, .contact li {
  padding-left: 0;
  color: #262626;
  font-size: 1.07rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 0.7em;
}

/* ==== BRAND COLOR MONOCHROME PALETTE ==== */
:root {
  --color-primary: #14435E;
  --color-secondary: #5BB0A6;
  --color-accent: #F7F9FA;
  --color-black: #111;
  --color-white: #fff;
  --color-gray-100: #f6f7f8;
  --color-gray-200: #edeef0;
  --color-gray-300: #cfd3da;
  --color-gray-400: #a9b1bb;
  --color-gray-500: #535860;
  --color-gray-900: #1a1a1a;
}

body {
  background: var(--color-white);
  color: var(--color-black);
}
.section, .hero, .features, .about, .services, .about-short, .team, .benefits, .faq, .catalog, .case-studies, .confirmation, .cta, .legal, .contact {
  background: var(--color-accent);
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 3px 26px rgba(19,27,30,0.09);
}

/* ==== HEADER/NAVIGATION ==== */
header {
  width: 100%;
  border-bottom: 1px solid var(--color-gray-200);
  background: var(--color-white);
  box-shadow: 0 1.5px 16px rgba(39,46,51,0.06);
  position: sticky;
  z-index: 302;
  top: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 28px;
}
.logo img { height: 40px; }
nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #222;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 7px 13px;
  border-radius: 7px;
  transition: background 0.16s cubic-bezier(.4,0,.2,1), color 0.16s;
}
nav a:hover, nav a:focus {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 22px;
  box-shadow: 0 2px 11px rgba(20,67,94,.05);
  outline: none;
  cursor: pointer;
  text-align: center;
  border: none;
  transition: background .17s, color .17s, box-shadow .17s;
}
.btn-primary {
  background: var(--color-black);
  color: var(--color-accent);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-primary);
  color: #fff;
}
.btn-secondary {
  background: var(--color-gray-200);
  color: var(--color-black);
  font-weight: 500;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-gray-400);
  color: var(--color-accent);
}

/* ==== HERO ==== */
.hero {
  background: var(--color-black);
  color: #fff;
  border-radius: 20px;
  padding-top: 52px;
  padding-bottom: 52px;
  margin-top: 32px;
  box-shadow: 0 8px 48px rgba(32,32,32,0.12);
}
.hero h1 {
  color: #fff;
  margin-bottom: 22px;
}
.hero p {
  color: var(--color-accent);
  font-size: 1.18rem;
  margin-bottom: 34px;
  max-width: 650px;
}
.hero .btn-primary {
  background: var(--color-secondary);
  color: #111;
}
.hero .btn-primary:hover {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 13px rgba(91,176,166,0.12);
}

/* ==== CTA SECTION ==== */
.cta {
  background: var(--color-primary);
  color: #fff;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 22px rgba(20,67,94,0.08);
}
.cta h2, .cta p {
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: var(--color-primary);
}
.cta .btn-primary:hover {
  background: var(--color-secondary);
  color: #232728;
}

/* ==== FOOTER ==== */
footer {
  background: var(--color-black);
  color: #e8e8e8;
  padding: 30px 0 0 0;
  margin-top: 60px;
  border-top: 2px solid var(--color-gray-300);
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 18px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.23rem;
  font-weight: 700;
  color: #fff;
}
.footer-brand img { height: 36px; }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #aaa;
  font-size: .98rem;
  border-radius: 6px;
  padding: 5px 10px;
  transition: background .14s, color .14s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: var(--color-primary);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98rem;
}
.footer-contact p, .footer-contact a {
  color: #cfd3da;
  line-height: 1.45;
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==== ICONS ==== */
.features li img,
.services li img,
.contact li img,
.footer-contact img {
  width: 22px; height: 22px;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-block;
  filter: grayscale(1) contrast(1.3);
  opacity: 0.85;
}

/* ==== MAP PLACEHOLDER ==== */
.map-placeholder {
  margin-top: 24px;
  background: var(--color-gray-100);
  border: 1.5px dashed var(--color-gray-300);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  width: 100%;
  max-width: 450px;
}
.map-placeholder img {
  width: 40px; height: 40px; opacity: 0.5;
}

/* ==== LEGAL PAGES ==== */
.legal h1, .legal h2 { color: var(--color-black); }
.legal p, .legal ul li, .legal a { color: #292929; }

/* ==== CARD & REVIEW LAYOUTS (CASE STUDIES, TESTIMONIALS) ==== */
.case-studies ul {
  gap: 32px;
}
.case-studies li {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1.5px 14px rgba(23,32,32,0.09);
  padding: 20px 22px 14px 22px;
  margin-bottom: 5px;
  border-left: 5px solid var(--color-primary);
}
.case-studies em { color: #5a5a5a; font-size: 1.01rem; }

/* ==== MOBILE MENU ==== */
.mobile-menu-toggle {
  display: inline-flex;
  position: absolute;
  right: 20px;
  top: 20px;
  background: var(--color-black);
  color: #fff;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 45px; height: 45px;
  align-items: center; justify-content: center;
  z-index: 401;
  border: none;
  box-shadow: 0 1.5px 10px rgba(20,67,94,0.09);
  transition: background .17s, color .17s;
  cursor: pointer;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--color-primary); color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(20,35,45,0.96);
  z-index: 499;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform .32s cubic-bezier(.46,.03,.52,.96);
  padding: 0;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: var(--color-white);
  color: var(--color-black);
  border: none;
  border-radius: 50%;
  width: 50px; height: 50px;
  margin: 18px 0 0 19px;
  align-self: flex-start;
  cursor: pointer;
  box-shadow: 0 1.5px 14px rgba(59,63,74,0.09);
  transition: background .17s, color .17s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--color-primary); color: #fff;
}
.mobile-nav {
  margin-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 0 34px;
}
.mobile-nav a {
  font-size: 1.22rem;
  letter-spacing: .01em;
  color: #fff;
  padding: 10px 5px;
  border-radius: 7px;
  display: block;
  width: 100%;
  transition: background .14s, color .14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: #222;
}

@media (min-width: 769px) {
  .mobile-menu-toggle, .mobile-menu { display: none !important; }
}
@media (max-width: 1100px) {
  .container { max-width: 97vw; }
  .footer-contact { width: 100%; }
}
@media (max-width: 900px) {
  footer .container { flex-direction: column; gap: 20px; }
  header .container { gap: 8px; }
}
@media (max-width: 768px) {
  header nav, header .btn-primary { display: none !important; }
  .container { padding: 0 10px; }
  .section, .hero, .features, .about, .services, .about-short, .team, .benefits, .faq, .catalog, .case-studies, .confirmation, .cta, .legal, .contact {
    padding: 22px 8px;
    margin-bottom: 34px;
    border-radius: 10px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  .footer-brand img { height: 28px; }
  .footer-brand { font-size: 1.03rem; }
  .testimonials .content-wrapper { flex-direction: column; gap: 17px; }
  footer .container { flex-direction: column; gap: 24px; }
  .case-studies li {
    padding-left: 11px; padding-right: 11px;
    font-size: 0.96rem;
    border-radius: 7px;
  }
  .testimonial-card { padding: 15px; gap: 11px; margin-bottom: 11px; font-size: 0.98rem; }
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 20px; }
  .content-wrapper { gap: 14px; }
  .card { min-width: 170px; padding: 12px 9px; }
  .map-placeholder { height: 95px; }
}

/* ==== MICROINTERACTIONS & TRANSITIONS ==== */
a, .btn-primary, .btn-secondary, nav a, .mobile-nav a {
  transition: color .14s, background .15s, box-shadow .16s, border .16s;
}
.section, .hero, .cta, .card, .testimonial-card {
  transition: box-shadow 0.2s cubic-bezier(.46,.03,.52,.96), background .13s;
}
/* Subtle scaling on press for interactive buttons */
.btn-primary:active, .btn-secondary:active, .mobile-menu-toggle:active {
  transform: scale(0.97);
}

/* ==== COOKIE CONSENT BANNER ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 802;
  background: #212121;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -3px 32px rgba(20,67,94,0.12);
  padding: 24px 10px;
  gap: 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  animation: cb-slidein .32s cubic-bezier(.48,.04,.77,.99);
}
@keyframes cb-slidein {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: #f0f0f0;
  margin-bottom: 6px;
  font-size: 1.05rem;
  max-width: 750px;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 9px 24px;
  margin: 0;
  border-radius: 14px;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background .15s, color .15s;
}
.cookie-banner button.accept {
  background: var(--color-secondary); color: #222;
}
.cookie-banner button.settings {
  background: var(--color-gray-200); color: #111;
}
.cookie-banner button.reject {
  background: #fff; color: var(--color-black);
  border: 1px solid var(--color-gray-400);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  filter: brightness(0.92);
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner button.settings:hover {
  background: var(--color-gray-400); color: #fff;
}

/* COOKIE MODAL */
.cookie-modal {
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center; justify-content: center;
  background: rgba(22,33,39,0.76);
  animation: cb-fadein .19s cubic-bezier(.48,.04,.77,.99);
}
@keyframes cb-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal-inner {
  background: #fff;
  color: #222;
  padding: 34px 32px 28px 32px;
  border-radius: 22px;
  box-shadow: 0 9px 44px rgba(20,67,94,0.13);
  min-width: 320px;
  max-width: 95vw;
  min-height: 220px;
  display: flex; flex-direction: column; gap: 18px;
  align-items: flex-start;
  position: relative;
}
.cookie-modal-inner h2 {
  font-size: 1.23rem;
  color: var(--color-primary);
  margin-bottom: 7px;
}
.cookie-modal-inner .cookie-category {
  font-size: 1.06rem;
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 12px;
}
.cookie-modal-inner label {
  color: #222;
  font-weight: 500;
}
.cookie-modal-inner input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 21px; height: 21px;
}
.cookie-category.essential label {
  color: #909590; font-style: italic; font-size: 0.96rem;
}
.cookie-modal-inner .close-cookie-modal {
  position: absolute; top: 13px; right: 13px;
  background: #eee; color: #222;
  border: none; border-radius: 50%; width: 37px; height: 37px;
  font-size: 1.58rem;
  cursor: pointer;
  box-shadow: 0 1.5px 10px rgba(20,67,94,0.09);
  transition: background .15s;
}
.cookie-modal-inner .close-cookie-modal:hover {
  background: var(--color-primary); color: #fff;
}
@media (max-width: 530px) {
  .cookie-modal-inner { padding: 12px 8px 13px 8px; max-width: 99vw; }
}

/* ==== SECTION/CONTENT SPECIFIC FLEX ==== */
.features .content-wrapper,
.about .content-wrapper,
.services .content-wrapper,
.team .content-wrapper,
.benefits .content-wrapper,
.faq .content-wrapper,
.catalog .content-wrapper,
.legal .content-wrapper,
.contact .content-wrapper,
.confirmation .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
@media (max-width: 960px) {
  .testimonials .content-wrapper { flex-direction: column; gap: 15px; }
}

/* ==== FAQ ACCENT FLEX (not collapsible here, but spaced) ==== */
.faq ul { gap: 16px; }
.faq li { font-size: 1.08rem; color: #262626; }

/* ==== BUTTON STATES & MICROANIMATIONS ==== */
.btn-primary, .btn-secondary, .cookie-banner button {
  box-shadow: 0 1px 7px rgba(19,27,30,.08);
}
.btn-primary:focus, .btn-secondary:focus, .cookie-banner button:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ==== FORM/CONTACT STYLES ==== */
.text-section ul {
  gap: 10px;
}
.text-section li {
  font-size: 1.01rem;
  color: #232728;
}
.text-section strong { color: var(--color-primary); }
.text-section a {
  color: var(--color-primary);
}
.text-section a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
}

/* ==== SCROLLBAR (for a modern, clean look) ==== */
::-webkit-scrollbar { width: 10px; background: #f7f7fa; }
::-webkit-scrollbar-thumb { background: #d2d6df; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #b6bcc8 }

/* ==== HIDE ELEMENTS FOR PRINT ==== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal, header, footer { display: none !important; }
}

/* ==== UTILITY CLASSES ==== */
.d-none { display: none !important; }
.text-center { text-align: center !important; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.gap-20 { gap: 20px; }

/* ==== THEME ADJUSTMENTS FOR MONOCHROME ==== */
/* Override any accent backgrounds with max-contrast */
.features, .about, .services, .about-short, .team, .benefits, .faq, .catalog, .case-studies, .confirmation, .legal, .contact {
  background: #f7f7fa;
}

/* ==== LAST CHECK: NO GRID, ONLY FLEXBOX! ==== */
/* All layout and section containers use display: flex, never display: grid! */
