/* «Мастер-Сервис» v3 — «Ночной бокс». Источник — Figma «webgena», экран 45:477 (вариант A) и кадр галереи 59:963.
   Глубокий синий фон клиента, жёлтый акцент, светящиеся рамки иконок и главная кнопка — только они светятся.
   Значения — переменные «МастерСервис A — цвет» и стили «МастерСервис A/*» из макета. */

@font-face { font-family: "Manrope"; src: url(../fonts/manrope-cyrillic.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; src: url(../fonts/manrope-latin.woff2) format("woff2"); font-weight: 400 800; font-display: swap; 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: "Manrope"; src: url(../fonts/manrope-latin-ext.woff2) format("woff2"); font-weight: 400 800; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg: #00206c;
  --surface: #072c83;
  --surface-2: #1340aa;
  --line: #234595;
  --line-strong: #2f62da;
  --ink: #f2f5f9;
  --muted: #c5d4f7;
  --accent: #e8b006;
  --accent-ink: #0b0d12;
  --blue: #99b7ff;
  --blue-soft: rgb(153 183 255 / .14);
  --blue-line: #6693ff;
  --glow-blue: rgb(61 119 255 / .6);
  --glow-icon: rgb(102 147 255 / .9);
  --glow-accent: rgb(232 176 6 / .55);
  --danger: #ffb4ab;
  --focus: #ffd75e;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 28px; --s8: 32px;
  --s10: 40px; --s12: 48px; --s14: 56px; --s16: 64px; --s30: 120px;
  --r8: 8px; --r12: 12px; --r16: 16px; --r40: 40px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 120px);
  --header: 80px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --t: 160ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + var(--s4)); background: var(--bg); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }
.accent { color: var(--accent); }
.dotsep { margin-inline: var(--s1); opacity: .6; }
.nowrap { white-space: nowrap; }

/* ---------- типографика (стили «МастерСервис A/*») ---------- */
.h1 { font-size: clamp(40px, 2rem + 2.6vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.h2 { font-size: clamp(32px, 1.4rem + 1.8vw, 48px); line-height: 1.08; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
.h3 { font-size: clamp(19px, 1rem + .3vw, 22px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1rem + .2vw, 19px); line-height: 1.55; color: var(--muted); max-width: 640px; text-wrap: pretty; }
.eyebrow { display: flex; align-items: center; gap: var(--s4); font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--accent); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); border: 1px solid transparent; border-radius: var(--r8);
  font-size: 16px; line-height: 1.2; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color var(--t), border-color var(--t), transform var(--t); }
.btn:active { transform: translateY(1px); }
.btn--l { min-height: 56px; padding: 0 var(--s7); }
.btn--s { min-height: 44px; padding: 0 var(--s5); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #f4bf1a; }
.btn--accent.btn--l { box-shadow: 0 6px 30px -4px var(--glow-accent); }   /* «Свечение/Кнопка» — только у главной жёлтой */
.btn--line { border-color: var(--line-strong); color: var(--ink); }
.btn--line:hover { background: var(--surface); }
.btn--line .btn__icon { color: var(--accent); }
.btn--block { width: 100%; }
.btn__arrow, .btn__icon { width: 18px; height: 18px; }
.btn[disabled] { opacity: .6; cursor: progress; }
.round { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--accent); transition: background-color var(--t); }
.round:hover { background: var(--surface-2); }
.round .icon { width: 18px; height: 18px; }
.link { padding: 0; border: 0; background: none; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* ---------- рамка иконки со свечением («A/Icon frame») ---------- */
.iframe { display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1.5px solid var(--blue-line); border-radius: var(--r12); color: var(--blue);
  background: radial-gradient(circle, rgb(61 119 255 / .35), rgb(61 119 255 / 0) 70%), var(--blue-soft);
  box-shadow: 0 0 22px var(--glow-blue); }
.iframe .icon { width: 24px; height: 24px; filter: drop-shadow(0 0 6px var(--glow-icon)); }

/* ---------- переключатели, вкладки ---------- */
.tabs { display: inline-flex; gap: var(--s1); padding: var(--s1); border-radius: var(--r12); background: var(--surface); max-width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip input + span, .chip--tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--r8); background: var(--surface-2);
  color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 600; transition: background-color var(--t), color var(--t), border-color var(--t); }
.chip:hover input + span, .chip--tab:hover { border-color: var(--line-strong); }
.chip input:checked + span, .chip--tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.chip input:disabled + span { opacity: .45; cursor: not-allowed; }
.chip--tab { white-space: nowrap; }

/* ---------- полоса демо и шапка ---------- */
.demo { background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.4; }
.demo .wrap { padding-block: var(--s2); }
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: var(--s10); min-height: var(--header); }
.logo { display: grid; gap: 2px; text-decoration: none; flex: none; }
.logo b { font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.logo span { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--muted); }
.nav { display: flex; justify-content: center; gap: var(--s8); flex: 1; }
.nav a { font-weight: 500; color: var(--muted); text-decoration: none; line-height: 1.5; }
.nav a:hover { color: var(--ink); }
.top__contact { display: grid; justify-items: end; gap: 2px; }
.top__phone { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 600; line-height: 1.4; text-decoration: none; white-space: nowrap; }
.top__phone .icon { width: 18px; height: 18px; color: var(--accent); }
.top__addr { font-size: 13px; line-height: 1.4; color: var(--muted); white-space: nowrap; }
@media (max-width: 1199px) { .nav { display: none; } .top__contact { margin-left: auto; } }
@media (max-width: 719px) {
  :root { --header: 64px; }
  .top__in { gap: var(--s3); }
  .top__addr { display: none; }
  .top__phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; }
  .top__phone span { display: none; }
  .logo span { display: none; }
}
@media (max-width: 379px) {
  .top__in { gap: var(--s2); }
  .logo b { font-size: 16px; }
  .top .btn--s { padding-inline: var(--s3); font-size: 15px; }
  .top__phone { width: 40px; height: 40px; }
}

/* ---------- первый экран ---------- */
/* фото — блоком по правому краю колонки контента, не во всю ширину окна: справа скругление, сверху отступ от шапки (решение пользователя 2026-11-16) */
.hero { --photo-right: max(var(--gutter), (100% - var(--wrap)) / 2); position: relative; isolation: isolate; overflow: hidden; min-height: 583px; display: flex; align-items: center; margin-top: var(--s5); }
.hero__in { display: grid; gap: var(--s8); padding-block: var(--s16); }   /* без position: фото слайда считается от всего экрана */
.hero .switch, .slide__text { position: relative; z-index: 2; }
.switch { justify-self: start; display: grid; gap: var(--s2); }
@media (max-width: 479px) {
  .hero .chip--tab { padding: 0 var(--s3); font-size: 15px; }
}
@media (max-width: 379px) {
  .switch { justify-self: stretch; }
  .hero .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hero .chip--tab { justify-content: center; padding: 0 var(--s2); font-size: 14px; }
}
.slide { display: contents; }
.slide__text { display: grid; gap: var(--s8); justify-items: start; max-width: 700px; }
.hero__photo { position: absolute; z-index: 0; top: 0; right: var(--photo-right); width: calc((100% - 2 * var(--photo-right)) * .65); height: 100%; object-fit: cover; border-radius: 0 var(--r40) var(--r40) 0; }
.hero::before, .hero__shade { content: ""; position: absolute; z-index: 1; pointer-events: none; }
.hero::before { top: 0; right: var(--photo-right); width: calc((100% - 2 * var(--photo-right)) * .65); height: 100%; border-radius: 0 var(--r40) var(--r40) 0; background: linear-gradient(90deg, var(--bg) 0%, rgb(0 32 108 / .6) 50%, rgb(0 32 108 / .2) 100%); }
.hero__shade { left: 0; right: 0; bottom: 0; height: 260px; background: linear-gradient(180deg, rgb(0 32 108 / 0), var(--bg)); }
.hero__price { font-size: clamp(24px, 1.1rem + .9vw, 30px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (prefers-reduced-motion: no-preference) { .slide:not([hidden]) .hero__photo { animation: fade 320ms ease; } @keyframes fade { from { opacity: 0; } } }
@media (max-width: 899px) {
  .hero { min-height: 0; margin-top: 0; }
  .hero__photo { right: 0; width: 100%; border-radius: 0; }
  .hero::before { right: 0; width: 100%; border-radius: 0; background: linear-gradient(90deg, rgb(0 32 108 / .92), rgb(0 32 108 / .55)); }
  .hero__in { padding-block: var(--s12) var(--s16); }
}

/* ---------- секции ---------- */
.section { padding-block: var(--s16); }
.section--last { padding-bottom: var(--s30); }
.shead { display: grid; gap: var(--s4); margin-bottom: var(--s10); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r16); }

/* ---------- расчёт ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s8); align-items: start; padding: var(--s8); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r16); }
.calc__form { display: grid; gap: var(--s7); min-width: 0; }
.field { display: grid; gap: var(--s3); min-width: 0; }
.field > legend, .field > label { font-size: 14px; line-height: 1.5; color: var(--muted); }
.field > legend { margin-bottom: var(--s3); }
.radii { display: flex; flex-wrap: wrap; gap: 10px; }
.radius { position: relative; display: inline-flex; }
.radius input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.radius span { display: grid; place-items: center; width: 56px; height: 56px; border: 5px solid var(--line-strong); border-radius: 50%; background: var(--surface-2); font-weight: 600; transition: background-color var(--t), border-color var(--t), color var(--t); }
.radius:hover span { border-color: var(--blue-line); }
.radius input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.radius input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.opts { display: grid; gap: var(--s2); }
.opt, .check { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: var(--s1) var(--s4); cursor: pointer; }
.opt { min-height: 56px; padding: var(--s3) var(--s5); border: 1px solid var(--line); border-radius: var(--r8); background: var(--surface-2); transition: border-color var(--t); }
.opt input, .check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.box { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--muted); border-radius: 6px; color: transparent; }
.box .icon { width: 14px; height: 14px; }
.opt input:checked ~ .box, .check input:checked ~ .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt:has(input:checked) { border-color: var(--accent); }
.opt input:focus-visible ~ .box, .check input:focus-visible ~ .box { outline: 2px solid var(--focus); outline-offset: 3px; }
.opt__title { font-weight: 600; line-height: 1.4; }
.opt__meta { font-size: 14px; line-height: 1.5; color: var(--muted); white-space: nowrap; }
.calc__side { position: sticky; top: calc(var(--header) + var(--s4)); }
.receipt { display: grid; gap: var(--s5); padding: var(--s7); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r16); }
.receipt__rows { display: grid; gap: var(--s4); }
.brow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: baseline; }
.brow dt { display: grid; gap: 2px; font-weight: 600; line-height: 1.4; }
.brow dt small { font-size: 14px; font-weight: 400; color: var(--muted); }
.brow dd { font-weight: 600; white-space: nowrap; }
.receipt__total { display: grid; gap: var(--s2); padding-top: var(--s5); border-top: 1px solid var(--line); }
.receipt__total span { font-size: 14px; color: var(--muted); }
.receipt__total output { font-size: clamp(44px, 2rem + 1.6vw, 56px); line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
.receipt__total output.is-text { font-size: 24px; line-height: 1.25; white-space: normal; }
.receipt__note { font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1023px) { .calc { grid-template-columns: minmax(0, 1fr); } .calc__side { position: static; } }
@media (max-width: 599px) {
  .calc { padding: var(--s4); margin-inline: calc(-1 * var(--s2)); }
  .opt { grid-template-columns: 22px minmax(0, 1fr); padding-inline: var(--s4); }
  .opt__meta { grid-column: 2; }
  .radius span { width: 52px; height: 52px; border-width: 4px; }
}

/* ---------- акции ---------- */
#promo .h2 { margin-bottom: var(--s8); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: var(--s8); min-height: 320px; padding: var(--s8); border-radius: var(--r16); isolation: isolate; }
.tile__label { font-size: 13px; line-height: 1.4; font-weight: 500; }
.tile__text { display: grid; gap: var(--s2); }
.tile__big { font-size: clamp(44px, 2rem + 1.8vw, 64px); line-height: 1.06; font-weight: 800; letter-spacing: -0.03em; }
.tile__title { max-width: 400px; font-size: clamp(19px, 1rem + .3vw, 22px); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.tile--accent { background: var(--accent); color: var(--accent-ink); }
.tile--accent::before, .tile--accent::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: solid rgb(11 13 18 / .08); }
.tile--accent::before { width: 380px; height: 380px; border-width: 44px; right: -122px; top: 90px; }
.tile--accent::after { width: 150px; height: 150px; border-width: 14px; right: -7px; top: 205px; }
.tile--photo { background: var(--surface); }
.tile__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.tile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(0 32 108 / .95), rgb(0 32 108 / .55) 60%, rgb(0 32 108 / .15)); }
.tile--photo .tile__label { color: var(--muted); }
.tile--photo .tile__big { color: var(--accent); }
@media (max-width: 767px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile { min-height: 240px; padding: var(--s6); } }

/* ---------- цены: карточки ---------- */
#prices .tabs { margin-bottom: var(--s10); }
.scards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.scard { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r16); transition: border-color var(--t); }
.scard:hover { border-color: var(--line-strong); }
.scard__photo { position: relative; height: 200px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.scard__photo img { width: 100%; height: 100%; object-fit: cover; }
.scard__num { position: absolute; top: var(--s4); left: var(--s4); padding: var(--s1) var(--s3); border-radius: var(--r8); background: rgb(0 32 108 / .85); color: var(--accent); font-size: 28px; line-height: 1; font-weight: 800; letter-spacing: -0.01em; }
.scard__body { display: flex; flex-direction: column; gap: var(--s4); flex: 1; padding: var(--s6); }
.scard__head { display: flex; align-items: center; gap: var(--s4); }
.scard__items { font-size: 14px; line-height: 1.5; color: var(--muted); }
.scard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin-top: auto; }
.scard__price { display: grid; gap: 2px; }
.scard__price small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.scard__price b { font-size: clamp(26px, 1.2rem + .6vw, 30px); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.scard { cursor: pointer; }   /* вся карточка открывает прайс: клик ловит скрипт, кнопка со стрелкой — для клавиатуры */
.scard__open:focus-visible { outline: 2px solid var(--focus); }
@media (max-width: 1023px) { .scards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .scards { grid-template-columns: minmax(0, 1fr); } .scard__photo { height: 180px; } }

/* ---------- окно полного прайса ---------- */
dialog { color: var(--ink); }
dialog::backdrop { background: rgb(0 10 40 / .75); }
.sheet { width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line); border-radius: var(--r16); background: var(--surface); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s6) var(--s6) var(--s4); border-bottom: 1px solid var(--line); }
.sheet__body { display: grid; gap: var(--s4); padding: var(--s6); overflow: auto; }
.sheet__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: var(--s4) var(--s6) var(--s6); border-top: 1px solid var(--line); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable th, .ptable td { padding: var(--s3) var(--s2); text-align: left; vertical-align: baseline; }
.ptable thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
.ptable tbody tr + tr > * { border-top: 1px solid var(--line); }
.ptable tbody th { font-weight: 600; white-space: nowrap; }
.ptable--list tbody th { white-space: normal; }
.ptable tbody th small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.ptable td { font-weight: 700; white-space: nowrap; }
.ptable--list td { text-align: right; }
@media (max-width: 599px) { .sheet__foot { flex-direction: column; align-items: stretch; } .sheet__foot .btn { width: 100%; } }

/* ---------- почему к нам едут ---------- */
.wcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.wcard { display: grid; align-content: start; gap: var(--s5); padding: var(--s7); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r16); }
.wcard__num { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--accent); }
@media (max-width: 1023px) { .wcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) { .wcards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- фото ---------- */
.photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: var(--s3); }
.photo--wide { grid-column: span 2; grid-row: span 2; }
.photo button { display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--r12); overflow: hidden; background: var(--surface); cursor: zoom-in; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo button:hover img { transform: scale(1.03); }
@media (max-width: 899px) { .photos { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; } }

/* ---------- галерея (кадр 59:963) ---------- */
.lb { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: var(--s8) var(--gutter); border: 0; background: rgb(0 32 108 / .97); }
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--s5); }
.lb::backdrop { background: transparent; }
.lb__top { display: flex; align-items: center; justify-content: space-between; }
.lb__count { font-weight: 500; color: var(--muted); }
.lb__stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--s6); min-height: 0; }
.lb__fig { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: var(--s4); height: 100%; min-height: 0; }
.lb__fig img { width: 100%; height: 100%; object-fit: contain; border-radius: var(--r16); }
.lb__fig figcaption { color: var(--ink); }
.lb__nav { width: 56px; height: 56px; background: var(--surface); color: var(--ink); }
.lb__thumbs { display: flex; justify-content: center; gap: var(--s2); overflow-x: auto; padding: var(--s1); }
.lb__thumb { flex: none; width: 84px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: var(--r8); overflow: hidden; background: none; opacity: .55; }
.lb__thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }
@media (max-width: 719px) { .lb { padding: var(--s4); } .lb__stage { grid-template-columns: minmax(0, 1fr); } .lb__nav { display: none; } .lb__thumb { width: 64px; height: 44px; } }

/* ---------- запись ---------- */
.booking { display: grid; grid-template-columns: 472px minmax(0, 1fr); gap: var(--s14); align-items: start; }
.booking__head { display: grid; gap: var(--s6); }
.booking__panel { padding: var(--s8); }
.bform, .done { display: grid; gap: var(--s6); }
.bform__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.days { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s1); scroll-snap-type: x mandatory; }
.day { position: relative; flex: none; scroll-snap-align: start; }
.day input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.day span { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: var(--s2) var(--s3); border: 1px solid var(--line); border-radius: var(--r8); background: var(--surface-2); line-height: 1.15; }
.day b { font-size: 20px; font-weight: 700; }
.day small { font-size: 13px; font-weight: 500; color: var(--muted); }
.day input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.day input:checked + span small { color: var(--accent-ink); }
.day input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 3px; }
.input { width: 100%; min-height: 52px; padding: 0 var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r8); background: var(--bg); font-size: 16px; }
textarea.input { min-height: 104px; padding-block: var(--s3); resize: vertical; }
.input::placeholder { color: var(--muted); opacity: .8; }
.input:focus { border-color: var(--blue-line); outline: none; }
.input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.optional { color: var(--muted); }
.bform__row--top { align-items: start; }
.hint { margin-top: calc(-1 * var(--s1)); font-size: 14px; line-height: 1.5; color: var(--muted); }   /* под своим полем: ближе к нему, чем к следующему */
.input--plate { text-transform: uppercase; letter-spacing: .04em; }
.input--plate::placeholder { text-transform: none; letter-spacing: 0; }
.check { grid-template-columns: 22px minmax(0, 1fr); font-size: 14px; color: var(--muted); }
.error { font-size: 14px; font-weight: 600; color: var(--danger); }
.error a { color: inherit; }
.attach { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r8); background: var(--surface-2); font-size: 14px; }
.done { justify-items: start; }
.info { display: grid; gap: var(--s4); align-content: start; padding: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r16); }
.info__label { font-size: 13px; line-height: 1.4; font-weight: 500; color: var(--muted); }
.info__value { margin-top: var(--s1); font-weight: 600; line-height: 1.4; }
.info__value a, .info__sub a { text-decoration: none; }
.info__value a:hover, .info__sub a:hover { text-decoration: underline; }
.info__sub { margin-top: var(--s1); font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1023px) { .booking { grid-template-columns: minmax(0, 1fr); gap: var(--s8); } }
@media (max-width: 599px) { .booking__panel { padding: var(--s5) var(--s4); } .bform__row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 588px) minmax(0, 1fr); gap: var(--s8); align-items: stretch; }
.contacts__info { display: grid; gap: var(--s6); align-content: start; justify-items: start; }
.contacts__info .shead { margin-bottom: 0; }
.infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); width: 100%; }
.contacts__photo { position: relative; overflow: hidden; min-height: 420px; border: 1px solid var(--line); border-radius: var(--r16); }
.contacts__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contacts__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 32 108 / 0) 40%, rgb(0 32 108 / .75)); }
@media (max-width: 1023px) { .contacts { grid-template-columns: minmax(0, 1fr); } .contacts__photo { min-height: 0; aspect-ratio: 4 / 3; } }
@media (max-width: 479px) { .infos { grid-template-columns: minmax(0, 1fr); } }

/* ---------- подвал ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
/* подвал по макету (Figma 47:836): название | описание и почта столбиком … подпись справа, всё приглушённым мелким */
.foot__in { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--s6) var(--s8); padding-block: var(--s8); line-height: 1.5; }
.foot__main { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s3) var(--s8); }
.foot__info { display: grid; gap: var(--s2); justify-items: start; }
.foot__mail { color: inherit; text-decoration: none; }
.foot__mail:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.credit a:hover { color: var(--accent); }
.foot__logo { font-size: 22px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- микроанимации ----------
   Кривая одна на сайт; длительности 120–260 мс; наведение — только на устройствах с мышью;
   при «уменьшить движение» сдвиги и появление отключены, смена цвета остаётся. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* нажатие: кнопки, переключатели, радиусы, дни, карточки-кнопки */
.btn, .round, .chip input + span, .chip--tab, .radius span, .day span, .photo button, .lb__thumb { transition-property: background-color, border-color, color, box-shadow, transform, opacity; transition-duration: 160ms; transition-timing-function: var(--ease-out); }
.btn:active, .round:active, .chip:active input + span, .chip--tab:active, .radius:active span, .day:active span { transform: scale(0.97); }
.btn:active { transform: scale(0.98); }

/* галочка «впрыгивает» */
.box { transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.box .icon { transform: scale(0.6); opacity: 0; transition: transform 200ms var(--ease-out), opacity 120ms ease; }
input:checked ~ .box .icon { transform: none; opacity: 1; }

/* выбранный радиус — обод «садится» на место */
.radius input:checked + span { transform: scale(1.06); }
.radius:active input:checked + span { transform: scale(0.97); }

/* стрелка в кнопке сдвигается навстречу */
.btn__arrow { transition: transform 200ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow { transform: translateX(3px); }
  .scard { transition: border-color 200ms ease, transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out); }
  .scard__photo img, .photo img { transition: transform 400ms var(--ease-out); }
  .scard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgb(0 0 0 / .6); }
  .scard:hover .scard__photo img { transform: scale(1.04); }
  .scard:hover .scard__open { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .scard:hover .scard__open .icon { transform: translateX(2px); }
  .scard__open .icon { transition: transform 200ms var(--ease-out); }
  .iframe { transition: box-shadow 260ms var(--ease-out); }
  .scard:hover .iframe, .wcard:hover .iframe, .info:hover .iframe { box-shadow: 0 0 30px var(--glow-blue); }
}

/* окна: подложка и окно проявляются, окно чуть «подрастает» к центру */
.sheet[open], .lb[open] { animation: dlg-in 220ms var(--ease-out); }
dialog[open]::backdrop { animation: backdrop-in 220ms ease; }
@keyframes dlg-in { from { opacity: 0; transform: scale(0.97) translateY(8px); } }
@keyframes backdrop-in { from { opacity: 0; } }
.lb[open] { animation-name: backdrop-in; }

/* первый экран при загрузке — лесенкой */
.js .hero .switch, .js .slide:not([hidden]) .slide__text > * { animation: rise 520ms var(--ease-out) both; }
.js .slide:not([hidden]) .slide__text > :nth-child(1) { animation-delay: 60ms; }
.js .slide:not([hidden]) .slide__text > :nth-child(2) { animation-delay: 120ms; }
.js .slide:not([hidden]) .slide__text > :nth-child(3) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* появление блоков при прокрутке (класс ставит скрипт) */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 500ms ease, transform 600ms var(--ease-out); transition-delay: var(--stagger, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
.scard.reveal.is-in { transition: opacity 500ms ease var(--stagger, 0ms), transform 600ms var(--ease-out) var(--stagger, 0ms), border-color 200ms ease, box-shadow 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .scard.reveal.is-in:hover { transform: translateY(-4px); transition-delay: 0ms; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-property: background-color, border-color, color, opacity !important; transition-duration: 120ms !important; }
  .reveal { opacity: 1; transform: none; }
  .radius input:checked + span, .scard:hover { transform: none; }
}
