/* ==========================================================================
   1. ТОКЕНЫ. Тема клиента = правка только этого раздела.
   Светлая тема — :root по умолчанию. Тёмная — класс theme-dark на <html>
   (или на отдельной секции, чтобы сделать её «инверсной»).
   ========================================================================== */
:root,
.theme-light {
  --bg: #f3f4f6;            /* холодный светло-серый */
  --surface: #ffffff;
  --surface-2: #e8eaee;     /* вторичный фон секций */
  --text: #121418;          /* графит */
  --muted: #4d535c;         /* 6.4:1 на surface-2 */
  --accent: #c8121e;        /* красный: белый на нём 5.9:1, на surface-2 5.0:1 */
  --accent-contrast: #ffffff;
  --line: #d6d9df;
  --shadow-color: 14 16 20;
  color-scheme: light;
}
.theme-dark {
  --bg: #0f1114;
  --surface: #181b20;
  --surface-2: #14161a;
  --text: #f2f3f5;
  --muted: #a3a9b3;         /* 7.6:1 на surface */
  --accent: #c8121e;
  --accent-contrast: #ffffff;
  --line: #2a2e35;
  --shadow-color: 0 0 0;
  color-scheme: dark;
}

:root {
  --font-head: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fw-head: 800;
  --ls-head: -0.015em;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-btn: 6px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --gap: clamp(16px, 0.9vw + 12px, 24px);
  --section-y: clamp(64px, 5vw + 44px, 120px);
  --container: 1200px;
  --gutter: clamp(16px, 3vw + 4px, 40px);
  --header-h: 68px;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-h4: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.45vw, 1.375rem);
  --fs-h2: clamp(1.625rem, 1.1rem + 2vw, 2.75rem);
  --fs-h1: clamp(2rem, 1.1rem + 3.9vw, 4.5rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 220ms;
}

/* Производные токены — пересчитываются для любой темы автоматически */
:root,
.theme-light,
.theme-dark {
  --accent-soft: color-mix(in srgb, var(--accent) 13%, var(--surface));
  --accent-hover: color-mix(in srgb, var(--accent) 86%, var(--text));
  --shadow-sm: 0 1px 2px rgb(var(--shadow-color) / 0.06), 0 2px 8px rgb(var(--shadow-color) / 0.05);
  --shadow-md: 0 2px 6px rgb(var(--shadow-color) / 0.06), 0 14px 36px rgb(var(--shadow-color) / 0.1);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
}

/* ==========================================================================
   2. БАЗА
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.is-locked { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.theme-dark, .theme-light { background-color: var(--bg); color: var(--text); }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p, li, h1, h2, h3, h4 { overflow-wrap: break-word; }
:where(ul[class], ol[class]) { list-style: none; padding: 0; }

h1, h2, h3, h4, .h1, .h2, .h3 {
  font-family: var(--font-head);
  font-weight: var(--fw-head);
  letter-spacing: var(--ls-head);
  line-height: 1.12;
  text-wrap: balance;
}
h1, .h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; }
p { text-wrap: pretty; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[tabindex="-1"]:focus { box-shadow: none; }
::selection { background: var(--accent); color: var(--accent-contrast); }

.icon, .ph__icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-contrast); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ==========================================================================
   3. РАСКЛАДКА
   ========================================================================== */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--surface-2); }
.section--tight { padding-block: calc(var(--section-y) * 0.6); }

.section-head { display: grid; gap: var(--sp-4); max-width: 720px; margin-bottom: clamp(32px, 3vw + 16px, 56px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 768px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-7); }
  .section-head--split > .section-head__aside { grid-row: 1 / span 3; grid-column: 2; align-self: end; }
}
.section-head p { color: var(--muted); font-size: var(--fs-lg); max-width: 60ch; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head--center .eyebrow::after { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.grid { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Планшет: нечётная последняя карточка в grid--3 растягивается на всю ширину (без «сироты») */
@media (min-width: 600px) and (max-width: 959.98px) {
  .grid--3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid--3 > .service:last-child:nth-child(odd), .grid--3 > .member:last-child:nth-child(odd) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .grid--3 > .service:last-child:nth-child(odd) .media, .grid--3 > .member:last-child:nth-child(odd) .media { aspect-ratio: auto; min-height: 100%; }
  .hero__art { max-width: 400px; }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.lead { font-size: var(--fs-lg); color: var(--muted); }
.muted { color: var(--muted); }
.text-accent { color: var(--accent); }

/* ==========================================================================
   4. КНОПКИ, БЕЙДЖИ, ССЫЛКИ
   ========================================================================== */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 52px; padding: 0 26px;
  border: 1px solid var(--btn-bd); border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; line-height: 1.2; letter-spacing: 0.01em;
  text-decoration: none; text-align: center; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { --btn-bd: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { border-radius: var(--radius-btn); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }

.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--accent-contrast); --btn-bd: var(--accent); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn--ghost { --btn-bg: transparent; }
.btn--light { --btn-bg: #fff; --btn-fg: #16120f; --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #f1ece6; --btn-bd: #f1ece6; }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgb(255 255 255 / 0.5); }
.btn--outline-light:hover { --btn-bd: #fff; --btn-bg: rgb(255 255 255 / 0.08); }
.btn--sm { min-height: 44px; padding: 0 18px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn--icon { width: 52px; padding: 0; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; padding: 3px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--text);
  font-size: var(--fs-xs); font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge .icon { width: 14px; height: 14px; color: var(--accent); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  color: var(--accent); font-weight: 700; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

.checklist { display: grid; gap: var(--sp-3); }
.checklist li { display: flex; gap: var(--sp-3); align-items: flex-start; }
.checklist .icon { width: 20px; height: 20px; margin-top: 0.15em; color: var(--accent); }

/* ==========================================================================
   5. ДЕКОРАТИВНЫЕ ПЛЕЙСХОЛДЕРЫ (вместо фото) и МЕДИА
   .media — рамка с пропорцией; внутри либо <img>, либо .ph
   ========================================================================== */
.media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: var(--ratio, 4 / 3); background: var(--surface-2); isolation: isolate; }
.media > img, .media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--square { --ratio: 1; }
.media--portrait { --ratio: 4 / 5; }
.media--wide { --ratio: 16 / 9; }

.ph {
  --c1: color-mix(in srgb, var(--accent) 24%, var(--surface));
  --c2: color-mix(in srgb, var(--accent) 7%, var(--surface-2));
  display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, var(--c1), transparent 60%), linear-gradient(160deg, var(--c2), var(--surface-2));
  color: color-mix(in srgb, var(--accent) 70%, var(--text));
}
.ph::before { content: ""; position: absolute; inset: 0; opacity: 0.55; pointer-events: none; }
.ph__icon { width: 44px; height: 44px; position: relative; opacity: 0.8; stroke-width: 1.4; }
.ph__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  padding: 6px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: blur(6px);
  color: var(--text); font-size: var(--fs-xs); font-weight: 700;
}
/* концентрические кольца */
.ph--1::before { background: repeating-radial-gradient(circle at 78% 28%, transparent 0 22px, color-mix(in srgb, var(--accent) 22%, transparent) 22px 23px); }
/* диагональные полосы */
.ph--2 { background: linear-gradient(200deg, var(--c1), var(--c2) 70%); }
.ph--2::before { background: repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--accent) 14%, transparent) 14px 15px); }
/* точечная сетка */
.ph--3 { background: radial-gradient(90% 80% at 0% 100%, var(--c1), transparent 65%), var(--c2); }
.ph--3::before { background-image: radial-gradient(color-mix(in srgb, var(--accent) 35%, transparent) 1.2px, transparent 1.6px); background-size: 18px 18px; -webkit-mask-image: linear-gradient(135deg, #000 20%, transparent 85%); mask-image: linear-gradient(135deg, #000 20%, transparent 85%); }
/* арки */
.ph--4 { background: linear-gradient(180deg, var(--c2), var(--c1)); }
.ph--4::before { opacity: 1; background: radial-gradient(circle at 50% 120%, transparent 0 34%, color-mix(in srgb, var(--accent) 16%, transparent) 34% 35%, transparent 35% 48%, color-mix(in srgb, var(--accent) 16%, transparent) 48% 49%, transparent 49% 62%, color-mix(in srgb, var(--accent) 16%, transparent) 62% 63%, transparent 63%); }
/* насыщенная (акцентная) плитка */
.ph--accent { --c1: color-mix(in srgb, var(--accent) 70%, #fff); background: radial-gradient(110% 90% at 100% 0%, var(--c1), transparent 60%), var(--accent); color: var(--accent-contrast); }
.ph--accent::before { background: repeating-radial-gradient(circle at 20% 110%, transparent 0 26px, color-mix(in srgb, var(--accent-contrast) 22%, transparent) 26px 27px); }
.ph--accent .ph__icon { opacity: 0.9; }

/* ==========================================================================
   6. COMPONENT: header
   ========================================================================== */
/* Фон и blur — на ::before, а не на самой шапке: backdrop-filter/filter/transform
   на .site-header делают её containing block для position: fixed, и мобильное
   меню .nav (fixed внутри шапки) схлопывается до высоты шапки. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  transition: background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.menu-open::before { background: var(--bg); }
.header__inner { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; line-height: 1; margin-right: auto; }
.logo__mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); font-size: 1rem; }
.logo__sub { display: block; margin-top: 4px; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0; color: var(--muted); }

.nav__list { display: flex; gap: var(--sp-1); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px;
  text-decoration: none; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--accent); }
.nav__footer { display: none; }
.header__cta { display: none; }

.burger {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text);
}
.burger__box { position: relative; width: 22px; height: 14px; }
.burger__box span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform 260ms var(--ease), opacity 160ms var(--ease), top 260ms var(--ease); }
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 6px; }
.burger__box span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (max-width: 959.98px) {
  .nav {
    position: fixed; inset: var(--nav-top, var(--header-h)) 0 0 0; z-index: 49;
    display: flex; flex-direction: column; gap: var(--sp-6);
    padding: var(--sp-5) var(--gutter) calc(var(--sp-6) + env(safe-area-inset-bottom));
    background: var(--bg); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 220ms var(--ease), transform 260ms var(--ease), visibility 0s linear 260ms;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__link { width: 100%; min-height: 60px; padding: 0; border-radius: 0; font-family: var(--font-head); font-size: 1.375rem; font-weight: var(--fw-head); justify-content: space-between; }
  .nav__link:hover { background: transparent; color: var(--accent); }
  .nav__footer { display: grid; gap: var(--sp-4); margin-top: auto; }
  .nav__footer .muted { font-size: var(--fs-sm); }
}
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .burger { display: none; }
  .header__cta { display: inline-flex; }
  .logo { margin-right: 0; }
  .nav { margin-inline: auto; }
}

/* ==========================================================================
   7. COMPONENT: hero (варианты .hero--type и .hero--photo)
   ========================================================================== */
.hero { position: relative; overflow: clip; isolation: isolate; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: var(--fs-lg); color: var(--muted); max-width: 54ch; }
.hero__content { display: grid; gap: var(--sp-5); align-content: center; }
.hero__content .btn-row { margin-top: var(--sp-2); }
.hero__facts { display: grid; gap: var(--sp-3); margin-top: var(--sp-4); padding-top: var(--sp-5); border-top: 1px solid var(--line); }
.hero__facts li { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); font-weight: 600; }
.hero__facts .icon { width: 20px; height: 20px; color: var(--accent); }
@media (min-width: 600px) { .hero__facts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: var(--sp-6); } }

/* --- hero--type: без фото, типографика + градиент + паттерн --- */
.hero--type { padding-block: clamp(40px, 4vw + 24px, 96px) clamp(56px, 5vw + 32px, 120px); background: radial-gradient(60% 55% at 92% 8%, var(--accent-soft), transparent 70%), var(--bg); }
.hero--type::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 60% at 80% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 60% at 80% 30%, #000, transparent 75%);
}
.hero--type .hero__grid { display: grid; gap: clamp(40px, 4vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero--type .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }

.hero__art { position: relative; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 5 / 5.4; }
@media (max-width: 599.98px) {
  .hero__art { aspect-ratio: 1 / 1; max-width: 340px; }
  .hero__art .hero-card--b { top: 4%; }
  .hero__art .hero-card--a { bottom: 6%; }
  .hero--type .btn-row .btn { flex: 1 1 100%; }
}
.hero__frame {
  position: absolute; inset: 0 10% 0 10%; overflow: hidden;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  background: radial-gradient(100% 70% at 70% 0%, color-mix(in srgb, var(--accent) 55%, #fff), transparent 70%), linear-gradient(180deg, color-mix(in srgb, var(--accent) 85%, #fff), var(--accent));
  box-shadow: var(--shadow-md);
}
.hero__frame::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 105%, transparent 0 28px, rgb(255 255 255 / 0.16) 28px 29px); }
.hero__frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__ring { position: absolute; width: 38%; aspect-ratio: 1; right: 0; top: 4%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); }
.hero__dot { position: absolute; width: 14%; aspect-ratio: 1; left: 2%; top: 22%; border-radius: 50%; background: var(--text); opacity: 0.9; }
.hero-card {
  position: absolute; display: flex; align-items: center; gap: var(--sp-3);
  padding: 12px 16px 12px 12px; border-radius: var(--radius); max-width: 78%;
  background: var(--surface); color: var(--text); box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.hero-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.hero-card__icon .icon { width: 22px; height: 22px; }
.hero-card__label { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }
.hero-card__value { font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.hero-card--a { left: 0; bottom: 14%; }
.hero-card--b { right: 0; top: 46%; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 16px; height: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-card--a { animation: float 7s ease-in-out infinite; }
  .hero-card--b { animation: float 8s ease-in-out -3s infinite; }
}
@keyframes float { 50% { transform: translateY(-8px); } }

/* --- hero--photo: фото на фоне + затемнение. Без <img> — тёмный градиент. --- */
.hero--photo { display: grid; align-items: end; min-height: min(86svh, 780px); padding-block: clamp(96px, 10vw, 160px) clamp(40px, 5vw, 88px); color: #fff; background: #1a1512; }
.hero--photo .hero__media { position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 85% 10%, color-mix(in srgb, var(--accent) 60%, #000), transparent 70%), linear-gradient(160deg, #2a221d, #120f0d); }
.hero--photo .hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--photo .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 9 7 / 0.35) 0%, rgb(12 9 7 / 0.5) 40%, rgb(12 9 7 / 0.88) 100%); }
@media (min-width: 960px) { .hero--photo .hero__media::after { background: linear-gradient(90deg, rgb(12 9 7 / 0.85) 0%, rgb(12 9 7 / 0.55) 55%, rgb(12 9 7 / 0.25) 100%), linear-gradient(0deg, rgb(12 9 7 / 0.5), transparent 40%); } }
.hero--photo .hero__content { max-width: 720px; }
.hero--photo .hero__lead { color: rgb(255 255 255 / 0.86); }
.hero--photo .hero__title em { color: inherit; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
.hero--photo .eyebrow { color: #fff; }
.hero--photo .hero__facts { border-top-color: rgb(255 255 255 / 0.22); }
.hero--photo .hero__facts .icon { color: #fff; }

/* ==========================================================================
   8. КАРТОЧКИ: преимущества, услуги
   ========================================================================== */
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: clamp(22px, 1.5vw + 16px, 32px); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card p { color: var(--muted); }
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: transparent; }

/* COMPONENT: features (преимущества) */
.feature__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: var(--sp-2); background: var(--accent-soft); color: var(--accent); }
.feature__icon .icon { width: 26px; height: 26px; }
.feature h3 { font-size: var(--fs-h4); }
@media (max-width: 599.98px) {
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-4); row-gap: var(--sp-1); align-items: start; padding: 20px; }
  .feature__icon { grid-row: span 2; margin: 0; width: 48px; height: 48px; }
}

/* COMPONENT: services (направления) */
.service { padding: 0; overflow: hidden; gap: 0; }
.service .media { border-radius: 0; --ratio: 16 / 10; }
.service .media img { transition: transform 600ms var(--ease); }
.service:hover .media img { transform: scale(1.04); }
.service__body { display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; padding: clamp(20px, 1.2vw + 16px, 28px); }
.service__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.service__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--line); }
.service__price { font-weight: 700; }
.service__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service:has(.service__link:focus-visible) { box-shadow: var(--focus); }
.service__link:focus-visible { box-shadow: none; }

/* ==========================================================================
   9. COMPONENT: tabs (для расписания, прайса)
   ========================================================================== */
.tabs__list {
  display: flex; gap: 4px; width: max-content; max-width: 100%; margin-bottom: var(--sp-6);
  padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.section--alt .tabs__list { background: var(--bg); }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs--center .tabs__list { margin-inline: auto; }
/* .tabs__list--fill: вкладки делят ширину поровну (на мобиле), без прокрутки */
@media (max-width: 767.98px) {
  .tabs__list--fill { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; }
  .tabs__list--fill .tab { padding: 0 6px; }
}
.tab {
  flex: none; min-height: 44px; min-width: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-sm); }
.tab:focus-visible { border-radius: 999px; }
.tab__long { display: none; }
@media (min-width: 960px) { .tab__long { display: inline; } .tab__long + .tab__short, .tab:has(.tab__long) .tab__short { display: none; } }
.tabs__panel:focus-visible { border-radius: var(--radius); }
.tabs__nojs-title { margin: var(--sp-6) 0 var(--sp-4); font-size: var(--fs-h4); }
.js .tabs__nojs-title { display: none; }
html:not(.js) .tabs__list { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .tabs__panel.is-entering { animation: panel-in 320ms var(--ease); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   10. COMPONENT: pricing (прайс-лист)
   ========================================================================== */
.pricing__card { padding: clamp(8px, 1vw + 4px, 16px) clamp(20px, 2vw + 12px, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.price-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-2) var(--sp-5); align-items: center; padding-block: clamp(16px, 1vw + 12px, 24px); }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.price-row__meta { margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.price-row__price { font-family: var(--font-head); font-weight: var(--fw-head); font-size: var(--fs-lg); white-space: nowrap; text-align: right; }
.price-row__price small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.pricing__note { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }
.pricing__note .icon { color: var(--accent); margin-top: 2px; }

/* ==========================================================================
   11. COMPONENT: plans (абонементы, 3 тарифа; .plan--featured — выделенный)
   ========================================================================== */
.plans { display: grid; gap: var(--gap); align-items: stretch; }
@media (min-width: 960px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 959.98px) { .plans { max-width: 560px; margin-inline: auto; } }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-4);
  padding: clamp(24px, 1.5vw + 20px, 40px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.plan__name { font-size: var(--fs-h3); }
.plan__desc { color: var(--muted); font-size: var(--fs-sm); }
.plan__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding-block: var(--sp-4); border-block: 1px solid var(--line); }
.plan__amount { font-family: var(--font-head); font-weight: var(--fw-head); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); letter-spacing: var(--ls-head); line-height: 1; }
.plan__period { color: var(--muted); font-size: var(--fs-sm); }
.plan .checklist { margin-bottom: var(--sp-4); font-size: var(--fs-sm); }
.plan .btn { margin-top: auto; }
.plan__badge { position: absolute; top: 0; right: clamp(24px, 1.5vw + 20px, 40px); transform: translateY(-50%); }
.plan--featured { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); box-shadow: 0 20px 48px color-mix(in srgb, var(--accent) 26%, transparent); }
.plan--featured .plan__desc, .plan--featured .plan__period { color: color-mix(in srgb, var(--accent-contrast) 88%, transparent); }
.plan--featured .plan__price { border-color: color-mix(in srgb, var(--accent-contrast) 25%, transparent); }
.plan--featured .checklist .icon { color: currentColor; }
.plan--featured .btn { --btn-bg: var(--accent-contrast); --btn-fg: var(--accent); --btn-bd: var(--accent-contrast); }
.plan--featured .btn:hover { --btn-bg: color-mix(in srgb, var(--accent-contrast) 90%, var(--accent)); }
.plan--featured :focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px var(--accent-contrast); }
.plan--featured .plan__badge { background: var(--text); color: var(--bg); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   12. COMPONENT: schedule (расписание: табы по дням, список слотов)
   ========================================================================== */
.slots { display: grid; gap: var(--sp-3); }
.slot {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3) var(--sp-4); align-items: center;
  padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}
.slot:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.slot__time { display: grid; min-width: 64px; }
.slot__time time { font-family: var(--font-head); font-weight: var(--fw-head); font-size: var(--fs-lg); line-height: 1.2; }
.slot__time span { font-size: var(--fs-xs); color: var(--muted); }
.slot__title { font-family: var(--font-body); font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; line-height: 1.35; }
.slot__meta { font-size: var(--fs-sm); color: var(--muted); }
.slot__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-3); border-top: 1px dashed var(--line); }
.badge--low { background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--line)); }
@media (min-width: 768px) {
  .slot { grid-template-columns: 96px minmax(0, 1fr) auto; padding: var(--sp-4) var(--sp-5) var(--sp-4) var(--sp-6); }
  .slot__side { grid-column: auto; padding-top: 0; border-top: 0; gap: var(--sp-5); }
}
.schedule__note { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   13. COMPONENT: gallery (сетка; плитки .ph или <img>)
   ========================================================================== */
.gallery { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 160px; grid-auto-flow: dense; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); margin: 0; }
.gallery__item > img, .gallery__item > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease); }
.gallery__item:hover > img { transform: scale(1.04); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: var(--gap); } }
@media (min-width: 1200px) { .gallery { grid-auto-rows: 240px; } }

/* ==========================================================================
   14. COMPONENT: team (роли без имён)
   ========================================================================== */
.member { padding: 0; overflow: hidden; gap: 0; }
.member .media { border-radius: 0; --ratio: 16 / 10; }
@media (min-width: 960px) { .member .media { --ratio: 1; } }
.member__body { display: grid; gap: var(--sp-2); padding: var(--sp-5); }
.member__role { font-size: var(--fs-h4); }
.member__tags { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-2); }

/* ==========================================================================
   15. COMPONENT: reviews — сводка рейтинга + карточки «заказ-наряд»
   (на мобиле карточки — горизонтальная лента со snap)
   ========================================================================== */
.reviews-sec {
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ticket-bg: #181b20;
  background:
    radial-gradient(45% 55% at 0% 0%, rgb(200 18 30 / 0.14), transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / 0.015) 46px 48px),
    var(--bg);
}
.reviews-sec .stars { color: var(--accent-bright); }
.reviews-sec__layout { display: grid; gap: var(--sp-6); }
.reviews-sec__track { min-width: 0; }

/* Сводка рейтинга */
.rating {
  display: grid; gap: var(--sp-5); align-content: start;
  padding: clamp(20px, 1.5vw + 14px, 32px); border-radius: var(--radius);
  background: var(--ticket-bg); border: 1px solid var(--line); border-top: 3px solid var(--accent);
}
.rating__top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5); }
.rating__score {
  font-family: var(--font-head); font-weight: 900; line-height: 0.9; letter-spacing: -0.03em;
  font-size: clamp(3.5rem, 2.6rem + 3vw, 5.25rem); color: var(--text); font-variant-numeric: tabular-nums;
}
.rating__of { font-size: 0.32em; font-weight: 800; letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.rating__meta { display: grid; gap: var(--sp-2); }
.rating__meta .stars .icon { width: 20px; height: 20px; }
.rating__count { font-size: var(--fs-sm); color: var(--muted); }
.rating__dist { display: grid; gap: 10px; padding-top: var(--sp-5); border-top: 1px dashed #3a3f47; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); }
.rating__row { display: grid; grid-template-columns: 1ch 14px minmax(0, 1fr) 3ch; gap: var(--sp-2); align-items: center; }
.rating__row .icon { width: 14px; height: 14px; color: var(--muted); }
.rating__k { color: var(--text); text-align: right; }
.rating__n { text-align: right; }
.rating__bar { height: 6px; border-radius: 1px; background: #2a2e35; overflow: hidden; }
.rating__fill { display: block; height: 100%; background: var(--accent); }
.rating__fill--5 { width: 90%; background: var(--accent-bright); }
.rating__fill--4 { width: 8%; }
.rating__fill--3 { width: 3%; }
.rating__fill--2 { width: 1.5%; }
.rating__fill--1 { width: 1.5%; }

/* Карточки «заказ-наряд» */
.tickets {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 340px); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) var(--sp-2); scroll-padding-inline: var(--gutter);
}
.tickets::-webkit-scrollbar { display: none; }
.tickets:focus-visible { outline: none; box-shadow: inset var(--focus); }
.ticket {
  --pad: clamp(18px, 1vw + 14px, 24px);
  position: relative; overflow: hidden; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--ticket-bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.ticket::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.ticket__head { display: grid; gap: var(--sp-3); padding: calc(var(--pad) + 3px) var(--pad) var(--pad); }
.ticket__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ticket__date { font-variant-numeric: tabular-nums; }
.ticket__car { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; font-size: var(--fs-h4); letter-spacing: 0.01em; line-height: 1.15; }
.ticket__meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); font-family: var(--mono); font-size: 0.75rem; }
.ticket__meta > div { display: grid; gap: 4px; align-content: start; }
.ticket__meta dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ticket__meta dd { margin: 0; color: var(--text); }
.ticket__radius { font-family: var(--font-head); font-weight: 900; font-size: 1.125rem; line-height: 1.2; }
.ticket__tag {
  display: inline-block; padding: 3px 8px; border: 1px solid var(--accent); border-radius: 3px;
  color: var(--accent-bright); font-family: var(--font-body); font-weight: 600; font-size: 0.75rem; line-height: 1.35;
}
/* Линия отрыва: пунктир + полукруглые вырезы по краям */
.ticket__tear { position: relative; height: 0; margin-inline: var(--pad); border-top: 1px dashed #3a3f47; }
.ticket__tear::before, .ticket__tear::after {
  content: ""; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line);
}
.ticket__tear::before { left: calc(var(--pad) * -1 - 12px); }
.ticket__tear::after { right: calc(var(--pad) * -1 - 12px); }
.ticket__text { padding: var(--pad) var(--pad) var(--sp-4); color: var(--text); font-size: var(--fs-sm); line-height: 1.6; }
.ticket__foot {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  margin-top: auto; padding: var(--sp-3) var(--pad); border-top: 1px solid var(--line); background: #14161a;
}
.ticket__author { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.reviews__hint { margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: var(--sp-2); }

@media (min-width: 600px) and (max-width: 959.98px) {
  .rating { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-7); align-items: center; }
  .rating__dist { padding-top: 0; border-top: 0; padding-left: var(--sp-6); border-left: 1px dashed #3a3f47; }
}
@media (min-width: 960px) {
  .reviews-sec__layout { grid-template-columns: minmax(300px, 1fr) minmax(0, 2.4fr); gap: var(--gap); align-items: start; }
  .rating { position: sticky; top: calc(var(--header-h) + var(--sp-5)); }
  .tickets { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; }
  .reviews__hint { display: none; }
}

/* ==========================================================================
   16. COMPONENT: steps (как записаться 1-2-3)
   ========================================================================== */
.steps { display: grid; gap: var(--gap); counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { position: relative; display: grid; gap: var(--sp-3); align-content: start; padding: clamp(24px, 1.5vw + 16px, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head); font-weight: var(--fw-head); font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em;
  color: var(--accent); margin-bottom: var(--sp-3);
}
.step p { color: var(--muted); }
@media (min-width: 768px) {
  .step:not(:last-child)::after { content: ""; position: absolute; top: calc(clamp(24px, 1.5vw + 16px, 32px) + 20px); left: calc(clamp(24px, 1.5vw + 16px, 32px) + 76px); right: clamp(24px, 1.5vw + 16px, 32px); border-top: 1.5px dashed var(--line); }
}
.steps__cta { margin-top: var(--sp-7); display: flex; justify-content: center; }

/* ==========================================================================
   17. COMPONENT: faq (аккордеон на <details>)
   ========================================================================== */
.faq__layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .faq__layout { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--sp-8); align-items: start; } .faq__layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); } }
.faq__layout .section-head { margin-bottom: 0; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 64px; padding: var(--sp-4) 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--fs-lg); line-height: 1.4;
  transition: color var(--dur) var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__q:focus-visible { border-radius: 8px; }
.faq__toggle { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: transform 300ms var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.faq__toggle .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__toggle { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.faq__body { overflow: hidden; }
.faq__body > div { padding: 0 56px var(--sp-5) 0; color: var(--muted); display: grid; gap: var(--sp-3); }

/* ==========================================================================
   18. COMPONENT: booking (форма записи)
   ========================================================================== */
.booking__layout { display: grid; gap: var(--sp-7); }
@media (min-width: 960px) { .booking__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: center; } }
.booking__info { display: grid; gap: var(--sp-5); }
.booking__info .section-head { margin-bottom: 0; }
.booking__contact { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-sm); color: var(--muted); }
.booking__contact a { color: var(--text); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.booking__contact a:hover { color: var(--accent); }

.form { display: grid; gap: var(--sp-4); padding: clamp(24px, 2vw + 16px, 44px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.form__title { font-size: var(--fs-h3); }
.form__row { display: grid; gap: var(--sp-4); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 6px; }
.field__label { font-size: var(--fs-sm); font-weight: 700; }
.field__label .req { color: var(--accent); }
.field__control {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 1rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__control::placeholder { color: color-mix(in srgb, var(--muted) 85%, transparent); }
.field__control:hover { border-color: color-mix(in srgb, var(--text) 35%, var(--line)); }
.field__control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); background: var(--surface); }
.field__control:user-invalid { border-color: #c62828; }
.theme-dark .field__control:user-invalid { border-color: #ff8a80; }
textarea.field__control { min-height: 104px; resize: vertical; }
.field__select { position: relative; }
.field__select::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.field__select .field__control { padding-right: 44px; cursor: pointer; }
.field__control[type="date"] { cursor: pointer; }
.field__control[type="date"]::-webkit-calendar-picker-indicator { opacity: 0.6; cursor: pointer; }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; min-height: 44px; }
.consent input {
  flex: none; width: 32px; height: 32px; margin: -4px 0 0; cursor: pointer;
  -webkit-appearance: none; appearance: none; border: 1.5px solid color-mix(in srgb, var(--text) 30%, var(--line)); border-radius: 9px; background: var(--bg) center / 20px no-repeat;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.consent input:hover { border-color: var(--accent); }
.consent input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.theme-dark .consent input:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0d07' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.consent input:focus-visible { box-shadow: var(--focus); }
.consent span { padding-top: 2px; }
.form__success {
  display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--radius-sm);
  background: var(--accent-soft); color: var(--text); font-weight: 600; font-size: var(--fs-sm);
}
.form__success[hidden] { display: none; }
.form__success .icon { color: var(--accent); width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) { .form__success:not([hidden]) { animation: panel-in 360ms var(--ease); } }

/* ==========================================================================
   19. COMPONENT: contacts (+ стилизованная «карта»)
   ========================================================================== */
.contacts__layout { display: grid; gap: var(--gap); }
@media (min-width: 960px) { .contacts__layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.contact-list { display: grid; gap: var(--sp-2); padding: clamp(20px, 2vw + 12px, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.contact-list li { display: flex; gap: var(--sp-4); align-items: center; padding-block: var(--sp-3); }
.contact-list li + li { border-top: 1px solid var(--line); }
.contact-list__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.contact-list__label { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.contact-list__value { font-weight: 700; text-decoration: none; }
a.contact-list__value { display: inline-flex; min-height: 32px; align-items: center; }
a.contact-list__value:hover { color: var(--accent); }
.socials { display: flex; gap: var(--sp-2); }
.socials a { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text); transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.socials a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.socials a:focus-visible { border-radius: 50%; }
.socials .icon { width: 22px; height: 22px; }

.map-stub {
  position: relative; overflow: hidden; min-height: 320px; border-radius: var(--radius-lg); isolation: isolate;
  background:
    linear-gradient(color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, color-mix(in srgb, var(--text) 6%, transparent) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--surface);
  border: 1px solid var(--line);
}
.map-stub__roads { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; color: var(--line); }
.map-stub__park { fill: color-mix(in srgb, var(--accent) 9%, transparent); }
.map-stub__river { stroke: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); }
.map-stub__pin { position: absolute; left: 50%; top: clamp(36%, 30% + 4vw, 46%); transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 6px; }
.map-stub__marker { width: 56px; height: 56px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; background: var(--accent); color: var(--accent-contrast); box-shadow: var(--shadow-md); }
.map-stub__marker .icon { transform: rotate(45deg); width: 24px; height: 24px; }
.map-stub__pulse { position: absolute; left: 50%; bottom: -10px; width: 24px; height: 8px; margin-left: -12px; border-radius: 50%; background: rgb(var(--shadow-color) / 0.25); }
.map-stub__card { position: absolute; left: var(--sp-4); right: var(--sp-4); bottom: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.map-stub__card strong { display: block; }
.map-stub__card span { font-size: var(--fs-sm); color: var(--muted); }

/* ==========================================================================
   20. COMPONENT: page-head (заголовок внутренней страницы)
   ========================================================================== */
.page-head { padding-block: clamp(40px, 4vw + 20px, 88px) clamp(32px, 3vw + 16px, 64px); background: radial-gradient(50% 80% at 100% 0%, var(--accent-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.page-head__inner { display: grid; gap: var(--sp-4); max-width: 780px; }
.page-head p { font-size: var(--fs-lg); color: var(--muted); }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: var(--sp-2); opacity: 0.6; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }

/* ==========================================================================
   21. COMPONENT: cta-band (финальный призыв)
   ========================================================================== */
.cta-band { position: relative; overflow: hidden; display: grid; gap: var(--sp-5); padding: clamp(32px, 4vw + 16px, 72px); border-radius: var(--radius-lg); background: var(--accent); color: var(--accent-contrast); isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 100% 0%, transparent 0 30px, color-mix(in srgb, var(--accent-contrast) 14%, transparent) 30px 31px); -webkit-mask-image: linear-gradient(240deg, #000, transparent 70%); mask-image: linear-gradient(240deg, #000, transparent 70%); }
.cta-band > div:first-child { display: grid; gap: var(--sp-3); }
.cta-band p { max-width: 52ch; color: color-mix(in srgb, var(--accent-contrast) 90%, transparent); font-size: var(--fs-lg); }
.cta-band .btn { --btn-bg: var(--accent-contrast); --btn-fg: var(--accent); --btn-bd: var(--accent-contrast); }
.cta-band .btn--ghost { --btn-bg: transparent; --btn-fg: var(--accent-contrast); --btn-bd: color-mix(in srgb, var(--accent-contrast) 50%, transparent); }
.cta-band :focus-visible { box-shadow: 0 0 0 3px var(--accent), 0 0 0 5px var(--accent-contrast); }
@media (min-width: 960px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }

/* ==========================================================================
   22. COMPONENT: footer
   ========================================================================== */
.site-footer { padding-block: var(--sp-8) var(--sp-5); background: var(--surface); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.footer__grid { display: grid; gap: var(--sp-6); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__about { display: grid; gap: var(--sp-4); justify-items: start; max-width: 340px; color: var(--muted); }
.footer__about .logo { color: var(--text); }
.footer__title { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--sp-2); }
.footer__links a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
.footer__links a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
.footer__bottom a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ==========================================================================
   23. COMPONENT: sticky-cta (липкая кнопка на мобиле)
   ========================================================================== */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; gap: var(--sp-2); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transition: transform 320ms var(--ease), opacity 320ms var(--ease);
}
.sticky-cta .btn--primary { flex: 1; }
.sticky-cta.is-hidden { transform: translateY(110%); opacity: 0; pointer-events: none; }
@media (max-width: 767.98px) { .has-sticky-cta .site-footer { padding-bottom: calc(var(--sp-5) + 76px + env(safe-area-inset-bottom)); } }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ==========================================================================
   24. ПОЯВЛЕНИЕ ПРИ ПРОКРУТКЕ. Класс reveal-ready ставит script.js —
   без JS контент виден сразу.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* === Клиент: GRIPLINE (концепт шиномонтажа) === */
[hidden] { display: none !important; }
:root { --accent-bright: #ff5a62; /* тот же красный, светлее — для текста на графите (5.6:1) */ }

/* Плашка концепта (RULES.md): вверху, не fixed, 1–2 строки мелким текстом */
.demo-notice { background: #08090b; color: #b4bac3; font-size: 0.75rem; line-height: 1.35; padding: 6px 0; border-bottom: 1px solid #22262c; }

/* Типографика: Montserrat Black, заголовки ЗАГЛАВНЫМИ */
h1, h2, .h1, .h2 { text-transform: uppercase; letter-spacing: -0.005em; line-height: 1.08; }
h1, .h1 { font-weight: 900; }
h3, h4 { font-weight: 700; letter-spacing: -0.01em; }
.eyebrow { font-family: var(--font-head); letter-spacing: 0.16em; }
.eyebrow::before { width: 24px; height: 3px; border-radius: 0; }
.section-head--center .eyebrow::after { width: 24px; height: 3px; border-radius: 0; }
.theme-dark .eyebrow, .theme-dark .link-arrow, .theme-dark .field__label .req { color: var(--accent-bright); }
.theme-dark ::selection { background: var(--accent); color: #fff; }

/* Кнопки: рубленые, заглавные */
.btn { font-family: var(--font-head); font-size: 0.8125rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.btn--lg { font-size: 0.875rem; }
.btn--primary:hover { box-shadow: 0 10px 28px rgb(200 18 30 / 0.35); }
.theme-dark .btn:not(.btn--primary):hover { --btn-bd: var(--text); }
.btn .icon--arrow { width: 18px; height: 18px; }

/* Иконка в квадрате */
.sq-icon { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent); color: #fff; }
.sq-icon .icon { width: 24px; height: 24px; }

/* Плитки-заглушки вместо фото: графит + красное свечение + «протектор» */
.ph {
  --c1: rgb(200 18 30 / 0.42);
  --c2: #1b1e23;
  background: radial-gradient(90% 80% at 100% 0%, var(--c1), transparent 62%), linear-gradient(160deg, #23272d, #111316);
  color: rgb(255 255 255 / 0.62);
}
.ph__icon { width: 52px; height: 52px; opacity: 0.9; stroke-width: 1.3; }
.ph--1::before { background: repeating-radial-gradient(circle at 82% 22%, transparent 0 22px, rgb(255 255 255 / 0.07) 22px 23px); }
.ph--2 { background: radial-gradient(90% 90% at 0% 100%, var(--c1), transparent 60%), linear-gradient(200deg, #262a31, #121417 75%); }
.ph--2::before { background: repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / 0.05) 14px 16px); }
.ph--3 { background: radial-gradient(90% 80% at 0% 100%, var(--c1), transparent 65%), #17191d; }
.ph--3::before { background-image: radial-gradient(rgb(255 255 255 / 0.16) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.ph--4 { background: radial-gradient(120% 70% at 50% 120%, var(--c1), transparent 60%), linear-gradient(180deg, #121417, #22262c); }
.ph--4::before { opacity: 1; background: repeating-conic-gradient(from 0deg at 50% 125%, rgb(255 255 255 / 0.05) 0 3deg, transparent 3deg 9deg); }
.ph__label { background: rgb(12 13 16 / 0.72); color: #fff; border-radius: var(--radius-sm); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-head); font-size: 0.75rem; }
/* Фото ещё нет (script.js убрал несработавшую <img>): видна плитка .ph под ней */
.is-noimg > img { display: none; }

/* ---------- Шапка (графит на всех страницах) ---------- */
.site-header { background: transparent; }
.site-header::before { background: rgb(15 17 20 / 0.94); }
.site-header.is-scrolled { border-bottom-color: #23272d; }
.logo { font-family: var(--font-head); font-weight: 900; letter-spacing: 0.02em; font-size: 1.1875rem; }
.logo__mark { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; }
.logo__mark .icon { width: 24px; height: 24px; stroke-width: 2; }
.logo__text b { color: var(--accent-bright); font-weight: 900; }
.logo__sub { font-size: 0.75rem; letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
.nav__link { font-weight: 600; }
.header__phone { display: none; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; }
.header__phone .icon { width: 18px; height: 18px; color: var(--accent-bright); }
.header__phone:hover { color: var(--accent-bright); }
@media (max-width: 959.98px) { .nav__link { font-weight: 800; text-transform: uppercase; font-size: 1.25rem; } }
@media (min-width: 1200px) { .header__phone { display: inline-flex; } }
@media (min-width: 960px) { .nav__link { padding: 0 10px; } }

/* ---------- Hero: фото на весь экран; без фото — графит и «шина» ---------- */
.hero--photo { min-height: min(88svh, 760px); align-items: center; padding-block: clamp(150px, 30vw, 240px) clamp(48px, 6vw, 80px); background: #0f1114; }
.hero--photo .hero__media { background: #0f1114; }
.hero--photo .hero__media img { position: absolute; inset: 0; object-position: 60% 50%; }
.hero--photo .hero__media > picture { display: contents; }
.hero--photo .hero__media::after { z-index: 1; background: linear-gradient(180deg, rgb(15 17 20 / 0.15) 0%, rgb(15 17 20 / 0.55) 38%, rgb(15 17 20 / 0.95) 72%); }
.hero--photo .hero__content { max-width: 680px; }
.hero__title { font-size: clamp(2.25rem, 1rem + 5.4vw, 5rem); line-height: 0.98; }
.hero__title span { display: block; color: var(--accent-bright); }
.hero--photo .hero__lead { color: rgb(255 255 255 / 0.86); max-width: 46ch; }
.hero--photo .eyebrow { color: #fff; }
.hero--photo .eyebrow::before { background: var(--accent); }
.hero__ph { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(60% 55% at 78% 30%, rgb(200 18 30 / 0.42), transparent 70%), linear-gradient(160deg, #1d2025, #0c0d10); }
.hero__ph::before { opacity: 1; background: repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / 0.025) 46px 48px); }
.hero__tire {
  position: absolute; width: clamp(360px, 92vw, 760px); aspect-ratio: 1; right: -30%; top: -6%; border-radius: 50%;
  background:
    radial-gradient(circle, #0c0d10 0 8%, #3a3f47 8% 9.3%, transparent 9.3% 38.5%, var(--accent) 38.5% 39.6%, #16191d 39.6% 100%),
    repeating-conic-gradient(from 12deg, #353a42 0 9deg, #111317 9deg 72deg);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06), 0 40px 120px rgb(0 0 0 / 0.6);
}
.hero__tire::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(#1a1d22 0 3deg, #262a31 3deg 6deg); -webkit-mask-image: radial-gradient(circle, transparent 0 62%, #000 62.6%); mask-image: radial-gradient(circle, transparent 0 62%, #000 62.6%); }
.hero__tire::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(70% 60% at 30% 20%, rgb(255 255 255 / 0.1), transparent 60%); }
.hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4); margin-top: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid rgb(255 255 255 / 0.18); }
.hero__stats li { display: grid; gap: 2px; align-content: start; }
.hero__stats strong { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); line-height: 1.1; white-space: nowrap; }
.hero__stats span { font-size: var(--fs-xs); color: rgb(255 255 255 / 0.78); line-height: 1.35; }
@media (max-width: 599.98px) {
  .hero--photo .btn-row .btn { flex: 1 1 100%; }
}
@media (max-width: 599.98px) and (max-height: 720px) { .hero--photo { padding-top: 132px; } }
@media (min-width: 960px) {
  .hero--photo { padding-block: 96px 152px; }
  .hero--photo .hero__media::after { background: linear-gradient(90deg, rgb(15 17 20 / 0.94) 0%, rgb(15 17 20 / 0.7) 38%, rgb(15 17 20 / 0.1) 75%), linear-gradient(0deg, rgb(15 17 20 / 0.6), transparent 35%); }
  .hero__tire { width: min(62vw, 820px); right: -8%; top: 50%; transform: translateY(-50%); }
}

/* ---------- Полоса преимуществ (на десктопе заходит на hero) ---------- */
.perks-band { position: relative; z-index: 2; padding-top: var(--gap); }
.perks { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.perk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; padding: 20px; }
.perk + .perk { border-top: 1px solid var(--line); }
.perk h3 { font-size: var(--fs-h4); line-height: 1.3; margin-bottom: 4px; }
.perk p { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 600px) and (max-width: 1099.98px) {
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perk:nth-child(2) { border-top: 0; border-left: 1px solid var(--line); }
  .perk:nth-child(4) { border-left: 1px solid var(--line); }
}
@media (min-width: 1100px) {
  .perks-band { padding-top: 0; margin-top: -72px; }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .perk { grid-template-columns: 1fr; padding: 28px 24px; }
  .perk + .perk { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Услуги ---------- */
.service .media { --ratio: 16 / 10; }
.service__body { position: relative; padding-top: 36px; }
.service__icon { position: absolute; top: -26px; left: clamp(20px, 1.2vw + 16px, 28px); width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgb(200 18 30 / 0.3); }
.service__icon .icon { width: 26px; height: 26px; }
.service h3 { font-size: var(--fs-h3); text-transform: uppercase; font-weight: 800; letter-spacing: 0; }
.service__meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.service__meta .icon { width: 16px; height: 16px; color: var(--accent); }
.service__price { font-family: var(--font-head); font-weight: 900; font-size: 1.125rem; }
.card--hover:hover { border-color: var(--line); }

/* ---------- Оборудование (тёмный блок) ---------- */
.equipment { background: radial-gradient(50% 60% at 0% 0%, rgb(200 18 30 / 0.16), transparent 70%), var(--bg); }
.equipment__layout { display: grid; gap: var(--sp-7); align-items: center; }
.equipment__media { --ratio: 4 / 3; border-radius: var(--radius-lg); }
.equipment__body .section-head { margin-bottom: var(--sp-6); }
.equip-list { display: grid; gap: var(--sp-5); }
.equip-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.equip-list h3 { font-size: var(--fs-h4); margin-bottom: 4px; }
.equip-list p { color: var(--muted); }
@media (min-width: 960px) { .equipment__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); } }
.workshop { --ratio: 16 / 9; margin: var(--sp-7) 0 0; border-radius: var(--radius-lg); }
@media (min-width: 960px) { .workshop { --ratio: 21 / 8; margin-top: var(--sp-8); } }
.workshop::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgb(10 11 13 / 0.85), transparent 55%); pointer-events: none; }
.workshop__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: grid; gap: 4px; padding: clamp(16px, 2vw + 8px, 32px); color: #fff; }
.workshop__caption strong { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; font-size: var(--fs-h3); letter-spacing: 0.02em; }
.workshop__caption strong::before { content: ""; display: inline-block; width: 24px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--accent); }
.workshop__caption span { color: rgb(255 255 255 / 0.84); font-size: var(--fs-sm); max-width: 48ch; }
.workshop .ph { place-items: start end; padding: 24px; }

/* ---------- Шаги: 4 шт. ---------- */
.step { border-top: 3px solid var(--accent); }
.step::before { font-weight: 900; }
.step h3 { font-size: var(--fs-h4); }
@media (min-width: 768px) and (max-width: 1099.98px) { .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps--4 .step::after { display: none; } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- FAQ ---------- */
.faq__toggle { border-radius: var(--radius-sm); }

/* ---------- Акцентная плашка-призыв ---------- */
.cta-band { background: linear-gradient(120deg, #c8121e, #a50e18); }
.cta-band::before { background: repeating-linear-gradient(115deg, transparent 0 22px, rgb(255 255 255 / 0.08) 22px 24px); -webkit-mask-image: linear-gradient(270deg, #000, transparent 65%); mask-image: linear-gradient(270deg, #000, transparent 65%); }
.cta-band h2 { font-size: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.cta-band p { color: rgb(255 255 255 / 0.92); }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #121418; --btn-bd: #fff; }
.cta-band .btn:hover { --btn-bg: #121418; --btn-fg: #fff; --btn-bd: #121418; }
.contacts__head { margin-top: var(--section-y); }

/* ---------- Контакты: карта в графите ---------- */
.contact-list__icon { border-radius: var(--radius-sm); background: #121418; color: #fff; }
.map-stub { background: linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px) 0 0 / 40px 40px, #16191d; border-color: #16191d; }
.map-stub__roads { color: #2b3038; }
.map-stub__park { fill: rgb(255 255 255 / 0.04); }
.map-stub__river { stroke: #1f2a33; }
.map-stub__marker { border-radius: 50% 50% 50% 0; }
.map-stub__pulse { background: rgb(200 18 30 / 0.45); }

/* ---------- Подвал ---------- */
.site-footer { background: #0b0c0f; border-top: 3px solid var(--accent); }
.site-footer .logo { font-size: 1.125rem; }

/* ---------- page-head внутренних страниц ---------- */
.page-head { background: radial-gradient(45% 90% at 100% 0%, rgb(200 18 30 / 0.28), transparent 70%), repeating-linear-gradient(115deg, transparent 0 46px, rgb(255 255 255 / 0.02) 46px 48px), var(--bg); border-bottom: 0; }
.page-head h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem); }
.page-head__inner { max-width: calc(var(--container) + var(--gutter) * 2); }
.page-head__inner > * { max-width: 780px; }

/* ---------- Прайс: табы + таблицы по радиусам ---------- */
.tab { font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.8125rem; border-radius: var(--radius-sm); }
.tabs__list { border-radius: var(--radius); }
.tab:focus-visible { border-radius: var(--radius-sm); }
.tab__long { display: none; }
@media (min-width: 768px) { .tab__long { display: inline; } .tab__short { display: none; } }
.tabs__list { margin-bottom: var(--sp-5); }
.price-panel { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.price-panel__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-4); align-items: center; padding: clamp(18px, 1.5vw + 12px, 28px); border-bottom: 1px solid var(--line); }
.price-panel__head h3 { font-size: var(--fs-h3); text-transform: uppercase; font-weight: 800; letter-spacing: 0; }
.price-panel__head p { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.price-panel__cta { grid-column: 1 / -1; }
@media (min-width: 768px) { .price-panel__head { grid-template-columns: auto minmax(0, 1fr) auto; } .price-panel__cta { grid-column: auto; } }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 14px clamp(12px, 2vw, 28px); text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-table thead th { background: var(--surface-2); color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding-block: 12px; }
.price-table thead th:not(:first-child), .price-table td { text-align: right; }
.price-table tbody th { font-family: var(--font-head); font-weight: 800; font-size: var(--fs-base); }
.price-table td { font-weight: 700; white-space: nowrap; }
.price-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 40%, var(--surface)); }
.price-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.col-long { display: none; }
@media (min-width: 600px) { .col-long { display: inline; } .col-short { display: none; } }
@media (max-width: 599.98px) {
  .price-table th, .price-table td { padding-inline: 10px; font-size: var(--fs-sm); }
  .price-table tbody th { font-size: var(--fs-sm); line-height: 1.35; }
}
.included { display: grid; gap: var(--sp-6); }
.included .section-head { margin-bottom: 0; }
@media (min-width: 960px) { .included { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--sp-8); align-items: center; } }
.included__card { padding: clamp(20px, 2vw + 12px, 36px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.included__list { gap: var(--sp-4); font-weight: 600; }

/* ---------- Онлайн-запись: мастер в 3 шага ---------- */
html:not(.js) .wizard { display: none; }
.js .booking-fallback { display: none; }
.booking-section { padding-top: clamp(32px, 3vw + 16px, 64px); }
.wizard { padding: clamp(16px, 2.5vw + 8px, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.wizard__progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2); margin-bottom: clamp(24px, 2vw + 12px, 40px); counter-reset: wstep; }
.wizard__progress-item { counter-increment: wstep; display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--line); color: var(--muted); font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; }
.wizard__num { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); font-family: var(--font-head); font-weight: 900; }
.wizard__num::before { content: counter(wstep); }
.wizard__progress-item[aria-current="step"] { color: var(--text); border-bottom-color: var(--accent); }
.wizard__progress-item[aria-current="step"] .wizard__num { background: var(--accent); color: #fff; }
.wizard__progress-item.is-done { color: var(--text); border-bottom-color: #121418; }
.wizard__progress-item.is-done .wizard__num { background: #121418; color: #fff; }
@media (max-width: 599.98px) { .wizard__progress-item { flex-direction: column; align-items: flex-start; gap: 6px; font-size: var(--fs-xs); } }

.wizard__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
.wizard__step, .wizard__group { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard__step { display: grid; gap: var(--sp-5); }
.wizard__legend { display: grid; gap: 6px; padding: 0; margin-bottom: var(--sp-5); }
.wizard__kicker { font-family: var(--font-head); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.wizard__title { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 2rem); }
.wizard__title:focus { outline: none; box-shadow: none; }
.wizard__sublegend { padding: 0; margin-bottom: var(--sp-3); font-weight: 700; }
.wizard__month, .wizard__hint { color: var(--muted); font-weight: 500; }
.wizard__group + .wizard__group { margin-top: var(--sp-2); }

.choice__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.choice-list { display: grid; gap: 10px; }
@media (min-width: 700px) { .choice-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice {
  position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center;
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.choice:hover { border-color: color-mix(in srgb, var(--text) 40%, var(--line)); }
.choice__icon { grid-row: span 2; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #121418; color: #fff; transition: background-color var(--dur) var(--ease); }
.choice__icon .icon { width: 24px; height: 24px; }
.choice__body { display: grid; gap: 2px; }
.choice__title { font-weight: 800; line-height: 1.3; }
.choice__meta { font-size: var(--fs-xs); color: var(--muted); }
.choice__price { grid-column: 2; font-family: var(--font-head); font-weight: 800; font-size: var(--fs-sm); }
.choice:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.choice:has(:checked) .choice__icon { background: var(--accent); }
.choice:has(:focus-visible), .date:has(:focus-visible), .time:has(:focus-visible) { box-shadow: var(--focus); }

.dates { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.date {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 10px 2px; min-height: 68px; align-content: center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; text-align: center;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.date:hover { border-color: color-mix(in srgb, var(--text) 40%, var(--line)); }
.date__wd { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.date__num { font-family: var(--font-head); font-weight: 900; font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem); line-height: 1; }
.date--today .date__wd { color: var(--accent); }
.date:has(:checked) { background: #121418; border-color: #121418; color: #fff; }
.date:has(:checked) .date__wd { color: #fff; }
.date:has(:disabled) { cursor: not-allowed; background: var(--surface-2); border-color: transparent; color: var(--muted); }
.date:has(:disabled) .date__num { text-decoration: line-through; text-decoration-thickness: 2px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.time {
  position: relative; display: grid; place-items: center; min-height: 46px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); cursor: pointer; font-weight: 700; font-variant-numeric: tabular-nums;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.time--free:hover { border-color: var(--accent); color: var(--accent); }
.time:has(:checked) { background: var(--accent); border-color: var(--accent); color: #fff; }
.time--free:has(:checked):hover { color: #fff; }
.time--busy { cursor: not-allowed; border-color: transparent; color: var(--muted); background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, color-mix(in srgb, var(--surface-2) 60%, var(--line)) 6px 8px); }
.time--busy span { text-decoration: line-through; }
.time--past { cursor: not-allowed; border-style: dashed; color: color-mix(in srgb, var(--muted) 75%, var(--surface)); }
.times__empty { grid-column: 1 / -1; color: var(--muted); }
.times__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: var(--sp-3); font-size: var(--fs-xs); color: var(--muted); }
.times__key { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--line); }
.times__key--busy { border-color: transparent; background: repeating-linear-gradient(135deg, var(--surface-2) 0 3px, var(--line) 3px 4px); margin-left: 8px; }

.wizard__fields { display: grid; gap: var(--sp-4); }
.form__row { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field__control { min-width: 0; }

.wizard__summary { display: grid; gap: var(--sp-4); align-content: start; padding: clamp(18px, 1.5vw + 12px, 28px); border-radius: var(--radius); background: #121418; color: #fff; }
.wizard__summary-title { font-family: var(--font-head); font-weight: 900; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.875rem; display: flex; align-items: center; gap: 10px; }
.wizard__summary-title::before { content: ""; width: 24px; height: 3px; background: var(--accent); }
.wizard__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-4); margin: 0; }
.wizard__facts div { min-width: 0; }
.wizard__facts dt { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.wizard__facts dt .icon { width: 15px; height: 15px; color: var(--accent-bright); }
.wizard__facts dd { margin: 2px 0 0; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.wizard__price { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.wizard__price strong { color: #fff; font-family: var(--font-head); font-weight: 900; font-size: 1.125rem; }
.wizard__error { color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }
.wizard__error:empty { display: none; }
.wizard__nav { display: flex; gap: var(--sp-3); align-items: center; }
.wizard__nav [data-next], .wizard__nav [data-submit] { margin-left: auto; }
.wizard__nav [data-back] .icon { width: 18px; height: 18px; }
@media (max-width: 599.98px) {
  .wizard__nav [data-next], .wizard__nav [data-submit] { flex: 1; padding-inline: 16px; }
  .wizard__nav [data-back] { padding-inline: 14px; }
}
@media (min-width: 960px) {
  .wizard__form { grid-template-columns: minmax(0, 1fr) 320px; column-gap: var(--sp-7); }
  .wizard__step, .wizard__error, .wizard__nav { grid-column: 1; }
  .wizard__summary { grid-column: 2; grid-row: 1 / span 3; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
  .wizard__facts { grid-template-columns: 1fr; }
  .wizard__nav { padding-top: var(--sp-5); border-top: 1px solid var(--line); }
}
.booking__contact { justify-content: center; margin-top: var(--sp-5); }
.booking-fallback { max-width: 760px; margin-inline: auto; }

/* ---------- Модальное окно «Вы успешно записаны» ---------- */
.modal {
  width: min(460px, calc(100% - 2 * var(--gutter))); max-height: calc(100dvh - 32px);
  margin: auto; /* общий сброс обнуляет margin, а им браузер центрирует <dialog> */
  padding: 0; border: 0; border-top: 4px solid var(--accent); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgb(0 0 0 / 0.35);
  overflow: auto; overscroll-behavior: contain;
}
.modal::backdrop { background: rgb(10 11 13 / 0.66); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-in var(--dur) var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
html:has(.modal[open]) { overflow: hidden; }
/* Отступы — на внутреннем блоке: клик по самому <dialog> означает клик по затемнению */
.modal__step { display: grid; gap: var(--sp-4); padding: clamp(24px, 2vw + 16px, 36px); }
.modal__title { font-size: var(--fs-h3); text-transform: uppercase; font-weight: 900; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text); cursor: pointer; }
.modal__close .icon { transform: rotate(45deg); }
.modal__close:hover { background: var(--line); }
.modal__close:focus-visible { box-shadow: var(--focus); outline: none; }
.modal__done { justify-items: center; text-align: center; }
.modal__done .modal__title:focus { outline: none; box-shadow: none; }
.modal__done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin-top: var(--sp-2); border-radius: var(--radius); background: var(--accent); color: #fff; }
.modal__done-icon .icon { width: 36px; height: 36px; }
.modal__done-text { color: var(--text); }
.modal__facts { justify-self: stretch; display: grid; gap: var(--sp-2); margin: 0; padding: var(--sp-4); list-style: none; text-align: left; border-radius: var(--radius-sm); background: var(--surface-2); font-weight: 600; }
.modal__facts li { display: flex; gap: var(--sp-3); align-items: center; }
.modal__facts .icon { color: var(--accent); flex: none; }
.modal__facts li:has(span:empty) { display: none; }
.modal__note { font-size: var(--fs-sm); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.booking__contact { flex-wrap: wrap; text-align: center; }
.booking__contact a { white-space: nowrap; }
.theme-dark .nav__link[aria-current="page"] { color: var(--accent-bright); }

/* На телефоне — отдельное вертикальное фото (941×1672): колесо внизу справа, сверху место под текст */
@media (max-width: 767.98px) {
  .hero--photo .hero__media img { object-position: 70% 50%; }
  .hero--photo .hero__media::after { background: linear-gradient(180deg, rgb(15 17 20 / 0.2) 0%, rgb(15 17 20 / 0.5) 40%, rgb(15 17 20 / 0.62) 70%, rgb(15 17 20 / 0.8) 100%); }
  .hero--photo .hero__title, .hero--photo .hero__lead { text-shadow: 0 2px 18px rgb(0 0 0 / 0.55); }
}

/* Плашка концепта: ссылка назад на mallarion.site */
.demo-notice .container { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.demo-notice__back { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.demo-notice__back:hover { text-decoration-thickness: 2px; }
