:root {
  --bg: #f3f0e8;
  --surface: #ebe7dc;
  --ink: #182219;
  --muted: #606a5e;
  --line: #cfd1c7;
  --accent: #65784d;
  --button-bg: #a8b58b;
  --deep: #102016;
  --cream: #d8d7c8;
  --card: #f7f5ee;
  --white: #fff;
  --header-height: 94px;
}

html[data-theme="dark"] {
  --bg: #102016;
  --surface: #18291e;
  --ink: #d9dccf;
  --muted: #a5afa1;
  --line: #3b4d40;
  --accent: #a8b58b;
  --deep: #0d1b12;
  --cream: #cfd2c4;
  --card: #15261b;
  --white: #d9dccf;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-width: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, system-ui, sans-serif;
  transition: background .25s, color .25s;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
[id] { scroll-margin-top: calc(var(--header-height) + 24px); }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #102016;
  background: color-mix(in srgb, var(--deep) 95%, transparent);
  color: #d5dacd;
  border-bottom: 1px solid #35473c;
}
.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 16px; margin-right: auto; min-width: 0; }
.brand .mark {
  flex: 0 0 auto;
  font: italic 600 40px/1 "Playfair Display", serif;
  border-right: 1px solid #405345;
  padding-right: 18px;
}
.brand strong { display: block; font: 500 22px/1.25 "Playfair Display", serif; }
.brand small { display: block; font-size: 12px; color: #aab4a7; margin-top: 4px; }
.desktop-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; white-space: nowrap; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.desktop-nav a:hover, .text-cta:hover { color: #fff; }
.nav-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; }
.ghost, .menu-btn {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #506149;
  background: transparent;
  color: #d5dacd;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
}
.site-header :focus-visible { outline-color: #bdcca7; }
.text-cta { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; border-bottom: 1px solid #71806c; white-space: nowrap; }
.menu-btn, .mobile-nav { display: none; }

/* Page composition */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.alt { background: var(--surface); }
.hero { padding-top: 56px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.hero-grid > *, .two-col > *, .contact-layout > *, .cards > *, .footer > * { min-width: 0; }
.eyebrow, .kicker, .section-no { letter-spacing: .13em; font-size: 12px; color: var(--muted); }
.kicker, .section-no { margin: 26px 0 16px; font-weight: 600; }
.hero h1, h2 {
  font: 500 clamp(44px, 6vw, 72px)/1.08 "Playfair Display", serif;
  letter-spacing: -.035em;
  margin: 12px 0 24px;
}
.hero h1 em, h2 em, .quote em { color: var(--accent); font-weight: 500; }
h2 { font-size: clamp(38px, 5vw, 60px); }
h3 { font: 500 28px/1.2 "Playfair Display", serif; margin: 12px 0; }
.lead { font-size: 19px; max-width: 700px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.price-note { border-left: 2px solid var(--accent); padding-left: 16px; margin: 22px 0; display: grid; gap: 3px; }
.price-note span { font-size: 12px; color: var(--muted); }
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  background: var(--button-bg);
  color: #102016;
  padding: 14px 18px;
  margin: 12px 0 14px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 4px;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.primary:hover { background: #bdcaa3; transform: translateY(-1px); }
.primary:disabled { opacity: .65; cursor: wait; transform: none; }
.primary:focus-visible { outline-color: var(--ink); }
.location { font-size: 12px; color: var(--muted); margin-top: 24px; }
.portrait-card { position: relative; }
.teacher-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid #465442;
  border-radius: 24px;
}
.teacher-photo--hero, .teacher-photo--about { border-radius: 24px; }
.quote {
  position: absolute;
  left: -28px;
  bottom: 72px;
  background: var(--deep);
  color: #d6dacd;
  padding: 14px 22px;
  border: 1px solid #3b4d40;
  border-radius: 8px;
  font: 500 20px/1.35 "Playfair Display", serif;
}
.quote em { color: #a8b58b; }
.portrait-caption { display: grid; text-align: center; margin-top: 18px; }
.portrait-caption small { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 60px; border-top: 1px solid var(--line); }
.stats > div { display: flex; gap: 12px; align-items: center; padding: 22px 16px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { font: 500 24px "Playfair Display", serif; }
.stats span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.offer-card, .form { border: 1px solid var(--line); background: var(--card); padding: 32px; border-radius: 8px; }
.offer-card > div:first-child { display: flex; justify-content: space-between; gap: 20px; }
.big-price { font: 500 44px "Playfair Display", serif; margin: 26px 0; }
.big-price del { font: 400 18px Inter, sans-serif; color: var(--muted); margin-left: 10px; }
.big-price small { display: block; font: 400 12px Inter, sans-serif; color: var(--muted); }
.offer-card ol { list-style: none; padding: 0; margin: 0 0 24px; }
.offer-card li { padding: 12px 0; border-top: 1px solid var(--line); }
.offer-card li b { margin-right: 18px; color: var(--accent); }
.cards { display: grid; gap: 18px; margin-top: 34px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards article { border: 1px solid var(--line); padding: 28px; background: var(--card); border-radius: 6px; }
.cards article > span { font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.cards article p { color: var(--muted); }
.narrow { max-width: 800px; }
blockquote { font: italic 500 32px/1.35 "Playfair Display", serif; max-width: 850px; margin: 34px 0; padding-left: 24px; border-left: 2px solid var(--accent); }
.pricing { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; margin-top: 30px; overflow: hidden; }
.pricing > div { min-width: 0; padding: 34px; }
.pricing > div + div { border-left: 1px solid var(--line); }
.pricing strong { font: 500 40px "Playfair Display", serif; }
.pricing small { font: 400 13px Inter, sans-serif; }
.faq { border-top: 1px solid var(--line); margin-top: 30px; }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; padding: 12px 2px; min-height: 48px; font: 500 20px/1.45 "Playfair Display", serif; }
.faq details p { margin: 6px 0 16px; max-width: 800px; }

/* Contact links and form */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
.contact-grid .contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  transition: background .2s, border-color .2s, transform .2s;
}
.contact-link:hover { transform: translateY(-1px); }
.contact-icon { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-link--whatsapp { --brand: #12883f; }
.contact-link--viber { --brand: #7850ad; }
.contact-link--telegram { --brand: #117dab; }
.contact-link--phone { --brand: #657c45; }
.contact-link--request { --brand: #846431; }
html[data-theme="dark"] .contact-link--whatsapp, .contact-section .contact-link--whatsapp { --brand: #50dc83; }
html[data-theme="dark"] .contact-link--viber, .contact-section .contact-link--viber { --brand: #b88bed; }
html[data-theme="dark"] .contact-link--telegram, .contact-section .contact-link--telegram { --brand: #55bdeb; }
html[data-theme="dark"] .contact-link--phone, .contact-section .contact-link--phone { --brand: #b0c68c; }
.contact-grid .contact-link { border-color: color-mix(in srgb, var(--brand) 46%, var(--line)); }
.contact-grid .contact-icon { color: var(--brand); }
.contact-link--telegram .contact-icon { fill: currentColor; stroke: none; }
.contact-grid .contact-link:hover { background: color-mix(in srgb, var(--brand) 14%, transparent); border-color: var(--brand); }
.contact-link:focus-visible { outline-color: var(--brand, var(--accent)); outline-offset: 3px; }
.contact-section { background: var(--deep); color: #d9dccf; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.contact-section a { color: #d9dccf; }
.contact-section .section-no { color: #adb89f; }
.contact-section h2 { color: #d9dccf; }
.contact-section .contact-link { border-color: #455a49; border-color: color-mix(in srgb, var(--brand) 42%, #455a49); }
.form { background: #1a2a1f; border-color: #4b5d4e; }
.form label { display: grid; gap: 6px; font-size: 13px; margin: 14px 0; }
.form input, .form select, .form textarea {
  display: block;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 48px;
  background: #17261b;
  border: 1px solid #7d8b7e;
  border-radius: 4px;
  color: #e5e9dd;
  padding: 12px;
  font-size: 16px;
  line-height: 1.5;
  color-scheme: dark;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input::placeholder, .form textarea::placeholder { color: #aeb7a9; opacity: 1; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: #bdcaa3; outline: 2px solid #bdcaa3; outline-offset: 2px; }
.form option { background: #17261b; color: #e5e9dd; }
.form-top { font-size: 12px; letter-spacing: .12em; color: #bdcaa3; }
.form .primary:focus-visible { outline-color: #d9dccf; }
.full { width: 100%; }
.form-status { min-height: 1.5em; margin: 8px 0; font-size: 14px; color: #bdcaa3; }
.form-status[data-state="error"] { color: #ffc1bc; }
.form-status[data-state="pending"] { color: #d9dccf; }
.privacy-note { font-size: 12px; line-height: 1.6; color: #bcc5b6; }
.privacy-note a { text-decoration: underline; text-underline-offset: 3px; }
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Footer and legal pages */
.skip-link { position: fixed; z-index: 50; top: 8px; left: 8px; padding: 12px 18px; background: #d4dfbb; color: #102016; font-weight: 600; transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
footer { background: #0d1810; color: #cfd2c4; padding: 42px 0; }
.footer { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; }
.footer strong, .footer small, .footer a { display: block; }
.footer a { padding-block: 6px; overflow-wrap: anywhere; }
.footer a:hover, .legal-content a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer small, .copyright { color: #a3b0a4; }
footer :focus-visible { outline-color: #bdcaa3; }
.copyright { border-top: 1px solid #2c3b31; margin-top: 28px; padding-top: 20px; font-size: 12px; }
.legal-page { min-height: 100vh; }
.legal-header { background: var(--deep); color: #d9dccf; padding: 0; border-bottom: 1px solid #35473c; }
.legal-header a { display: inline-flex; align-items: center; min-height: 44px; }
.legal-content { width: min(800px, calc(100% - 40px)); margin-inline: auto; padding-block: 64px 88px; }
.legal-content h1 { font: 500 clamp(36px, 5vw, 54px)/1.15 "Playfair Display", serif; letter-spacing: -.025em; margin: 0 0 24px; }
.legal-content h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.25; margin-top: 36px; }
.legal-content h3 { font-size: 24px; }
.legal-content p, .legal-content li { overflow-wrap: anywhere; }
.legal-content li + li { margin-top: 10px; }
.legal-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Persistent contact dock */
.floating-contact-dock {
  position: fixed;
  z-index: 30;
  right: max(22px, env(safe-area-inset-right));
  bottom: max(22px, env(safe-area-inset-bottom));
  display: grid;
  gap: 7px;
  width: 184px;
  padding: 10px;
  background: #102016;
  background: color-mix(in srgb, var(--deep) 96%, transparent);
  border: 1px solid #58694e;
  border-radius: 14px;
  box-shadow: 0 14px 44px #0004;
  backdrop-filter: blur(16px);
}
.dock-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #e8ebdf;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: background .18s, transform .18s, border-color .18s;
}
.dock-link svg { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock-link--whatsapp { --brand: #50dc83; }
.dock-link--viber { --brand: #b88bed; }
.dock-link--telegram { --brand: #55bdeb; }
.dock-link--phone { --brand: #b0c68c; }
.dock-link--request { --brand: #e2c68e; }
.dock-link svg { color: var(--brand); }
.dock-link:hover, .dock-link:focus-visible { background: color-mix(in srgb, var(--brand) 17%, transparent); border-color: color-mix(in srgb, var(--brand) 52%, transparent); transform: translateX(-2px); }
.dock-link--telegram svg { fill: var(--brand); stroke: none; }
.dock-link:focus-visible { outline: 2px solid var(--brand, #d1ba8b); outline-offset: 1px; }

@media (max-width: 1600px) {
  html { scroll-padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  body:has(.floating-contact-dock) { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .form input, .form select, .form textarea { scroll-margin-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .floating-contact-dock {
    width: min(500px, calc(100% - 44px));
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
  }
  .dock-link {
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 5px 2px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .dock-link:hover, .dock-link:focus-visible { transform: translateY(-2px); }
}

@media (max-width: 1200px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav.open {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px 16px;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    padding-block: 4px 20px;
  }
  .mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 8px; border-radius: 4px; font-size: 14px; }
  .mobile-nav a:hover { background: #26382a; }
  .hero-grid { gap: 46px; }
  .hero h1 { font-size: clamp(46px, 5.6vw, 64px); }
  .contact-grid .contact-link { padding-inline: 10px; }
}

@media (max-width: 980px) {
  .hero-grid, .two-col, .contact-layout { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .portrait-card { width: 100%; max-width: 620px; margin-inline: auto; }
  .teacher-photo--about { max-width: 620px; margin-inline: auto; }
  .cards.three { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .pricing { grid-template-columns: 1fr; }
  .pricing > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .two-col, .contact-layout { gap: 40px; }
  .form { max-width: 680px; width: 100%; }
  .quote { left: 16px; }
  body:has(.floating-contact-dock) { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .floating-contact-dock {
    right: max(10px, env(safe-area-inset-right));
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    width: min(540px, calc(100% - 20px));
    margin-inline: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border-radius: 15px;
  }
  .dock-link { min-width: 0; min-height: 56px; flex-direction: column; justify-content: center; gap: 4px; padding: 5px 2px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
  .dock-link:hover, .dock-link:focus-visible { transform: translateY(-2px); }
}

@media (max-width: 640px) {
  :root { --header-height: 78px; }
  .wrap { width: calc(100% - 32px); }
  .nav-wrap { gap: 12px; }
  .brand { gap: 10px; }
  .brand strong { font-size: 18px; }
  .brand small { display: none; }
  .brand .mark { font-size: 30px; padding-right: 11px; }
  .nav-actions { gap: 8px; }
  .ghost { padding-inline: 9px; }
  .ghost span { display: none; }
  .text-cta { display: none; }
  .mobile-nav.open { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 8px; padding-bottom: 16px; }
  .section { padding: 58px 0; }
  .hero { padding-top: 30px; }
  .hero h1 { font-size: clamp(36px, 8vw, 48px); line-height: 1.1; }
  h2 { font-size: clamp(34px, 8vw, 44px); line-height: 1.12; }
  h3 { font-size: 26px; }
  .eyebrow, .kicker, .section-no { letter-spacing: .08em; }
  .lead { font-size: 18px; }
  .hero .primary { width: 100%; }
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .contact-grid .contact-link { padding: 10px; font-size: 13px; gap: 7px; }
  .teacher-photo, .teacher-photo--hero, .teacher-photo--about { border-radius: 20px; }
  .portrait-caption { font-size: 14px; }
  .quote { left: 10px; bottom: 80px; font-size: 19px; padding: 12px 18px; }
  .stats { margin-top: 40px; }
  .stats > div { gap: 8px; padding: 18px 12px; flex-wrap: wrap; align-content: start; }
  .stats b { font-size: 24px; }
  .stats span { font-size: 12px; }
  .cards.two, .footer { grid-template-columns: 1fr; }
  .offer-card, .form, .cards article { padding: 24px; }
  .offer-card > div:first-child { flex-direction: column; gap: 6px; }
  .offer-card li b { margin-right: 10px; }
  .pricing > div { padding: 26px 24px; }
  .pricing strong { font-size: 36px; }
  blockquote { font-size: 27px; padding-left: 18px; }
  .faq summary { font-size: 20px; }
  .footer { gap: 22px; }
  .footer a { min-height: 44px; display: flex; align-items: center; }
  .copyright { line-height: 1.6; }
  .legal-header { padding-block: 0; }
  .legal-header .text-cta { display: inline-flex; }
  .legal-content { width: calc(100% - 32px); padding-block: 40px 56px; }
  .dock-link { font-size: 10px; }
  .dock-link svg { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 24px); }
  .nav-wrap { gap: 6px; }
  .brand { gap: 7px; }
  .brand .mark { font-size: 24px; padding-right: 6px; }
  .brand strong { max-width: 132px; font-size: 16px; }
  .nav-actions { gap: 4px; }
  .ghost, .menu-btn { min-width: 44px; padding-inline: 8px; }
  .hero h1 { font-size: 35px; }
  h2 { font-size: 33px; }
  .offer-card, .form, .cards article { padding: 20px; }
  .contact-grid .contact-link { gap: 6px; padding-inline: 7px; font-size: 12px; }
  .contact-icon { width: 19px; height: 19px; }
  .big-price { font-size: 40px; }
  .big-price del { font-size: 16px; margin-left: 4px; }
  .stats > div { padding-inline: 10px; }
  .floating-contact-dock { gap: 2px; padding-inline: 4px; }
  .dock-link { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .primary:hover, .contact-link:hover, .dock-link:hover, .dock-link:focus-visible { transform: none; }
}

/* Optional advertising measurement: both choices have equal visual weight. */
.consent-banner {
  position: fixed;
  z-index: 80;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 40px));
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 12px 42px #0004;
}
.consent-banner h2 { margin: 0 0 10px; font: 600 20px/1.3 Inter, system-ui, sans-serif; }
.consent-banner p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; }
.consent-privacy { text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent-choice {
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
}
.consent-choice:hover { background: var(--button-bg); color: var(--deep); }
.consent-preferences {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 16px;
  padding: 4px 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.legal-content > .consent-preferences { display: flex; margin: 24px 0 0; }
@media (max-width: 1200px) {
  body:has(.floating-contact-dock) .consent-banner {
    bottom: calc(102px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 142px - env(safe-area-inset-bottom));
  }
}
@media (max-width: 640px) {
  .consent-banner {
    left: max(12px, env(safe-area-inset-left));
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: calc(100% - 24px);
    max-height: calc(100dvh - 48px - env(safe-area-inset-bottom));
    padding: 18px;
  }
  .consent-banner h2 { font-size: 18px; }
  .consent-actions { gap: 8px; }
  .consent-choice { font-size: 13px; padding-inline: 8px; }
  .consent-preferences { display: flex; margin-left: 0; }
}
