/* LuxVita — shared styles: tokens, fonts, base, buttons, header, mega menu, mobile nav, footer. */

/* ---------- Fonts (self-hosted variable WOFF2, subset by unicode-range) ---------- */
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-latin-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-latin-ext-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-cyrillic-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-latin-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-latin-ext-italic.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Playfair"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-cyrillic-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-cyrillic-ext-normal.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Playfair"; font-style: italic; font-weight: 400 900; font-display: swap; src: url(../fonts/playfair-cyrillic-ext-italic.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Sacramento"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sacramento-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 900; font-display: swap; src: url(../fonts/golos-text-cyrillic-ext.woff2) format("woff2"); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

/* ---------- Tokens ---------- */
:root {
  --c-ivory: #F7F4EE;
  --c-cream: #EFE9DF;
  --c-paper: #FFFFFF;
  --c-forest: #1F3B32;
  --c-forest-2: #2E5245;
  --c-forest-deep: #152A23;
  --c-champagne: #B89A67;
  --c-champagne-light: #D9C49A;
  --c-gold-deep: #8A6A36;   /* gold text on light backgrounds (4.5:1+) */
  --c-gold-ink: #7E6338;    /* small text on light backgrounds (4.5:1+) */
  --c-graphite: #1C1F1E;
  --c-stone: #5F6561;
  --c-mist: #E6EAE5;
  --c-line: rgba(28, 31, 30, .12);
  --c-line-light: rgba(247, 244, 238, .16);

  --f-display: "Playfair", "Playfair Display", Georgia, "Times New Roman", serif;
  --f-script: "Sacramento", "Segoe Script", cursive;
  --f-text: "Golos", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --fs-display: clamp(2.6rem, 1.4rem + 3.5vw, 4.9rem);
  --fs-h2: clamp(2rem, 1.35rem + 2vw, 3.25rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .5vw, 1.6rem);
  --fs-lead: clamp(1.02rem, .97rem + .25vw, 1.15rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-xs: .78rem;

  --sp-section: clamp(4.5rem, 3rem + 6vw, 9rem);
  --gutter: clamp(16px, 4vw, 40px);
  --container: 1320px;
  --header-h: 84px;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(21, 42, 35, .04), 0 12px 32px -12px rgba(21, 42, 35, .14);
  --shadow-lift: 0 2px 4px rgba(21, 42, 35, .05), 0 28px 60px -24px rgba(21, 42, 35, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); font-optical-sizing: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--c-ivory);
  color: var(--c-graphite);
  font-family: var(--f-text);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, figure, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--c-champagne); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-champagne-light); color: var(--c-forest-deep); }

.i { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: middle; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--c-forest); color: var(--c-ivory); border-radius: var(--r-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sp-section); }

/* ---------- Type ---------- */
.h2, h1 { font-family: var(--f-display); font-weight: 400; letter-spacing: -.015em; line-height: 1.1; color: var(--c-forest-deep); }
.h2 { font-size: var(--fs-h2); }
.h2 em, h1 em { font-style: italic; font-weight: 400; color: #9A7640; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-gold-ink); margin-bottom: 18px;
}
.eyebrow--line { --line: 1; }
.eyebrow--line::before { content: ""; width: 42px; height: 1px; background: currentColor; transform-origin: left; transform: scaleX(var(--line, 1)); }
.eyebrow--gold { color: var(--c-champagne-light); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(217, 196, 154, .16); color: var(--c-champagne-light); border: 1px solid rgba(217, 196, 154, .3);
}
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--fs-small); color: var(--c-forest); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: gap .3s var(--ease), color .3s; }
.text-link:hover { gap: 12px; color: var(--c-gold-ink); }

/* Split-text line masks */
.split-line { display: block; overflow: clip; padding-bottom: .08em; margin-bottom: -.08em; }

/* ---------- Buttons ---------- */
.btn {
  --btn-h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--btn-h); padding: 0 26px; border-radius: var(--r-pill);
  font-size: .95rem; font-weight: 500; letter-spacing: .01em; line-height: 1.2; text-align: center;
  border: 1px solid transparent; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn .i { width: 1.15em; height: 1.15em; }
.btn__icon { display: grid; place-items: center; width: 30px; height: 30px; margin-right: -12px; border-radius: 50%; background: rgba(247, 244, 238, .14); transition: transform .4s var(--ease); }
.btn:hover .btn__icon { transform: translateX(3px); }
.btn--sm { --btn-h: 46px; padding: 0 20px; font-size: .9rem; }
.btn--sm .btn__icon { width: 26px; height: 26px; margin-right: -10px; }
.btn--lg { --btn-h: 60px; padding: 0 30px; font-size: 1rem; }
.btn--primary { background: linear-gradient(135deg, #2A4C3F 0%, var(--c-forest) 45%, var(--c-forest-deep) 100%); color: var(--c-ivory); box-shadow: 0 14px 30px -14px rgba(21, 42, 35, .6), inset 0 1px 0 rgba(255, 255, 255, .08); }
.btn--primary:hover { background: linear-gradient(135deg, #335a4b 0%, var(--c-forest-2) 50%, var(--c-forest) 100%); }
.btn--gold { background: var(--c-champagne-light); color: var(--c-forest-deep); }
.btn--gold .btn__icon { background: rgba(21, 42, 35, .1); }
.btn--gold:hover { background: #E6D5B1; }
.btn--outline { border-color: rgba(28, 31, 30, .22); color: var(--c-forest-deep); background: transparent; }
.btn--outline:hover { border-color: var(--c-forest); background: var(--c-forest); color: var(--c-ivory); }
.btn--wa { border-color: rgba(247, 244, 238, .35); color: var(--c-ivory); }
.btn--wa .i { color: #4ADE80; }
.btn--wa:hover { background: rgba(247, 244, 238, .1); border-color: rgba(247, 244, 238, .6); }
/* Tooth (the logo's traced tooth, symbol #tooth): ring by default; .tooth--solid fills the silhouette. */
.tooth { display: block; width: 100%; height: 100%; overflow: visible; fill: currentColor; fill-rule: evenodd; }
.tooth--solid { fill-rule: nonzero; }

.round-btn {
  display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--c-line); color: var(--c-forest); background: var(--c-paper);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.round-btn:hover { background: var(--c-forest); color: var(--c-ivory); border-color: var(--c-forest); }
.round-btn:active { transform: scale(.94); }

/* ---------- Section heads ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head > div:first-child { max-width: 680px; }
.section-head__aside { max-width: 420px; display: grid; gap: 16px; justify-items: start; color: var(--c-stone); font-size: .98rem; }
.section-head--light .h2 { color: var(--c-ivory); }
.section-head--light .h2 em { color: var(--c-champagne-light); }
.section-head--light .eyebrow { color: var(--c-champagne-light); }
.section-head--light .section-head__aside { color: rgba(247, 244, 238, .72); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; line-height: 0; flex: none; }
.logo__img { display: block; width: auto; height: 60px; filter: drop-shadow(0 1px 1px rgba(110, 60, 5, .18)); }
.logo--light .logo__img { height: 72px; filter: none; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: transform .5s var(--ease), background-color .4s var(--ease), box-shadow .4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(247, 244, 238, .82); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid var(--c-line); opacity: 0; transition: opacity .4s var(--ease); }
.site-header::before { opacity: .55; }
.site-header.is-scrolled::before, .site-header.is-open::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header__inner { position: relative; display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.nav { margin-inline: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; white-space: nowrap; font-size: .92rem; font-weight: 500; color: var(--c-graphite); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--c-champagne); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav__link:hover::after, .nav__trigger[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__trigger .i { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.nav__trigger[aria-expanded="true"] .i { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; gap: 18px; }
/* Phone and address in the header; the address shows as a tooltip on hover or keyboard focus. */
.header__contact { position: relative; display: inline-flex; align-items: center; gap: 10px; flex: none; font-size: .92rem; font-weight: 600; white-space: nowrap; color: var(--c-forest-deep); transition: color .3s; }
.header__contact:hover { color: var(--c-gold-ink); }
.header__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(176, 138, 78, .45); background: rgba(255, 255, 255, .55); color: #9A7640; transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.header__contact:hover .header__icon { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-champagne-light); }
.header__icon .i { width: 18px; height: 18px; }
.header__loc + .header__phone { margin-left: -6px; }
.header__tip {
  position: absolute; top: calc(100% + 14px); right: -12px; z-index: 5; display: grid; gap: 2px; width: max-content; max-width: 280px; padding: 14px 18px;
  border-radius: var(--r-md); background: var(--c-forest-deep); color: rgba(247, 244, 238, .82); font-size: .82rem; font-weight: 400; line-height: 1.5; white-space: normal;
  box-shadow: var(--shadow-lift); pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.header__tip::before { content: ""; position: absolute; top: -5px; right: 27px; width: 10px; height: 10px; background: inherit; transform: rotate(45deg); }
.header__tip strong { margin-bottom: 2px; font-weight: 600; color: var(--c-ivory); }
.header__tip em { margin-top: 6px; font-style: normal; font-size: .76rem; letter-spacing: .04em; color: var(--c-champagne-light); }
.header__loc:hover .header__tip, .header__loc:focus-visible .header__tip { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
/* Below 1366px the number would crowd the nav: the phone shows as an icon (its aria-label still reads the number). */
@media (max-width: 1365px) { .header__phone-num { display: none; } }
/* Kazakh and Russian labels are longer, so the number is hidden a little earlier. */
@media (max-width: 1499px) { html:not(:lang(en)) .header__phone-num { display: none; } }

.lang { position: relative; flex: none; font-size: .82rem; font-weight: 600; letter-spacing: .06em; }
.lang__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-forest-deep); cursor: pointer; list-style: none; user-select: none; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover, .lang[open] .lang__btn { border-color: rgba(176, 138, 78, .6); background: rgba(255, 255, 255, .55); }
.lang__btn .i { width: 16px; height: 16px; }
.lang__chev { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.lang[open] .lang__chev { transform: rotate(180deg); }
.lang__menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 5; min-width: 148px; margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--c-ivory); border: 1px solid var(--c-line); box-shadow: 0 18px 40px rgba(31, 59, 50, .16); }
.lang--up .lang__menu { top: auto; bottom: calc(100% + 8px); right: 50%; transform: translateX(50%); }
.lang__item { display: block; padding: 9px 14px; border-radius: 10px; color: var(--c-stone); letter-spacing: .02em; white-space: nowrap; transition: color .3s, background-color .3s; }
.lang__item:hover { color: var(--c-forest); background: rgba(176, 138, 78, .12); }
.lang__item.is-active { color: var(--c-forest-deep); background: rgba(176, 138, 78, .18); }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-line); place-items: center; color: var(--c-forest-deep); }
.burger .i { width: 22px; height: 22px; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* ---------- Mega menu ---------- */
.mega { position: absolute; left: 0; right: 0; top: calc(var(--header-h) - 6px); pointer-events: none; visibility: hidden; }
.mega.is-open .mega__inner { pointer-events: auto; }
.mega.is-open { visibility: visible; }
.mega__inner {
  display: grid; grid-template-columns: 280px 1fr; grid-template-rows: auto auto;
  background: var(--c-paper); border-radius: var(--r-xl); box-shadow: 0 40px 80px -30px rgba(21, 42, 35, .35), 0 0 0 1px rgba(21, 42, 35, .06);
  overflow: hidden; padding: 0;
  max-width: calc(var(--container) + 40px);
  max-height: calc(100dvh - var(--header-h) - 6px); overflow-y: auto; overscroll-behavior: contain;
}
.mega__intro { grid-row: 1 / span 2; position: relative; padding: 36px 32px 0; background: linear-gradient(180deg, var(--c-ivory), var(--c-cream)); display: flex; flex-direction: column; align-items: flex-start; }
.mega__intro .eyebrow { margin-bottom: 14px; }
.mega__title { font-family: var(--f-display); font-size: 1.75rem; line-height: 1.12; font-weight: 400; color: var(--c-forest-deep); }
.mega__title em { color: var(--c-gold-deep); }
.mega__text { margin: 14px 0 22px; font-size: .9rem; color: var(--c-stone); line-height: 1.6; }
.mega__photo { align-self: stretch; margin-top: auto; margin-inline: -32px; padding-top: 24px; }
.mega__photo img { width: 100%; height: 180px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%); mask-image: linear-gradient(180deg, transparent, #000 30%); }
.mega__cols { display: grid; grid-template-columns: repeat(5, 1fr); padding: 30px 28px 22px; gap: 0; }
.mega__col { padding: 0 18px; border-left: 1px solid var(--c-line); }
.mega__col:first-child { border-left: 0; padding-left: 4px; }
.mega__head { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-forest-deep); margin-bottom: 14px; }
.mega__head .i { width: 26px; height: 26px; color: var(--c-champagne); }
.mega__img { border-radius: var(--r-md); overflow: hidden; height: 104px; margin-bottom: 12px; background: var(--c-cream); }
.mega__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mega__col:hover .mega__img img { transform: scale(1.06); }
.mega__col li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; font-size: .88rem; color: var(--c-graphite); transition: color .25s, padding .35s var(--ease); }
.mega__col li a .i { width: 14px; height: 14px; color: var(--c-champagne); opacity: 0; transform: translateX(-4px); transition: opacity .3s, transform .35s var(--ease); }
.mega__col li a:hover { color: var(--c-forest); padding-left: 4px; }
.mega__col li a:hover .i { opacity: 1; transform: none; }
.mega__perks { display: flex; align-items: center; gap: 8px 22px; flex-wrap: wrap; padding: 16px 28px 18px 32px; border-top: 1px solid var(--c-line); background: rgba(247, 244, 238, .5); }
.mega__perk { display: flex; align-items: center; gap: 10px; font-size: .8rem; line-height: 1.3; color: var(--c-graphite); }
.mega__perk .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .5); color: var(--c-gold-deep); }
.mega__perk strong { font-weight: 600; }
.mega__perks .btn { margin-left: auto; }

/* ---------- Mobile nav ---------- */
.mobile-nav { position: fixed; inset: 0; z-index: 90; background: var(--c-ivory); padding-top: var(--header-h); visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; overflow-y: auto; }
.mobile-nav.is-open { visibility: visible; clip-path: inset(0); transition: clip-path .7s var(--ease), visibility 0s; }
.mobile-nav__inner { display: flex; flex-direction: column; gap: 32px; min-height: 100%; padding-block: 28px 40px; }
.mobile-nav__list { display: grid; }
.mobile-nav__list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.7rem); line-height: 1.2; color: var(--c-forest-deep); border-bottom: 1px solid var(--c-line); }
.mobile-nav__list a[aria-current="page"] { color: #9A7640; }
/* Treatment pages: a small gold label, then the pages in the text font with a chevron. */
.mobile-nav__label { padding: 24px 0 4px; font-size: var(--fs-xs); font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--c-gold-ink); }
.mobile-nav__sub a { padding: 12px 2px 12px 16px; font-family: var(--f-text); font-size: 1.02rem; font-weight: 500; color: var(--c-graphite); border-left: 1px solid rgba(176, 138, 78, .45); }
.mobile-nav__sub a .i { width: 16px; height: 16px; color: #9A7640; }
.mobile-nav__sub + li:not(.mobile-nav__sub) { margin-top: 12px; }
.mobile-nav__foot { display: grid; gap: 12px; margin-top: auto; }
.mobile-nav__foot .lang { justify-self: center; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-forest-deep); color: rgba(247, 244, 238, .72); font-size: .92rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.4fr; gap: 40px; padding-block: 80px 56px; }
.footer__brand { display: grid; gap: 22px; align-content: start; justify-items: start; }
.footer__brand p { max-width: 320px; line-height: 1.7; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-line-light); color: var(--c-ivory); transition: background-color .3s, border-color .3s; }
.footer__social a:hover { background: rgba(247, 244, 238, .1); border-color: rgba(247, 244, 238, .4); }
.footer__head { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--c-champagne-light); margin-bottom: 18px; }
.footer__col li { margin-bottom: 10px; }
.footer__col a { transition: color .25s; }
.footer__col a:hover { color: var(--c-ivory); }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contacts .i { margin-top: 3px; color: var(--c-champagne); }
/* Copyright bar: framed by fading gold hairlines with a small diamond at the centre of each. */
.footer__bottom { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px 32px; flex-wrap: wrap; padding-block: 22px; font-size: .8rem; letter-spacing: .02em; color: rgba(247, 244, 238, .55); }
.footer__bottom::before, .footer__bottom::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, rgba(217, 196, 154, 0) 0%, rgba(217, 196, 154, .5) 22%, rgba(217, 196, 154, .5) 78%, rgba(217, 196, 154, 0) 100%); }
.footer__bottom::before { top: 0; }
.footer__bottom::after { bottom: 0; opacity: .55; }
.footer__orn { position: absolute; inset: 0; pointer-events: none; }
.footer__orn::before, .footer__orn::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--c-forest-deep); border: 1px solid rgba(217, 196, 154, .75); }
.footer__orn::before { top: -4px; }
.footer__orn::after { bottom: -4px; opacity: .6; }
.footer__bottom .lang { margin-left: auto; }

/* ---------- Floating buttons: WhatsApp (always shown) with "back to top" below it once the page is scrolled ---------- */
.float-stack {
  position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 80;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.float-stack > * { pointer-events: auto; }
.wa-float {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px; border-radius: 50%;
  background: var(--c-paper); color: var(--c-forest-deep); font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lift);
  transition: translate .4s var(--ease);
}
.wa-float:hover { translate: 0 -2px; }
.wa-float .i { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #25D366; color: #fff; }
.float-top {
  display: grid; place-items: center; width: 50px; height: 50px; margin-right: 3px; border-radius: 50%;
  background: var(--c-forest); color: var(--c-champagne-light); box-shadow: var(--shadow-lift);
  border: 1px solid rgba(217, 196, 154, .35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: background-color .3s, color .3s, translate .4s var(--ease), opacity .4s var(--ease), transform .5s var(--ease), visibility 0s .4s;
}
.float-stack.is-visible .float-top { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.float-top:hover { background: var(--c-champagne-light); color: var(--c-forest-deep); translate: 0 -3px; }
.float-top .i { width: 20px; height: 20px; }

/* ---------- Phones: location, call and book bar fixed to the bottom (they leave the header) ---------- */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    display: grid; grid-template-columns: 1fr 1fr 1.9fr; padding-bottom: env(safe-area-inset-bottom);
    background: var(--c-paper); border-top: 1px solid var(--c-line); box-shadow: 0 -10px 30px -18px rgba(21, 42, 35, .35);
  }
  .mbar__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 60px; padding: 8px 6px; font-size: .78rem; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap; color: var(--c-forest-deep); }
  .mbar__btn + .mbar__btn:not(.mbar__btn--primary) { border-left: 1px solid var(--c-line); }
  .mbar__btn .i { width: 20px; height: 20px; }
  .mbar__btn--primary { background: linear-gradient(135deg, #2A4C3F 0%, var(--c-forest) 45%, var(--c-forest-deep) 100%); color: var(--c-ivory); }
  .mbar__btn--primary .i { color: var(--c-champagne-light); }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  /* WhatsApp sits just above the bar; "back to top" appears above it, so no empty slot pushes WhatsApp into the text. */
  .float-stack { bottom: calc(74px + env(safe-area-inset-bottom)); flex-direction: column-reverse; }
  .header__contact { display: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .mega__cols { grid-template-columns: repeat(3, 1fr); row-gap: 22px; }
  .mega__col:nth-child(4) { border-left: 0; padding-left: 4px; }
  .footer__top { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer__contacts { grid-column: 1 / -1; }
  .footer__contacts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
}
/* Short laptop screens (1280×720, 1366×768): a more compact mega menu so it fits without scrolling */
@media (min-width: 1241px) and (max-height: 820px) {
  .mega__intro { padding-top: 28px; }
  .mega__photo img { height: 140px; }
  .mega__cols { padding: 22px 28px 14px; }
  .mega__head { margin-bottom: 10px; }
  .mega__img { height: 80px; margin-bottom: 8px; }
  .mega__col li a { padding: 5px 0; }
  .mega__perks { padding-block: 12px; }
}
@media (max-width: 1240px) {
  .nav, .site-header .mega { display: none; }
  .burger { display: grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .logo__img { height: 46px; }
  .logo--light .logo__img { height: 60px; }
  .header__actions > .lang, .header__cta { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-block: 64px 40px; }
  .footer__brand, .footer__contacts { grid-column: 1 / -1; }
  .footer__contacts ul { grid-template-columns: 1fr; }
  .footer__bottom .lang { margin-left: 0; }
  .wa-float { padding: 6px; }
  .wa-float span { display: none; }
  .float-stack { align-items: center; }
  .float-top { margin-right: 0; width: 46px; height: 46px; }
  .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
.nowrap { white-space: nowrap; }

/* ---------- Dialogs (doctor profile drawer, clinic tour) ---------- */
dialog.modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; overflow: hidden; }
dialog.modal::backdrop { background: rgba(10, 20, 16, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal__close { position: absolute; top: 18px; right: 18px; z-index: 3; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-paper); color: var(--c-forest-deep); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.modal__close:hover { background: var(--c-forest); color: var(--c-ivory); transform: rotate(90deg); }
.modal__close--light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: var(--c-ivory); }
.modal--drawer .modal__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(540px, 100%); display: flex; flex-direction: column; gap: 18px; padding: 64px clamp(24px, 4vw, 48px) 40px; overflow-y: auto; background: var(--c-ivory); box-shadow: -30px 0 80px -30px rgba(0, 0, 0, .4); }
.modal__head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.modal__head .eyebrow { margin-bottom: 6px; }
.modal__avatar { width: 92px; height: 92px; flex: none; border-radius: 50%; overflow: hidden; background: var(--c-paper); box-shadow: 0 0 0 1px rgba(184, 154, 103, .45), 0 0 0 6px var(--c-ivory), 0 0 0 7px rgba(184, 154, 103, .25); }
.modal__avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.modal__title { font-family: var(--f-display); font-size: 1.9rem; font-weight: 400; line-height: 1.1; color: var(--c-forest-deep); }
.modal__text { color: var(--c-stone); }
.modal__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-forest-deep); }
.modal__list { display: grid; gap: 10px; }
.modal__list li { display: flex; gap: 10px; font-size: .92rem; line-height: 1.5; }
.modal__list .i { width: 18px; height: 18px; margin-top: 2px; color: var(--c-champagne); }
.modal__quote { display: flex; gap: 12px; padding: 16px 0 16px 18px; border-left: 2px solid var(--c-champagne); }
.modal__quote .i { width: 24px; height: 24px; color: var(--c-champagne); }
.modal__quote p { font-family: var(--f-display); font-style: italic; font-size: 1.2rem; line-height: 1.4; color: var(--c-forest-deep); }
.modal--drawer .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Footer wordmark (large outlined brand name) ---------- */
/* Wordmark sits flush with the bottom of the page; its lower half melts into a soft green glow. */
.footer__mark { position: relative; padding-top: clamp(24px, 3.5vw, 52px); padding-bottom: 0; overflow: hidden; pointer-events: none; user-select: none; }
.footer__mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 75%; pointer-events: none; background: radial-gradient(60% 100% at 50% 100%, rgba(62, 112, 92, .42) 0%, rgba(46, 82, 69, .18) 45%, rgba(46, 82, 69, 0) 78%); }
.footer__mark svg { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, .3) 82%, rgba(0, 0, 0, .1) 100%); mask-image: linear-gradient(180deg, #000 0%, #000 42%, rgba(0, 0, 0, .3) 82%, rgba(0, 0, 0, .1) 100%); }
.footer__mark text {
  font-family: var(--f-display); font-size: 134px; font-weight: 400;
  fill: rgba(217, 196, 154, .035); stroke: rgba(217, 196, 154, .42); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.footer__mark text { white-space: pre; }
.footer__pen { fill: #F4DE9C; opacity: 0; filter: drop-shadow(0 0 6px rgba(244, 222, 156, .9)) drop-shadow(0 0 14px rgba(217, 196, 154, .6)); }
@media (max-width: 760px) {
  .footer__bottom { flex-direction: column; justify-content: center; text-align: center; gap: 6px; padding-block: 24px; }
}

/* Copyright bar: copyright left, legal entity right. */
.footer__bottom { display: grid; grid-template-columns: 1fr auto; }
.footer__legal { justify-self: end; }
@media (max-width: 1024px) {
  .footer__bottom { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 8px; padding-block: 24px; }
  .footer__legal { justify-self: auto; }
}

/* ---------- Curved top edge for green sections (same curve + gold hairline as the hero band) ----------
   The section is pulled up over the previous one and masked to the curve, so whatever is behind
   (ivory sections) shows above the curve and the section's own gradient continues below it. */
.curve-top {
  --curve-h: clamp(44px, 5.5vw, 80px);
  --curve-fill: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 22C360 70 1080 70 1440 14V80H0z'/%3E%3C/svg%3E");
  --curve-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 12C360 60 1080 60 1440 4' fill='none' stroke='%23000' stroke-width='1.3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  position: relative;
  margin-top: calc(var(--curve-h) * -1);
  -webkit-mask: var(--curve-fill) top / 100% var(--curve-h) no-repeat, var(--curve-line) top / 100% var(--curve-h) no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - var(--curve-h) + 2px) no-repeat;
  mask: var(--curve-fill) top / 100% var(--curve-h) no-repeat, var(--curve-line) top / 100% var(--curve-h) no-repeat, linear-gradient(#000, #000) bottom / 100% calc(100% - var(--curve-h) + 2px) no-repeat;
}
.curve-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; z-index: 1; height: var(--curve-h); pointer-events: none;
  background: linear-gradient(90deg, #C9A15A, #E2BE74 50%, #C9A15A);
  --curve-line-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 12C360 60 1080 60 1440 4' fill='none' stroke='%23000' stroke-width='1.9' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  -webkit-mask: var(--curve-line-gold) 0 0 / 100% 100% no-repeat; mask: var(--curve-line-gold) 0 0 / 100% 100% no-repeat;
}
.site-footer.curve-top { padding-top: var(--curve-h); }

/* ---------- Polish: a small tooth outline (SVG file, used as a mask) before section eyebrows ---------- */
.eyebrow:not(.eyebrow--line)::before {
  content: ""; width: 15px; height: 13px; flex: none; background: currentColor; opacity: .85;
  -webkit-mask: url(../img/tooth/tooth-outline-gold.svg) center / contain no-repeat; mask: url(../img/tooth/tooth-outline-gold.svg) center / contain no-repeat;
}
.btn--outline { background: rgba(255, 255, 255, .5); }

/* ======================================================================
   Appointment form (.bform) + header popup (#modal-book) + page section (.bsection)
   ====================================================================== */
.bform { position: relative; --bf-line: rgba(28, 31, 30, .14); --bf-err: #B4472E; }
.bform__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.bform__field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bform__field--wide { grid-column: 1 / -1; }
.bform__field > label, .bform legend { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-forest-deep); }
.bform legend { padding: 0; margin-bottom: 7px; }
.bform label span[aria-hidden] { color: var(--c-gold-deep); }
.bform input:not([type="checkbox"]):not([type="radio"]), .bform select, .bform textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid var(--bf-line); border-radius: 14px;
  background: var(--c-paper); color: var(--c-graphite); font: inherit; font-size: .95rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s, background-color .25s; -webkit-appearance: none; appearance: none;
}
.bform textarea { resize: vertical; min-height: 80px; }
.bform input::placeholder, .bform textarea::placeholder { color: #8E948F; }
.bform input:hover, .bform select:hover, .bform textarea:hover { border-color: rgba(28, 31, 30, .26); }
.bform input:focus, .bform select:focus, .bform textarea:focus { outline: none; border-color: var(--c-champagne); box-shadow: 0 0 0 4px rgba(184, 154, 103, .18); }
.bform__select { position: relative; }
.bform__select select { padding-right: 44px; cursor: pointer; }
.bform__select .i { position: absolute; right: 16px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--c-gold-deep); pointer-events: none; }
.bform__pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bform__pill { position: relative; cursor: pointer; }
.bform__pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bform__pill span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--r-pill); border: 1px solid var(--bf-line); background: var(--c-paper); font-size: .9rem; font-weight: 500; color: var(--c-graphite); transition: background-color .25s, border-color .25s, color .25s; }
.bform__pill .i { width: 16px; height: 16px; color: var(--c-gold-deep); transition: color .25s; }
.bform__pill input:checked + span { background: var(--c-forest); border-color: var(--c-forest); color: var(--c-ivory); }
.bform__pill input:checked + span .i { color: var(--c-champagne-light); }
.bform__pill input:focus-visible + span { outline: 2px solid var(--c-champagne); outline-offset: 2px; }
.bform__consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; font-size: .84rem; line-height: 1.5; color: var(--c-stone); cursor: pointer; }
.bform__consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--c-forest); cursor: pointer; }
.bform__consent a { color: var(--c-forest); text-decoration: underline; text-underline-offset: 3px; }
.bform__err { margin: 0; font-size: .8rem; color: var(--bf-err); }
.bform__err:empty { display: none; }
.bform .is-invalid input, .bform .is-invalid select, .bform .is-invalid textarea { border-color: var(--bf-err); background: #FFF8F6; }
.bform__consent.is-invalid { color: var(--bf-err); }
.bform__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 20px; }
.bform__submit .i { width: 1.2em; height: 1.2em; }
.bform__note { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--c-stone); }
.bform__note .i { width: 16px; height: 16px; color: var(--c-champagne); flex: none; }
.bform__hours { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--c-line); font-size: .8rem; color: var(--c-stone); }
.bform__hours .i { width: 16px; height: 16px; color: var(--c-champagne); }
/* Success state replaces the fields. */
.bform.is-done > :not([data-bform-done]):not(.bform__hours) { display: none; }
.bform__done { display: grid; justify-items: center; gap: 12px; padding: 24px 8px 6px; text-align: center; outline: none; }
.bform__done[hidden] { display: none; }
.bform__done-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--c-forest); color: var(--c-champagne-light); box-shadow: 0 0 0 8px rgba(31, 59, 50, .08); }
.bform__done-icon .i { width: 30px; height: 30px; }
.bform__done-title { font-family: var(--f-display); font-size: 1.9rem; line-height: 1.15; color: var(--c-forest-deep); }
.bform__done-title em { font-style: italic; color: #9A7640; }
.bform__done-text { max-width: 420px; font-size: .92rem; color: var(--c-stone); }
.bform__done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.bform__reset { margin-top: 6px; }
.bform--compact .bform__grid { gap: 12px 14px; }
.bform--compact input:not([type="checkbox"]):not([type="radio"]), .bform--compact select { min-height: 48px; padding-block: 12px; }
.bform--compact .bform__submit { width: 100%; }
.bform--compact .bform__actions { margin-top: 16px; }

/* Header popup */
dialog.modal--book[open] { display: grid; place-items: center; padding: clamp(12px, 3vw, 32px); }
.bmodal { position: relative; display: grid; grid-template-columns: minmax(260px, 340px) 1fr; width: min(1000px, 100%); max-height: calc(100dvh - 2 * clamp(12px, 3vw, 32px)); overflow-y: auto; overscroll-behavior: contain; border-radius: 28px; background: var(--c-ivory); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55); }
.bmodal .modal__close { top: 16px; right: 16px; }
.bmodal__aside { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 36px 30px 30px; background: radial-gradient(120% 90% at 0% 0%, var(--c-forest-2) 0%, var(--c-forest) 45%, var(--c-forest-deep) 100%); color: rgba(247, 244, 238, .78); }
.bmodal__logo { width: 150px; height: auto; margin-bottom: 10px; }
.bmodal__title { font-family: var(--f-display); font-size: clamp(1.7rem, 1.3rem + 1vw, 2.1rem); line-height: 1.15; color: var(--c-ivory); }
.bmodal__title em { font-style: italic; color: var(--c-champagne-light); }
.bmodal__text { font-size: .9rem; line-height: 1.6; }
.bmodal__perks { display: grid; gap: 10px; margin: 6px 0 4px; }
.bmodal__perks li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; line-height: 1.45; }
.bmodal__perks strong { color: var(--c-ivory); font-weight: 600; }
.bmodal__perks .i { width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 50%; border: 1px solid rgba(217, 196, 154, .5); color: var(--c-champagne-light); flex: none; }
.bmodal__phone { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(217, 196, 154, .22); font-weight: 600; color: var(--c-ivory); }
.bmodal__phone small { display: block; font-size: .72rem; font-weight: 500; color: rgba(247, 244, 238, .6); }
.bmodal__phone .i { width: 42px; height: 42px; padding: 11px; border-radius: 50%; border: 1px solid rgba(217, 196, 154, .45); color: var(--c-champagne-light); flex: none; }
.bmodal__tooth { position: absolute; right: -70px; bottom: -60px; z-index: -1; width: 230px; height: auto; opacity: .16; pointer-events: none; }
.bmodal__form { padding: 36px clamp(22px, 3vw, 38px) 26px; }

/* Page section */
.bsection { background: var(--c-cream); }
.bsection__inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(36px, 5vw, 80px); align-items: start; }
.bsection__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.bsection__text { margin: 18px 0 28px; color: var(--c-stone); max-width: 440px; }
.bsection__steps { display: grid; gap: 18px; }
.bsection__steps li { display: flex; gap: 16px; align-items: flex-start; }
.bsection__steps span { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid rgba(184, 154, 103, .55); font-family: var(--f-display); color: var(--c-gold-deep); background: var(--c-paper); }
.bsection__steps p { display: grid; gap: 2px; font-size: .88rem; color: var(--c-stone); }
.bsection__steps b { font-size: .98rem; color: var(--c-forest-deep); font-weight: 600; }
.bsection__card { padding: clamp(24px, 3vw, 40px); border-radius: 28px; background: var(--c-ivory); border: 1px solid rgba(184, 154, 103, .25); box-shadow: 0 30px 70px -40px rgba(21, 42, 35, .4); }

@media (max-width: 1024px) {
  .bsection__inner { grid-template-columns: 1fr; }
  .bsection__intro { position: static; }
}
@media (max-width: 760px) {
  .bform__grid { grid-template-columns: 1fr; }
  .bform__actions .btn { width: 100%; }
  dialog.modal--book[open] { padding: 0; place-items: stretch; }
  .bmodal { grid-template-columns: 1fr; grid-auto-rows: max-content; width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .bmodal__aside { padding: 26px 22px 22px; gap: 10px; }
  .bmodal__logo { width: 120px; margin-bottom: 4px; }
  .bmodal__perks, .bmodal__phone, .bmodal__text { display: none; }
  .bmodal .modal__close { top: 14px; right: 14px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--c-ivory); }
  .bmodal__form { padding: 24px 20px 28px; }
}
/* Phones held sideways: little height, so the popup fills the screen and the green panel shrinks to a title strip */
@media (max-height: 520px) and (orientation: landscape) {
  dialog.modal--book[open] { padding: 0; place-items: stretch; }
  .bmodal { grid-template-columns: 1fr; grid-auto-rows: max-content; width: 100%; max-height: 100dvh; min-height: 100dvh; border-radius: 0; }
  .bmodal__aside { padding: 16px 76px 16px 24px; }
  .bmodal__logo, .bmodal__perks, .bmodal__phone, .bmodal__text, .bmodal__tooth { display: none; }
  .bmodal__title { font-size: 1.4rem; }
  .bmodal .modal__close { top: 8px; right: 14px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: var(--c-ivory); }
  .bmodal__form { padding: 20px 24px 24px; }
}
