/* CSS RESET & NORMALIZE */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  background: #fff;
  color: #171717;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  display: block;
}
a {
  color: #254049;
  text-decoration: underline;
  transition: color 0.25s;
}
a:hover, a:focus {
  color: #B6864B;
}
ul, ol {
  margin: 0 0 20px 32px;
  padding: 0;
}
li {
  margin-bottom: 10px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  margin: 0 0 16px 0;
  font-weight: 700;
  color: #181818;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; line-height:1.1; margin-bottom: 24px; }
h2 { font-size: 2rem; line-height:1.2; margin-bottom: 20px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }

blockquote {
  margin: 0 0 10px 0;
  padding-left: 14px;
  border-left: 3px solid #254049;
  font-style: italic;
  font-size: 1.1rem;
  color: #222;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 4px 16px rgba(30,30,40,0.04);
  position: sticky;
  top: 0;
  z-index: 800;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 72px;
  gap: 20px;
  position: relative;
}
header a img {
  height: 38px;
}
nav {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-left: 28px;
}
nav a {
  color: #254049;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  padding: 6px 10px;
  border-radius: 4px;
}
nav a:hover, nav a:focus {
  color: #B6864B;
  background: #F4F3EE;
}
/* Primary Button */
.btn-primary {
  background: #254049;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
  padding: 12px 28px;
  margin-left: auto;
  border: none;
  border-radius: 28px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(50, 70, 80, 0.06);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s, transform 0.14s;
}
.btn-primary:hover, .btn-primary:focus {
  background: #B6864B;
  color: #181818;
  box-shadow: 0 6px 24px rgba(50,70,80,0.14);
  transform: translateY(-1px) scale(1.03);
}
/* Secondary Button */
.btn-secondary {
  background: #F4F3EE;
  color: #254049;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 11px 22px;
  border-radius: 24px;
  border: 1.5px solid #254049;
  text-decoration: none;
  cursor: pointer;
  margin-top: 16px;
  transition: background 0.23s, color 0.19s, border 0.19s, transform 0.13s;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #254049;
  color: #fff;
  border-color: #B6864B;
  transform: translateY(-1px) scale(1.03);
}

/* Hamburger (mobile) menu button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  font-size: 2.1rem;
  color: #254049;
  border: none;
  margin-left: 18px;
  cursor: pointer;
  z-index: 902;
  padding: 3px 10px;
  line-height: 1;
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 0 36px rgba(0,0,0,0.18);
  z-index: 901;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.57,0.08,0.24,1.0);
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  background: transparent;
  color: #181818;
  font-size: 2.2rem;
  border: none;
  margin: 24px 30px 0 0;
  cursor: pointer;
  padding: 4px 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 32px 0 0 32px;
  gap: 16px;
}
.mobile-nav a {
  color: #254049;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.19rem;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 0;
  transition: color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #B6864B;
}

/* HERO */
.hero {
  background: #181818;
  color: #F4F3EE;
  padding: 60px 0 56px 0;
  margin-bottom: 60px;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.hero h1 {
  color: #fff;
  font-size: 2.3rem;
  letter-spacing: 0.01em;
  line-height: 1.18;
  margin-bottom: 8px;
}
.hero p {
  font-size: 1.18rem;
  color: #F4F3EE;
  margin-bottom: 8px;
}
.hero .btn-primary {
  background: #B6864B;
  color: #181818;
}
.hero .btn-primary:hover, .hero .btn-primary:focus {
  background: #fff;
  color: #254049;
}


/* SECTION TEMPLATES */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 28px rgba(34,36,38,0.03);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 0;
}

.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: flex-start;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 32px 24px 28px 24px;
  background: #F4F3EE;
  border-radius: 16px;
  box-shadow: 0 1px 16px rgba(22,24,28,0.075);
  min-width: 200px;
  max-width: 350px;
  flex: 1 1 240px;
  transition: box-shadow 0.19s, transform 0.18s;
}
.feature img {
  width: 44px;
  height: 44px;
}
.feature h3 {
  color: #254049;
  font-size: 1.18rem;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 24px rgba(30,60,80,0.12);
  transform: translateY(-4px) scale(1.025);
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin: 20px 0;
}
.brand-logos img {
  height: 48px;
  width: auto;
  filter: grayscale(1) contrast(1.1) brightness(1.05);
  opacity: 0.75;
  transition: filter 0.18s, opacity 0.16s;
}
.brand-logos img:hover,
.brand-logos img:focus {
  filter: grayscale(0) sepia(0.6) hue-rotate(-20deg) brightness(1.08) saturate(1.2);
  opacity: 1;
}

/* CARDS & GRID */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(30,34,40,0.068);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 340px;
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 28px rgba(50,64,79,0.13);
  transform: translateY(-3px) scale(1.015);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 28px 24px;
}

.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;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 30px;
  background: #fff;
  border: 1.5px solid #B5B5B5;
  border-radius: 16px;
  margin-bottom: 26px;
  color: #232323;
  box-shadow: 0 4px 16px rgba(80,80,80,0.06);
  min-width: 250px;
  max-width: 500px;
  transition: box-shadow 0.18s, border 0.16s, transform 0.13s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 36px rgba(30,32,33,0.10);
  border: 1.5px solid #254049;
  z-index: 1;
  transform: scale(1.017);
}
.customer-info {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #181818;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

/* FAQ/Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-accordion h3 {
  margin: 0 0 4px 0;
  font-size: 1.17rem;
  color: #254049;
}
.faq-accordion p {
  margin: 0;
}

/* FOOTER */
footer {
  background: #181818;
  color: #F4F3EE;
  padding: 42px 0 24px 0;
  margin-top: 80px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 16px;
}
.footer-nav a {
  color: #F4F3EE;
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #B6864B;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  font-size: 0.98rem;
}
.footer-contacts img {
  width: 18px;
  height: 18px;
  margin-right: 6px;
}
.footer-logo img {
  height: 38px;
  opacity: 0.90;
}

/***** SPACING PATTERNS – apply minimum gaps, per spec *****/
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; }
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/***** COOKIE CONSENT BANNER *****/
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: 98vw;
  max-width: 440px;
  background: #232323;
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(20,30,40,0.25);
  padding: 22px 25px 18px 25px;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  opacity: 1;
  transition: opacity 0.23s;
}
.cookie-banner.hide { opacity: 0; pointer-events: none; }
.cookie-banner-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.cookie-banner .btn-accept, .cookie-banner .btn-reject, .cookie-banner .btn-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 28px;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .btn-accept {
  background: #B6864B;
  color: #181818;
  margin-right: 3px;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: #fff;
  color: #254049;
}
.cookie-banner .btn-reject {
  background: #fff;
  color: #181818;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #B6864B;
  color: #181818;
}
.cookie-banner .btn-settings {
  background: transparent;
  border: 1.5px solid #fff;
  color: #fff;
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #181818;
  color: #B6864B;
  border-color: #B6864B;
}
  
/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,40,45,0.6);
  z-index: 1520;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #f4f3ee;
  color: #181818;
  border-radius: 20px;
  max-width: 410px;
  width: 92vw;
  box-shadow: 0 8px 36px rgba(50,60,70,0.28);
  padding: 32px 26px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  position: relative;
  animation: cookie-modal-pop 0.34s ease-in;
}
@keyframes cookie-modal-pop {
  0% { transform: scale(0.92) translateY(34px); opacity: 0; }
  75% { transform: scale(1.03) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #181818;
  cursor: pointer;
  padding: 4px 7px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.cookie-category input[type="checkbox"] {
  accent-color: #254049;
  width: 18px;
  height: 18px;
  margin-right: 7px;
  cursor: pointer;
}
.cookie-category label {
  font-size: 1.01rem;
  font-weight: 500;
  color: #181818;
}
.cookie-modal .btn-save {
  margin-top: 8px;
  border-radius: 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  background: #B6864B;
  color: #181818;
  border: none;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal .btn-save:hover, .cookie-modal .btn-save:focus {
  background: #254049;
  color: #fff;
}

/***** FORMS *****/
input, textarea, select {
  font-family: inherit;
  background: #F4F3EE;
  color: #181818;
  border: 1.3px solid #B5B5B5;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 1rem;
  box-shadow: 0 1px 4px rgba(30,32,34,0.07);
  outline: none;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #254049;
}

/***** UTILITY CLASSES *****/
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.flex-column { flex-direction: column !important; }
align-center { align-items: center !important; }

/***** RESPONSIVE DESIGN *****/
@media (max-width: 980px) {
  header .container {
    gap: 8px;
  }
  .footer-contacts {
    gap: 10px 18px;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
  }
  .footer-nav {
    gap: 11px;
  }
}
@media (max-width: 768px) {
  html { font-size: 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.11rem; }
  nav { display: none; }
  .btn-primary { margin-left: 0 !important; }
  .mobile-menu-toggle { display: block; }
  .container {
    max-width: 98vw;
    padding: 0 9px;
  }
  .features-grid, .brand-logos, .content-grid, .card-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px !important;
  }
  .card {
    min-width: 0;
    max-width: 100%;
  }
  .feature {
    min-width: 0;
    max-width: 100%;
  }
  .footer-logo img {
    height: 32px;
  }
  .section, .hero {
    padding: 28px 0;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 22px !important;
  }
}
@media (max-width: 530px) {
  html { font-size: 15px; }
  .cookie-banner { padding: 19px 10px 13px 13px; }
  .cookie-modal { padding: 21px 6vw 18px 6vw; }
}

/***** SCROLLBAR (monochrome) *****/
::-webkit-scrollbar { width: 12px; background: #f4f3ee; }
::-webkit-scrollbar-thumb { background: #b5b5b5; border-radius: 12px; }

/***** MICRO-INTERACTIONS *****/
a, .btn-primary, .btn-secondary, button, .feature, .card, .testimonial-card, .cookie-banner .btn-accept, .cookie-banner .btn-reject, .cookie-banner .btn-settings, .cookie-modal .btn-save {
  outline: none;
  transition: 
    color 0.20s,
    background 0.20s,
    border-color 0.17s,
    box-shadow 0.20s,
    transform 0.12s;
}
:focus-visible {
  outline: 2px dashed #B6864B;
  outline-offset: 2px;
}

/***** TYPOGRAPHY SCALE *****/
p, li, blockquote {
  font-size: 1rem;
  line-height: 1.6;
  color: #232323;
}

/* End of CSS */
