/* =========================================================
   Демо Авто — демо-сайт автосервиса. Тёмная тема, mobile-first.
   ========================================================= */
:root {
  --bg: #0a0b0d;
  --bg-2: #0f1114;
  --surface: #14171b;
  --surface-2: #1b1f24;
  --surface-3: #23282e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f3f4f6;
  --muted: #a1a8b3;
  --dim: #6f7782;
  --accent: #e5262f;
  --accent-2: #ff5b35;
  --accent-soft: rgba(229, 38, 47, .14);
  --glow: 0 10px 40px -8px rgba(229, 38, 47, .55);
  --ok: #34c77b;
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --topbar-h: 0px;
  --dock-h: 0px;
  color-scheme: dark;
}
@media (max-width: 767px) { :root { --dock-h: 68px; } }
@media (min-width: 1100px) { :root { --header-h: 76px; --topbar-h: 38px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
html.no-scroll { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section--alt { background: var(--bg-2); }
.section--flush-top { padding-top: 0; }
.section--after-hero { padding-top: clamp(32px, 5vw, 56px); }
.stack { display: grid; gap: 14px; align-content: start; }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 12px/1.2 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.h2 {
  font: 700 clamp(26px, 5.4vw, 52px)/1.08 var(--display);
  letter-spacing: -.02em; text-transform: uppercase; margin-top: 14px;
}
.h2 em, .h1 em { font-style: normal; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 60ch; margin-top: 16px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-head > div { min-width: 0; max-width: 760px; }
.sec-head--tight { margin-bottom: 24px; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 26px; border-radius: 999px;
  font: 700 15px/1.1 var(--font); letter-spacing: .01em; text-align: center;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .3s, color .25s, border-color .25s;
  overflow: hidden; isolation: isolate; white-space: nowrap;
}
.btn .ic { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--glow); }
.btn--accent::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--accent:hover { background: #f0323b; }
.btn--accent:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-2); background: rgba(16,18,22,.55); }
.btn--ghost:hover { border-color: rgba(255,255,255,.35); background: rgba(40,44,50,.7); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 700; font-size: 14px; }
.link .ic { width: 16px; height: 16px; color: var(--accent); transition: transform .25s var(--ease); }
.link:hover .ic { transform: translateX(4px); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.chip--accent { background: var(--accent-soft); color: #ff8a80; border-color: rgba(229,38,47,.3); }

/* ---------- Topbar + Header ---------- */
.topbar { display: none; }
@media (min-width: 1100px) {
  .topbar {
    display: block; position: absolute; top: 0; left: 0; right: 0; z-index: 51;
    font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line);
    transition: transform .4s var(--ease), opacity .3s;
  }
  .topbar__in { display: flex; gap: 28px; align-items: center; height: var(--topbar-h); }
  .topbar__in > span { display: inline-flex; align-items: center; gap: 8px; }
  .topbar .ic { width: 15px; height: 15px; color: var(--accent); }
  .topbar__cb { margin-left: auto; color: var(--text); font-weight: 600; border-bottom: 1px dashed var(--line-2); }
  .topbar__cb:hover { color: var(--accent-2); }
  .is-scrolled .topbar { transform: translateY(-100%); opacity: 0; }
}
.header {
  position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .35s, border-color .35s, top .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.is-scrolled .header {
  top: 0;
  background: rgba(10, 11, 13, .94);
  border-color: var(--line);
}
.header__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 36px; height: 36px; color: var(--accent); }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { font: 800 20px/1 var(--display); letter-spacing: .08em; display: flex; flex-direction: column; gap: 4px; }
.logo__text small { font: 600 9px/1 var(--font); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
@media (min-width: 1100px) {
  .nav { display: block; margin-inline: auto; }
  .nav__list { display: flex; gap: 2px; }
  .nav__item { position: relative; }
  .nav__link {
    display: inline-flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 12px;
    font-weight: 600; font-size: 14.5px; color: rgba(243,244,246,.86); transition: color .2s; position: relative;
  }
  .nav__link::after {
    content: ''; position: absolute; left: 12px; right: 12px; bottom: 18px; height: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
  }
  .nav__item:hover .nav__link, .nav__item:focus-within .nav__link, .is-current .nav__link { color: #fff; }
  .nav__item:hover .nav__link::after, .is-current .nav__link::after { transform: scaleX(1); }
  .nav__chev { width: 14px; height: 14px; opacity: .6; transition: transform .3s var(--ease); }
  .nav__item:hover .nav__chev { transform: rotate(180deg); }
  .nav__sub {
    position: absolute; top: calc(100% - 8px); left: 0; min-width: 260px; padding: 10px;
    background: rgb(20, 23, 27); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav__item:hover .nav__sub, .nav__item:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { display: block; padding: 10px 14px; border-radius: 10px; font-size: 14.5px; color: var(--muted); transition: background-color .2s, color .2s, padding .25s var(--ease); }
  .nav__sub a:hover { background: var(--surface-3); color: #fff; padding-left: 18px; }
}
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
@media (min-width: 1100px) { .header__actions { margin-left: 0; } }
.header__phone { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.header__phone .ic { color: var(--accent); width: 18px; height: 18px; }
@media (min-width: 1280px) { .header__phone { display: inline-flex; } }
.header__cta { display: none; }
@media (min-width: 560px) { .header__cta { display: inline-flex; } }
.burger { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); }
.burger .ic { width: 22px; height: 22px; }
@media (min-width: 1100px) { .burger { display: none; } }

/* ---------- Мобильное меню ---------- */
.mmenu {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease);
}
.mmenu.is-open { opacity: 1; transform: none; }
.mmenu__head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.mmenu__close { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); }
.mnav { margin-top: 8px; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__toggle, .mnav__link {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 0; font: 700 20px/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; text-align: left;
}
.mnav__toggle .ic { width: 20px; height: 20px; color: var(--muted); transition: transform .3s var(--ease); }
.mnav__toggle[aria-expanded="true"] .ic { transform: rotate(180deg); color: var(--accent); }
.mnav__sub { padding: 0 0 14px; display: grid; gap: 2px; }
.mnav__sub a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--muted); font-weight: 600; }
.mnav__sub a:active { background: var(--surface-2); }
.mmenu__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.mmenu__phone { font: 700 24px/1.2 var(--display); }
.mmenu__meta { color: var(--muted); font-size: 14px; margin-top: -6px; margin-bottom: 6px; }

/* ---------- Нижняя панель на телефоне ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(12, 13, 16, .97);
  border-top: 1px solid var(--line);
}
@media (min-width: 768px) { .dock { display: none; } }
.dock__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 52px; border-radius: 14px; font-size: 12px; font-weight: 700; color: var(--muted);
}
.dock__btn .ic { width: 20px; height: 20px; }
.dock__btn:active { background: var(--surface-2); }
.dock__btn--main { background: var(--accent); color: #fff; flex-direction: row; gap: 8px; font-size: 15px; box-shadow: var(--glow); }

/* =========================================================
   ИНТРО
   ========================================================= */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; cursor: pointer;
  --p: 0;
}
.intro__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: #050506; transition: transform 1s var(--ease-io); }
.intro__panel--top { top: 0; }
.intro__panel--bot { bottom: 0; }
.intro__center { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; transition: opacity .35s, transform .6s var(--ease); }
.intro__logo { width: 72px; height: 72px; color: var(--accent); }
.intro__logo path { stroke-dasharray: 140; stroke-dashoffset: calc(140 - 140 * var(--p)); }
.intro__word { font: 800 clamp(34px, 8vw, 64px)/1 var(--display); letter-spacing: .3em; padding-left: .3em; }
.intro__line { width: min(280px, 60vw); height: 2px; background: rgba(255,255,255,.1); overflow: hidden; }
.intro__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 18px var(--accent); }
.intro__pct { font: 600 12px/1 var(--font); letter-spacing: .3em; color: var(--muted); }
.intro__pct::after { content: ' %'; }
.intro__flash { position: absolute; left: 0; right: 0; top: 50%; height: 2px; z-index: 3; background: linear-gradient(90deg, transparent, #fff, var(--accent-2), transparent); transform: scaleX(0); opacity: 0; }
.intro.is-done { pointer-events: none; }
.intro.is-done .intro__center { opacity: 0; transform: scale(.94); }
.intro.is-done .intro__flash { animation: flash .9s var(--ease) forwards; }
.intro.is-done .intro__panel--top { transform: translateY(-101%); transition-delay: .25s; }
.intro.is-done .intro__panel--bot { transform: translateY(101%); transition-delay: .25s; }
@keyframes flash { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; background: #050506;
}
.hero__media { position: absolute; inset: -24px; z-index: -4; transition: transform .8s var(--ease); will-change: transform; }
/* Смена слайда — «шторка» на transform (считается на видеокарте), а не clip-path */
.hero__slide, .hero__slide-in { position: absolute; inset: 0; overflow: hidden; }
.hero__slide { transform: translate3d(100%, 0, 0); visibility: hidden; }
.hero__slide-in { transform: translate3d(-100%, 0, 0); }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero__slide.is-active, .hero__slide.is-prev { visibility: visible; will-change: transform; }
.hero__slide.is-active, .hero__slide.is-active .hero__slide-in, .hero__slide.is-prev, .hero__slide.is-prev .hero__slide-in { transform: none; }
.hero__slide.is-active { z-index: 1; transition: transform 1.3s var(--ease-io); }
.hero__slide.is-active .hero__slide-in { transition: transform 1.3s var(--ease-io); will-change: transform; }
.hero__slide.is-active img { transform: scale(1.03); transition: transform 9s cubic-bezier(.2,.6,.3,1); will-change: transform; }
.hero__slide.is-prev img { transform: scale(1.03); }
.hero__sparks { position: absolute; left: 0; top: 0; z-index: -2; pointer-events: none; }
.hero__shade {
  position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(120% 80% at 80% 70%, transparent 0%, rgba(5,5,6,.35) 60%, rgba(5,5,6,.85) 100%),
    linear-gradient(90deg, rgba(5,5,6,.92) 0%, rgba(5,5,6,.55) 45%, rgba(5,5,6,.1) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    linear-gradient(180deg, rgba(5,5,6,.7) 0%, transparent 25%),
    linear-gradient(rgba(5,5,6,.22), rgba(5,5,6,.22));
}
.hero__shade::after {
  content: ''; position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__giant {
  position: absolute; right: -2vw; bottom: 14%; z-index: -2; pointer-events: none; user-select: none;
  font: 900 clamp(120px, 26vw, 420px)/.8 var(--display); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.07);
  transition: transform .8s var(--ease); will-change: transform;
}
.hero__sweep { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; z-index: 1; overflow: hidden; pointer-events: none; }
.hero__sweep::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; opacity: .85;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, #fff 50%, var(--accent) 70%, transparent);
  animation: sweep 5s linear infinite; will-change: transform;
}
@keyframes sweep { from { transform: translate3d(-100%, 0, 0); } to { transform: translate3d(200%, 0, 0); } }

.hero__inner { flex: 1; display: flex; flex-direction: column; padding-top: calc(var(--header-h) + 40px); padding-bottom: 44px; }
@media (min-width: 1100px) { .hero__inner { padding-top: calc(var(--header-h) + var(--topbar-h) + 48px); } }
.hero__content { margin-block: auto; max-width: 880px; padding-block: 24px 36px; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 600 12px/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.hero__eyebrow::before { content: ''; width: 36px; height: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero__title {
  margin-top: 20px; font: 800 clamp(24px, min(7vw, 10.5vh), 104px)/1 var(--display);
  letter-spacing: -.035em; text-transform: uppercase; text-wrap: balance;
}
.hero__title .line { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line__in { display: inline-block; }
.hero__title em { font-style: normal; color: transparent; background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%); -webkit-background-clip: text; background-clip: text; }
.hero__text { margin-top: 22px; max-width: 54ch; font-size: clamp(16px, 1.7vw, 19px); color: rgba(243,244,246,.78); }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero__ctas .btn { flex: 1 1 100%; } }

/* анимация текста слайда */
.hero__content .hero__eyebrow, .hero__content .hero__text, .hero__content .hero__ctas { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hero__content .line__in { transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 90ms + 80ms); }
.hero__content.is-in .hero__eyebrow, .hero__content.is-in .hero__text, .hero__content.is-in .hero__ctas { opacity: 1; transform: none; }
.hero__content.is-in .hero__text { transition-delay: .35s; }
.hero__content.is-in .hero__ctas { transition-delay: .5s; }
.hero__content.is-in .line__in { transform: none; }
.hero__content.is-out .hero__eyebrow, .hero__content.is-out .hero__text { opacity: 0; transform: translateY(-10px); transition-duration: .3s; }
.hero__content.is-out .line__in { transform: translateY(-105%); transition: transform .35s var(--ease-io); transition-delay: 0s; }
.hero__content.is-out .hero__ctas { opacity: 1; transform: none; }

.hero__bottom { display: grid; gap: 20px; opacity: 0; transform: translateY(20px); transition: opacity .8s .6s, transform 1s .6s var(--ease); }
.hero.is-live .hero__bottom { opacity: 1; transform: none; }
.hero__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hero__stat { padding: 16px 16px; background: rgba(12, 13, 16, .82); min-width: 0; }
.hero__stat b { display: block; font: 800 clamp(22px, 3vw, 34px)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.hero__stat b span { color: var(--accent); }
.hero__stat small { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.hero__ctrl { display: flex; align-items: center; gap: 14px; }
.hero__count { font: 700 14px/1 var(--display); letter-spacing: .06em; white-space: nowrap; }
.hero__count .hero__total { color: var(--dim); }
.hero__bars { flex: 1; display: flex; gap: 6px; min-width: 0; }
.hero__bar { flex: 1; height: 24px; display: flex; align-items: center; }
.hero__bar span { position: relative; display: block; width: 100%; height: 2px; background: rgba(255,255,255,.18); overflow: hidden; border-radius: 2px; }
.hero__bar span::after { content: ''; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero__bar.is-done span::after { transform: scaleX(1); }
.hero__bar.is-active span::after { animation: bar var(--dur, 7s) linear forwards; }
.hero.is-paused .hero__bar.is-active span::after { animation-play-state: paused; }
@keyframes bar { to { transform: scaleX(1); } }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10,11,13,.6); transition: background-color .25s, border-color .25s; }
.hero__arrows button:hover { background: var(--accent); border-color: var(--accent); }
.hero__arrows .ic { width: 18px; height: 18px; }
.hero__prev, .hero__pause { display: none !important; }
@media (min-width: 768px) {
  .hero__prev, .hero__pause { display: grid !important; }
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__stat { padding: 20px 22px; }
}
@media (min-width: 1100px) {
  .hero__bottom { grid-template-columns: 1fr auto; align-items: end; gap: 40px; }
  .hero__ctrl { min-width: 380px; }
}
@media (max-width: 767px) {
  /* На телефоне сверху — «окно» с фото и искрами, текст ниже */
  .hero__inner { padding-top: calc(var(--header-h) + min(30vh, 240px)); }
  .hero__content { margin-block: 0; padding-block: 0 28px; }
  .hero__media { inset: 0; }
  .hero__slide img { object-position: 62% 50%; }
  .hero__giant { bottom: auto; top: calc(var(--header-h) + 8px); right: -4vw; font-size: 34vw; -webkit-text-stroke-color: rgba(255,255,255,.12); }
  .hero__shade { background:
    linear-gradient(180deg, rgba(5,5,6,.65) 0%, rgba(5,5,6,.05) 18%, rgba(5,5,6,.15) 30%, rgba(5,5,6,.85) 46%, var(--bg) 70%); }
  .hero__stat { padding: 14px; }
}

/* ---------- Бегущая строка ---------- */
.ticker-wrap { overflow: hidden; position: relative; z-index: 3; margin-top: -30px; padding-block: 16px; }
.ticker { background: var(--accent); color: #fff; overflow: hidden; transform: rotate(-1.2deg); margin-inline: -24px; box-shadow: 0 20px 60px -20px rgba(229,38,47,.6); }
.ticker__track { display: flex; width: max-content; animation: marquee 32s linear infinite; will-change: transform; }
.ticker__item { display: inline-flex; align-items: center; gap: 28px; padding: 16px 14px; font: 800 clamp(16px, 2.2vw, 24px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.ticker__item::after { content: ''; width: 10px; height: 10px; background: #fff; transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Карточки услуг ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .svc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  padding: 18px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: border-color .3s, transform .4s var(--ease);
  min-height: 168px;
}
@media (min-width: 768px) { .svc { padding: 26px 24px; min-height: 210px; } }
.svc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 90% at 100% 0%, rgba(229,38,47,.22), transparent 60%);
}
.svc:hover { border-color: rgba(229,38,47,.45); transform: translateY(-4px); }
.svc:hover::before { opacity: 1; }
.svc__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); transition: background-color .3s, color .3s, transform .4s var(--ease); }
.svc__icon .ic { width: 24px; height: 24px; }
.svc:hover .svc__icon { background: var(--accent); color: #fff; transform: rotate(-8deg); }
.svc__badge { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--accent); color: #fff; }
.svc__title { margin-top: auto; font: 700 clamp(14px, 1.6vw, 17px)/1.25 var(--font); hyphens: auto; }
.svc__price { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.svc__go { position: absolute; right: 18px; bottom: 18px; width: 34px; height: 34px; border-radius: 50%; display: none; place-items: center; border: 1px solid var(--line-2); transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
@media (min-width: 768px) { .svc__go { display: grid; } }
.svc__go .ic { width: 16px; height: 16px; }
.svc:hover .svc__go { background: var(--accent); border-color: var(--accent); transform: rotate(-45deg); }

/* ---------- Почему мы (split) ---------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } }
.frame { position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--surface); }
@media (max-width: 959px) { .frame { aspect-ratio: 4 / 3; } }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); will-change: transform; }
.frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,11,13,.7), transparent 50%); }
.frame__badge {
  position: absolute; left: 16px; bottom: 16px; right: 16px; z-index: 2;
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(12,13,16,.88); border: 1px solid var(--line-2);
}
.frame__badge b { font: 800 34px/1 var(--display); color: var(--accent); }
.frame__badge span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.feats { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 560px) { .feats { grid-template-columns: 1fr 1fr; } }
.feat { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.feat__ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.feat__ic .ic { width: 20px; height: 20px; }
.feat h3 { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.feat p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--line); counter-increment: s; overflow: hidden; min-width: 0; }
.step::before { content: '0' counter(s); display: block; font: 800 56px/1 var(--display); color: transparent; -webkit-text-stroke: 1px rgba(229,38,47,.6); margin-bottom: 18px; }
.step::after { content: ''; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), transparent); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .3s; }
.step.is-in::after { transform: scaleX(1); }
.step h3 { font-size: 18px; font-weight: 800; }
.step p { margin-top: 8px; color: var(--muted); font-size: 14.5px; }

/* ---------- Акции ---------- */
.promo-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .promo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.promo-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 360px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.promo-scroll::-webkit-scrollbar { display: none; }
.promo-scroll > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .promo-scroll { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; gap: 20px; } }
.promo { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; transition: transform .4s var(--ease), border-color .3s; }
.promo:hover { transform: translateY(-4px); border-color: var(--line-2); }
.promo__img { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--surface-2); }
.promo__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.promo__img::after, .post__img::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.15); pointer-events: none; }
.promo:hover .promo__img img { transform: scale(1.06); }
.promo__body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; align-items: flex-start; }
.promo__title { font: 700 18px/1.3 var(--font); }
.promo__text { color: var(--muted); font-size: 14.5px; }
.promo__foot { margin-top: auto; padding-top: 8px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.promo__until { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font-size: 13px; font-weight: 600; }
.promo__until .ic { width: 15px; height: 15px; }

/* ---------- Марки ---------- */
.marquee { overflow: hidden; position: relative; }
.marquee::before, .marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 1; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { padding: 10px clamp(18px, 3vw, 36px); font: 700 clamp(22px, 4vw, 44px)/1.2 var(--display); text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.28); white-space: nowrap; transition: color .3s, -webkit-text-stroke-color .3s; }
.marquee__item:hover { color: var(--text); -webkit-text-stroke-color: transparent; }
.brand-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .brand-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brand-grid li { display: grid; place-items: center; min-height: 64px; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; text-align: center; transition: border-color .3s, color .3s; }
.brand-grid li:hover { border-color: rgba(229,38,47,.45); color: var(--accent-2); }

/* ---------- Запись (секция) ---------- */
.booking-wrap { display: grid; gap: 24px; }
@media (min-width: 1024px) { .booking-wrap { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; } }
.panel { border-radius: calc(var(--radius) + 4px); background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 3.5vw, 36px); min-width: 0; }
.aside-info { display: grid; gap: 14px; }
@media (min-width: 1024px) { .aside-info { position: sticky; top: calc(var(--header-h) + 20px); } }
.info-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.info-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.info-card ul { display: grid; gap: 10px; }
.info-card li { display: flex; gap: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.info-card li .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.info-card--accent { background: linear-gradient(140deg, #2a0d10, var(--surface) 70%); border-color: rgba(229,38,47,.35); }
.info-card__phone { display: block; font: 800 22px/1.2 var(--display); margin: 6px 0 4px; }
.info-card__meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.contact-list { margin-top: 28px; display: grid; gap: 12px; }
.contact-list li { color: var(--muted); }
.contact-list a { color: var(--text); }

/* ---------- Формы ---------- */
.field { display: grid; gap: 7px; min-width: 0; margin-bottom: 16px; }
.field label, .bk__label { font-size: 14px; font-weight: 700; color: rgba(243,244,246,.9); }
.opt { font-weight: 500; color: var(--dim); font-size: 13px; }
input[type=text], input[type=tel], input[type=email], input[type=number], select, textarea {
  width: 100%; min-width: 0; min-height: 54px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  font-size: 16px; line-height: 1.3; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 96px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,.25); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(229,38,47,.18); background: var(--surface-2); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select option { background: var(--surface); }
.select .ic { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.field.is-invalid input, .field.is-invalid select { border-color: #ff5a5f; }
.field__error { color: #ff7b7f; font-size: 13px; font-weight: 600; min-height: 0; }
.field__error:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); cursor: pointer; margin: 4px 0 18px; line-height: 1.45; }
.check input { flex: none; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--bg-2); display: grid; place-items: center; margin: 0; cursor: pointer; transition: background-color .2s, border-color .2s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }
.check a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form .btn { margin-top: 4px; }

/* Мастер записи */
.bk__progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 26px; counter-reset: none; }
.bk__progress li { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--dim); position: relative; padding-top: 12px; min-width: 0; }
.bk__progress li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--surface-3); }
.bk__progress li.is-active, .bk__progress li.is-done { color: var(--text); }
.bk__progress li.is-active::before, .bk__progress li.is-done::before { background: var(--accent); }
.bk__progress span { display: none; }
@media (min-width: 560px) {
  .bk__progress li { flex-direction: row; align-items: center; font-size: 14px; }
  .bk__progress span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); font-size: 12px; flex: none; }
  .bk__progress li.is-active span, .bk__progress li.is-done span { background: var(--accent); color: #fff; }
}
.bk__step { animation: stepIn .5s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(16px); } }
.bk__legend { font: 700 clamp(20px, 3vw, 26px)/1.2 var(--display); text-transform: uppercase; letter-spacing: -.01em; margin-bottom: 6px; padding: 0; }
.bk__hint { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.bk__label { display: block; margin: 20px 0 10px; }
.bk__err { margin: -4px 0 14px; }
.pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
@media (min-width: 640px) { .pick-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick, .branch, .date, .time, .seg label { position: relative; cursor: pointer; min-width: 0; }
.pick input, .branch input, .date input, .time input, .seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick__box {
  display: flex; align-items: center; gap: 10px; min-height: 56px; height: 100%; padding: 10px 12px;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2);
  font-size: 14px; font-weight: 600; line-height: 1.25; transition: border-color .2s, background-color .2s, transform .15s;
}
.pick__box > span { min-width: 0; overflow-wrap: break-word; }
.pick__box .ic { width: 20px; height: 20px; color: var(--accent-2); }
/* На узких телефонах иконка над подписью — иначе длинные слова («Кондиционер») рвутся посередине */
@media (max-width: 419px) { .pick__box { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 10px 12px; } }
.pick:hover .pick__box { border-color: rgba(255,255,255,.3); }
.pick input:checked + .pick__box { border-color: var(--accent); background: var(--accent-soft); }
.pick input:focus-visible + .pick__box, .branch input:focus-visible + .branch__box, .date input:focus-visible + .date__box, .time input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pick:active .pick__box { transform: scale(.98); }
.branch-grid { display: grid; gap: 8px; }
@media (min-width: 640px) { .branch-grid { grid-template-columns: 1fr 1fr; } }
.branch__box { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, background-color .2s; }
.branch__box small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.branch__box small .ic { width: 14px; height: 14px; }
.branch input:checked + .branch__box { border-color: var(--accent); background: var(--accent-soft); }
.dates { display: grid; grid-auto-flow: column; grid-auto-columns: 64px; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.date { scroll-snap-align: start; }
.date__box { display: grid; justify-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, background-color .2s; }
.date__box small { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.date__box b { font: 700 20px/1.2 var(--display); }
.date.is-we .date__box small:first-child { color: var(--accent-2); }
.date input:checked + .date__box { border-color: var(--accent); background: var(--accent); }
.date input:checked + .date__box small { color: rgba(255,255,255,.85); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-bottom: 14px; transition: opacity .3s; }
.times.is-off { opacity: .35; pointer-events: none; }
.time span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--bg-2); font-weight: 700; font-size: 14.5px; transition: border-color .2s, background-color .2s; }
.time:hover span { border-color: rgba(255,255,255,.3); }
.time input:checked + span { background: var(--accent); border-color: var(--accent); }
.time.is-busy { cursor: not-allowed; }
.time.is-busy span { color: var(--dim); text-decoration: line-through; border-style: dashed; background: transparent; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 14.5px; font-weight: 600; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__ui { flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--surface-3); position: relative; transition: background-color .25s; }
.switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.switch input:checked + .switch__ui { background: var(--accent); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 18px; }
.seg span { display: grid; place-items: center; min-height: 44px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--surface-3); color: var(--text); }
.summary { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--bg-2); border: 1px dashed var(--line-2); margin-bottom: 16px; position: relative; }
.summary div { display: grid; gap: 2px; min-width: 0; }
.summary span, .bk-done__card span { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.summary b, .bk-done__card b { font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.summary__edit { justify-self: start; color: var(--accent-2); }
.bk__nav { display: flex; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.bk__nav .btn { flex: 1; }
.bk__nav .bk__back { flex: 0 0 auto; }
@media (min-width: 640px) { .bk__nav .bk__next { flex: 0 0 auto; margin-left: auto; min-width: 220px; } }
.bk-done { text-align: center; padding: 20px 0; outline: none; animation: stepIn .6s var(--ease); }
.bk-done__icon { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #06240f; box-shadow: 0 0 0 10px rgba(52,199,123,.12), 0 0 0 22px rgba(52,199,123,.05); animation: pop .6s var(--ease); }
.bk-done__icon .ic { width: 36px; height: 36px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.bk-done__title { font: 800 clamp(24px, 4vw, 32px)/1.1 var(--display); text-transform: uppercase; }
.bk-done__text { color: var(--muted); margin: 10px auto 0; max-width: 46ch; }
.bk-done__card { text-align: left; display: grid; gap: 12px; margin: 22px auto 0; max-width: 460px; padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.bk-done__card div { display: grid; gap: 2px; }
.bk-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
@media (max-width: 479px) { .bk-done__actions .btn { flex: 1 1 100%; } }

/* ---------- Отзывы ---------- */
.reviews { display: grid; gap: 14px; }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .reviews { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.review { margin: 0; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.review__stars { display: flex; gap: 3px; color: #ffb547; }
.review__stars .ic { width: 16px; height: 16px; fill: currentColor; }
.review blockquote { margin: 0; color: rgba(243,244,246,.85); font-size: 15px; line-height: 1.6; flex: 1; }
.review figcaption { display: flex; gap: 12px; align-items: center; }
.review__ava { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-weight: 800; flex: none; }
.review figcaption b { display: block; font-size: 15px; }
.review figcaption small { color: var(--muted); font-size: 13px; }
.rating { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.rating b { font: 800 34px/1 var(--display); }
.rating small { color: var(--muted); font-size: 13px; display: block; }
.rating .review__stars .ic { width: 14px; height: 14px; }

/* ---------- CTA-баннер ---------- */
.cta {
  position: relative; overflow: hidden; isolation: isolate; border-radius: calc(var(--radius) + 8px);
  padding: clamp(32px, 6vw, 72px); border: 1px solid rgba(229,38,47,.3);
  background: radial-gradient(80% 120% at 100% 100%, rgba(229,38,47,.45), transparent 60%), var(--surface);
}
.cta img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .25; filter: grayscale(.5); }
.cta::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--surface) 20%, transparent); }
.cta h2 { font: 800 clamp(26px, 5vw, 56px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.02em; max-width: 16ch; }
.cta p { color: var(--muted); margin-top: 14px; max-width: 46ch; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .cta__btns .btn { flex: 1 1 100%; } }

/* ---------- Контакты ---------- */
.contacts { display: grid; gap: 16px; }
@media (min-width: 1024px) { .contacts { grid-template-columns: 420px 1fr; } }
.branch-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.branch-card h3 { font: 700 20px/1.2 var(--display); text-transform: uppercase; }
.branch-card p { display: flex; gap: 10px; color: var(--muted); font-size: 15px; }
.branch-card p .ic { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.branch-card .btn { justify-self: start; margin-top: 4px; }
.map {
  position: relative; min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 40px 40px,
    radial-gradient(60% 60% at 50% 50%, #181c21, #0d0f12);
}
.map--tall { min-height: 420px; }
.map__roads { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: rgba(255,255,255,.08); }
.map__roads path:first-child { stroke: rgba(255,255,255,.12); }
.map__ring { stroke: rgba(229,38,47,.15); stroke-width: 2; stroke-dasharray: 6 8; }
.map__pin { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: center; gap: 8px; }
.map__pin span { padding: 6px 12px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line-2); font-size: 13px; font-weight: 700; white-space: nowrap; }
.map__pin i { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 8px rgba(229,38,47,.25), 0 0 30px var(--accent); }
.map__pin i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(229,38,47,.5); animation: ping 2s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(2.8); opacity: 0; } }
.map__note { position: absolute; left: 14px; bottom: 14px; font-size: 12px; color: var(--dim); }

/* ---------- Подвал ---------- */
.footer { background: #070809; border-top: 1px solid var(--line); padding-top: clamp(48px, 7vw, 80px); }
.footer__top { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 40ch; }
.footer__contacts { grid-column: 1 / -1; }
@media (min-width: 768px) { .footer__top { grid-template-columns: repeat(4, minmax(0, 1fr)); } .footer__contacts { grid-column: auto / span 2; } }
@media (min-width: 1200px) { .footer__top { grid-template-columns: 1.6fr repeat(4, 1fr) 1.3fr; } .footer__brand, .footer__contacts { grid-column: auto; } }
.footer h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); margin-bottom: 14px; font-weight: 700; }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a { color: rgba(243,244,246,.8); font-size: 14.5px; transition: color .2s; }
.footer__col a:hover { color: var(--accent-2); }
.footer__contacts { display: grid; gap: 8px; align-content: start; }
.footer__contacts p { display: flex; gap: 8px; color: var(--muted); font-size: 14px; }
.footer__contacts p .ic { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }
.footer__phone { font: 800 20px/1.2 var(--display) !important; color: var(--text) !important; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); transition: background-color .25s, border-color .25s; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }
.socials .ic { width: 19px; height: 19px; }
.footer__bottom { margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 13px; color: var(--dim); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Модальное окно и тост ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: end center; padding: 0; }
@media (min-width: 640px) { .modal { place-items: center; padding: 24px; } }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); opacity: 0; transition: opacity .3s; }
.modal__box {
  position: relative; width: 100%; max-width: 460px; max-height: 92svh; overflow-y: auto;
  padding: 28px 22px calc(24px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
  background: var(--surface); border: 1px solid var(--line-2); transform: translateY(40px); opacity: 0;
  transition: transform .4s var(--ease), opacity .3s;
}
@media (min-width: 640px) { .modal__box { border-radius: 24px; padding: 36px; } }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__box { transform: none; opacity: 1; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); }
.modal__title { font: 800 24px/1.15 var(--display); text-transform: uppercase; padding-right: 48px; }
.modal__text { color: var(--muted); margin: 10px 0 22px; font-size: 15px; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom)); z-index: 300;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); padding: 14px 20px; border-radius: 14px;
  background: #fff; color: #0a0b0d; font-weight: 700; font-size: 14.5px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.6);
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: transform .4s var(--ease), opacity .3s;
}
.toast .ic { color: var(--ok); width: 20px; height: 20px; stroke-width: 3; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* =========================================================
   Внутренние страницы
   ========================================================= */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 48px) 0 clamp(44px, 7vw, 88px); background: #050506; }
@media (min-width: 1100px) { .page-hero { padding-top: calc(var(--header-h) + var(--topbar-h) + 64px); } }
.page-hero--compact { padding-bottom: clamp(32px, 5vw, 56px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kb 14s ease-out forwards; will-change: transform; }
.page-hero__bg::after { content: ''; position: absolute; inset: 0; background: rgba(5,5,6,.45); }
@keyframes kb { to { transform: scale(1); } }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,5,6,.95) 0%, rgba(5,5,6,.6) 60%, rgba(5,5,6,.35) 100%), linear-gradient(0deg, var(--bg), transparent 50%); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: var(--text); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--dim); }
.h1 { font: 800 clamp(30px, 7vw, 76px)/1.02 var(--display); letter-spacing: -.03em; text-transform: uppercase; max-width: 18ch; text-wrap: balance; }
.page-hero .lead { color: rgba(243,244,246,.78); }
.page-hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 479px) { .page-hero__ctas .btn { flex: 1 1 100%; } }
.page-hero .hero__sweep { animation-duration: 6s; }

.adv { display: grid; gap: 12px; }
@media (min-width: 640px) { .adv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .adv { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.adv .feat { flex-direction: column; padding: 24px; }

.prices { display: grid; gap: 10px; align-items: start; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.price { scroll-margin-top: calc(var(--header-h) + 20px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s; min-width: 0; }
.price[open] { border-color: rgba(229,38,47,.4); }
.price summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; min-height: 72px; }
.price summary::-webkit-details-marker { display: none; }
.price__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-3); color: var(--accent-2); }
.price__icon .ic { width: 22px; height: 22px; }
.price__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.price__title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.price__from { color: var(--muted); font-size: 14px; font-weight: 600; }
.price__chev { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); transition: transform .3s var(--ease), background-color .3s; }
.price__chev .ic { width: 16px; height: 16px; }
.price[open] .price__chev { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); }
.price__list { padding: 0 18px 8px; display: grid; }
.price__list li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; color: rgba(243,244,246,.85); display: flex; align-items: center; gap: 10px; }
.price__list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.price > .btn { margin: 8px 18px 18px; }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 20px 20px; color: var(--muted); }

.prose { color: var(--muted); max-width: 820px; display: grid; gap: 14px; }
.prose .h2 { color: var(--text); }
.footnote { color: var(--dim); font-size: 13px; margin-top: 18px; }
.prose h3 { color: var(--text); font-size: 20px; margin-top: 10px; }
.prose ul { display: grid; gap: 8px; }
.prose li { padding-left: 22px; position: relative; }
.prose li::before { content: ''; position: absolute; left: 0; top: .7em; width: 8px; height: 2px; background: var(--accent); }

/* О компании */
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.num { padding: 22px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.num b { display: block; font: 800 clamp(28px, 5vw, 52px)/1 var(--display); letter-spacing: -.02em; }
.num b span { color: var(--accent); }
.num small { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.posts { display: grid; gap: 16px; }
@media (min-width: 640px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .posts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.post { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; min-width: 0; }
.post__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post__body { padding: 18px 20px 22px; }
.post__meta { font-size: 12.5px; color: var(--accent-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.post h3 { font-size: 17px; line-height: 1.35; margin-top: 8px; }
.timeline { display: grid; gap: 0; border-left: 2px solid var(--line-2); margin: 32px 0 0 8px; }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before { content: ''; position: absolute; left: -8px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.timeline b { font: 800 20px/1 var(--display); color: var(--accent); }
.timeline p { color: var(--muted); margin-top: 6px; }

/* ---------- Появление ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.svc[data-reveal].is-in:hover { transform: translateY(-4px); transition-delay: 0ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ticker__track, .marquee__track { animation: none; }
}
