/* =========================================================
   CARX SERVICE — автосервис в Алматы
   Нативный CSS. Без фреймворков и внешних шрифтов.
   Оглавление:
     01 Токены и темы        06 Секции и заголовки
     02 Базовые стили        07 Блоки (услуги … контакты)
     03 Утилиты и анимации   08 Подвал и оверлеи
     04 Кнопки               09 Адаптив
     05 Шапка и меню         10 prefers-reduced-motion
   ========================================================= */

/* ============ 01. ТОКЕНЫ И ТЕМЫ ============ */
:root {
  --accent:        #ff5c00;
  --accent-2:      #ffa227;
  --accent-ink:    #0a0b0d;

  --bg:            #0a0b0d;
  --bg-2:          #0e1014;
  --surface:       #14171d;
  --surface-2:     #191d25;
  --line:          rgba(255, 255, 255, .09);
  --line-strong:   rgba(255, 255, 255, .18);
  --txt:           #eef1f5;
  --txt-2:         #c3cad4;
  --muted:         #939ba8;
  --shadow:        0 24px 60px -20px rgba(0, 0, 0, .75);

  --radius:        18px;
  --radius-sm:     12px;
  --radius-lg:     26px;

  --header-h:      74px;
  --container:     1240px;
  --gap:           clamp(16px, 2.2vw, 28px);

  --ease:          cubic-bezier(.22, 1, .36, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "SF Pro Display",
          Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

[data-theme="light"] {
  --accent:        #e94e00;
  --accent-2:      #c2700a;
  --accent-ink:    #ffffff;

  --bg:            #f4f6f8;
  --bg-2:          #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef1f5;
  --line:          rgba(10, 12, 16, .10);
  --line-strong:   rgba(10, 12, 16, .22);
  --txt:           #10131a;
  --txt-2:         #333a46;
  --muted:         #626b78;
  --shadow:        0 24px 50px -24px rgba(15, 22, 36, .28);
}

/* ============ 02. БАЗОВЫЕ СТИЛИ ============ */
*, *::before, *::after { box-sizing: border-box; }

/* Обязательно: у оверлеев ниже задан display: flex/grid, и без !important
   он перебивает браузерное [hidden] { display: none }. Скрытый лайтбокс
   тогда остаётся во весь экран и перехватывает все клики по странице. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
p  { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; background: var(--surface-2); }
a  { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb {
  background: var(--line-strong); border-radius: 20px;
  border: 3px solid transparent; background-clip: content-box;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: fixed; z-index: 1000; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 10px; font-weight: 700;
}

/* ============ 03. УТИЛИТЫ И АНИМАЦИИ ============ */

/* Появление при скролле */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: var(--rd, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* Заголовки: построчное появление */
[data-split] .line { display: block; overflow: hidden; }
[data-split] .line > span {
  display: inline-block;
  transform: translate3d(0, 105%, 0);
  transition: transform .85s var(--ease-out);
  transition-delay: calc(var(--l, 0) * 90ms);
  will-change: transform;
}
[data-split].is-in .line > span { transform: none; }

/* Прелоадер */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: var(--bg);
  transition: opacity .55s var(--ease), visibility .55s;
}
.preloader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__inner { display: grid; justify-items: center; gap: 18px; color: var(--accent); }
.preloader__mark .pl-ring { opacity: .25; }
.preloader__mark .pl-needle { transform-origin: 32px 32px; animation: needle 1.4s var(--ease) infinite; }
@keyframes needle {
  0%   { transform: rotate(-140deg); }
  55%  { transform: rotate(140deg); }
  100% { transform: rotate(-140deg); }
}
.preloader__word {
  font-weight: 800; letter-spacing: .3em; font-size: 13px;
  color: var(--txt); text-transform: uppercase;
}
.preloader__word span { color: var(--accent); }
.preloader__bar { width: 180px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.preloader__bar i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .3s linear;
}

/* Полоса прогресса скролла */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 900;
  height: 3px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  will-change: transform;
}

/* Мягкое свечение за курсором */
.cursor-glow {
  position: fixed; z-index: 1; top: 0; left: 0;
  width: 480px; height: 480px; margin: -240px 0 0 -240px;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 92, 0, .16), transparent 62%);
  transition: opacity .5s var(--ease);
  will-change: transform;
}
body.has-pointer .cursor-glow { opacity: 1; }
[data-theme="light"] .cursor-glow { background: radial-gradient(circle, rgba(233, 78, 0, .10), transparent 62%); }

/* Пульсирующая точка */
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ee06a; display: inline-block; flex: none;
  box-shadow: 0 0 0 0 rgba(46, 224, 106, .55);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 12px rgba(46, 224, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 224, 106, 0); }
}

/* ============ 04. КНОПКИ ============ */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--txt);
  --btn-bd: var(--line-strong);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -.01em;
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120px 80px at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 70%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.btn:hover::after { opacity: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); }

.btn--primary {
  --btn-bg: linear-gradient(135deg, var(--accent), var(--accent-2));
  --btn-fg: #fff;
  --btn-bd: transparent;
  box-shadow: 0 12px 30px -12px rgba(255, 92, 0, .75);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(255, 92, 0, .9); }
.btn--outline { --btn-bd: var(--line-strong); }
.btn--outline:hover { --btn-bd: var(--accent); color: var(--accent); }
.btn--ghost { --btn-bg: var(--surface-2); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface); --btn-bd: var(--line-strong); }
.btn--sm  { padding: 9px 18px; font-size: 14px; }
.btn--lg  { padding: 16px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn svg { flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer;
  transition: border-color .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); transform: rotate(-12deg); }
.icon-btn .ico-moon { display: none; }
[data-theme="light"] .icon-btn .ico-moon { display: block; }
[data-theme="light"] .icon-btn .ico-sun  { display: none; }

/* ============ 05. ШАПКА И МЕНЮ ============ */
.header {
  position: fixed; inset: 0 0 auto; z-index: 800;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), background-color .35s var(--ease),
              border-color .35s var(--ease), transform .4s var(--ease);
}
.header.is-stuck {
  height: 62px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-105%); }
.header__inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); width: 100%; }

.logo { display: flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { color: var(--accent); transition: transform .5s var(--ease); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text {
  display: grid; font-weight: 800; font-size: 15px;
  letter-spacing: .16em; line-height: 1.15;
}
.logo__text b { color: var(--accent); font-weight: 800; }
.logo__text i {
  font-style: normal; font-weight: 500; font-size: 9.5px;
  letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__link {
  position: relative; padding: 8px 11px; border-radius: 10px;
  font-size: 14.5px; font-weight: 550; color: var(--txt-2);
  white-space: nowrap;
  transition: color .28s var(--ease), background-color .28s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--txt); background: var(--surface); }
.nav__link.is-active { color: var(--txt); }
.nav__link.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.header__phone {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; white-space: nowrap;
  transition: color .28s var(--ease);
}
.header__phone svg { color: var(--accent); }
.header__phone:hover { color: var(--accent); }

/* Flex-колонка, а не grid: у grid строки растягиваются по высоте кнопки,
   расстояние между полосками «плавает» и крестик не сходится. */
.burger {
  display: none; width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 18px; height: 2px; flex: none;
  background: var(--txt); border-radius: 2px;
  transition: transform .35s var(--ease), opacity .25s var(--ease);
}
/* Шаг 8px = высота полоски (2) + вертикальные отступы (3 + 3):
   именно на столько нужно свести крайние полоски, чтобы получился крестик. */
.burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 790;
  display: flex; flex-direction: column; gap: 28px;
  /* Не center: при переполнении flex выталкивает содержимое ВВЕРХ,
     и первый пункт уезжает под шапку. Центрируем авто-отступами ниже —
     они схлопываются в 0, когда места не хватает. */
  justify-content: flex-start;
  /* env(safe-area-inset-*) — вырез и «домашняя полоска» на iPhone.
     Без inset меню начинается прямо под логотипом. */
  padding:
    calc(var(--header-h) + env(safe-area-inset-top, 0px) + 28px)
    clamp(20px, 7vw, 48px)
    calc(36px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  opacity: 0; transition: opacity .35s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: grid; gap: 4px; margin-top: auto; }
.mobile-menu__foot { margin-bottom: auto; }
.mobile-menu__nav a {
  font-size: clamp(24px, 7vw, 38px); font-weight: 800; letter-spacing: -.03em;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease) calc(var(--i) * 45ms),
              transform .5s var(--ease) calc(var(--i) * 45ms), color .25s;
}
.mobile-menu.is-open .mobile-menu__nav a { opacity: 1; transform: none; }
.mobile-menu__nav a:hover { color: var(--accent); }
.mobile-menu__foot {
  display: grid; gap: 10px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .5s var(--ease) calc(var(--i) * 45ms),
              transform .5s var(--ease) calc(var(--i) * 45ms);
}
.mobile-menu.is-open .mobile-menu__foot { opacity: 1; transform: none; }
.mobile-menu__foot p { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; text-align: center; }

/* ============ 06. СЕКЦИИ И ЗАГОЛОВКИ ============ */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--alt { background: var(--bg-2); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(20px, 4vw, 64px); align-items: end;
  margin-bottom: clamp(34px, 5vw, 60px);
}
.section__head--center {
  grid-template-columns: 1fr; justify-items: center; text-align: center;
  max-width: 780px; margin-inline: auto;
}
.section__desc { color: var(--muted); font-size: 16.5px; margin: 0; }
.section__desc--center { max-width: 620px; }

.kicker {
  display: inline-block; margin: 0 0 14px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
}
.section__title { font-size: clamp(30px, 4.4vw, 54px); }

/* ============ 07. БЛОКИ ============ */

/* --- Герой --- */
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 940px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 56px) 0 84px;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__img {
  width: 100%; height: 118%; object-fit: cover;
  transform: translate3d(0, 0, 0) scale(1.06);
  will-change: transform;
  filter: saturate(.85) contrast(1.05);
}
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.86) 0%, rgba(10,11,13,.58) 34%, rgba(10,11,13,.94) 92%),
    linear-gradient(100deg, rgba(10,11,13,.92) 8%, rgba(10,11,13,.25) 62%);
}
[data-theme="light"] .hero__scrim {
  background:
    linear-gradient(180deg, rgba(244,246,248,.9) 0%, rgba(244,246,248,.6) 34%, rgba(244,246,248,.97) 92%),
    linear-gradient(100deg, rgba(244,246,248,.95) 8%, rgba(244,246,248,.3) 62%);
}
.hero__grid {
  position: absolute; inset: 0; opacity: .5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 30% 40%, #000 20%, transparent 75%);
}
.hero__glow {
  position: absolute; right: -8%; top: 8%;
  width: min(52vw, 620px); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 92, 0, .28), transparent 62%);
  filter: blur(10px);
  animation: floaty 9s ease-in-out infinite alternate;
}
@keyframes floaty {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-3%, 5%, 0) scale(1.12); }
}

.hero__inner { position: relative; max-width: 900px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  backdrop-filter: blur(8px);
  font-size: 13px; font-weight: 600; color: var(--txt-2);
  margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(36px, 6.4vw, 80px);
  letter-spacing: -.035em; line-height: 1.02;
  margin: 0 0 22px; max-width: 16ch;
}
.hero__lead { max-width: 60ch; font-size: clamp(16px, 1.6vw, 19px); color: var(--txt-2); margin: 0 0 20px; }
.hero__lead b { color: var(--txt); }

.hero__rotator {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  font-size: 15.5px; color: var(--muted); margin-bottom: 30px;
}
.rotator { position: relative; display: inline-block; height: 1.5em; overflow: hidden; min-width: 21ch; }
.rotator__item {
  position: absolute; left: 0; top: 0; white-space: nowrap;
  display: block; color: var(--accent); font-weight: 700;
  transform: translateY(100%); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.rotator__item.is-active { transform: none; opacity: 1; }
.rotator__item.is-out { transform: translateY(-100%); opacity: 0; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
  padding-top: 26px; border-top: 1px solid var(--line);
  max-width: 720px;
}
.hero__stats li { display: grid; gap: 2px; }
.hero__stats b {
  font-size: clamp(24px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--txt), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__stats span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0;
  display: grid; justify-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.hero__mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  display: grid; justify-items: center; padding-top: 6px;
}
.hero__mouse i {
  width: 3px; height: 7px; border-radius: 2px; background: var(--accent);
  animation: wheel 1.8s var(--ease) infinite;
}
@keyframes wheel {
  0%   { opacity: 0; transform: translateY(-4px); }
  40%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

/* --- Бегущая строка --- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__row { display: flex; align-items: center; gap: 26px; padding-right: 26px; }
.marquee__row span {
  font-size: clamp(15px, 1.8vw, 21px); font-weight: 700; letter-spacing: -.01em;
  color: var(--muted); white-space: nowrap;
  transition: color .3s var(--ease);
}
.marquee__row span:hover { color: var(--accent); }
.marquee__row i { color: var(--accent); font-size: 8px; font-style: normal; opacity: .55; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* --- Услуги --- */
.services {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}
.svc {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease);
  transform-style: preserve-3d;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(255, 92, 0, .16), transparent 70%);
  transition: opacity .45s var(--ease);
}
.svc:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.svc:hover::before { opacity: 1; }
.svc__icon {
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 15px; margin-bottom: 20px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  border: 1px solid var(--line); color: var(--accent);
  transition: transform .45s var(--ease);
}
.svc__icon svg { width: 28px; height: 28px; }
.svc:hover .svc__icon { transform: translateZ(20px) rotate(-6deg) scale(1.05); }
.svc h3 { font-size: 19.5px; margin-bottom: 10px; }
.svc p { color: var(--muted); font-size: 14.6px; line-height: 1.6; margin: 0 0 20px; flex: 1; }
.svc__price {
  display: inline-block; align-self: flex-start;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); font-weight: 700; font-size: 13.5px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.svc__link {
  font-weight: 650; font-size: 14.5px; color: var(--txt-2);
  transition: color .28s var(--ease), letter-spacing .28s var(--ease);
}
.svc:hover .svc__link { color: var(--accent); letter-spacing: .02em; }

.svc--cta {
  background: linear-gradient(155deg, color-mix(in srgb, var(--accent) 20%, var(--surface)), var(--surface));
  border-color: color-mix(in srgb, var(--accent) 32%, transparent);
  justify-content: center;
}
.svc--cta h3 { font-size: 22px; }
.svc--cta p { flex: none; }

/* --- О сервисе --- */
.about {
  display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.about__media { position: relative; padding-bottom: 60px; }
.about__img { margin: 0; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--big { aspect-ratio: 4 / 3; }
.about__img--small {
  position: absolute; right: -6%; bottom: 0;
  width: 46%; aspect-ratio: 1;
  border: 6px solid var(--bg-2); border-radius: var(--radius);
}
.about__badge {
  position: absolute; left: -4%; bottom: 22%;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: 0 18px 40px -18px rgba(255, 92, 0, .9);
  animation: floaty 6s ease-in-out infinite alternate;
}
.about__badge b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.about__badge span { font-size: 12.5px; line-height: 1.3; font-weight: 600; }

.about__body > p { color: var(--muted); max-width: 58ch; }
.about__body .section__title { margin-bottom: 20px; }
.feats { display: grid; gap: 14px; margin: 26px 0; }
.feats li { display: flex; gap: 13px; align-items: flex-start; }
.feats svg {
  width: 22px; height: 22px; flex: none; margin-top: 3px;
  padding: 3px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.feats b { display: block; font-size: 15.5px; margin-bottom: 2px; }
.feats span { color: var(--muted); font-size: 14.2px; line-height: 1.55; }
.about__cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* --- Процесс --- */
.steps {
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}
.step {
  position: relative; padding: 30px 24px 26px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  transition: transform .45s var(--ease), border-color .35s var(--ease);
}
.step::after {
  content: ""; position: absolute; top: 50px; right: -14px;
  width: 12px; height: 12px;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  rotate: 45deg;
}
.step:last-child::after { display: none; }
.step:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.step__num {
  display: block; font-family: var(--mono); font-size: 34px; font-weight: 700;
  letter-spacing: -.04em; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--accent), transparent 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.step h3 { font-size: 17.5px; margin-bottom: 9px; }
.step p { color: var(--muted); font-size: 14.2px; line-height: 1.6; margin: 0 0 16px; }
.step__time {
  display: inline-block; font-size: 12.5px; font-weight: 650;
  padding: 4px 11px; border-radius: 999px;
  border: 1px dashed var(--line-strong); color: var(--txt-2);
}

/* --- Цены --- */
.tabs__nav { display: flex; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; }
.tabs__btn {
  padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 600; color: var(--txt-2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.tabs__btn:hover { border-color: var(--line-strong); color: var(--txt); }
.tabs__btn.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: #fff;
  box-shadow: 0 10px 26px -14px rgba(255, 92, 0, .9);
}
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeUp .5s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

.price {
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
}
.price thead th {
  text-align: left; padding: 15px 22px;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.price thead th:last-child, .price td:last-child { text-align: right; }
.price td {
  padding: 15px 22px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--txt-2);
}
.price tbody tr { transition: background-color .25s var(--ease); }
.price tbody tr:hover { background: var(--surface-2); }
.price tbody tr:last-child td { border-bottom: 0; }
.price td:first-child { color: var(--txt); font-weight: 550; }
.price td:nth-child(2) { color: var(--muted); font-size: 14px; white-space: nowrap; }
.price td:last-child { color: var(--accent); font-weight: 700; white-space: nowrap; }
.price__note { color: var(--muted); font-size: 13.5px; margin: 18px 0 0; }

/* --- Мастера --- */
.team { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.member {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  transition: transform .45s var(--ease), border-color .35s var(--ease), box-shadow .45s var(--ease);
}
.member:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.member__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; }
.member__photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.55) contrast(1.04);
  transition: transform .8s var(--ease), filter .6s var(--ease);
}
.member:hover .member__photo img { transform: scale(1.06); filter: grayscale(0); }
.member__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, color-mix(in srgb, var(--surface) 92%, transparent));
}
.member__exp {
  position: absolute; z-index: 1; left: 14px; top: 14px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(12, 14, 18, .55);
  backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 12px; font-weight: 650; color: #fff;
}
.member__body { padding: 20px 22px 24px; }
.member__body h3 { font-size: 19px; margin-bottom: 4px; }
.member__role { color: var(--accent); font-size: 13.5px; font-weight: 650; margin: 0 0 12px; }
.member__bio { color: var(--muted); font-size: 14.2px; line-height: 1.6; margin: 0 0 16px; }
.member__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.member__tags li {
  font-size: 11.8px; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--txt-2); background: var(--surface-2);
}

/* --- Работы --- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; font-weight: 600; color: var(--txt-2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--txt); }
.chip.is-active { background: var(--txt); color: var(--bg); border-color: var(--txt); }

.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.shot {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); cursor: zoom-in;
  aspect-ratio: 4 / 3; border: 1px solid var(--line);
}
.shot.is-hidden { display: none; }
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease);
}
.shot:hover img { transform: scale(1.07); }
.shot figcaption {
  position: absolute; inset: auto 0 0; z-index: 1;
  display: grid; gap: 2px; padding: 44px 20px 18px;
  background: linear-gradient(transparent, rgba(6, 7, 9, .92));
  color: #fff;
  transform: translateY(16px); opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.shot:hover figcaption, .shot:focus-within figcaption { transform: none; opacity: 1; }
.shot figcaption b { font-size: 16px; }
.shot figcaption span { font-size: 13px; color: rgba(255, 255, 255, .72); }

/* --- Полоса CTA --- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; padding: clamp(56px, 8vw, 96px) 0; }
.cta-band__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 130%; object-fit: cover;
  filter: grayscale(.4) contrast(1.1);
  will-change: transform;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(10, 11, 13, .95) 20%, rgba(10, 11, 13, .55));
}
.cta-band__inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto;
  gap: clamp(24px, 4vw, 56px); align-items: center;
  color: #fff;
}
.cta-band h2 { font-size: clamp(26px, 3.6vw, 44px); margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .72); max-width: 56ch; margin: 0; font-size: 16px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--outline { --btn-bd: rgba(255, 255, 255, .32); --btn-fg: #fff; }
.cta-band .btn--outline:hover { --btn-bd: #fff; color: #fff; }

/* --- Отзывы --- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; border-radius: var(--radius); cursor: grab; }
.slider__viewport.is-dragging { cursor: grabbing; }
.slider__track {
  display: flex; gap: var(--gap);
  transition: transform .65s var(--ease-out);
  will-change: transform;
}
.review {
  flex: 0 0 calc((100% - var(--gap) * 2) / 3);
  display: flex; flex-direction: column;
  padding: 28px 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface);
  transition: border-color .35s var(--ease);
  user-select: none;
}
.review:hover { border-color: var(--line-strong); }
.review__stars { color: var(--accent); letter-spacing: .16em; font-size: 15px; margin-bottom: 14px; }
.review blockquote {
  margin: 0 0 20px; flex: 1;
  font-size: 15.4px; line-height: 1.68; color: var(--txt-2);
}
.review blockquote::before { content: "«"; color: var(--accent); font-size: 22px; margin-right: 2px; }
.review blockquote::after  { content: "»"; color: var(--accent); font-size: 22px; margin-left: 2px; }
.review footer { display: grid; gap: 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.review footer b { font-size: 15px; }
.review footer span { font-size: 13px; color: var(--muted); }

.slider__ui { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; }
.slider__arrow {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); cursor: pointer;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.slider__arrow:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.08); }
.slider__arrow:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.slider__dots { display: flex; gap: 7px; }
.slider__dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line-strong); cursor: pointer;
  transition: width .3s var(--ease), background-color .3s var(--ease), border-radius .3s var(--ease);
}
.slider__dots button.is-active { width: 26px; border-radius: 5px; background: var(--accent); }

/* --- FAQ --- */
.faq {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 72px); align-items: start;
}
.faq__aside p { color: var(--muted); max-width: 40ch; margin-bottom: 20px; }
.faq__list { display: grid; gap: 10px; }
.acc {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); overflow: hidden;
  transition: border-color .3s var(--ease);
}
.acc[open] { border-color: color-mix(in srgb, var(--accent) 42%, transparent); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 22px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 15.8px;
  transition: color .25s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc summary i { position: relative; flex: none; width: 20px; height: 20px; }
.acc summary i::before, .acc summary i::after {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transition: transform .35s var(--ease);
}
.acc summary i::after { transform: rotate(90deg); }
.acc[open] summary i::after { transform: rotate(0); }
.acc__body { padding: 0 22px 20px; animation: fadeUp .4s var(--ease-out) both; }
.acc__body p { color: var(--muted); font-size: 14.8px; line-height: 1.68; margin: 0; }

/* --- Запись --- */
.booking {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 64px); align-items: start;
}
.booking__info > p { color: var(--muted); max-width: 46ch; }
.booking__perks { display: grid; gap: 12px; margin: 26px 0; }
.booking__perks li {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 14.2px; color: var(--muted);
}
.booking__perks b {
  font-size: 15px; color: var(--accent); font-weight: 800; white-space: nowrap;
  padding-right: 14px; border-right: 1px solid var(--line);
}
.booking__contact { display: grid; gap: 4px; }
.booking__contact a { font-weight: 700; font-size: 17px; transition: color .25s var(--ease); }
.booking__contact a:last-child { font-size: 14.5px; font-weight: 550; color: var(--muted); }
.booking__contact a:hover { color: var(--accent); }

.form {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 13.5px; font-weight: 650; color: var(--txt-2); }
.field label i { color: var(--accent); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--txt);
  font-size: 15px;
  transition: border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.field.has-error input, .field.has-error select { border-color: #ff4d4d; }
.field__err { color: #ff6b6b; font-size: 12.5px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23939ba8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}

.checkbox { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 4px; cursor: pointer; }
.checkbox input {
  appearance: none; flex: none; width: 20px; height: 20px; margin-top: 1px;
  border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface-2);
  cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.checkbox input:checked {
  background: 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='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 7'/%3E%3C/svg%3E");
  background-size: 13px; background-position: center; background-repeat: no-repeat;
}
.checkbox span { font-size: 13.4px; color: var(--muted); line-height: 1.5; }
.checkbox a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form #submitBtn { margin-top: 16px; }
.form #submitBtn.is-loading { pointer-events: none; opacity: .75; }
.form #submitBtn.is-loading span::after {
  content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 9px;
  vertical-align: -1px; border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form__note { color: var(--muted); font-size: 12.5px; text-align: center; margin: 12px 0 0; }

/* --- Контакты --- */
.contacts {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(22px, 4vw, 48px);
}
.contacts__list { display: grid; gap: 12px; align-content: start; }
.contacts__list li {
  display: grid; gap: 3px; padding: 18px 22px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.contacts__list li:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); transform: translateX(4px); }
.contacts__label { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.contacts__list b { font-size: 17px; }
.contacts__list li > span:last-child { font-size: 14px; color: var(--muted); }
.contacts__list a:hover { color: var(--accent); }

.map {
  position: relative; min-height: 380px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 55%),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 46px),
    var(--surface);
}
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__load {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 24px; border: 0; background: transparent; cursor: pointer; text-align: center;
  color: var(--txt); transition: background-color .3s var(--ease);
}
.map__load:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.map__load svg { color: var(--accent); }
/* Кнопка поверх подгруженной карты — её вставляет main.js */
.map__2gis {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  padding: 10px 18px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  color: var(--txt); font-size: 13.5px; font-weight: 650;
  box-shadow: var(--shadow);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.map__2gis:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.map__load b { font-size: 17px; }
.map__load span { font-size: 13.2px; color: var(--muted); max-width: 30ch; }

/* --- География обслуживания (локальное SEO) --- */
.geo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: clamp(32px, 4vw, 52px);
  padding-top: clamp(28px, 3.5vw, 44px);
  border-top: 1px solid var(--line);
}
.geo h3 { font-size: 17px; margin-bottom: 12px; }
.geo p { color: var(--muted); font-size: 14.6px; line-height: 1.7; margin: 0 0 16px; max-width: 62ch; }
.geo p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.geo__tags { display: flex; flex-wrap: wrap; gap: 7px; }
.geo__tags li {
  font-size: 12.6px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--txt-2);
}
.geo__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 20px; }
.geo__links a {
  display: inline-block; padding: 4px 0;
  font-size: 14.2px; color: var(--txt-2);
  transition: color .25s var(--ease), padding-left .25s var(--ease);
}
.geo__links a::before { content: "→ "; color: var(--accent); }
.geo__links a:hover { color: var(--accent); padding-left: 4px; }

/* ============ 08. ПОДВАЛ И ОВЕРЛЕИ ============ */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: clamp(48px, 6vw, 72px); }
.footer__inner {
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px); padding-bottom: 46px;
}
.footer__brand p { color: var(--muted); font-size: 14.2px; max-width: 40ch; margin: 18px 0; }
.logo--footer .logo__text { font-size: 14px; }
.footer__social { display: flex; gap: 8px; }
.footer__social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 11.5px; font-weight: 700; color: var(--muted);
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.footer__social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }
.footer__col { display: grid; gap: 9px; align-content: start; }
.footer__col h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer__col a { font-size: 14.3px; color: var(--txt-2); transition: color .25s var(--ease), padding-left .25s var(--ease); }
.footer__col a:not(.btn):hover { color: var(--accent); padding-left: 4px; }
.footer__col p { font-size: 13.6px; color: var(--muted); margin: 6px 0 10px; }
.footer__col .btn { justify-self: start; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  padding: 20px 0 26px; border-top: 1px solid var(--line);
}
.footer__bottom p { margin: 0; font-size: 12.8px; color: var(--muted); }

/* --- Плавающая кнопка WhatsApp (правый нижний угол, всегда на виду) --- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 720;
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(145deg, #34d75a, #1faa4c);
  color: #fff;
  box-shadow: 0 14px 34px -10px rgba(31, 170, 76, .75);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.wa-fab:hover { transform: scale(1.08); box-shadow: 0 20px 44px -12px rgba(31, 170, 76, .9); }
.wa-fab:active { transform: scale(.97); }
.wa-fab svg { position: relative; z-index: 1; }

/* Расходящееся кольцо — привлекает внимание, но не дёргается постоянно */
.wa-fab__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: #34d75a; opacity: .55;
  animation: waRing 2.6s var(--ease) infinite;
}
@keyframes waRing {
  0%   { transform: scale(1);   opacity: .5; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-fab__hint {
  position: absolute; right: calc(100% + 12px); top: 50%; translate: 0 -50%;
  padding: 9px 15px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--txt); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.wa-fab:hover .wa-fab__hint, .wa-fab:focus-visible .wa-fab__hint { opacity: 1; transform: none; }

/* Кнопка «наверх» встаёт над WhatsApp, чтобы они не перекрывались */
.to-top {
  position: fixed; right: 22px; bottom: 94px; z-index: 700;
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .4s var(--ease), visibility .4s, transform .4s var(--ease),
              border-color .3s var(--ease), color .3s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.lightbox {
  position: fixed; inset: 0; z-index: 950;
  display: grid; place-items: center; padding: 24px;
  background: rgba(6, 7, 9, .94);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage { margin: 0; display: grid; gap: 12px; justify-items: center; max-width: min(1180px, 92vw); }
.lightbox__stage img {
  max-width: 100%; max-height: 78svh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 40px 90px -30px #000;
  animation: lbIn .45s var(--ease-out) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lightbox__stage figcaption { color: rgba(255, 255, 255, .78); font-size: 14px; text-align: center; }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%;
  background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.lightbox__close { top: 20px; right: 20px; width: 46px; height: 46px; font-size: 18px; }
.lightbox__nav { top: 50%; translate: 0 -50%; width: 52px; height: 52px; font-size: 30px; line-height: 0; padding-bottom: 5px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--accent); border-color: var(--accent); }

.toast {
  position: fixed; z-index: 980; left: 50%; bottom: 28px; translate: -50% 0;
  display: flex; align-items: center; gap: 12px;
  max-width: min(460px, 92vw);
  padding: 15px 22px; border-radius: 14px;
  background: linear-gradient(135deg, #14b866, #0f9a54);
  color: #fff; font-weight: 600; font-size: 14.6px;
  box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(18px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: none; }
.toast.is-error { background: linear-gradient(135deg, #e63a3a, #c22626); }

/* Отложенная отрисовка нижних секций — быстрее первый рендер.
   Осознанно НЕ применяем к #works и #reviews: там ширина элементов
   измеряется скриптом (слайдер, лайтбокс), а size-containment ломает замеры. */
#faq, #contacts, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 1000px;
}

/* ============ 09. АДАПТИВ ============ */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .review { flex: 0 0 calc((100% - var(--gap)) / 2); }
  .about, .faq, .booking, .contacts { grid-template-columns: 1fr; }
  .about__media { max-width: 560px; }
  .cta-band__inner { grid-template-columns: 1fr; }
  .section__head { grid-template-columns: 1fr; align-items: start; }
  .step::after { display: none; }
}

@media (max-width: 860px) {
  .header__phone { display: none; }
  .header__actions .btn--sm { display: none; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .hero__scroll { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .review { flex: 0 0 100%; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .about__img--small { width: 42%; right: 0; }
  .about__badge { left: 0; bottom: 12%; padding: 11px 15px; }
  .about__badge b { font-size: 27px; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .logo__text i { display: none; }
  .lightbox__nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .wa-fab { right: 14px; bottom: 14px; width: 54px; height: 54px; }
  .wa-fab svg { width: 27px; height: 27px; }
  .wa-fab__hint { display: none; }
  .to-top { right: 14px; bottom: 78px; width: 44px; height: 44px; }
  .price thead { display: none; }
  .price tbody tr {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
    padding: 14px 16px; border-bottom: 1px solid var(--line);
  }
  .price td { border: 0; padding: 0; }
  .price td:first-child { grid-column: 1 / -1; margin-bottom: 4px; }
  .price td:nth-child(2) { text-align: left; }
}

/* ============ 10. PREFERS-REDUCED-MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  [data-split] .line > span { transform: none !important; }
  .cursor-glow { display: none; }
}
