/* «Аманат» — public website, mobile first. Off-white page, deep green, pale-green tiles, large rounded photos;
   Cormorant for headlines, the system's sans for reading. One set of components for every page.
   Breakpoints: 640 (large phones, tablets), 900 (two columns), 1100 (the header's links), 1240 (full desktop). */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/cormorant-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
/* Cormorant's figures are old-style, its «1» reads as «I» («IO.O9.2O26»), and this subset has no lining ones:
   headlines take the digits from the system's serif. Without it they fall back to Cormorant's own. */
@font-face {
  font-family: "Amanat figures";
  src: local("Times New Roman"), local("TimesNewRomanPSMT"), local("Noto Serif"), local("NotoSerif-Regular"), local("NotoSerif"), local("Droid Serif"), local("Liberation Serif");
  font-weight: 600;
  unicode-range: U+30-39;
  size-adjust: 92%;
}
/* Georgia sized to Cormorant's width and line (measured): the text does not jump when the font arrives */
@font-face {
  font-family: "Cormorant fallback";
  src: local("Georgia");
  size-adjust: 75.3%;
  ascent-override: 122%;
  descent-override: 38.5%;
  line-gap-override: 0%;
}

:root {
  --bg: #FBFAF5;
  --surface: #FFFFFF;
  --tile: #E6F1E3;      /* pale-green tiles */
  --tile-2: #D6E8D2;    /* the same, hovered */
  --sand: #F4EFE5;      /* the brand's cream: quiet cards */
  --line: #E2E5DA;
  --line-2: #BFCCBF;    /* outlined buttons, fields */
  --ink: #0F2A1E;
  --ink-2: #33493D;
  --muted: #55685D;     /* AA on the page, the tiles and the cream */
  --green: #174A35;
  --green-2: #1F5E44;
  --on-green: #FBFAF5;
  --band: #123B2A;      /* the app's band and the footer */
  --on-band: #F2F4EB;
  --on-band-2: #BCCDC0;
  --band-line: rgba(242, 244, 235, .18);
  --open: #2A9460;
  --closed: #B98A45;
  --star: #A97F3A;
  --danger: #A8432F;
  --danger-soft: #FBEAE5;
  --focus: #B98A45;
  --shadow: 0 14px 40px -18px rgba(15, 42, 30, .28);
  --r-s: 12px;          /* buttons, fields, time slots */
  --r-m: 20px;          /* tiles, cards */
  --r-l: 24px;          /* photo blocks; bigger on desktop */
  --pad: 20px;          /* the page's side margin */
  --gap: 12px;
  --sec: 56px;          /* a section's top and bottom */
  --serif: "Amanat figures", "Cormorant Garamond", "Cormorant fallback", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  interpolate-size: allow-keywords; /* <details> can slide open to their own height */
}
@media (min-width: 640px) { :root { --pad: 32px; --gap: 16px; } }
@media (min-width: 900px) { :root { --pad: 40px; --sec: 56px; --r-l: 28px; } }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101A15;
    --surface: #16231C;
    --tile: #1B2E24;
    --tile-2: #23392D;
    --sand: #18261F;
    --line: #29392F;
    --line-2: #466154;
    --ink: #EEF1E7;
    --ink-2: #C9D3C9;
    --muted: #9FACA3;
    --green: #8FD0AC;
    --green-2: #A5DCBE;
    --on-green: #0D1712;
    --band: #173829;
    --on-band: #F2F4EB;
    --on-band-2: #BCCDC0;
    --open: #63C795;
    --closed: #D4AE6E;
    --star: #D4AE6E;
    --danger: #E08672;
    --danger-soft: #3A221C;
    --focus: #D4AE6E;
    --shadow: 0 14px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); overflow-x: clip; }
@media (min-width: 900px) { body { font-size: 18px; } html { scroll-padding-top: 96px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green-2); }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
h1, h2, .display, .page-title { font-family: var(--serif); letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0 0 .7em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
b { font-weight: 600; }
select, input, button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: calc(680px + 2 * var(--pad)); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.center { text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--r-s); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:root:not(.js) .js-only { display: none; } /* needs site.js: search, the chosen time, the arrows */

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; stroke: none; }

.eyebrow { margin: 0 0 8px; color: var(--muted); font: 500 15px/1.35 var(--sans); }
.display { margin: 0; font-size: clamp(36px, 9.8vw, 44px); line-height: 1.04; }
.page-title { margin: 0 0 12px; font-size: clamp(42px, 11.5vw, 52px); line-height: 1.02; }
.sec-lead { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.5; max-width: 56ch; }
main > .wrap { padding-bottom: var(--sec); }
.section { padding: var(--sec) 0; }
.section + .section { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-bottom: 24px; }
@media (min-width: 900px) {
  .display { font-size: clamp(46px, 4.3vw, 58px); }
  .page-title { font-size: clamp(56px, 5.4vw, 72px); }
  .sec-lead { font-size: 19px; }
  .sec-head { grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; margin-bottom: 32px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 1.5px solid var(--green); border-radius: var(--r-s);
  background: var(--green); color: var(--on-green); font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: var(--on-green); }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--green); }
.btn-line:hover { background: var(--tile); border-color: var(--green); color: var(--green); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 14px 24px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cta-row .btn { flex: 1 1 auto; white-space: nowrap; }
@media (min-width: 640px) { .cta-row .btn { flex: 0 1 auto; } }

/* ---------- small shared parts ---------- */
.frame { display: block; overflow: hidden; border-radius: var(--r-l); }
.frame picture, .frame img { display: block; width: 100%; height: 100%; object-fit: cover; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: var(--tile); color: var(--green); font: 500 15.5px/1.2 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .2s;
}
.chip:hover { background: var(--tile-2); color: var(--green); }
.chips-row { margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.chips-row .chips { flex-wrap: nowrap; width: max-content; }
@media (min-width: 900px) {
  .chips-row { margin: 0; padding: 0; overflow: visible; }
  .chips-row .chips { flex-wrap: wrap; width: auto; }
}

/* a sand row that opens: the vacancies, the neighbours in the building */
.fold { padding: 0 18px; border-radius: var(--r-m); background: var(--sand); }
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; padding: 10px 0; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold-hint { display: inline-flex; align-items: center; gap: 8px; flex: none; color: var(--green); font-size: 16px; font-weight: 600; }
.fold-hint::after { content: ""; width: 8px; height: 8px; margin: -3px 0 0 2px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: transform .2s; }
.fold[open] .fold-hint::after { transform: translateY(3px) rotate(-135deg); }
.fold-in { padding-bottom: 16px; }
@media (min-width: 900px) { .fold { padding: 0 28px; } }

/* a row that swipes on phones: full-bleed, stops at each block */
.swipe { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.swipe::-webkit-scrollbar { display: none; }
.swipe > * { flex: none; scroll-snap-align: start; }

.more { margin: 0 0 8px; }
.more summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--green); font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: ""; width: 8px; height: 8px; margin: -3px 0 0 4px; border: solid currentColor; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); transition: transform .2s; }
.more[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.lines li { position: relative; padding: 5px 0 5px 22px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.lines li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .5; }
.lines-num { list-style: decimal; padding-left: 22px; }
.lines-num li { padding-left: 2px; }
.lines-num li::before { content: none; }

.label { display: block; color: var(--muted); font-size: 15px; }
.alert { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-s); background: var(--danger-soft); color: var(--danger); font-size: 16px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 40; transform: translateX(-50%); padding: 12px 18px; border-radius: var(--r-s); background: var(--ink); color: var(--bg); font-size: 16px; box-shadow: var(--shadow); white-space: nowrap; }
.live-dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--open); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.logo { width: 38px; height: 38px; flex: none; }
.brand-name { display: flex; flex-direction: column; font: 600 27px/.95 var(--serif); letter-spacing: -.01em; }
.brand-name small { display: none; margin-top: 2px; font: 500 12.5px/1.2 var(--sans); letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav > a:not(.btn) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border-radius: var(--r-s); color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.top-nav > a:not(.btn):hover { background: var(--tile); color: var(--green); }
.top-nav > a[aria-current] { color: var(--green); text-decoration: underline; text-underline-offset: 6px; }
.top-nav > a.top-tel { min-width: 44px; justify-content: center; padding: 8px; color: var(--green); font-weight: 600; }
.top-nav .btn-sm { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
.hide-sm { display: none !important; }
.hide-md { display: none; }

.menu summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-s); color: var(--ink); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .i { width: 26px; height: 26px; }
.menu summary .i:last-child { display: none; }
.menu[open] summary .i:first-child { display: none; }
.menu[open] summary .i:last-child { display: block; }
.menu-panel { position: fixed; inset: 65px 0 0; z-index: 29; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--pad) 32px; background: var(--bg); }
.menu-call { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.menu-links { border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.menu-links li + li { border-top: 1px solid var(--line); }
.menu-links a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; padding: 10px 18px; color: var(--ink); font: 600 26px/1.1 var(--serif); text-decoration: none; }
.menu-links a::after { content: "→"; color: var(--muted); font: 400 20px/1 var(--sans); }
.menu-links a[aria-current] { color: var(--green); }
.menu-more { margin: 12px 0 0; }
.menu-more a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 18px; color: var(--ink); font-size: 17px; text-decoration: none; }
.menu-more .i { color: var(--green); }
.menu-where { margin: 12px 0 0; padding: 0 18px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 379px) {
  .logo { width: 32px; height: 32px; }
  .brand-name { font-size: 24px; }
  .top-nav .btn-sm { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 480px) { .brand-name small { display: block; } }
@media (min-width: 900px) {
  .top-in { min-height: 80px; }
  .logo { width: 44px; height: 44px; }
  .brand { gap: 10px; }
  .brand-name { font-size: 30px; }
  .menu-panel { inset: 81px 0 0; }
}
@media (min-width: 1100px) {
  .hide-sm { display: inline-flex !important; }
  .menu { display: none; }
  .top-nav { flex: 1; margin-left: 28px; }
  .top-nav > a.top-tel { margin-left: auto; }
  .top-nav .btn-sm { min-height: 48px; margin-left: 6px; padding: 10px 22px; font-size: 16px; }
}
@media (min-width: 1240px) { .hide-md { display: inline; } .top-nav > a.top-tel { padding: 8px 12px; } }

/* ---------- footer ---------- */
.foot { margin-top: 12px; padding: 32px 0 20px; border-radius: 28px 28px 0 0; background: var(--band); color: var(--on-band); font-size: 16px; }
.foot a { color: var(--on-band); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand-name small { display: block; color: var(--on-band-2); }
.foot-head { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--band-line); }
.foot-motto { margin: 0; font: 600 25px/1.15 var(--serif); }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 22px 0; }
.foot-grid > div:nth-child(-n+2) { grid-column: 1 / -1; }
.foot h2 { margin: 0 0 10px; color: var(--on-band-2); font: 500 15px/1.3 var(--sans); letter-spacing: 0; }
.foot p { margin: 0 0 8px; }
.foot-tel { font: 600 22px/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
.foot-social { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.foot-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.hours div { display: flex; flex-wrap: wrap; gap: 0 10px; }
.hours dd { white-space: nowrap; }
.hours dt { font-weight: 600; }
.foot-note { color: var(--on-band-2); font-size: 15.5px; }
.foot-links li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15.5px; line-height: 1.2; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 18px; border-top: 1px solid var(--band-line); color: var(--on-band-2); font-size: 15px; }
.foot-bottom a { color: var(--on-band-2); }
@media (min-width: 640px) { .foot-grid > div:nth-child(-n+2) { grid-column: auto; } }
@media (min-width: 900px) {
  .foot { padding: 32px 0 20px; border-radius: 40px 40px 0 0; }
  .foot-head { grid-template-columns: auto 1fr; align-items: center; gap: 40px; padding-bottom: 18px; }
  .foot-motto { justify-self: end; font-size: 28px; }
  .foot-grid { grid-template-columns: 1fr .9fr .85fr 1.6fr; gap: 24px; padding: 22px 0 14px; }
  .foot-grid > div:nth-child(-n+2) { grid-column: auto; }
  .foot-links li a { min-height: 30px; font-size: 15.5px; }
  .foot-links:not(.foot-dirs) { columns: 2; column-gap: 24px; }
  .foot-links li { break-inside: avoid; }
}

/* ---------- home: hero ---------- */
.visit-banner { display: block; background: var(--tile); color: var(--green); text-decoration: none; }
.visit-banner:hover { background: var(--tile-2); }
.visit-in { display: flex; align-items: center; gap: 12px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.visit-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.visit-text small { color: var(--ink-2); font-size: 15px; }
.go { font-size: 20px; }

.hero { padding: 22px 0 8px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 14px 6px 11px; border-radius: 999px; background: var(--sand); color: var(--ink-2); font-size: 14.5px; font-weight: 500; line-height: 1.3; }
.status.is-open { background: var(--tile); color: var(--green); }
.status-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--closed); }
.is-open .status-dot { background: var(--open); }
.hero-title { font-size: clamp(39px, 10.9vw, 60px); line-height: 1; letter-spacing: -.02em; }
.hero-kind, .wordmark, .hero-city { white-space: nowrap; }
@media (max-width: 359px) { .hero-kind { white-space: normal; } }
.wordmark { color: var(--green); }
.hero-motto { margin-top: 12px; }
.motto { margin: 0 0 4px; font: 600 23px/1.15 var(--serif); color: var(--ink); }
.motto-ru { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }

/* the booking bar: direction, day, button */
.hero-book { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.quick { display: grid; gap: 0; padding: 6px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.quick-f { position: relative; display: block; padding: 10px 14px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.quick-f:focus-within { border-radius: var(--r-s); box-shadow: inset 0 0 0 2px var(--focus); }
.quick-f span { display: block; color: var(--muted); font-size: 14.5px; line-height: 1.3; }
.quick-f select {
  display: block; width: 100%; min-height: 32px; padding: 0 26px 0 0; border: 0; border-radius: 0; outline: 0; appearance: none; background: transparent; color: var(--ink);
  font-size: 17px; font-weight: 600; text-overflow: ellipsis; cursor: pointer;
}
.quick-f select option, .quick-f select optgroup { background: var(--surface); color: var(--ink); font-weight: 400; }
.quick-f::after { content: ""; position: absolute; right: 18px; bottom: 19px; width: 9px; height: 9px; border: solid var(--muted); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); pointer-events: none; }
.quick .btn { margin-top: 6px; }
.quick .btn + .btn { margin-top: 6px; }
.hero-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-alt .btn { padding-left: 12px; padding-right: 12px; }

.hero-media { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: 20px; }
.hero-photo { overflow: hidden; border-radius: var(--r-l); aspect-ratio: 1 / 1; background: var(--tile); }
.hero-photo picture, .hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.hero-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--r-l); background: var(--tile); }
.hero-where { margin: 0; }
.hero-where a { display: block; color: var(--ink); text-decoration: none; }
.hero-addr { display: block; font: 600 30px/1.08 var(--serif); letter-spacing: -.01em; }
.hero-route { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 28px; color: var(--green); font-size: 16px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.hero-route .i { width: 18px; height: 18px; }
.hero-hours { margin: 0; display: flex; flex-direction: column; font-size: 17px; line-height: 1.35; }
.hero-hours small { margin-top: 2px; color: var(--ink-2); font-size: 15.5px; }
.hero-tel { color: var(--green); font: 600 24px/1.1 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }

/* facts at the bottom of the hero */
.facts-list { display: flex; gap: 0; margin: 14px calc(-1 * var(--pad)) 0; padding: 4px var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.facts-list::-webkit-scrollbar { display: none; }
.facts-list li { flex: none; width: 190px; padding: 12px 16px; border-left: 1px solid var(--line); scroll-snap-align: start; }
.facts-list li:first-child { padding-left: 0; border-left: 0; width: 174px; }
.fact-big { display: block; font: 600 25px/1.15 var(--sans); letter-spacing: -.015em; white-space: nowrap; }
.fact-big span:last-child:not([data-count]) { font-size: 18px; font-weight: 500; letter-spacing: 0; }
.fact-text { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.35; }

@media (min-width: 640px) {
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-photo picture, .hero-photo img { object-position: 50% 42%; }
  .quick { grid-template-columns: 1fr 1fr; }
  .quick-f { border-bottom: 0; }
  .quick-f + .quick-f { border-left: 1px solid var(--line); }
  .quick-f + .quick-f:focus-within { border-left-color: transparent; }
  .quick .btn { grid-column: 1 / -1; }
  .quick-ways .btn { grid-column: auto; }
  .hero-alt .btn { flex: 1; }
}
@media (min-width: 900px) {
  .hero { padding: 36px 0 0; }
  .hero-title { font-size: clamp(66px, 6.1vw, 84px); line-height: .98; }
  .hero-kind { display: block; }
  .motto { font-size: 27px; }
  .motto-ru { font-size: 17px; }
  .hero-book { margin-top: 26px; }
  .hero-media { grid-template-columns: 4fr 8fr; margin-top: 24px; }
  .hero-photo { order: 2; aspect-ratio: auto; height: clamp(340px, 28vw, 400px); }
  .hero-photo picture, .hero-photo img { object-position: 50% 45%; }
  .hero-card { order: 1; padding: 28px; }
  .hero-addr { font-size: 38px; }
  .hero-hours { margin-top: auto; }
  .hero-tel { font-size: 26px; }
  .facts-list { display: grid; grid-template-columns: repeat(5, 1fr); margin: 16px 0 0; padding: 4px 0; overflow: visible; }
  .facts-list li, .facts-list li:first-child { width: auto; }
  .fact-big { font-size: 28px; }
  .fact-big span:last-child:not([data-count]) { font-size: 19px; }
  .fact-text { font-size: 15px; }
}
@media (min-width: 1100px) {
  .hero-head { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 40px; align-items: end; }
  .hero-motto { margin: 0 0 10px; }
  .hero-book { grid-template-columns: 1fr auto; }
  .quick { grid-template-columns: 1.2fr 1fr auto; align-items: center; }
  .quick .btn { grid-column: auto; margin: 0 2px 0 8px; }
  .quick-ways { grid-template-columns: 1.1fr 1fr auto auto; }
  .quick-ways .btn + .btn { margin: 0 2px 0 8px; }
  :root:not(.js) .quick-ways { grid-template-columns: auto auto; justify-content: start; }
  .hero-book:has(.quick-ways) { grid-template-columns: 1fr; }
  .hero-alt { display: flex; }
  .hero-alt .btn { min-height: 70px; padding: 14px 20px; border-radius: var(--r-m); background: var(--surface); }
}

/* ---------- home: «Что вас беспокоит?», also the 404 page's links ---------- */
.ask-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ask-item {
  position: relative; display: flex; flex-direction: column; height: 100%; min-height: 118px; padding: 14px; border-radius: var(--r-m);
  background: var(--tile); color: var(--ink); text-decoration: none; transition: background .2s, transform .2s;
}
.ask-item:hover { background: var(--tile-2); color: var(--ink); transform: translateY(-2px); }
.ask-item .sp { position: absolute; right: 12px; top: 12px; width: 26px; height: 26px; color: var(--green); stroke-width: 1.5; }
.ask-item .sp + .ask-q { padding-right: 26px; }
.ask-q { display: block; font: 600 22px/1.1 var(--serif); letter-spacing: -.005em; }
.ask-a { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; color: var(--green); font-size: 15px; font-weight: 500; line-height: 1.3; }
@media (max-width: 639px) {
  .ask-a { font-size: 14.5px; }
  .ask-a span { display: none; } /* a narrow tile needs its whole width for «Дерматовенеролог» */
}
.ask-more { margin: 14px 0 0; color: var(--ink-2); font-size: 16px; }
@media (min-width: 640px) { .ask-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); } }
@media (min-width: 1100px) {
  .ask-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ask-item { min-height: 156px; padding: 16px 18px; }
  .ask-item .sp { position: static; width: 28px; height: 28px; margin-bottom: 10px; }
  .ask-item .sp + .ask-q { padding-right: 0; }
  .ask-q { font-size: 25px; }
  .ask-a { font-size: 15.5px; }
}

/* ---------- the ways to book, the steps: columns with an action ---------- */
.ways { display: grid; gap: var(--gap); }
.way { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; border-radius: var(--r-m); background: var(--sand); }
.way-i { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--surface); color: var(--green); }
.way h3 { margin-bottom: 6px; font: 600 26px/1.1 var(--serif); letter-spacing: -.005em; }
.way p { margin: 0 0 10px; color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.empty-tel { margin-top: auto; color: var(--green); font: 600 22px/1.2 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.way-go { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-top: auto; color: var(--green); font-size: 16px; font-weight: 600; text-decoration: none; }
.way-go:hover { text-decoration: underline; }
@media (min-width: 900px) {
  .ways { grid-template-columns: repeat(3, 1fr); }
  .way { padding: 24px; }
  .way h3 { font-size: 30px; }
}

.how { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 24px; }
.steps-title { font: 600 28px/1.1 var(--serif); letter-spacing: -.01em; }
.steps { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps li { flex: none; display: grid; align-content: start; gap: 2px; width: min(74vw, 280px); padding: 14px 16px; border-radius: var(--r-m); background: var(--sand); scroll-snap-align: start; }
.steps b { font-size: 17px; }
.steps span { color: var(--muted); font-size: 15.5px; line-height: 1.4; }
@media (min-width: 900px) {
  .how { grid-template-columns: 170px 1fr; gap: 32px; margin-top: 24px; padding-top: 20px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 0; padding: 0; overflow: visible; }
  .steps li { width: auto; padding: 0; background: none; }
  .steps-title { font-size: 32px; }
}

/* ---------- doctor cards ---------- */
.docs-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.docs-tools .chips-row { flex: 1; min-width: 0; }
.scroll-btns { display: none; flex: none; gap: 8px; }
.scroll-btns.is-on { display: none; }
.scroll-btns button { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: var(--green); cursor: pointer; transition: background .2s, opacity .2s; }
.scroll-btns button:hover { background: var(--tile); }
.scroll-btns button[disabled] { opacity: .35; cursor: default; }
@media (min-width: 900px) { .scroll-btns.is-on { display: flex; } }

.specs { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 4px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.specs::-webkit-scrollbar { display: none; }
.spec { flex: none; scroll-margin-left: var(--pad); scroll-margin-top: 100px; }
.spec-title { font: 600 25px/1.1 var(--serif); letter-spacing: -.01em; }
.spec > .spec-title { margin-bottom: 10px; font-size: 23px; }
.cards { display: flex; gap: var(--gap); }
.specs .doc { width: min(82vw, 330px); scroll-snap-align: start; }
@media (min-width: 900px) {
  .specs { margin: 0; padding: 0 0 4px; scroll-padding: 0; }
  .spec { scroll-margin-left: 0; }
  .specs .doc { width: 389px; }
}

.card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.doc { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.doc-head { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); text-decoration: none; }
.doc-head:hover { color: var(--ink); }
.doc-head:hover .doc-name { color: var(--green); }
.avatar { flex: none; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; background: var(--tile); color: var(--green); font: 600 28px/1 var(--serif); }
.avatar-lg { width: 120px; height: 120px; border-radius: 28px; font-size: 46px; }
.doc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--muted); font-size: 15.5px; line-height: 1.35; }
.doc-name { color: var(--ink); font: 600 25px/1.08 var(--serif); letter-spacing: -.005em; }
.rating { display: inline-flex; align-items: center; gap: 4px; }
.rating .i { width: 15px; height: 15px; color: var(--star); }
.doc-price { margin: 0; color: var(--muted); font-size: 16px; }
.doc-price b { color: var(--ink); }
.next { display: grid; gap: 6px; }
.next-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.next-head .doc-price { white-space: nowrap; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px; border-radius: var(--r-s);
  background: var(--tile); color: var(--green); font-weight: 600; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none; transition: background .2s, color .2s;
}
.slot small { color: var(--ink-2); font-size: 13px; font-weight: 400; }
.slot:hover { background: var(--green); color: var(--on-green); }
.slot:hover small { color: inherit; }
.doc .more { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; margin: auto 0 0; color: var(--green); font-size: 16px; font-weight: 600; text-decoration: none; }
.doc .more:hover { text-decoration: underline; }

/* ---------- home: directions ---------- */
.dir-list { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.dir-list::-webkit-scrollbar { display: none; }
.dir { position: relative; flex: none; display: flex; flex-direction: column; width: 216px; overflow: hidden; border-radius: var(--r-m); background: var(--sand); scroll-snap-align: start; transition: background .2s, transform .2s; }
.dir:hover { transform: translateY(-2px); background: var(--tile); }
.dir-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tile); }
.dir-img picture, .dir-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dir-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 12px 14px 10px; }
.dir-name { font: 600 22px/1.08 var(--serif); letter-spacing: -.005em; hyphens: auto; overflow-wrap: break-word; }
.dir-name a { color: var(--ink); text-decoration: none; }
.dir-name a::after { content: ""; position: absolute; inset: 0; }
.dir-tag { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.3; }
.dir-go { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; min-height: 40px; margin-top: auto; padding-top: 4px; color: var(--green); font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dir-go:hover { text-decoration: underline; }
.dir-solo .dir-go::after { content: ""; position: absolute; inset: 0; }
.dir-list-plain { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 10px 0 0; padding: 0; overflow: visible; gap: 10px; }
.dir-list-plain .dir { width: auto; }
.dir-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin: 12px 0 0 14px; border-radius: 50%; background: var(--surface); color: var(--green); }
.dir-ic .sp { width: 24px; height: 24px; stroke-width: 1.5; }
.dir-list-plain .dir-body { padding-top: 8px; }
.dir-list-plain .dir-go { min-height: 36px; font-size: 14.5px; }
@media (min-width: 900px) { .dir-list-plain .dir-go { font-size: 15px; } }
.spec-page > .dir-go, .price-group .dir-go, .spec-sec .dir-go { min-height: 44px; margin-top: 8px; }
@media (min-width: 900px) {
  .dir-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .dir { width: auto; }
  .dir-img { aspect-ratio: 2 / 1; }
  .dir-list.dir-list-plain { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: var(--gap); }
  .dir-list-plain .dir { flex-direction: row; align-items: flex-start; }
  .dir-list-plain .dir-body { padding-top: 12px; padding-left: 10px; }
  .dir-list-plain .dir-name { font-size: 22px; }
}
@media (min-width: 1240px) {
  .dir-list { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dir-img { aspect-ratio: 1 / .78; }
  .dir-name { font-size: 21.5px; }
}

/* ---------- home: ENT and hearing ---------- */
.ent-grid { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.ent-grid::-webkit-scrollbar { display: none; }
.ent-card { flex: none; display: flex; flex-direction: column; width: min(86vw, 360px); overflow: hidden; border-radius: var(--r-l); background: var(--tile); scroll-snap-align: start; }
.ent-card .frame { border-radius: 0; aspect-ratio: 16 / 9; flex: none; }
.frame-hear img { object-position: 50% 68%; }
.ent-card:first-child .frame img { object-position: 50% 28%; }
.ent-text { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.ent-text h3 { margin-bottom: 6px; font: 600 26px/1.08 var(--serif); letter-spacing: -.01em; }
.ent-text > p { margin: 0 0 4px; color: var(--ink-2); font-size: 16.5px; line-height: 1.45; }
.ent-text .cta-row { margin-top: auto; }
.ent-text .more { margin: 0 0 6px; }
.kit { margin: 8px 0 0; color: var(--ink-2); font-size: 15.5px; }
.kit-label { font-weight: 600; }
.is-picked { animation: picked 1.6s ease-out; }
@keyframes picked { 0%, 40% { box-shadow: 0 0 0 3px var(--green); } 100% { box-shadow: 0 0 0 3px transparent; } }
@media (min-width: 900px) {
  .ent-grid { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; overflow: visible; }
  .ent-card { width: auto; }
  .ent-card .frame { aspect-ratio: 2.3 / 1; }
  .ent-text { padding: 18px 28px 22px; }
  .ent-text h3 { font-size: 30px; }
}

/* ---------- home: the building ---------- */
.bld-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.gallery { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery li { flex: none; width: 236px; scroll-snap-align: start; }
.gallery figure { position: relative; height: 296px; overflow: hidden; border-radius: var(--r-m); background: var(--tile); }
.gallery picture, .gallery img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gallery a { display: block; height: 100%; }
.gallery figcaption { position: absolute; inset: auto 0 0; padding: 36px 14px 12px; background: linear-gradient(transparent, rgba(8, 22, 15, .72)); color: #fff; font-size: 15px; font-weight: 500; line-height: 1.3; pointer-events: none; }
.stack-list { border-top: 1px solid var(--line); }
.stack-list li { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line); border-radius: 2px; scroll-margin-top: 96px; }
.stack-list b { font: 600 22px/1.12 var(--serif); letter-spacing: -.005em; }
.stack-list b a { color: inherit; }
.stack-list span { color: var(--muted); font-size: 15px; line-height: 1.35; }
.neighbour { margin-top: 16px; }
.neighbour h3 { font: 600 24px/1.1 var(--serif); letter-spacing: -.005em; }
.neighbour h3 small { display: block; margin-top: 4px; color: var(--muted); font: 400 15px/1.3 var(--sans); letter-spacing: 0; }
.neighbour p { margin: 0 0 6px; font-size: 16px; line-height: 1.45; }
.neighbour-links { display: flex; flex-wrap: wrap; gap: 0 18px; margin: 0; }
.neighbour-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (min-width: 900px) {
  .bld-grid { grid-template-columns: 4fr 8fr; grid-template-areas: "head gal" "list gal"; grid-template-rows: auto 1fr; gap: 14px 32px; }
  .bld-head .sec-lead { margin-top: 8px; font-size: 17px; }
  .bld-head { grid-area: head; }
  .stack-list { grid-area: list; }
  .gallery { grid-area: gal; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 264px 216px; margin: 0; padding: 0; overflow: visible; }
  .gallery li { grid-column: span 3; width: auto; }
  .gallery li:nth-child(-n+2) { grid-column: span 6; }
  .gallery figure { height: 100%; border-radius: var(--r-l); }
  .gallery li:nth-child(n+3) figure { border-radius: var(--r-m); }
  .gallery li:nth-child(1) img { object-position: 50% 62%; }
  .gallery li:nth-child(2) img { object-position: 50% 58%; }
  .neighbour { margin-top: var(--gap); }
  .neighbour h3 { font-size: 27px; }
  .neighbour .fold-in { max-width: 860px; }
}

/* ---------- home: the story ---------- */
.story-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px 20px 20px; border-radius: var(--r-l); background: var(--tile); }
.story .sec-lead { margin-top: 10px; }
.timeline { display: grid; gap: 10px; margin-top: 4px; }
.timeline li { padding: 14px 16px; border-radius: var(--r-m); background: var(--surface); }
.timeline h3 { margin: 0 0 4px; font: 600 23px/1.1 var(--serif); letter-spacing: -.005em; }
.timeline p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.4; }
.timeline .tl-when { margin-bottom: 4px; color: var(--muted); font-size: 14.5px; font-weight: 500; }
.story .more { margin: 8px 0 0; }
.story-photos { position: relative; aspect-ratio: 5 / 3.4; }
.story-photos picture, .story-photos img { display: block; }
.ph-a { position: absolute; left: 0; top: 0; width: 76%; height: 100%; overflow: hidden; border-radius: var(--r-l); }
.ph-b { position: absolute; right: 0; bottom: 0; width: 38%; height: 74%; overflow: hidden; border-radius: var(--r-m); box-shadow: 0 0 0 6px var(--tile); }
.ph-a img, .ph-b img { width: 100%; height: 100%; object-fit: cover; }
.ph-a img { object-position: 50% 22%; }
@media (min-width: 900px) {
  .story-card { grid-template-columns: 7fr 5fr; gap: 40px; align-items: stretch; padding: 28px 32px; }
  .story-photos { aspect-ratio: auto; min-height: 250px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: var(--gap); }
}

/* ---------- home: reviews ---------- */
.rev-list { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.rev-list::-webkit-scrollbar { display: none; }
.rev { flex: none; display: flex; flex-direction: column; gap: 8px; width: min(82vw, 330px); padding: 18px; border-radius: var(--r-m); background: var(--sand); scroll-snap-align: start; }
.stars { color: var(--star); font-size: 16px; letter-spacing: 1px; }
.rev blockquote { margin: 0; font: 600 23px/1.2 var(--serif); }
.rev blockquote p { margin: 0; }
.rev-who { margin: auto 0 0; font-size: 15.5px; line-height: 1.4; }
.rev-who span { display: block; color: var(--muted); }
@media (min-width: 900px) {
  .rev-list { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .rev { width: auto; padding: 18px 22px; }
  .revs .sec-head { margin-bottom: 20px; }
}

/* ---------- home: the app's band ---------- */
.app-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px 20px; border-radius: var(--r-l); background: var(--band); color: var(--on-band); }
.app-card .eyebrow { margin-bottom: 2px; color: var(--on-band-2); }
.app-card .sec-lead { color: var(--on-band); }
.app-card .btn { background: var(--on-band); border-color: var(--on-band); color: #123B2A; }
.app-card .btn:hover { background: #fff; border-color: #fff; color: #123B2A; }
.app-card .btn-line { background: transparent; border-color: var(--band-line); color: var(--on-band); }
.app-card .btn-line:hover { background: rgba(255, 255, 255, .1); border-color: var(--on-band); color: var(--on-band); }
.app-ios { margin: 6px 0 0; color: var(--on-band-2); font-size: 15px; line-height: 1.4; }
.perks { display: grid; gap: 0; }
.perks li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.perks b { font: 600 23px/1.12 var(--serif); }
.perks span { color: var(--muted); font-size: 15.5px; line-height: 1.4; }
@media (min-width: 900px) {
  .perks { grid-template-columns: 1fr 1fr; gap: 0 28px; }
  .perks b { font-size: 25px; }
  .app-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 28px 40px; border-radius: 32px; }
}

/* ---------- questions and answers ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.faq-head .sec-lead { margin-top: 10px; }
.faq-list { display: grid; gap: 8px; align-items: start; }
.faq { border-radius: 16px; background: var(--tile); transition: background .2s; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 14px 12px 18px; font-size: 17px; font-weight: 600; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { border-radius: 16px; }
.faq-i { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--surface); }
.faq-i::before, .faq-i::after { content: ""; position: absolute; left: 11px; top: 17px; width: 14px; height: 2px; border-radius: 2px; background: var(--green); transition: transform .2s; }
.faq-i::after { transform: rotate(90deg); }
.faq[open] .faq-i::after { transform: rotate(0); }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); font-size: 16.5px; line-height: 1.5; }
.faq-a p { margin: 0; }
@supports selector(::details-content) {
  details::details-content { height: 0; overflow: clip; transition: height .22s ease, content-visibility .22s allow-discrete; }
  details[open]::details-content { height: auto; }
  .menu::details-content, .menu[open]::details-content { height: auto; overflow: visible; transition: none; }
}
@media (min-width: 900px) {
  .faq-sec .faq-grid { gap: 28px; }
  .faq-sec .faq-head { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: end; }
  .faq-sec .faq-head .sec-lead { margin: 0; }
  .faq-sec .faq-list { grid-template-columns: 1fr 1fr; gap: 10px var(--gap); }
}

/* ---------- home: contacts ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.aerial figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; }
.aerial .frame { aspect-ratio: 16 / 9; }
.addr { margin-top: 14px; }
.addr-big { margin: 0; font: 600 30px/1.08 var(--serif); letter-spacing: -.01em; }
.addr-city { margin: 2px 0 14px; color: var(--ink-2); }
.cinfo { display: grid; margin-top: 20px; border-top: 1px solid var(--line); }
.cinfo > div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cinfo dt { color: var(--muted); font-size: 15px; }
.cinfo dd { display: flex; flex-direction: column; gap: 2px; }
.cinfo small { color: var(--muted); font-size: 15.5px; line-height: 1.4; }
.tel-big { font: 600 22px/1.25 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.jobs { margin-top: 20px; }
.jobs h2 { font-size: 26px; letter-spacing: -.01em; }
.jobs-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.jobs-list li { padding: 7px 12px; border-radius: 999px; background: var(--surface); font-size: 15.5px; line-height: 1.3; }
.jobs-call { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; margin: 0; font-size: 16px; }
.jobs-call a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
@media (min-width: 900px) {
  .contacts { grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
  .aerial .frame { aspect-ratio: auto; height: 340px; }
  .addr { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; align-items: end; }
  .addr-big { grid-column: 1; font-size: 32px; }
  .addr-city { grid-column: 1; margin-bottom: 0; }
  .addr .cta-row { grid-column: 2; grid-row: 1 / 3; flex-wrap: nowrap; }
  .cinfo { grid-template-columns: 1fr 1.15fr .95fr; column-gap: 24px; margin-top: 14px; border-bottom: 1px solid var(--line); }
  .cinfo > div { align-content: start; border-bottom: 0; font-size: 17px; }
  .cinfo small { font-size: 15px; }
}

/* ---------- inner pages: common head, breadcrumbs ---------- */
.crumbs { padding: 16px 0 4px; color: var(--muted); font-size: 15px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.crumbs li { display: flex; gap: 8px; }
.crumbs li + li::before { content: "/"; opacity: .6; }
.crumbs a { color: var(--muted); }
.page-head { padding: 28px 0 8px; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; color: var(--green); font-size: 16px; font-weight: 500; text-decoration: none; }
.back:hover { text-decoration: underline; }
.page-title + .sec-lead { margin-top: 0; }
@media (min-width: 900px) { .page-head { padding: 44px 0 12px; } }

/* price rows */
.price-list { border-top: 1px solid var(--line); }
.price-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.35; }
.price-list small { display: block; color: var(--muted); font-size: 14.5px; }
.price-list b { flex: none; white-space: nowrap; }

/* the quiet box with what to do next */
.help-box { margin-top: var(--sec); padding: 24px 20px; border-radius: var(--r-l); background: var(--tile); }
.help-box h2 { margin-bottom: 6px; font-size: 34px; line-height: 1.08; }
.help-box p { margin: 0 0 14px; color: var(--ink-2); }
@media (min-width: 900px) { .help-box { display: grid; grid-template-columns: 1fr auto; gap: 2px 32px; align-items: center; padding: 32px 36px; } .help-box h2 { font-size: 42px; } .help-box p { grid-column: 1; margin: 0; } .help-box .cta-row { grid-column: 2; grid-row: 1 / 3; } }

/* ---------- a direction's page ---------- */
.spec-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 14px 0 0; }
.spec-h1 { font-size: clamp(42px, 11.2vw, 52px); line-height: 1.02; letter-spacing: -.018em; }
.spec-hero-text .eyebrow { display: inline-block; margin-bottom: 12px; padding: 6px 14px; border-radius: 999px; background: var(--tile); color: var(--green); font-size: 15px; line-height: 1.3; }
.spec-hero-text .sec-lead { margin-top: 14px; }
.spec-more { margin: 8px 0 0; color: var(--ink-2); font-size: 16.5px; line-height: 1.45; max-width: 56ch; }
.spec-hero-text .cta-row { margin-top: 20px; }
.spec-photo figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.35; }
.spec-photo .frame { aspect-ratio: 4 / 3; }
.spec-art { display: none; align-items: center; justify-content: center; border-radius: var(--r-l); background: var(--tile); color: var(--green); }
.spec-facts { margin-top: 20px; padding: 2px 18px; border-radius: var(--r-m); background: var(--sand); }
.spec-facts dl > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-facts dl > div:last-child { border-bottom: 0; }
.spec-facts dt { color: var(--muted); font-size: 15px; }
.spec-facts dd { font-weight: 600; font-size: 16.5px; line-height: 1.35; }
.spec-facts small { display: block; margin-top: 2px; color: var(--muted); font-size: 15px; font-weight: 400; }
.spec-tel { color: var(--green); font: 600 19px/1.25 var(--sans); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.spec-sec { padding-top: var(--sec); scroll-margin-top: 40px; }
.spec-sec .spec-title { margin-bottom: 8px; font-size: clamp(36px, 9.8vw, 44px); line-height: 1.04; }
.spec-sub { margin: 28px 0 6px; font: 600 30px/1.08 var(--serif); letter-spacing: -.01em; }
.spec-note { margin: 0 0 18px; color: var(--ink-2); max-width: 62ch; }
.spec-cards { display: grid; }
.team { display: grid; gap: var(--gap); }
.team-card { display: flex; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--tile); }
.team-photo { flex: none; display: block; width: 92px; height: 112px; overflow: hidden; border-radius: 16px; background: var(--surface); }
.team-photo picture, .team-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.team-mark { display: flex; align-items: center; justify-content: center; height: 92px; color: var(--green); }
.team-mark .i { width: 36px; height: 36px; stroke-width: 1.4; }
.team-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
.team-text b { color: var(--ink); font: 600 25px/1.08 var(--serif); letter-spacing: -.005em; }
.team-role { color: var(--muted); font-size: 15.5px; }
.spec-others .spec-title { margin-bottom: 14px; }
@media (min-width: 900px) {
  .crumbs { padding-top: 22px; }
  .spec-hero { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; padding-top: 20px; }
  .spec-h1 { font-size: clamp(58px, 5.4vw, 76px); }
  .spec-photo .frame { aspect-ratio: 5 / 5.4; max-height: 520px; }
  .spec-art { display: flex; aspect-ratio: 5 / 4.6; }
  .spec-art .sp { width: 150px; height: 150px; stroke-width: .7; }
  .spec-facts { margin-top: 28px; padding: 8px 28px; }
  .spec-facts dl { display: flex; flex-wrap: wrap; gap: 0 32px; }
  .spec-facts dl > div { flex: 1 1 200px; align-content: start; border-bottom: 0; padding: 16px 0; }
  .spec-sec .spec-title { font-size: clamp(44px, 4vw, 54px); }
  .spec-cards { grid-template-columns: repeat(3, 1fr); }
  .spec-cards .doc { height: auto; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .team-card { padding: 20px; }
  .team-photo { width: 120px; height: 150px; }
  .team-mark { height: 120px; }
  .spec-split { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
}

/* ---------- a doctor's page ---------- */
.doc-page { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding-top: 2px; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile h1 { margin: 0; font-size: clamp(36px, 10vw, 44px); line-height: 1.04; }
.profile .eyebrow { margin: 0 0 4px; }
.profile-meta { display: flex; align-items: center; gap: 6px; margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.profile-meta .i { width: 17px; height: 17px; }
.stats { display: flex; flex-wrap: wrap; gap: 0; padding: 4px; border-radius: var(--r-m); background: var(--sand); }
.stats > div { flex: 1 1 auto; min-width: 0; padding: 8px 10px; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { order: 2; color: var(--muted); font-size: 14.5px; }
.stats > div { display: flex; flex-direction: column-reverse; }
.stats dd { display: flex; align-items: center; gap: 4px; font: 600 18px/1.2 var(--sans); letter-spacing: -.01em; white-space: nowrap; }
@media (min-width: 900px) { .stats > div { padding: 10px 14px; } .stats dd { font-size: 21px; } }
.stats dd .i { width: 18px; height: 18px; color: var(--star); }
.bio { margin: 0; color: var(--ink-2); max-width: 64ch; }
.doc-page section.card h2, .book h2, .keep h2 { margin-bottom: 10px; font: 600 28px/1.1 var(--serif); letter-spacing: -.01em; }
.near { scroll-margin-top: 96px; }
.day-title { margin: 0 0 10px; font-weight: 600; }
.near-times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.near-times .slot { min-height: 52px; }
.slot-more { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 15px; font-weight: 500; }
.all-dates { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 16px; text-decoration: none; }
.all-dates:hover { text-decoration: underline; }
.empty { margin: 0; color: var(--ink-2); }
.review { padding: 14px 0; border-top: 1px solid var(--line); }
.review:first-of-type { border-top: 0; padding-top: 0; }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-bottom: 6px; }
.review time { color: var(--muted); font-size: 15px; }
.review p { margin: 0 0 6px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span { padding: 3px 10px; border-radius: 999px; background: var(--tile); color: var(--green); font-size: 14.5px; }
.reply { padding: 10px 12px; border-radius: var(--r-s); background: var(--sand); font-size: 15.5px; }
.share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start; min-height: 48px; padding: 10px 18px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: transparent; color: var(--green); font-size: 16px; font-weight: 600; cursor: pointer; }
.share:hover { background: var(--tile); }
.book-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.book-bar p { display: flex; flex-direction: column; margin: 0; line-height: 1.25; }
.book-bar small { color: var(--muted); font-size: 14.5px; }
.doc-page { padding-bottom: 92px; }
@media (min-width: 900px) {
  .doc-page { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px 48px; align-items: start; padding-bottom: 0; }
  .doc-page > * { grid-column: 1; }
  .doc-page > .back { grid-column: 1 / -1; }
  .doc-page > .near { grid-column: 2; grid-row: 2 / span 6; position: sticky; top: 104px; padding: 24px; box-shadow: var(--shadow); }
  .profile { gap: 24px; }
  .profile h1 { font-size: clamp(48px, 4.6vw, 62px); }
  .avatar-lg { width: 148px; height: 148px; border-radius: 32px; font-size: 56px; }
  .book-bar { display: none; }
  .doc-page section.card { padding: 24px; }
}

/* ---------- the booking form ---------- */
.stepper { padding: 16px 0 12px; }
.stepper ol { display: flex; gap: 6px; }
.stepper li { flex: 1; }
.stepper a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px; border-radius: var(--r-s); background: var(--sand); color: var(--muted); font-size: 15.5px; font-weight: 500; text-decoration: none; }
.stepper b { display: flex; align-items: center; justify-content: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); font-size: 12.5px; font-weight: 600; }
.stepper .is-done a { background: var(--tile); color: var(--green); }
.stepper .is-on a { background: var(--green); color: var(--on-green); }
.stepper .is-on b { color: var(--green); }
.book .page-title { font-size: clamp(38px, 10.4vw, 48px); }
.book-sum { margin-bottom: 14px; }
.sum-who { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.sum-who .avatar { width: 60px; height: 60px; border-radius: 16px; font-size: 24px; }
.sum-name { display: flex; flex-direction: column; min-width: 0; color: var(--muted); font-size: 15.5px; line-height: 1.3; }
.sum-name b { color: var(--ink); font: 600 24px/1.1 var(--serif); }
.sum-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding-top: 12px; }
.sum-wide { grid-column: 1 / -1; }
.sum-grid dt { color: var(--muted); font-size: 15px; }
.sum-grid dd { font-weight: 600; font-size: 16.5px; line-height: 1.35; }
.sum-grid small { display: block; color: var(--muted); font-size: 14.5px; font-weight: 400; }
.step-card { margin-bottom: 14px; scroll-margin-top: 84px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 10px 0 0; border-radius: 50%; background: var(--tile); color: var(--green); font: 600 13px/1 var(--sans); vertical-align: 5px; }
.hp { position: absolute; left: -9999px; }
.days { display: flex; gap: 6px; margin: 0 -18px 14px; padding: 0 18px 2px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 18px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; min-height: 80px; padding: 8px 2px; border-radius: 14px; background: var(--tile); color: var(--ink); line-height: 1.2; text-decoration: none; scroll-snap-align: start; }
.day b { font: 600 22px/1.1 var(--sans); }
.day small { color: var(--ink-2); font-size: 13.5px; }
.day:hover { background: var(--tile-2); color: var(--ink); }
.day.is-on { background: var(--green); color: var(--on-green); }
.day.is-on small { color: inherit; }
.day.is-empty { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.day.is-empty small { color: var(--muted); }
.part { margin: 0 0 12px; padding: 0; border: 0; }
.part legend { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 15.5px; font-weight: 500; }
.part legend .i { width: 18px; height: 18px; }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt span { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: var(--r-s); background: var(--tile); color: var(--green); font-weight: 600; transition: background .15s, color .15s; }
.opt input:hover + span { background: var(--tile-2); }
.opt input:checked + span { background: var(--green); color: var(--on-green); }
.opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 600; }
.field input { display: block; width: 100%; min-height: 54px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); background: var(--surface); font-size: 17px; }
.field input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--tile-2); }
.field input::placeholder { color: var(--muted); opacity: .8; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.field em, .check em { display: block; margin-top: 6px; color: var(--danger); font-size: 15px; font-style: normal; }
.field-err { margin: 8px 0 0; color: var(--danger); font-size: 15.5px; }
.has-error input { border-color: var(--danger); }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; margin-bottom: 16px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--green); }
.check em { grid-column: 2; }
.form .small .i { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.form .btn-block { margin-bottom: 10px; }
@media (min-width: 900px) {
  .book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 40px; align-items: start; }
  .book > * { grid-column: 1; }
  .book > .book-sum { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 104px; padding: 24px; box-shadow: var(--shadow); }
  .stepper { grid-column: 1 / -1; padding: 24px 0 14px; }
  .stepper a { justify-content: center; }
  .book .page-title { font-size: 56px; }
  .step-card { padding: 24px; }
  .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 0 0 16px; padding: 0; overflow: visible; }
  .day { width: auto; }
  .sum-who .avatar { width: 76px; height: 76px; border-radius: 18px; }
  .sum-name b { font-size: 28px; }
}

/* ---------- a visit's private page ---------- */
.visit { margin-top: 20px; padding: 22px 18px; }
.visit h1 { margin: 0 0 6px; font-size: clamp(38px, 10vw, 48px); line-height: 1.04; }
.visit .lead, .lead { margin: 0 0 14px; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.status-cancelled h1, .status-no_show h1 { color: var(--muted); }
.track { display: flex; margin: 16px 0 18px; }
.track li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; line-height: 1.2; text-align: center; }
.track li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.track li:first-child::before { content: none; }
.track .is-done::before, .track .is-on::before { background: var(--green); }
.track-dot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--on-green); }
.track-dot .i { width: 16px; height: 16px; stroke-width: 2.4; }
.track .is-done .track-dot, .track .is-on .track-dot { background: var(--green); }
.track .is-on { color: var(--ink); font-weight: 600; }
.ticket { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px; border-radius: var(--r-m); background: var(--tile); }
.ticket-when { display: flex; flex-direction: column; margin: 0; }
.ticket-time { font: 600 44px/1 var(--sans); letter-spacing: -.03em; }
.ticket-when span { margin-top: 2px; color: var(--ink-2); font-size: 16px; line-height: 1.3; }
.ticket-room { display: flex; flex-direction: column; align-items: flex-end; margin: 0; }
.ticket-room small { color: var(--muted); font-size: 14.5px; }
.ticket-room b { font: 600 30px/1 var(--sans); }
.ticket-who { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.ticket-who .avatar { width: 56px; height: 56px; border-radius: 14px; background: var(--surface); font-size: 22px; }
.ticket-name { display: flex; flex-direction: column; line-height: 1.25; }
.ticket-name a, .ticket-name b { color: var(--ink); font: 600 23px/1.1 var(--serif); text-decoration: none; }
.ticket-name small { color: var(--ink-2); font-size: 15px; }
.queue { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-m); background: var(--sand); }
.queue h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font: 600 24px/1.1 var(--serif); }
.queue-lines li { padding: 2px 0; font-weight: 600; font-size: 16.5px; }
.queue .muted { margin: 6px 0 0; }
.sk { height: 18px; margin: 6px 0; border-radius: 6px; background: var(--line); animation: sk 1.2s ease-in-out infinite; }
@keyframes sk { 50% { opacity: .5; } }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); gap: 4px; margin: 16px 0 6px; }
.acts:has(> :nth-child(5)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* a visit that can still move: three and two on a phone */
@media (min-width: 640px) { .acts:has(> :nth-child(5)) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.act { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; padding: 8px 2px; border: 0; border-radius: var(--r-s); background: transparent; color: var(--ink); font-size: 14.5px; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; }
.act:hover { background: var(--tile); color: var(--ink); }
.act-i { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--tile); color: var(--green); }
.act-danger { color: var(--danger); }
.act-danger .act-i { background: var(--danger-soft); color: var(--danger); }
.act-danger:hover { background: var(--danger-soft); color: var(--danger); }
.act-form { margin: 0; display: flex; }
.visit-grid { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.visit-grid dt { color: var(--muted); font-size: 15px; }
.visit-grid dd { font-weight: 500; font-size: 16.5px; line-height: 1.35; }
.visit-grid small { display: block; color: var(--muted); font-weight: 400; font-size: 15px; }
.keep { margin-top: 14px; }
.keep p { color: var(--ink-2); font-size: 16.5px; }
.app-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; color: var(--ink); text-decoration: none; background: var(--tile); border-color: transparent; }
.app-promo:hover { background: var(--tile-2); color: var(--ink); }
.app-icon { flex: none; display: block; width: 56px; height: 56px; }
.app-icon .logo { width: 100%; height: 100%; }
.app-promo-text { flex: 1 1 200px; display: flex; flex-direction: column; min-width: 0; color: var(--ink-2); font-size: 15px; line-height: 1.35; }
.app-promo-text b { color: var(--ink); font-size: 16.5px; }
.after { margin: 16px 0 0; }
.app-promo .btn { flex: 1 1 100%; }
@media (min-width: 640px) {
  .app-promo .btn { flex: none; }
  .visit { padding: 28px; }
  .visit-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .ticket { padding: 22px 24px; }
}

/* ---------- the pharmacy ---------- */
.stock-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.stock-fresh { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--ink-2); font-size: 15.5px; font-weight: 500; }
.stock-photo { overflow: hidden; border-radius: var(--r-l); aspect-ratio: 16 / 10; background: var(--tile); }
.stock-photo picture, .stock-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.stock-help { padding-top: 28px; }
.stock-help .spec-title { margin-bottom: 14px; font-size: clamp(32px, 8.6vw, 38px); }
.action-cards { display: flex; gap: var(--gap); margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 2px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 var(--pad); scrollbar-width: none; }
.action-cards::-webkit-scrollbar { display: none; }
.action-card { flex: none; display: flex; flex-direction: column; width: min(80vw, 310px); padding: 18px; border-radius: var(--r-m); background: var(--sand); scroll-snap-align: start; }
.action-card:first-child { background: var(--tile); }
.action-card h3 { margin-bottom: 8px; font: 600 26px/1.08 var(--serif); letter-spacing: -.005em; }
.action-card p, .action-card .lines li { color: var(--ink-2); font-size: 16px; line-height: 1.45; }
.action-card p { margin: 0 0 12px; }
.action-card .cta-row { margin-top: auto; }
.action-card .cta-row .btn { flex: 1 1 100%; padding-left: 12px; padding-right: 12px; }
.stock-tools { position: sticky; top: 65px; z-index: 10; margin: 28px calc(-1 * var(--pad)) 0; padding: 10px var(--pad); background: var(--bg); }
.stock-search { display: block; margin-bottom: 8px; }
.stock-search input { display: block; width: 100%; min-height: 54px; padding: 12px 16px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--surface); font-size: 17px; appearance: none; }
.stock-search input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 3px var(--tile-2); }
.stock-nav { margin-top: 0; }
.stock-groups { display: grid; gap: var(--gap); margin-top: 12px; }
.stock-group { padding: 18px 18px 8px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); scroll-margin-top: 200px; }
.stock-group h2 { margin-bottom: 8px; font-size: 30px; line-height: 1.08; }
.stock-group[hidden], .stock-list li[hidden] { display: none; }
.stock-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.stock-name { display: flex; flex-direction: column; min-width: 0; font-size: 16.5px; line-height: 1.3; }
.stock-name small { color: var(--muted); font-size: 15px; }
.stock-ask { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 12px; border-radius: var(--r-s); background: var(--tile); color: var(--green); font-size: 15px; font-weight: 600; text-decoration: none; }
.stock-ask:hover { background: var(--tile-2); }
.stock-ask .i { width: 18px; height: 18px; }
.stock-none { margin: 0; padding: 18px; border-radius: var(--r-m); background: var(--sand); }
.stock-empty { margin-top: 28px; padding: 24px 20px; border-radius: var(--r-l); background: var(--tile); }
.stock-empty h2 { margin-bottom: 8px; font-size: 34px; line-height: 1.08; }
.stock-empty p { color: var(--ink-2); max-width: 56ch; }
@media (min-width: 900px) {
  .stock-head { grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
  .stock-photo { aspect-ratio: 16 / 9; }
  .stock-help { padding-top: 36px; }
  .stock-help .spec-title { font-size: 44px; }
  .action-cards { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 0; overflow: visible; }
  .action-card { width: auto; padding: 24px; }
  .action-card h3 { font-size: 30px; }
  .action-card .cta-row .btn { flex: 1 1 auto; }
  .stock-tools { top: 81px; margin: 36px 0 0; padding: 12px 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 20px; align-items: center; }
  .stock-search { margin: 0; }
  .stock-groups { display: block; columns: 2; column-gap: var(--gap); }
  .stock-group { break-inside: avoid; margin-bottom: var(--gap); }
  .stock-none { column-span: all; }
  .stock-empty { margin-top: 36px; padding: 36px; }
  .stock-empty h2 { font-size: 44px; }
}

/* ---------- prices ---------- */
.price-nav { position: sticky; top: 65px; z-index: 10; margin-top: 8px; padding-top: 8px; padding-bottom: 8px; background: var(--bg); }
.price-groups { display: grid; gap: var(--gap); margin-top: 20px; }
.price-group { padding: 18px 18px 10px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); scroll-margin-top: 96px; }
.price-group h2 { margin-bottom: 10px; font-size: 30px; line-height: 1.08; }
@media (min-width: 900px) { .price-nav { top: 81px; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; } }
.prices .empty { margin-top: 20px; padding: 20px; border-radius: var(--r-m); background: var(--sand); }
@media (min-width: 900px) {
  .price-groups { display: block; columns: 2; column-gap: var(--gap); margin-top: 24px; }
  .price-group { break-inside: avoid; margin-bottom: var(--gap); padding: 24px 24px 14px; }
  .price-group h2 { font-size: 34px; }
}

/* ---------- the app's page ---------- */
.app-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0 8px; }
.app-hero .app-icon { width: 72px; height: 72px; }
.app-hero .page-title { margin-bottom: 10px; }
.stores { display: grid; gap: var(--gap); margin-top: 20px; }
.store { padding: 20px; border-radius: var(--r-l); background: var(--tile); }
.store h2 { margin-bottom: 12px; font-size: 34px; line-height: 1.08; }
.store p { margin: 10px 0 0; color: var(--ink-2); }
.store .more { margin: 10px 0 0; }
.store .lines-num li { padding: 3px 0 3px 2px; }
.app-side { margin-top: 24px; }
.app-note { margin: 18px 0 0; }
.app-side > .muted { margin-top: 10px; }
@media (min-width: 900px) {
  .app-hero { grid-template-columns: auto 1fr; gap: 28px; align-items: start; padding: 48px 0 12px; }
  .app-hero .app-icon { width: 104px; height: 104px; }
  .stores { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .store { padding: 32px; }
  .store h2 { font-size: 42px; }
  .app-page .perks { grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
  .app-page ol.perks { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- the text pages ---------- */
.doc-text .page-head { max-width: 860px; }
.gist { margin-top: 16px; padding: 20px; border-radius: var(--r-l); background: var(--tile); }
.gist h2 { margin-bottom: 8px; font-size: 32px; line-height: 1.08; }
.gist li { position: relative; padding: 5px 0 5px 22px; font-size: 16.5px; line-height: 1.45; }
.gist li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .5; }
.doc-text-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 24px; }
.toc { padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--surface); }
.toc li a { display: flex; align-items: center; min-height: 38px; font-size: 16px; text-decoration: none; }
.toc li a:hover { text-decoration: underline; }
.prose { max-width: 720px; }
.prose h2 { margin: 28px 0 8px; font-size: 32px; line-height: 1.08; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose p { line-height: 1.6; }
@media (min-width: 900px) {
  .gist { padding: 28px 32px; }
  .gist ul { columns: 2; column-gap: 40px; }
  .gist li { break-inside: avoid; }
  .doc-text-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px; }
  .toc { position: sticky; top: 104px; }
  .prose h2 { font-size: 38px; }
}

/* ---------- errors ---------- */
.error-page { padding-top: 40px; }
.error-code { margin: 0 0 4px; color: var(--muted); font: 600 28px/1.1 var(--serif); }
.error-code.is-404 { color: var(--green); font-size: 96px; line-height: .95; letter-spacing: -.03em; }
.error-page h1 { margin-bottom: 8px; font-size: clamp(38px, 10vw, 52px); line-height: 1.04; }
.error-page .cta-row { margin-top: 16px; }
.error-links { margin-top: 32px; }
@media (min-width: 900px) {
  .error-page { padding-top: 72px; }
  .error-code.is-404 { font-size: 160px; }
  .error-page h1 { font-size: 72px; }
  .error-links .ask-list { grid-template-columns: repeat(4, 1fr); }
  .error-links .ask-item { min-height: 150px; }
}

/* ---------- motion: quiet, and off when the phone asks for less ---------- */
.rv-wait { opacity: 0; transform: translateY(14px); }
.rv-in { transition: opacity .5s ease-out, transform .5s ease-out, background .2s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ask-item:hover, .dir:hover, .btn:active { transform: none; }
  details::details-content { transition: none !important; }
}
@media print {
  .top, .foot, .book-bar, .hero-book, .scroll-btns { display: none; }
  body { background: #fff; }
}
