/* Банька у Михаила, версия 2.
   Палитра взята из фотографий бани: сажа чана, сумерки над забором, пар, жар заката, дубовый лист. */

@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(assets/fonts/sofia-sans-extra-condensed-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(assets/fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(assets/fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(assets/fonts/sofia-sans-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(assets/fonts/sofia-sans-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans"; font-style: normal; font-weight: 1 1000; font-display: swap; src: url(assets/fonts/sofia-sans-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --soot: #1c2225;
  --dusk: #25323a;
  --steam: #e9ebe5;
  --steam-deep: #d9dcd4;
  --ember: #e8892b;
  --ember-deep: #9a4f0c;
  --oak: #5a6641;
  --pine: #d6b587;
  --muted: #566065;
  --line: #c3c8be;
  --display: "Sofia Sans XC", "Arial Narrow", sans-serif;
  --text: "Sofia Sans", "Segoe UI", Arial, sans-serif;
  --inset: clamp(16px, 4vw, 64px);
  --header-h: 72px;
  --section: clamp(72px, 10vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; overflow-x: clip; background: var(--steam); color: var(--soot); font: 400 18px/1.55 var(--text); -webkit-font-smoothing: antialiased; }
body.has-dialog { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ember-deep); outline-offset: 3px; }
.formats :focus-visible, .contact :focus-visible, .glass :focus-visible, .lightbox :focus-visible { outline-color: var(--ember); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 10px; top: -100px; z-index: 40; background: #fff; padding: 10px 18px; }
.skip:focus { top: 10px; }
.bound { width: calc(100% - 2 * var(--inset)); max-width: 1440px; margin-inline: auto; }

h2 { font: 800 clamp(52px, 8.2vw, 128px)/.9 var(--display); letter-spacing: -.012em; }

/* Кнопки и ссылки */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--ember); color: var(--soot); font: 700 21px/1 var(--display); letter-spacing: .012em; text-decoration: none; padding: 13px 20px 11px; border-radius: 4px; transition: background-color .2s; white-space: nowrap; }
.button:hover { background: #f5a04a; }
.button.big { font-size: 26px; padding: 18px 30px 15px; }
.button.full { width: 100%; }
.plain-link { font: 600 17px/1.3 var(--text); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: var(--ember); }
.plain-link:hover { text-decoration-color: currentColor; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--steam); transition: transform .4s cubic-bezier(.3, .7, .2, 1); }
.site-header.is-hidden { transform: translateY(-101%); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 25px/1 var(--display); letter-spacing: .005em; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; }
nav { display: flex; gap: clamp(16px, 2.2vw, 36px); }
nav a { font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--ember); text-decoration-thickness: 2px; }
nav a.nav-book { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.round-link { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line); }
.round-link:hover { background: var(--steam-deep); }
.menu-toggle { display: none; width: 44px; height: 44px; place-items: center; }

/* Первый экран: запотевшее окно */
.hero-inner { display: flex; flex-direction: column; gap: clamp(18px, 2.4vw, 30px); min-height: calc(100svh - var(--header-h)); padding-bottom: clamp(20px, 3vw, 36px); }
.glass { position: relative; flex: 1; min-height: 380px; border-radius: 6px; overflow: hidden; background: var(--dusk); touch-action: pan-y; isolation: isolate; }
.glass.is-live { cursor: grab; }
.glass-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.glass-fog { position: absolute; inset: 0; width: 100%; height: 100%; }
.glass-bloom { position: absolute; inset: 0; background: #f2f4ef; opacity: 0; pointer-events: none; }
/* Блик на стекле: виден только на телефоне и сдвигается вместе с наклоном. */
.glass-sheen { position: absolute; inset: 0 -30%; pointer-events: none; opacity: 0; background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, .28) 50%, rgba(255, 255, 255, 0) 62%); transition: transform .25s linear, opacity .6s; }
.hero-title { position: absolute; left: clamp(14px, 2.6vw, 44px); bottom: clamp(8px, 1.6vw, 26px); pointer-events: none; color: #fff; font: 800 clamp(96px, min(27vw, 31svh), 300px)/.84 var(--display); letter-spacing: -.012em; text-shadow: 0 2px 30px rgba(20, 26, 30, .45); }
.hero-title .line { display: block; width: fit-content; padding: .13em .05em .15em; margin: -.13em -.05em -.15em; }
/* Буквы работают как протёртые места: сквозь них видна резкая фотография. Геометрию фона задаёт motion.js. */
.glass.is-live .hero-title { text-shadow: none; }
.glass.is-live .hero-title .line {
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .42);
  background-image: linear-gradient(rgba(16, 22, 26, .46), rgba(16, 22, 26, .46)), url(assets/gallery/yard-evening.webp);
  background-repeat: no-repeat; background-size: 100% 100%, var(--bw) var(--bh); background-position: 0 0, var(--bx) var(--by);
  -webkit-background-clip: text; background-clip: text;
}
.steam { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.puff { position: absolute; left: 0; top: 0; width: var(--size); height: var(--size); margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2); border-radius: 50%; opacity: 0; will-change: transform, opacity; background: radial-gradient(closest-side, rgba(255, 255, 255, .8), rgba(255, 255, 255, .3) 55%, rgba(255, 255, 255, 0)); }
.glass-hint { position: absolute; left: clamp(14px, 2.6vw, 44px); top: clamp(14px, 2.2vw, 32px); pointer-events: none; font: 600 16px/1.2 var(--text); color: var(--soot); background: rgba(240, 242, 237, .86); padding: 9px 15px 8px; border-radius: 99px; opacity: 0; }
.ladle { position: absolute; right: clamp(14px, 2.2vw, 32px); bottom: clamp(14px, 2.2vw, 32px); display: inline-flex; align-items: center; gap: 10px; background: var(--soot); color: #fff; font: 700 22px/1 var(--display); letter-spacing: .012em; padding: 13px 20px 11px 16px; border-radius: 4px; transition: background-color .2s; }
.ladle:hover { background: #000; }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 48px; align-items: center; }
.hero-lead { max-width: 36em; font-size: clamp(18px, 1.5vw, 21px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }

/* Крупная фраза, которая прогревается по мере прокрутки */
.statement { padding-block: clamp(84px, 13vw, 210px) clamp(40px, 6vw, 90px); }
.statement-text { max-width: 12.5em; font: 800 clamp(48px, 8.8vw, 148px)/.9 var(--display); letter-spacing: -.012em; }

/* Что есть в бане */
/* Бегущая строка между первым экраном и услугами */
.ticker { overflow: hidden; padding-block: clamp(6px, 1.4vw, 20px); }
.ticker-track { display: flex; width: max-content; will-change: transform; }
.ticker-track span { flex: none; display: inline-flex; align-items: center; font: 800 clamp(64px, 11vw, 176px)/1.05 var(--display); letter-spacing: -.012em; white-space: nowrap; color: var(--steam); -webkit-text-stroke: 3px var(--soot); paint-order: stroke fill; }   /* обводка под заливкой: иначе у букв видны внутренние стыки контуров */
.ticker-track span::after { content: ""; width: .16em; height: .16em; margin-inline: .34em; border-radius: 50%; background: var(--ember); }
.quote-word { display: inline-block; }
.button { transition: background-color .2s, transform .15s; }
.button:active { transform: scale(.97); }
.services { padding-block: var(--section); }
.services-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(32px, 8vw, 140px); margin-top: clamp(8px, 2vw, 24px); }
.service { min-height: 74vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 14px; max-width: 31rem; transition: opacity .45s; }
.service h3 { font: 700 clamp(40px, 4.6vw, 72px)/.95 var(--display); }
.service-rate { font-weight: 600; color: var(--oak); }
.service-photo { display: none; }
.services-list.is-tracking .service { opacity: .28; }
.services-list.is-tracking .service.is-active, .services-list.is-tracking .service:focus-within { opacity: 1; }
.services-stage { --stage-h: min(76vh, 660px); position: sticky; top: calc(50vh - var(--stage-h) / 2); height: var(--stage-h); align-self: start; margin-top: calc(37vh - var(--stage-h) / 2); }
.stage-frame { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: var(--steam-deep); }
.stage-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.stage-frame img.is-current { opacity: 1; }
.stage-haze { position: absolute; inset: 0; z-index: 999; pointer-events: none; opacity: 0; background: radial-gradient(120% 90% at 50% 60%, rgba(255, 255, 255, .96), rgba(255, 255, 255, .62) 55%, rgba(255, 255, 255, .18)); }
/* Круги на воде: плоские эллипсы, потому что на воду смотрим под углом. */
.ripples { position: absolute; inset: 0; z-index: 1000; overflow: hidden; pointer-events: none; border-radius: inherit; }
.ripple { position: absolute; width: var(--d); height: calc(var(--d) * .42); border-radius: 50%; border: 3px solid rgba(255, 255, 255, .9); background: radial-gradient(closest-side, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .22)); box-shadow: 0 0 14px rgba(255, 255, 255, .45), 0 0 0 1px rgba(20, 30, 28, .18); will-change: transform, opacity; }
.photo-wrap { display: none; }
.motion .stage-frame img { transition: none; }

/* Цены */
.prices { padding-block: var(--section); background: var(--steam-deep); }
.prices-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; }
.party { display: flex; align-items: center; gap: 16px; font-weight: 600; padding-bottom: 6px; }
.stepper { display: inline-flex; align-items: center; background: var(--soot); color: #fff; border-radius: 4px; }
.stepper button { width: 48px; height: 48px; display: grid; place-items: center; }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 1.6em; text-align: center; font: 800 34px/1 var(--display); padding-top: 3px; }
.price-notice { max-width: 46em; margin-top: 26px; color: var(--muted); font-size: 16px; }
.price-groups { margin-top: clamp(28px, 4vw, 56px); display: grid; gap: clamp(36px, 5vw, 64px); }
.price-group h3 { font: 700 clamp(28px, 2.6vw, 38px)/1 var(--display); color: var(--oak); padding-bottom: 12px; }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(210px, auto) auto; gap: 6px 36px; align-items: center; padding-block: 20px; border-top: 1.5px solid var(--line); }
.price-what h4 { font: 700 clamp(26px, 2.5vw, 36px)/1.05 var(--display); }
.price-info { font-weight: 600; font-size: 16px; margin-top: 2px; }
.price-includes { margin-top: 6px; max-width: 44em; color: var(--muted); font-size: 16px; }
.price-sum { text-align: right; }
.price-value { display: block; font: 800 clamp(38px, 3.6vw, 54px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-value.is-text { font-size: clamp(24px, 2.2vw, 30px); font-weight: 700; color: var(--muted); }
.price-basis { display: block; font-size: 14.5px; color: var(--muted); }
.price-pick { font: 700 20px/1 var(--display); letter-spacing: .012em; padding: 12px 18px 10px; border: 1.5px solid var(--soot); border-radius: 4px; transition: background-color .2s, color .2s; }
.price-pick:hover, .price-pick[aria-pressed="true"] { background: var(--soot); color: #fff; }
.price-act { display: flex; justify-content: flex-end; min-width: 132px; }
.price-act .price-pick { width: 100%; }
.price-row { transition: box-shadow .3s; }
.price-row.is-picked { box-shadow: inset 4px 0 0 var(--ember); padding-left: 16px; }
.stepper.small button { width: 42px; height: 42px; }
.stepper.small output { font-size: 26px; min-width: 1.5em; }
/* Итог вечера держится у нижнего края, пока гость листает прайс. */
.evening { position: sticky; bottom: 0; z-index: 5; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 28px; align-items: center; margin-top: clamp(24px, 3vw, 40px); padding: 14px 18px 12px; background: var(--soot); color: #fff; border-radius: 6px; }
.evening-text strong { display: block; font: 700 clamp(24px, 2.2vw, 30px)/1.05 var(--display); }
.evening-text span { display: block; margin-top: 2px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.evening-sum { font: 800 clamp(34px, 3.2vw, 48px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fly { position: fixed; left: 0; top: 0; z-index: 30; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ember); pointer-events: none; }
.extras { margin-top: clamp(32px, 4vw, 56px); padding-top: 22px; border-top: 1.5px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 40px; font-size: 16.5px; }

/* С кем пойдём в баню */
.formats { padding-block: var(--section); background: var(--dusk); color: #fff; }
.formats-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 110px); align-items: start; }
.formats-photo { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 5; position: sticky; top: 40px; }
.formats-photo img { width: 100%; height: 116%; object-fit: cover; object-position: 50% 12%; }
.formats-lead { margin-top: 22px; max-width: 34em; color: rgba(255, 255, 255, .78); }
.format-list { margin-block: clamp(24px, 3vw, 40px); border-bottom: 1.5px solid rgba(255, 255, 255, .18); }
.format { border-top: 1.5px solid rgba(255, 255, 255, .18); }
.format h3 { font: inherit; }
.format button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 16px 0 12px; text-align: left; font: 700 clamp(32px, 3.7vw, 56px)/1 var(--display); color: rgba(255, 255, 255, .5); transition: color .3s; }
.format button::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--ember); flex: none; transform: scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.format button:hover { color: rgba(255, 255, 255, .85); }
.format button[aria-expanded="true"] { color: #fff; }
.format button[aria-expanded="true"]::after { transform: scale(1); }
.format-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.3, .7, .2, 1); }
.format:has(button[aria-expanded="true"]) .format-body { grid-template-rows: 1fr; }
.format-body > div { overflow: hidden; }
.format-body p { max-width: 32em; padding-bottom: 18px; color: rgba(255, 255, 255, .82); }

/* Фотографии */
.gallery { padding-block: var(--section) clamp(48px, 6vw, 80px); }
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px 40px; margin-bottom: clamp(24px, 3.4vw, 48px); }
.gallery-head .plain-link { margin-bottom: 12px; }
.gallery-rows { display: grid; gap: 14px; }
.gallery-row { padding-inline: var(--inset); overflow-x: auto; scrollbar-width: none; }
.gallery-track { display: flex; gap: 14px; width: max-content; }
.gallery-rows.is-drifting .gallery-track { cursor: grab; }
.gallery-rows.is-drifting .gallery-track:active { cursor: grabbing; }
.gallery-row::-webkit-scrollbar { display: none; }
.gallery-rows.is-drifting { overflow-x: clip; }
.gallery-rows.is-drifting .gallery-row { overflow: visible; width: max-content; will-change: transform; }
.gallery-item { flex: none; height: clamp(190px, 25vw, 340px); aspect-ratio: var(--ratio); border-radius: 5px; overflow: hidden; background: var(--steam-deep); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-credit { margin-top: 20px; color: var(--muted); font-size: 15.5px; }

/* Отзыв */
.reviews { padding-block: clamp(48px, 7vw, 110px) var(--section); }
.review blockquote { font: 800 clamp(48px, 8.4vw, 136px)/.92 var(--display); letter-spacing: -.012em; max-width: 9.5em; }
.review figcaption { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: 16.5px; color: var(--muted); }
.review figcaption strong { color: var(--soot); }
.review-ask { margin-top: 36px; padding-top: 20px; border-top: 1.5px solid var(--line); max-width: 40em; }

/* Контакты и подвал */
.contact { position: relative; overflow: hidden; background: var(--soot); color: #fff; padding-top: calc(var(--section) + 110px); --lit: 1; }
/* За контактами — вечерний двор; он светлеет, когда зажигается гирлянда. */
.contact-photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 38%; opacity: calc(.05 + var(--lit) * .21); -webkit-mask-image: linear-gradient(#000 45%, transparent 94%); mask-image: linear-gradient(#000 45%, transparent 94%); }
.garland { position: absolute; left: 0; right: 0; top: 0; height: 180px; pointer-events: none; }
.garland svg { display: block; width: 100%; height: 180px; overflow: visible; }
.garland-wire { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.garland-far { opacity: calc(.12 + var(--lit) * .5); filter: blur(1.2px); }
.garland-far circle { fill: #ffc86a; }
.lamp-cord { stroke: rgba(255, 255, 255, .4); stroke-width: 1.2; }
.lamp-socket { fill: #15181a; stroke: rgba(255, 255, 255, .3); stroke-width: .6; }
.lamp-glass { fill: rgba(196, 204, 206, .32); stroke: rgba(255, 255, 255, .34); stroke-width: .6; }
/* Тёплый свет от гирлянды ложится на верх блока. */
.contact::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 420px; pointer-events: none; opacity: var(--lit); background: radial-gradient(70% 100% at 50% 0%, rgba(255, 176, 74, .26), rgba(255, 176, 74, 0)); }
.bulb-lamp { fill: #ffd58a; }
.bulb-glow { fill: #f5b54c; opacity: .42; }
.contact-layout, .contact .footer { position: relative; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 100px); align-items: end; }
.contact-main p { margin-block: 24px 30px; max-width: 34em; color: rgba(255, 255, 255, .8); }
.contact-links { display: grid; }
.contact-links a { display: flex; align-items: center; gap: 18px; padding-block: 20px; border-top: 1.5px solid rgba(255, 255, 255, .18); text-decoration: none; }
.contact-links a:last-child { border-bottom: 1.5px solid rgba(255, 255, 255, .18); }
.contact-links .icon { width: 28px; height: 28px; color: var(--ember); }
.contact-links small { display: block; font-size: 14.5px; color: rgba(255, 255, 255, .62); }
.contact-links strong { display: block; font: 700 clamp(30px, 3vw, 44px)/1.05 var(--display); transition: color .2s; }
.contact-links a:hover strong { color: var(--ember); }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: var(--section); padding-block: 24px; border-top: 1.5px solid rgba(255, 255, 255, .18); font-size: 16px; }

/* Заявка: боковая панель */
dialog { border: 0; padding: 0; color: var(--soot); }
dialog::backdrop { background: rgba(20, 26, 30, .6); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.sheet { margin: 0 0 0 auto; width: min(580px, 100vw); max-width: none; height: 100dvh; max-height: none; background: var(--steam); overflow-y: auto; }
.sheet .dialog-close { background: var(--steam-deep); }
.sheet[open] { animation: sheet-in .5s cubic-bezier(.2, .8, .2, 1); }
.sheet[open]::backdrop { animation: fade-in .4s; }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet-body { padding: 30px clamp(18px, 4vw, 36px) 36px; }
.sheet-body h2 { font-size: clamp(44px, 6vw, 60px); padding-right: 52px; }
.form-intro { margin-block: 14px 22px; color: var(--muted); font-size: 16.5px; }
#book-form label, .booking-choices legend { display: block; font-weight: 600; font-size: 15.5px; }
#book-form > label { margin-top: 18px; }
.optional { font-weight: 400; color: var(--muted); }
#book-form input:not([type="checkbox"]), #book-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; font-weight: 400; font-size: 17px; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; }
#book-form input:not([type="checkbox"]):focus-visible, #book-form textarea:focus-visible { outline-offset: 0; border-color: var(--ember-deep); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
/* День и время в заявке: календарь и сеансы по расписанию хозяина. */
.when:focus { outline: none; }
.when-head { display: grid; gap: 8px; }
.when-label { font-weight: 600; font-size: 15.5px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-nav strong { font: 700 28px/1 var(--display); padding-top: 3px; }
.cal-nav button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--steam-deep); }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.cal-grid { margin-top: 4px; }
.cal-day { height: 46px; display: grid; place-items: center; border-radius: 4px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.cal-day:not(:disabled):hover { border-color: var(--ember-deep); }
.cal-day:disabled { background: none; border-color: transparent; color: #8c948e; font-weight: 400; cursor: default; }
.cal-day.is-off, .cal-day.is-full { text-decoration: line-through; }
.cal-day.is-today { box-shadow: inset 0 -3px 0 var(--ember); }
.cal-day[aria-pressed="true"] { background: var(--soot); border-color: var(--soot); color: #fff; }
.when-note { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.when-error { margin-top: 8px; font-weight: 600; font-size: 15.5px; color: #a3261a; }
.slots-block { margin-top: 18px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; margin-top: 8px; }
.slot { height: 46px; border-radius: 4px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 17px; font-variant-numeric: tabular-nums; }
.slot:not(:disabled):hover { border-color: var(--ember-deep); }
.slot:disabled { background: none; border-color: transparent; color: #8c948e; font-weight: 400; text-decoration: line-through; cursor: default; }
.slot[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); }
#book-form .when + label { margin-top: 22px; }
.stepper.wide { margin-top: 6px; }
#book-form .stepper.wide input { width: 76px; margin: 0; padding: 4px 0 0; text-align: center; background: none; border: 0; color: #fff; font: 800 30px/1 var(--display); appearance: textfield; -moz-appearance: textfield; }
.stepper.wide input::-webkit-inner-spin-button { appearance: none; }
.booking-choices { border: 0; padding: 0; margin: 26px 0 0; min-width: 0; }
.choice-hint { margin-top: 4px; font-size: 15px; color: var(--muted); }
.choice-group-title { font: 700 26px/1 var(--display); color: var(--oak); margin-top: 22px; padding-bottom: 8px; }
.booking-option { border-top: 1.5px solid var(--line); padding-block: 11px; }
#book-form .choice-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; cursor: pointer; font-weight: 400; }
.choice-line input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--ember-deep); }
.choice-line strong { display: block; font-weight: 600; font-size: 17px; }
.choice-line small { display: block; font-size: 14.5px; color: var(--muted); }
.choice-line b { font-weight: 600; font-size: 15.5px; white-space: nowrap; }
#book-form .quantity-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0 32px; font-size: 15px; }
#book-form .quantity-line input { width: 88px; margin: 0; padding: 8px 10px; }
.booking-total { position: sticky; bottom: 0; z-index: 1; margin-top: 22px; padding: 14px 16px 12px; background: var(--soot); color: #fff; border-radius: 4px; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; }
.booking-total strong { font-weight: 500; font-size: 15.5px; }
.booking-total span { font: 800 30px/1 var(--display); }
.booking-total small { grid-column: 1 / -1; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.booking-total small:empty { display: none; }
.booking-total.is-idle { position: static; }
#book-form .button.full { margin-top: 22px; }
#book-review > * + * { margin-top: 16px; }
#book-review { margin-top: 14px; }
.message-preview { white-space: pre-wrap; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: 16px; font-size: 16px; }
#send-status:empty { display: none; }
#send-status { font-size: 15.5px; color: var(--muted); }

/* Просмотр фотографий */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: rgba(20, 26, 30, .97); color: #fff; padding: 16px clamp(16px, 3vw, 40px) 20px; }
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; animation: fade-in .3s; }
.lightbox .dialog-close { background: rgba(255, 255, 255, .12); }
#lightbox-img { margin: auto; max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 4px; min-height: 0; }
.lightbox-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; }
.lightbox-footer a { font-size: 14.5px; color: rgba(255, 255, 255, .7); }
.lightbox-nav { display: flex; gap: 8px; }
.lightbox-nav button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.lightbox-nav button:hover { background: rgba(255, 255, 255, .24); }

/* Состояния до старта анимаций. Если скрипт не загрузился, класс motion снимается и всё видно сразу. */
.motion [data-steam] { opacity: 0; }
.motion .glass .hero-title .line { clip-path: inset(0 100% 0 0); }
.motion .ladle { opacity: 0; }
.motion .glass:not(.is-live) .glass-bloom { opacity: .92; }

@media (max-width: 1100px) {
  nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--steam); padding: 6px var(--inset) 18px; border-bottom: 1.5px solid var(--line); display: none; }
  nav.open { display: flex; }
  nav a { font: 700 30px/1 var(--display); padding: 13px 0 10px; border-top: 1.5px solid var(--line); }
  .menu-toggle { display: grid; }
  .round-link { display: none; }
}
@media (max-width: 900px) {
  body { font-size: 17px; }
  .hero-foot { grid-template-columns: 1fr; }
  .glass { min-height: 56svh; }
  .services-layout { grid-template-columns: 1fr; }
  .services-stage { display: none; }
  .service { min-height: 0; max-width: none; padding-block: 26px; }
  .service-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
  .photo-wrap { display: block; position: relative; width: 100%; border-radius: 6px; overflow: hidden; margin-bottom: 6px; }
  .photo-wrap .service-photo { margin-bottom: 0; border-radius: 0; }
  .services-list.is-tracking .service { opacity: 1; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; }
  .price-what { grid-column: 1 / -1; }
  .price-sum { text-align: left; }
  .evening { grid-template-columns: minmax(0, 1fr) auto; }
  .evening-text { grid-column: 1 / -1; }
  .formats-layout, .contact-layout { grid-template-columns: 1fr; }
  .formats-photo { position: static; aspect-ratio: 4 / 3; }
  .formats-photo img { object-position: 50% 18%; }
}
@media (max-width: 520px) {
  /* На телефоне кнопка брони не помещается в шапку рядом с названием: она переезжает в меню. */
  .header-inner { gap: 12px; }
  .brand { min-width: 0; flex-shrink: 1; }
  .brand span { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .header-actions .button { display: none; }
  nav a.nav-book { display: block; color: var(--ember-deep); }
  .button.big { width: 100%; }
  .glass-hint { font-size: 14.5px; max-width: calc(100% - 190px); border-radius: 16px; }
  .ladle { font-size: 20px; bottom: auto; top: 14px; right: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .sheet { width: 100vw; }
  .evening-text span { display: none; }   /* на телефоне итог занимает одну строку, список позиций есть в заявке */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Новые фотографии карточек вертикальные: в горизонтальной рамке показываем их самую содержательную часть. */
img[src$="whisks-bench.webp"] { object-position: 50% 58%; }
img[src$="chan-spruce.webp"] { object-position: 50% 64%; }
img[src$="tea-room.webp"] { object-position: 50% 66%; }

/* Мастер с вениками стоит во весь рост: в горизонтальной рамке показываем верх снимка, чтобы голова была целиком. */
img[src$="master-with-whisks.webp"] { object-position: 50% 7%; }
