/* Ashirwad Dental Clinic: "Smiles for every generation"
   White ground, pale indigo sheets, deep indigo ink, saffron as a mark. Instrument Sans + Tiro Devanagari Hindi. */

:root {
  --ink: #1B1F4B;
  --ink-2: #3A3F78;
  --ink-3: #4F5488;
  --panel: #EEF0FB;
  --panel-2: #E3E6F7;
  --rule: #CBD0EC;
  --rule-strong: #A9B0DC;
  --white: #FFFFFF;
  --saffron: #F2A33A;
  --saffron-soft: #FDEBD0;
  --saffron-ink: #8A4E00;
  --wa: #136F3E;
  --wa-hover: #0E5A32;
  --danger: #B3261E;
  --ok: #1E6B3A;

  --f-sans: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --f-hi: "Tiro Devanagari Hindi", "Noto Serif Devanagari", serif;

  --r-sheet: 20px;
  --r-card: 16px;
  --r-pill: 999px;
  --shadow-1: 0 2px 4px -1px rgba(27, 31, 75, .10), 0 10px 24px -12px rgba(27, 31, 75, .28);
  --shadow-2: 0 4px 8px -2px rgba(27, 31, 75, .10), 0 24px 48px -20px rgba(27, 31, 75, .38);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: 16px;
  --header-h: 68px;
}

@media (min-width: 768px) { :root { --gutter: 32px; --header-h: 76px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 992px) { body { font-size: 1.1875rem; } }

::selection { background: var(--saffron-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }
input, select, textarea { caret-color: var(--ink); }
html { scrollbar-color: var(--rule-strong) var(--panel); }

h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 650; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); line-height: 1.08; font-variation-settings: "wdth" 82; font-weight: 640; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 .75em; }
a { color: var(--ink); text-decoration-color: var(--rule-strong); text-underline-offset: .2em; text-decoration-thickness: 2px; }
a:hover { text-decoration-color: var(--saffron); }
img { max-width: 100%; height: auto; display: block; }
[lang="hi"] { font-family: var(--f-hi); font-weight: 400; letter-spacing: 0; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }

/* ---------- buttons: one rule for every control: pressing inverts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.3em;
  font: inherit; font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; text-align: center;
  border-radius: var(--r-pill); border: 2px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 56px; font-size: 1.125rem; padding: .8em 1.5em; }
.btn--xl { min-height: 72px; font-size: 1.3rem; padding: .9em 1.6em; }
.btn--block { width: 100%; }
.btn--primary { background: var(--saffron); color: var(--ink); border-color: var(--saffron); box-shadow: 0 2px 0 rgba(27, 31, 75, .12), 0 10px 20px -12px rgba(27, 31, 75, .45); }
.elders .btn--primary { box-shadow: none; }
.btn--primary:hover { background: #F5B256; color: var(--ink); }
.btn--primary:active { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--call { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--call:hover { background: #2A2F6A; color: #fff; }
.btn--call:active { background: #fff; color: var(--ink); }
.btn--wa { background: var(--white); color: var(--wa); border-color: currentColor; }
.btn--wa:hover { background: #EAF6EF; color: var(--wa-hover); }
.btn--wa:active { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn--ghost { background: var(--white); color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost:active { background: var(--ink); color: #fff; border-color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 2px; text-underline-offset: .2em; cursor: pointer; }
.linkish:hover { text-decoration-color: var(--saffron); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand img { height: 36px; width: auto; }
@media (min-width: 768px) { .brand img { height: 46px; } }
.open-pill {
  display: none; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 550; color: var(--ink-2);
  padding: 6px 12px; border-radius: var(--r-pill); background: var(--panel); white-space: nowrap;
}
.open-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rule-strong); }
.is-open .open-pill__dot { background: #1F9D55; box-shadow: 0 0 0 3px rgba(31, 157, 85, .18); }
.is-closed .open-pill__dot { background: #B9661A; }
@media (min-width: 1500px) { .open-pill { display: inline-flex; } }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav a { display: block; white-space: nowrap; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 550; font-size: 1rem; color: var(--ink); }
.main-nav a:hover { background: var(--panel); }
.main-nav a:active { background: var(--ink); color: #fff; }
.header-call { min-height: 44px; padding: .5em 1.05em; font-size: 1rem; white-space: nowrap; }
.header-wa { min-height: 44px; padding: .5em 1em; font-size: 1rem; }
@media (max-width: 991.98px) { .header-wa { display: none; } }
@media (max-width: 1139.98px) { .header-call__num { display: none; } .main-nav a { padding: 10px 9px; } }
.menu-btn { display: none; }

@media (max-width: 991.98px) {
  .header-row { gap: 10px; }
  .header-call { margin-left: auto; }
  .header-call__num { display: none; }
  .menu-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border: 2px solid var(--rule-strong); background: #fff; border-radius: 14px; cursor: pointer;
  }
  .menu-btn:active { background: var(--ink); border-color: var(--ink); }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease; }
  .menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
  .menu-btn__bars::before { top: -6px; }
  .menu-btn__bars::after { top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    background: #fff; border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-2);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 8px; font-size: 1.125rem; border-bottom: 1px solid var(--panel-2); border-radius: 0; }
}

/* ---------- hero: generation switcher ---------- */
.hero { padding: 20px 0 28px; }
@media (min-width: 992px) { .hero { padding: 28px 0 56px; } }
.hero__intro { font-size: 1.0625rem; color: var(--ink-2); margin-bottom: 14px; max-width: 70ch; line-height: 1.45; }
.hero__intro strong { color: var(--ink); font-weight: 650; }
.hero__ask { color: var(--ink); font-weight: 650; white-space: nowrap; }

.gen-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; z-index: 2; }
@media (min-width: 768px) { .gen-tabs { gap: 12px; } }
.gen-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 76px; padding: 10px 6px 12px;
  font: inherit; color: var(--ink); text-align: center; cursor: pointer;
  background: var(--white); border: 2px solid var(--rule); border-bottom: 0;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.gen-tab::before { content: ""; position: absolute; left: 14px; right: 14px; top: -2px; height: 5px; border-radius: 0 0 5px 5px; background: transparent; transition: background-color .2s ease; }
.gen-tab:hover { background: #F7F8FE; border-color: var(--rule-strong); }
.gen-tab:active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gen-tab[aria-selected="true"] { background: var(--panel); border-color: var(--panel); }
.gen-tab[aria-selected="true"]::before { background: var(--saffron); }
.gen-tab[aria-selected="true"]::after { content: ""; position: absolute; left: -2px; right: -2px; bottom: -10px; height: 12px; background: var(--panel); }
.gen-tab:focus-visible { outline-offset: -5px; }
.gen-tab__ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.gen-tab__txt { display: flex; flex-direction: column; line-height: 1.15; }
.gen-tab__word { font-weight: 650; font-size: 1.0625rem; font-variation-settings: "wdth" 86; }
.gen-tab__age { font-size: .8125rem; color: var(--ink-3); display: none; }
@media (min-width: 560px) { .gen-tab__age { display: block; } }
@media (min-width: 768px) {
  .gen-tab { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 92px; padding: 14px 22px; text-align: left; }
  .gen-tab__ico { width: 40px; height: 40px; }
  .gen-tab__word { font-size: 1.5rem; }
  .gen-tab__age { font-size: .9375rem; }
}

.gen-sheet {
  position: relative; display: grid; gap: 20px;
  background: var(--panel); border-radius: 0 0 var(--r-sheet) var(--r-sheet);
  padding: 22px 16px 22px;
}
.gen-sheet:focus-visible { outline-offset: 4px; }
@media (min-width: 768px) {
  .gen-sheet { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding: 32px 32px 32px 40px; border-radius: 0 var(--r-sheet) var(--r-sheet) var(--r-sheet); }
  .gen-sheet.is-last { border-radius: var(--r-sheet) 0 var(--r-sheet) var(--r-sheet); }
  .gen-sheet.is-mid { border-radius: var(--r-sheet); }
}
.gen-sheet__copy { min-width: 0; }
.gen-h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem); line-height: 1.03; letter-spacing: -0.02em;
  font-weight: 650; font-variation-settings: "wdth" 78; max-width: 17ch;
}
.gen-hi { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); color: var(--ink-2); margin: 10px 0 8px; line-height: 1.4; }
.gen-lede { color: var(--ink-2); font-size: 1rem; margin-bottom: 12px; }
.needs { display: grid; gap: 8px; margin-bottom: 16px; max-width: 34rem; }
.need {
  display: flex; align-items: center; gap: 12px; min-height: 56px; width: 100%;
  padding: 10px 16px; text-align: left; font: inherit; font-weight: 550; font-size: 1.0625rem; line-height: 1.3; color: var(--ink);
  background: var(--white); border: 2px solid var(--white); border-radius: 14px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(27, 31, 75, .08);
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.need::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--rule-strong); background: #fff; transition: all .18s ease;
}
.need:hover { border-color: var(--rule-strong); }
.need:active { background: var(--ink); color: #fff; border-color: var(--ink); }
.need[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.need[aria-pressed="true"]::before { border-color: #fff; background: radial-gradient(circle, var(--saffron) 0 5px, var(--white) 5.5px); }
@media (min-width: 768px) { .need { min-height: 60px; font-size: 1.125rem; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.cta-row .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .cta-row .btn { flex: 0 0 auto; } }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fact { font-size: .9375rem; font-weight: 550; padding: 6px 12px; border-radius: var(--r-pill); background: var(--white); color: var(--ink-2); }
.fact a { color: inherit; text-decoration: none; }
.fact a:hover { text-decoration: underline; text-decoration-color: var(--saffron); }
.fact--live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; background: var(--rule-strong); }
.is-open .fact--live::before, .fact--live.is-open::before { background: #1F9D55; }
.fact--live.is-closed::before { background: #B9661A; }

.gen-photo { margin: 0; position: relative; }
.gen-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sheet);
  box-shadow: var(--shadow-2); background: var(--panel-2);
}
@media (min-width: 768px) {
  .gen-photo { align-self: stretch; margin-bottom: -72px; z-index: 2; }
  .gen-photo img { height: 100%; max-height: 600px; }
  .gen-sheet + .stock-note { padding-top: 0; }
}
@media (max-width: 767.98px) {
  .gen-sheet { padding-top: 18px; }
  .gen-photo { position: absolute; top: 14px; right: 14px; width: 92px; }
  .gen-photo img { aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 4px var(--white), var(--shadow-1); }
  .gen-h1 { padding-right: 104px; font-size: 2.05rem; max-width: none; }
  .gen-lede { display: none; }
  .gen-hi { margin-bottom: 14px; }
}
.stock-note { font-size: .875rem; color: var(--ink-3); margin: 10px 0 0; }

/* the one authored motion moment: the sheet re-keys to the chosen person */
.gen-sheet.is-swapping .gen-sheet__copy > *, .gen-sheet.is-swapping .gen-photo img { animation: gen-in .42s var(--ease-out) both; }
.gen-sheet.is-swapping .gen-hi { animation-delay: .03s; }
.gen-sheet.is-swapping .needs { animation-delay: .06s; }
.gen-sheet.is-swapping .gen-photo img { animation-name: gen-photo-in; animation-duration: .5s; }
@keyframes gen-in { from { opacity: .001; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes gen-photo-in { from { opacity: .4; filter: blur(6px); transform: scale(1.02); } to { opacity: 1; filter: none; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .gen-sheet.is-swapping .gen-sheet__copy > *, .gen-sheet.is-swapping .gen-photo img { animation: none; }
  .btn, .need, .gen-tab { transition: none; }
}

/* ---------- sections ---------- */
.section { padding: 64px 0; }
@media (min-width: 992px) { .section { padding: 96px 0; } }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head p { color: var(--ink-2); margin-top: 12px; margin-bottom: 0; }
.section-head--split { max-width: none; display: grid; gap: 16px; align-items: end; }
.section-head--split > div { max-width: 46rem; }
@media (min-width: 992px) { .section-head--split { grid-template-columns: 1fr auto; } }
.fine { font-size: .9375rem; color: var(--ink-3); }
.src { color: var(--ink-3); }

/* care-by-age: a ruled strip of cells, like a large-print calendar row */
.care { background: var(--panel); }
.care-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 2px solid var(--ink); }
.care-cell { padding: 20px 4px 22px; border-bottom: 1px solid var(--rule-strong); position: relative; transition: background-color .25s ease; }
.care-cell h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 8px; }
.care-cell__age { font-size: 1.75rem; font-variation-settings: "wdth" 80; font-weight: 650; line-height: 1; }
.care-cell__range { font-size: 1rem; font-weight: 550; color: var(--ink-3); }
.care-cell p { font-size: 1.0625rem; margin-bottom: .5em; }
.care-cell__watch { color: var(--ink-2); }
.care-cell.is-match { background: var(--white); }
.care-cell.is-match .care-cell__age { box-shadow: inset 0 -.32em 0 var(--saffron-soft); }
.care-cell.is-match::before { content: ""; position: absolute; top: -2px; left: 0; right: 0; height: 5px; background: var(--saffron); }
@media (min-width: 640px) { .care-strip { grid-template-columns: repeat(2, 1fr); } .care-cell { padding: 22px 20px; border-right: 1px solid var(--rule-strong); } }
@media (min-width: 1100px) {
  .care-strip { grid-template-columns: repeat(5, 1fr); }
  .care-cell { padding: 24px 20px 28px; border-bottom: 0; }
  .care-cell:last-child { border-right: 0; }
}

/* treatments: ruled rows tagged by generation */
.treat-filter { margin: 0; font-size: 1rem; color: var(--ink-2); }
.treat-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.treat-row {
  display: grid; grid-template-columns: 1fr; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--rule);
  transition: opacity .25s ease, background-color .25s ease;
}
.treat-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-card); background: var(--panel); }
.treat-row h3 { font-size: 1.5rem; font-variation-settings: "wdth" 84; margin-bottom: 6px; }
.treat-row p { max-width: 62ch; margin-bottom: 10px; }
.treat-row .btn { justify-self: start; }
.for-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.for-tags li { font-size: .875rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--panel); color: var(--ink-2); }

.treat-row.is-match .for-tags li.is-match { background: var(--ink); color: #fff; }
@media (min-width: 768px) {
  .treat-row { grid-template-columns: 240px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 20px 12px 20px 0; }
  .treat-row img { aspect-ratio: 3 / 2; }
  .treat-row .btn { justify-self: end; }
}
.more-elders { margin-top: 24px; font-size: 1.125rem; }

/* elders: large type, extra-large tap targets */
.elders { background: var(--ink); color: #fff; --elders-scale: 1; }
.elders h2 { color: #fff; font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.4rem); max-width: 18ch; }
.elders__hi { font-size: 1.5rem; color: #D5D8F2; margin-top: 12px; }
.elders__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.size-toggle {
  display: inline-flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 22px;
  font: inherit; font-weight: 600; font-size: 1.125rem; color: #fff; background: transparent;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: var(--r-pill); cursor: pointer;
}
.size-toggle:hover { border-color: #fff; }
.size-toggle:active, .size-toggle[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.size-toggle__ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.elders__grid { display: grid; gap: 32px; }
@media (min-width: 992px) { .elders__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.eq { border-top: 1px solid rgba(255, 255, 255, .28); font-size: calc(1.375rem * var(--elders-scale)); }
.eq:last-child { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.eq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 80px; padding: 16px 4px; font-weight: 600; font-size: calc(1.5rem * var(--elders-scale)); line-height: 1.3; color: #fff;
}
.eq summary::-webkit-details-marker { display: none; }
.eq summary::after {
  content: ""; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .55);
  background: linear-gradient(#fff, #fff) center / 16px 2.5px no-repeat, linear-gradient(#fff, #fff) center / 2.5px 16px no-repeat;
  transition: transform .2s ease, background-color .2s ease;
}
.eq[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 16px 2.5px no-repeat, var(--saffron); border-color: var(--saffron); }
.eq summary:hover::after { border-color: #fff; }
.eq summary:active { color: var(--saffron); }
.eq summary:focus-visible { outline-color: var(--saffron); }
.eq__a { padding: 0 4px 24px; color: #E6E8F7; line-height: 1.6; max-width: 62ch; }
.eq__a ul { padding-left: 1.2em; margin: 0 0 .75em; }
.eq__a li { margin-bottom: .5em; }
.eq__a strong { color: #fff; }
.elders.is-large { --elders-scale: 1.2; }
.elders__side { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; align-content: start; }
@media (min-width: 992px) { .elders__side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.elders__photo { margin: 0; }
.elders__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sheet); }
.elders__photo:first-child img { aspect-ratio: 4 / 3; }
.elders__photo--small img { aspect-ratio: 2 / 3; }
.elders__actions { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 8px; }
.elders .btn--call { background: #fff; color: var(--ink); border-color: #fff; }
.elders .btn--call:hover { background: var(--panel); }
.elders .btn--call:active { background: transparent; color: #fff; }

/* dentist + family */
.who__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 992px) { .who__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.who__photo { margin: 0; }
.who__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-sheet); box-shadow: var(--shadow-1); }
@media (max-width: 991.98px) { .who__photo img { aspect-ratio: 16 / 11; object-position: 50% 30%; } }
.who__lede { font-size: 1.25rem; color: var(--ink-2); margin: 14px 0 28px; max-width: 46ch; }
.doc { display: flex; gap: 18px; align-items: center; padding: 20px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.doc__mono {
  flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%;
  background: var(--panel); color: var(--ink); font-weight: 650; font-size: 1.5rem; font-variation-settings: "wdth" 80;
  box-shadow: inset 0 0 0 3px var(--saffron);
}
.doc__name { font-size: 1.6rem; font-variation-settings: "wdth" 84; }
.doc__meta { margin: 4px 0 0; color: var(--ink-2); font-size: 1rem; }
.ratings { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: var(--r-card); overflow: hidden; margin-bottom: 12px; }
.rating { padding: 16px 14px; border-right: 1px solid var(--rule); }
.rating:last-child { border-right: 0; }
.rating:first-child { background: var(--panel); }
.rating__score { font-size: 2.25rem; font-weight: 650; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 80; }
.rating__src { font-size: .9375rem; color: var(--ink-2); margin: 0; line-height: 1.35; }

/* visit */
.visit { background: var(--panel); }
.visit__grid { display: grid; gap: 32px; }
@media (min-width: 992px) { .visit__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.addr { font-style: normal; font-size: 1.1875rem; line-height: 1.5; margin-bottom: 16px; }
.landmarks { list-style: none; padding: 0; margin: 0 0 20px; border-top: 2px solid var(--ink); }
.landmarks li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--rule-strong); }
.landmarks__k { color: var(--ink-3); font-weight: 600; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hours-h { font-size: 1.375rem; margin-bottom: 10px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 10px 12px; border-bottom: 1px solid var(--rule-strong); font-weight: 500; text-align: left; }
.hours th { font-weight: 600; width: 42%; }
.hours tr.is-closed td { color: var(--ink-3); }
.hours tr.is-today { background: var(--white); }
.hours tr.is-today th { position: relative; }
.hours tr.is-today th span.today-ring { display: inline-block; padding: 1px 10px; margin-left: -10px; border: 2.5px solid var(--saffron); border-radius: var(--r-pill); }
.hours tr.is-today td::after { content: " (today)"; color: var(--ink-3); }
.map-frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-sheet); overflow: hidden; background: linear-gradient(100deg, var(--panel-2) 20%, #F6F7FD 40%, var(--panel-2) 60%) 0 0 / 300% 100%; box-shadow: var(--shadow-1); animation: skeleton 1.6s linear infinite; }
.map-frame.is-loaded { animation: none; background: var(--panel-2); }
@keyframes skeleton { to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .map-frame { animation: none; } }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { margin-top: 12px; padding: 14px 16px; background: var(--white); border-radius: var(--r-card); font-size: 1rem; }
.map-fallback p { margin-bottom: 4px; }

/* booking */
.book { background: var(--white); }
.book__grid { display: grid; gap: 32px; }
@media (min-width: 992px) { .book__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; } }
.book__intro p { color: var(--ink-2); max-width: 44ch; margin-top: 14px; }
.book__call { margin: 8px 0 14px; }
.book__note { font-size: 1rem; }
.book-form { background: var(--panel); border-radius: var(--r-sheet); padding: 22px 16px; box-shadow: var(--shadow-1); }
@media (min-width: 768px) { .book-form { padding: 36px 40px; } }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: 1.0625rem; float: none; width: auto; padding: 0; }
.opt { font-weight: 500; color: var(--ink-3); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; min-height: 56px; padding: 12px 14px; font: inherit; font-size: 1.125rem; color: var(--ink);
  background: var(--white); border: 2px solid var(--rule-strong); border-radius: 12px;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field input:hover, .field select:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--saffron); outline-offset: 1px; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); background: #FFF6F5; }
.phone-input { display: flex; align-items: stretch; }
.phone-input span { display: grid; place-items: center; padding: 0 12px; background: var(--panel-2); border: 2px solid var(--rule-strong); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.phone-input input { border-radius: 0 12px 12px 0 !important; font-variant-numeric: tabular-nums; }
.field__hint { font-size: .9375rem; color: var(--ink-3); margin: 6px 0 0; }
.field__err { font-size: .9375rem; color: var(--danger); font-weight: 600; margin: 6px 0 0; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.who-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.who-pills label { margin: 0; font-weight: 600; }
.who-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.who-pills span { display: grid; place-items: center; min-height: 52px; padding: 6px 8px; border: 2px solid var(--rule-strong); border-radius: 12px; background: var(--white); cursor: pointer; text-align: center; font-size: 1rem; line-height: 1.2; }
.who-pills span:hover { border-color: var(--ink-3); }
.who-pills input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.who-pills input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 2px; }
.who-pills label:active span { background: var(--ink); color: #fff; }
.btn .spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin-top: 14px; font-weight: 600; border-radius: 12px; }
.form-status:empty { display: none; }
.form-status.is-ok { padding: 14px 16px; background: #E9F5EE; color: var(--ok); }
.form-status.is-err { padding: 14px 16px; background: #FDECEA; color: var(--danger); }

/* faq */
.faq { background: var(--panel); }
.faq__wrap { max-width: 880px; }
.faq h2 { margin-bottom: 28px; }
.faq .accordion { --bs-accordion-bg: transparent; --bs-accordion-border-color: var(--rule-strong); --bs-accordion-border-radius: 0; --bs-accordion-inner-border-radius: 0; --bs-accordion-btn-focus-box-shadow: 0 0 0 3px var(--saffron); --bs-accordion-active-bg: transparent; --bs-accordion-active-color: var(--ink); --bs-accordion-btn-color: var(--ink); --bs-accordion-color: var(--ink-2); border-top: 2px solid var(--ink); }
.faq .accordion-item { border-left: 0; border-right: 0; }
.faq .accordion-button { font: inherit; font-weight: 600; font-size: 1.1875rem; padding: 20px 4px; min-height: 64px; box-shadow: none; }
.faq .accordion-button:not(.collapsed) { box-shadow: none; }
.faq .accordion-button:active { color: var(--saffron-ink); }
.faq .accordion-body { padding: 0 4px 22px; font-size: 1.0625rem; max-width: 66ch; }

/* footer */
.site-footer { background: var(--ink); color: #D5D8F2; padding: 56px 0 120px; }
@media (min-width: 992px) { .site-footer { padding-bottom: 40px; } }
.site-footer a { color: #fff; }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1.3fr 1fr; } }
.footer__grid img { height: 44px; width: auto; }
.footer__hi { margin-top: 10px; font-size: 1.25rem; color: #D5D8F2; }
.footer__h { color: #fff; font-size: 1.125rem; margin-bottom: 8px; font-variation-settings: "wdth" 100; }
.footer__grid p { font-size: 1rem; margin-bottom: 6px; }
.footer__fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .18); }
.footer__fine p { font-size: .875rem; color: #BFC3E6; max-width: 80ch; margin: 0; }

/* phone dock */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 8px; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--rule); box-shadow: 0 -8px 24px -12px rgba(27, 31, 75, .3); }
.dock__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 14px; font-weight: 650; font-size: 1.0625rem; text-decoration: none; color: var(--ink); background: var(--panel); }
.dock__btn:active { background: var(--ink); color: #fff; }
.dock__btn--primary { background: var(--saffron); }
@media (min-width: 992px) { .dock { display: none; } }

/* secondary pages */
.page { padding: 56px 0 96px; }
.page .wrap { max-width: 820px; }
.page h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem); line-height: 1.05; font-variation-settings: "wdth" 80; margin-bottom: 20px; }
.page h2 { font-size: 1.5rem; margin: 32px 0 10px; font-variation-settings: "wdth" 90; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
