/* RESET & NORMALIZE */
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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html { height: 100%; scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; font-family: 'Montserrat', Arial, sans-serif; background: #F6F3ED; color: #3E4250; line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font-family: inherit; font-size: inherit; }
a { text-decoration: none; color: inherit; transition: color 0.2s; cursor: pointer; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; transition: background 0.2s, color 0.2s; }

/* VARIABLES (with fallbacks if unsupported) */
:root {
  --brand-primary: #3E4250;
  --brand-secondary: #92B5A9;
  --brand-accent: #F6F3ED;
  --white: #fff;
  --black: #14151b;
  --shadow-main: 0 4px 18px 0 rgba(62, 66, 80, 0.1);
  --radius-main: 20px;
  --transition: 0.2s cubic-bezier(.4,1.2,.48,.92);
}

/* TYPOGRAPHY (GEOMETRIC/STRUCTURED) */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.16;
  color: var(--brand-primary);
  margin-bottom: 24px;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
p, li, dd, dl {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--brand-primary);
  letter-spacing: 0.01em;
  font-size: 1rem;
}
strong { font-weight: 700; }

/* CONTAINER */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  max-width: 1250px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* HEADER & MAIN NAV */
header {
  width: 100%;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 10px 0 rgba(62, 66, 80, 0.04);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 20px;
}
header img {
  height: 48px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--brand-primary);
  position: relative;
  padding: 8px 0;
  transition: color 0.15s;
}
header nav a:hover, header nav a:focus {
  color: var(--brand-secondary);
}
.cta-btn {
  background: var(--brand-secondary);
  color: var(--white);
  border-radius: var(--radius-main);
  padding: 10px 28px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  margin-left: 18px;
  letter-spacing: 0.07em;
  box-shadow: 0 2px 10px rgba(62,66,80,0.10);
  transition: background 0.15s, color 0.15s, transform 0.13s;
  outline: none;
}
.cta-btn.primary {
  background: var(--brand-primary);
  color: var(--white);
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
  transform: scale(1.03);
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--brand-primary);
  background: var(--brand-accent);
  border-radius: 12px;
  border: 2px solid var(--brand-secondary);
  margin-left: 18px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--brand-secondary);
  color: var(--white);
  box-shadow: 0 0 0 3px var(--brand-secondary, #92B5A9);
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: var(--brand-primary);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-shadow: -2px 0 16px rgba(62,66,80,0.04);
  padding-top: 40px;
  transition: transform 0.33s cubic-bezier(.77,.22,.35,1.12);
  transform: translateX(100vw);
}
.mobile-menu.active {
  left: 0;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(.77,.22,.35,1.12);
}
.mobile-menu-close {
  margin: 0 0 24px 24px;
  font-size: 2rem;
  color: var(--white);
  background: var(--brand-secondary);
  border-radius: 16px;
  padding: 6px 18px;
  align-self: flex-start;
  border: none;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--white);
  color: var(--brand-primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  padding-left: 24px;
}
.mobile-nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.12em;
  transition: color 0.18s;
  padding: 12px 0;
  border-bottom: 1.5px solid rgba(255,255,255,0.10);
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-secondary);
}

@media (max-width: 992px) {
  header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

/* HERO SECTION */
.hero {
  background: linear-gradient(105deg, var(--brand-accent) 70%, #e7e3dd 100%);
  margin-bottom: 60px;
  padding: 40px 0;
  display: flex;
  align-items: center;
  min-height: 400px;
  box-shadow: 0 4px 18px rgba(62,66,80,0.08);
  border-radius: 0 0 48px 0;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1 {
  font-size: 2.4rem;
  color: var(--brand-primary);
  max-width: 750px;
}
.hero p {
  max-width: 540px;
  margin-bottom: 18px;
  color: var(--brand-primary);
  font-size: 1.18rem;
  font-weight: 400;
}
.hero .cta-btn {
  margin-top: 8px;
}
@media (max-width: 768px) {
  .hero {
    min-height: 260px;
    padding: 30px 0 30px 0;
    border-radius: 0 0 32px 0;
  }
  .hero h1 { font-size: 1.5rem; }
}

/* SECTIONS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--white);
  border-radius: var(--radius-main);
  box-shadow: var(--shadow-main);
}

/* FLEX CONTAINERS (MANDATORY) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--brand-accent);
  border-radius: 16px;
  box-shadow: var(--shadow-main);
  padding: 32px 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 260px;
  flex: 1 1 320px;
}
.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: var(--brand-accent);
  border-left: 8px solid var(--brand-secondary);
  border-radius: 12px 32px 16px 12px;
  box-shadow: 0 2px 8px rgba(62,66,80,0.11);
  margin-bottom: 20px;
  font-style: italic;
  font-size: 1.03rem;
}
.testimonial-card p {
  color: #21222A;
  margin-bottom: 0;
  font-weight: 500;
}
.testimonial-card span {
  font-style: normal;
  font-weight: 700;
  color: #55596d;
  font-size: 0.96rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* FEATURES & COLLECTIONS */
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  flex: 1 1 220px;
  min-width: 180px;
  gap: 16px;
  margin-bottom: 14px;
  background: var(--brand-accent);
  border-radius: 10px 20px 20px 10px;
  padding: 16px 18px;
  box-shadow: 0 1px 5px 0 rgba(62,66,80,0.08);
  font-size: 1rem;
  color: var(--brand-primary);
}
.features-list img {
  height: 32px;
  flex-shrink: 0;
  margin-right: 10px;
}

.collections-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.collections-list li {
  background: var(--brand-accent);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: 0 2px 10px rgba(62,66,80,0.08);
  flex: 1 1 320px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  border-left: 6px solid var(--brand-secondary);
  transition: box-shadow 0.18s, transform 0.18s;
}
.collections-list li:hover, .collections-list li:focus {
  box-shadow: 0 8px 18px rgba(62,66,80,0.14);
  transform: translateY(-2px) scale(1.018);
}
.collections-list h3 {
  margin-bottom: 8px;
  color: var(--brand-primary);
}
.collections-list a {
  color: var(--brand-secondary);
  font-weight: 700;
  font-size: 1rem;
  margin-top: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 2px 4px;
  border-radius: 8px;
  transition: background 0.13s, color 0.13s;
}
.collections-list a:hover, .collections-list a:focus {
  background: var(--brand-primary);
  color: var(--brand-accent);
}

/* FAQ */
dt {
  font-weight: 700;
  color: var(--brand-secondary);
  font-size: 1.1rem;
  margin-top: 22px;
}
dd {
  margin-left: 0;
  margin-bottom: 10px;
}

/* TEXT SECTIONS */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.text-section ul, .text-section ol {
  padding-left: 22px;
  margin-bottom: 10px;
  list-style-type: disc;
}
.text-section li {
  margin-bottom: 7px;
}

/* FOOTER */
footer {
  background: var(--brand-primary);
  color: var(--white);
  padding: 48px 0 24px 0;
  margin-top: 64px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 36px;
  justify-content: space-between;
}
footer img {
  height: 42px;
  margin-bottom: 18px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
footer nav a {
  color: var(--white);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--brand-secondary);
}
.footer-contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 10px;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
}
.footer-contact span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.96rem;
  color: var(--white);
  margin-right: 10px;
}
@media (max-width: 980px) {
  footer .container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .footer-contact { flex-direction: column; gap: 10px; align-items: flex-start; }
}

/* BUTTON UNIVERSAL */
button, .cta-btn {
  transition: background 0.2s, box-shadow 0.2s, color 0.16s, transform 0.11s;
  cursor: pointer;
}
button:active, .cta-btn:active {
  transform: scale(0.96);
}

/* LINKS */
a:focus {
  outline: 2px solid var(--brand-secondary);
  outline-offset: 2px;
}

/* CARD DESIGN */
.card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-main);
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* SECTION & CARD LAYOUTS – SPACING */
.section, .card {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card { margin-bottom: 20px; }
.card-container, .content-grid, .text-image-section { gap: 24px; }

/* RESPONSIVE ADAPTATION (MOBILE FIRST) */
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 16px;
  }
  .features-list, .collections-list {
    flex-direction: column;
    gap: 16px;
  }
  .card-container { flex-direction: column; gap: 16px; }
  .content-grid { flex-direction: column; gap: 14px; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-card {
    flex-direction: column;
    text-align: left;
    gap: 8px;
    padding: 16px;
  }
  .section, .card {
    padding: 26px 8px;
    margin-bottom: 32px;
  }
}

/* ANIMATION & MICRO-INTERACTIONS */
a, button, .cta-btn, .card, .collections-list li, .testimonial-card {
  transition: all 0.18s var(--transition);
}
.card:hover, .card:focus {
  box-shadow: 0 8px 30px rgba(62,66,80,0.15);
  transform: translateY(-2px) scale(1.015);
}

/* GEOMETRIC DECORATIVE ELEMENTS (FOR STYLE) */
.section {
  position: relative;
  overflow: visible;
}
.section::before {
  content: "";
  display: block;
  position: absolute;
  top: -26px;
  left: -22px;
  width: 64px;
  height: 54px;
  background: var(--brand-secondary);
  opacity: 0.08;
  border-radius: 16px 38px 26px 36px / 24px 38px 16px 29px;
  z-index: 0;
  pointer-events: none;
}
@media (max-width:700px) {
  .section::before {
    display: none;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 12000;
  width: 100vw;
  background: #fff;
  color: var(--brand-primary);
  box-shadow: 0 -2px 16px rgba(62,66,80,0.13);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  border-radius: 18px 18px 0 0;
  animation: cookie-slide-up 0.6s cubic-bezier(.22,.83,.65,1.05) both;
}
@keyframes cookie-slide-up {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--brand-primary);
  flex: 1;
  margin-right: 16px;
}
.cookie-banner .cookie-actions {
  display: flex; gap: 12px; flex-wrap: wrap;
}
.cookie-btn {
  background: var(--brand-secondary);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  box-shadow: 0 2px 6px rgba(62,66,80,0.04);
  font-size: 1rem;
  margin-left: 0;
  letter-spacing: 0.04em;
  transition: background 0.16s, color 0.14s;
}
.cookie-btn.settings {
  background: var(--brand-primary);
  color: var(--white);
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #6eac96;
}
.cookie-btn.reject { background: #ded8cf; color: var(--brand-primary); }
.cookie-btn.reject:hover, .cookie-btn.reject:focus { background: #d7ceb9; color: var(--brand-primary); }
.cookie-btn.settings:hover, .cookie-btn.settings:focus { background: var(--brand-secondary); color: var(--white); }
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 8px; }
  .cookie-banner p { margin-right: 0; }
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed; 
  top: 0; right: 0; left:0; bottom:0;
  z-index: 13000;
  background: rgba(62,66,80, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.active {
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(62,66,80,0.19);
  padding: 38px 26px 32px 26px;
  min-width: 330px;
  max-width: 98vw;
  animation: cookie-modal-in 0.45s cubic-bezier(.33,1.38,.44,.98);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
@keyframes cookie-modal-in {
  from { transform: translateY(70px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  margin: 0 0 8px 0;
  font-size: 1.13rem;
  font-weight: 700;
  color: var(--brand-primary);
}
.cookie-modal ul {
  margin-bottom: 18px;
  padding-left: 22px;
}
.cookie-modal li { margin-bottom: 9px; color: #4a4c58; font-size: 1rem; }
.cookie-modal label {
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--brand-primary);
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: var(--brand-secondary);
  width: 18px; height: 18px;
}
.cookie-modal .cookie-actions {
  gap: 10px;
}

/* GEOMETRIC STRUCTURED INPUTS / FORMS */
input, textarea, select {
  border-radius: 7px;
  border: 2px solid #e9e7e0;
  padding: 10px 14px;
  font-size: 1rem;
  background: var(--brand-accent);
  transition: border-color 0.13s, box-shadow 0.13s;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 2px 12px rgba(146,181,169,0.07);
}

/* MISC GEOMETRIC ELEMENTS */
hr {
  border: none;
  height: 1px;
  background: #e2e0d6;
  width: 100%;
  margin: 34px 0 18px 0;
}

/* --- END CSS --- */
