/* ==========================================================
   Автолюкс — автомойка
   Палитра «мокрый лак»: глубокий синий лак, жемчуг, хром, пена.
   Фото — главный материал; графика тонкая и строгая.
   ========================================================== */
:root {
  --lacquer: #000000;      /* основной фон — чёрный */
  --lacquer-2: #0A0A0B;    /* фон чередующихся секций */
  --panel: #141415;        /* панели и подложки под фото */
  --surface: #101011;      /* итоговые блоки, окна, предпросмотр */
  --line: rgba(255, 255, 255, .11);
  --line-strong: rgba(255, 255, 255, .24);
  --pearl: #ECEEF0;        /* основной текст */
  --chrome: #9A9DA3;       /* второстепенный текст */
  --foam: #8FD6F0;         /* акцент — пена, используется скупо */
  --foam-deep: #3BA9D6;
  --signal: #F2B84B;
  --ok: #5BE0A6;
  --wa: #25D366;
  --tg: #2AABEE;

  --font-display: "Geologica", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-lg: 14px;   /* фото и крупные панели */
  --r-md: 10px;   /* карточки и поля */
  --r-sm: 8px;    /* кнопки, чипы */
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
:root { color-scheme: dark; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--lacquer);
  color: var(--pearl);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.js body.is-loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--foam); color: var(--lacquer); }
:focus-visible { outline: 2px solid var(--foam); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Типографика ---------- */
.h2 {
  font: 400 clamp(32px, 4.6vw, 58px)/1.04 var(--font-display);
  letter-spacing: -.035em;
  margin: 0 0 18px;
}
.section__head { max-width: 680px; margin-bottom: 52px; }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.section__head--split .h2 { margin: 0; }
.section__lead { color: var(--chrome); margin: 0; max-width: 58ch; }
@media (max-width: 900px) { .section__head--split { grid-template-columns: 1fr; gap: 0; } .section__head--split .h2 { margin-bottom: 18px; } }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px;
  border-radius: var(--r-sm);
  font-weight: 600; font-size: 15.5px; letter-spacing: .01em;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
  overflow: hidden; isolation: isolate;
}
.btn--primary {
  background: linear-gradient(180deg, #F4F5F6, #CFD3D8);
  color: #0A0A0A;
  box-shadow: inset 0 1px 0 #fff, 0 10px 30px -14px rgba(255, 255, 255, .25);
}
.btn--primary::after { /* блик, как по лаку */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(143, 214, 240, .55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--pearl); background: rgba(0, 0, 0, .25); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--pearl); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 0 30px; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.97); }

/* ---------- Прелоадер ---------- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--lacquer);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader__word { font: 500 22px/1 var(--font-display); letter-spacing: .4em; padding-left: .4em; color: var(--pearl); }
.preloader__bar { width: 120px; height: 1px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; background: var(--pearl); transform-origin: 0 50%; animation: load 1.2s var(--ease) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.preloader.is-done { opacity: 0; visibility: hidden; }

/* ---------- Прогресс прокрутки и свет курсора ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--foam-deep), var(--foam), #fff);
  transform-origin: 0 50%; transform: scaleX(0);
}
.cursor-light {
  position: fixed; left: 0; top: 0; z-index: 0; pointer-events: none;
  width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 214, 240, .06), transparent 60%);
  opacity: 0; transition: opacity .4s;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) { .cursor-light { opacity: 1; } }

/* ---------- Шапка ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s, backdrop-filter .4s, border-color .4s, transform .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 500 19px/1 var(--font-display); letter-spacing: .28em; }
.logo { flex: none; }
.logo__mark { width: 26px; height: 26px; flex: none; }
.logo__mark path:first-child { fill: none; stroke: var(--pearl); stroke-width: 1.6; }
.logo__shine { fill: none; stroke: var(--foam); stroke-width: 1.6; stroke-linecap: round; }
.logo:hover .logo__mark { animation: wobble .8s var(--ease); }
@keyframes wobble { 30% { transform: scale(1.12, .9); } 60% { transform: scale(.94, 1.08); } }
.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { white-space: nowrap; position: relative; color: var(--chrome); font-weight: 500; font-size: 15px; transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--foam); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.is-active { color: var(--pearl); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__right { display: flex; align-items: center; gap: 18px; }
.hphone { display: flex; align-items: center; gap: 10px; flex: none; }
.hphone__wa { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--wa); transition: transform .3s var(--ease), box-shadow .3s; }
.hphone__wa svg { width: 19px; height: 19px; }
.hphone__wa:hover { transform: scale(1.08); box-shadow: 0 0 0 5px rgba(37, 211, 102, .18); }
.header__phone { white-space: nowrap; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; transition: color .25s; }
.header__phone:hover { color: var(--foam); }

.status { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ok); padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(91, 224, 166, .28); background: rgba(0, 0, 0, .4); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: ping 2s infinite; }
.status.is-closed { color: var(--signal); border-color: rgba(242, 184, 75, .3); }
.status--inline { padding: 4px 10px; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(91,224,166,.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(91,224,166,0); } }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--pearl); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1560px) { .header__right .status { display: none; } }
@media (max-width: 1180px) { .nav { gap: 20px; } .header__inner { gap: 24px; } }
@media (max-width: 1020px) { .nav a[href="#gallery"] { display: none; } }
@media (max-width: 900px) {
  .burger { display: block; }
  .header__right .btn, .header__right .status { display: none; }
  .header__right { margin-left: auto; gap: 12px; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 24px;
    background: rgba(0, 0, 0, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav a { font: 500 22px/1 var(--font-display); color: var(--pearl); padding: 18px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header.menu-open { background: rgba(0, 0, 0, .96); }
}


/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--lacquer);
}
.hero__media { position: absolute; top: 0; right: 0; bottom: 0; width: 64%; overflow: hidden; background: #000; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%;
  filter: brightness(.82) contrast(1.06) saturate(.9);
  transform: scale(1.04);
  will-change: transform;
}
.js .hero__img { opacity: 0; transform: scale(1.12); }
.is-ready .hero__img { opacity: 1; transform: scale(1.04); transition: opacity 1.4s var(--ease), transform 2.6s var(--ease); }
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--lacquer) 0%, rgba(0, 0, 0, .82) 18%, rgba(0, 0, 0, .2) 48%, rgba(0, 0, 0, 0) 70%),
    linear-gradient(0deg, var(--lacquer) 0%, rgba(0, 0, 0, 0) 34%),
    linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 30%);
}
.hero__inner { position: relative; z-index: 1; display: flex; align-items: center; padding-top: 40px; padding-bottom: 40px; }
.hero__text { max-width: 640px; }
.hero__kicker { display: flex; align-items: center; gap: 14px; margin: 0 0 26px; color: var(--chrome); font-size: 15px; }
.hero__title {
  font: 400 clamp(44px, 7vw, 100px)/.98 var(--font-display);
  letter-spacing: -.05em; margin: 0 0 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .07em; }
.hero__title .line > span {
  display: inline-block;
  background: linear-gradient(100deg, var(--pearl) 0%, var(--pearl) 40%, #fff 50%, var(--pearl) 60%, var(--pearl) 100%);
  background-size: 250% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.js .hero__title .line > span { transform: translateY(110%); }
.is-ready .hero__title .line > span { animation: rise 1.1s var(--ease) forwards, title-shine 2.4s 1.5s var(--ease) forwards; }
.is-ready .hero__title .line:nth-child(2) > span { animation-delay: .1s, 1.6s; }
.is-ready .hero__title .line:nth-child(3) > span { animation-delay: .2s, 1.7s; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes title-shine { to { background-position: -50% 0; } }
.hero__lead { color: #B9BCC1; font-size: 18px; max-width: 44ch; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.js .hero__text > * { opacity: 0; transform: translateY(16px); }
.js .hero__text > .hero__title { opacity: 1; transform: none; }
.is-ready .hero__text > * { animation: fade-up .9s var(--ease) forwards; }
.is-ready .hero__text > .hero__kicker { animation-delay: .05s; }
.is-ready .hero__text > .hero__lead { animation-delay: .45s; }
.is-ready .hero__text > .hero__cta { animation-delay: .55s; }
.is-ready .hero__text > .hero__title { animation: none; }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* Полоса характеристик — как в каталоге автомобиля */
.hero__specs-wrap { position: relative; z-index: 1; }
.hero__specs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-strong); }
.hero__specs div { padding: 22px 24px 30px 0; }
.hero__specs div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero__specs dt { font: 300 40px/1 var(--font-display); letter-spacing: -.03em; display: flex; align-items: baseline; gap: 6px; }
.hero__specs dt small { font: 400 15px/1 var(--font-body); color: var(--chrome); letter-spacing: 0; }
.hero__specs dd { margin: 10px 0 0; color: var(--chrome); font-size: 14px; line-height: 1.4; max-width: 22ch; }
.js .hero__specs { opacity: 0; }
.is-ready .hero__specs { animation: fade-up 1s .8s var(--ease) forwards; }

@media (max-width: 900px) {
  .hero { min-height: 0; display: block; }
  .hero__media { position: relative; width: auto; height: 58vh; min-height: 340px; max-height: 520px; margin-top: calc(-1 * var(--header-h)); }
  .hero__img { object-position: 60% 60%; }
  .hero__shade { background: linear-gradient(0deg, var(--lacquer) 2%, rgba(0, 0, 0, 0) 55%), linear-gradient(180deg, rgba(0, 0, 0, .8) 0%, rgba(0, 0, 0, 0) 35%); }
  .hero__inner { margin-top: -110px; padding-top: 0; }
  .hero__specs { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .hero__specs div { padding: 18px 12px 20px 0; }
  .hero__specs div + div { padding-left: 0; border-left: 0; }
  .hero__specs div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .hero__specs div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { width: 100%; }
  .hero__specs dt { font-size: 30px; }
}

/* ---------- Бегущая строка ---------- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; padding: 20px 0; background: var(--lacquer); }
.ticker__track { display: flex; width: max-content; animation: ticker 50s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span { font: 300 22px/1 var(--font-display); letter-spacing: -.01em; color: var(--chrome); padding: 0 32px; display: inline-flex; align-items: center; gap: 64px; white-space: nowrap; }
.ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секции ---------- */
.section { position: relative; padding: 128px 0; }
.section--alt { background: var(--lacquer-2); }
@media (max-width: 600px) { .section { padding: 84px 0; } .section__head { margin-bottom: 34px; } }

/* ---------- Услуги: фотокарточки ---------- */
.services { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 300px; gap: 14px; }
.svc { grid-column: span 3; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--panel); isolation: isolate; }
.svc--xl { grid-column: span 7; grid-row: span 2; }
.svc--tall { grid-column: span 5; grid-row: span 2; }
.svc__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  filter: brightness(.72) saturate(.85) contrast(1.05);
  transition: transform 1.4s var(--ease), filter .8s var(--ease);
}
.svc::before { /* затемнение снизу под текст */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 40%, rgba(0, 0, 0, 0) 70%);
}
.svc::after { /* блик по карточке при наведении */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .12) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform 1.2s var(--ease);
}
.svc:hover::after { transform: translateX(100%); }
.svc:hover .svc__img { transform: scale(1.06); filter: brightness(.8) saturate(.95) contrast(1.05); }
.svc__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 28px 24px; }
.svc h3 { font: 400 22px/1.15 var(--font-display); letter-spacing: -.02em; margin: 18px 0 8px; }
.svc--xl h3 { font-size: clamp(26px, 3vw, 36px); }
.svc p { color: #B9BCC1; margin: 0; font-size: 15px; max-width: 40ch; }
.svc__meta { display: flex; gap: 22px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-strong); font-size: 14.5px; color: var(--chrome); }
.svc__meta span:first-child { margin-right: auto; }
.svc__meta b { color: var(--pearl); font-weight: 700; }
@media (max-width: 1000px) {
  .services { grid-auto-rows: 280px; }
  .svc, .svc--xl, .svc--tall { grid-column: span 6; grid-row: span 1; }
  .svc--xl { grid-column: span 12; grid-row: span 2; }
  }
@media (max-width: 600px) {
  .services { grid-auto-rows: 340px; gap: 10px; }
  .svc, .svc--xl, .svc--tall { grid-column: span 12; grid-row: span 1; }
  .svc__body { padding: 22px 20px 20px; }
}

/* ---------- Иконки: тонкие линии, движение только по делу ---------- */
.icon { width: 40px; height: 40px; overflow: visible; }
.icon .draw { fill: none; stroke: var(--pearl); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); transition: stroke-dashoffset 1.6s var(--ease); }
.is-visible .icon .draw { stroke-dashoffset: 0; }
.icon__jets .draw, .icon__second, .icon__inner, .icon__sweep { stroke: var(--foam) !important; }
.is-visible .icon__jets .draw, .is-visible .icon__second, .is-visible .icon__inner { transition-delay: .4s; }
/* мойка — струи бегут */
.svc:hover .icon__jets .draw { stroke-dasharray: 3 4; animation: jet .5s linear infinite; }
@keyframes jet { to { stroke-dashoffset: -14; } }
/* две фазы — вторая капля опускается на место */
.icon__second { transform-box: fill-box; transition: transform .6s var(--ease), stroke-dashoffset 1.6s var(--ease); }
.svc:hover .icon__second { transform: translate(-2px, 3px); }
/* полировка — круг вращается */
.icon__rot, .icon__spin { transform-origin: 24px 24px; }
.svc:hover .icon__rot { animation: spin 1.1s linear infinite; }
.svc:hover .icon__spin { animation: spin 2.2s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }
/* керамика — внутренний слой «уплотняется» */
.icon__inner { transform-box: fill-box; transform-origin: center; transition: transform .6s var(--ease), stroke-dashoffset 1.6s var(--ease); }
.svc:hover .icon__inner { transform: scale(1.25); }
/* салон — проходит щётка экстрактора */
.icon__sweep { transition: transform .6s var(--ease), stroke-dashoffset 1.6s var(--ease); }
.svc:hover .icon__sweep { animation: sweep-line 1.2s var(--ease) infinite alternate; }
@keyframes sweep-line { to { transform: translateX(-24px); } }

/* ---------- Галерея ---------- */
.section--gallery { padding-bottom: 96px; }
.gallery__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.gallery__nav { display: flex; gap: 10px; margin-bottom: 52px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: border-color .3s, background-color .3s; }
.round svg { width: 20px; fill: none; stroke: var(--pearl); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.round:hover { border-color: var(--pearl); background: rgba(236, 238, 240, .06); }
.gallery {
  --pad: max(24px, calc((100vw - 1240px) / 2 + 24px));
  display: flex; gap: 14px; overflow-x: auto; overscroll-behavior-x: contain;
  padding: 0 var(--pad); scroll-padding: 0 var(--pad);
  scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-drag { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-drag img { pointer-events: none; }
.shot { position: relative; flex: none; margin: 0; height: clamp(340px, 56vh, 580px); aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start; background: var(--panel); }
.shot--land { aspect-ratio: 16 / 10.5; }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.88) saturate(.9); transition: transform 1.4s var(--ease); user-select: none; -webkit-user-drag: none; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { position: absolute; left: 18px; bottom: 16px; font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 6px; background: rgba(0, 0, 0, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gallery__bar { height: 1px; background: var(--line); margin-top: 32px; overflow: hidden; }
.gallery__bar i { display: block; height: 100%; width: 100%; background: var(--pearl); transform-origin: 0 50%; transform: scaleX(.2); transition: transform .2s linear; }
@media (max-width: 600px) { .gallery__nav { display: none; } .shot { height: 420px; aspect-ratio: auto; width: 78vw; } .shot--land { width: 88vw; } }

/* ---------- Калькулятор ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.calc__group { border: 0; padding: 0; margin: 0 0 36px; min-width: 0; }
.calc__group legend { font-weight: 600; margin-bottom: 14px; padding: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--lacquer-2); border: 1px solid var(--line); position: relative; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 10px 18px; border-radius: 7px; color: var(--chrome); font-weight: 600; font-size: 15px; transition: background-color .3s, color .3s; cursor: pointer; }
.seg input:checked + span { background: var(--pearl); color: var(--lacquer); }
.seg input:focus-visible + span { outline: 2px solid var(--foam); outline-offset: 2px; }

.packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pkg, .addon__box { position: relative; cursor: pointer; }
.pkg input, .addon__box input { position: absolute; opacity: 0; pointer-events: none; }
.pkg__box {
  height: 100%; padding: 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--lacquer-2);
  transition: border-color .3s, background-color .3s, transform .3s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.pkg__box b { font: 400 19px/1.2 var(--font-display); letter-spacing: -.02em; }
.pkg__box small { color: var(--chrome); font-size: 14px; line-height: 1.4; }
.pkg__box .pkg__price { margin-top: auto; padding-top: 10px; font-weight: 700; font-size: 18px; }
.pkg:hover .pkg__box { border-color: rgba(143, 214, 240, .5); }
.pkg input:checked + .pkg__box { border-color: var(--foam); background: linear-gradient(180deg, rgba(143, 214, 240, .14), rgba(143, 214, 240, .04)); }
.pkg input:focus-visible + .pkg__box, .addon__box:has(input:focus-visible) { outline: 2px solid var(--foam); outline-offset: 2px; }

.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0 18px; align-items: start; }
.addon { display: flex; flex-direction: column; border-radius: var(--r-sm); border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.addon.is-on { border-color: rgba(143, 214, 240, .6); background: rgba(143, 214, 240, .06); }
.addon__box { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-sm); }
.addon__check { flex: none; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--chrome); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.addon__check svg { width: 14px; fill: none; stroke: var(--lacquer); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease); }
.addon.is-on .addon__check { background: var(--foam); border-color: var(--foam); }
.addon.is-on .addon__check svg { stroke-dashoffset: 0; }
.addon__name { flex: 1; min-width: 0; font-weight: 500; font-size: 15px; line-height: 1.35; }
.addon__name small { display: block; font-weight: 400; font-size: 12.5px; color: var(--chrome); margin-top: 2px; }
.addon__price { color: var(--chrome); font-size: 15px; white-space: nowrap; }

.calc__total {
  position: sticky; top: calc(var(--header-h) + 20px);
  padding: 28px; border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.calc__label { margin: 0; color: var(--chrome); }
.calc__sum { font: 300 54px/1.05 var(--font-display); letter-spacing: -.04em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.calc__sum.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.05); color: var(--foam); } }
.calc__time { margin: 0 0 18px; color: var(--chrome); font-size: 15px; }
.calc__time b { color: var(--pearl); }
.calc__list { list-style: none; padding: 16px 0 0; margin: 0 0 22px; border-top: 1px solid var(--line); font-size: 15px; display: grid; gap: 8px; }
.calc__list li { display: flex; justify-content: space-between; gap: 12px; color: var(--chrome); animation: fade-up .4s var(--ease) both; }
.calc__list li span:last-child { color: var(--pearl); white-space: nowrap; }
.calc__note { margin: 12px 0 0; font-size: 13px; color: var(--chrome); text-align: center; }
@media (max-width: 1000px) { .calc { grid-template-columns: 1fr; } .calc__total { position: static; } }
@media (max-width: 700px) { .packages { grid-template-columns: 1fr; } .addons { grid-template-columns: 1fr; } .seg { display: grid; grid-template-columns: 1fr; border-radius: var(--r-md); width: 100%; } .seg span { border-radius: 12px; text-align: center; } }

/* ---------- Процесс ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; counter-reset: s; }
.steps::before, .steps::after { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px; background: var(--line); }
.steps::after { background: linear-gradient(90deg, var(--foam-deep), var(--foam)); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; transition: transform .2s linear; }
.step { position: relative; z-index: 1; }
.step__n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lacquer-2); border: 1px solid var(--line-strong); font: 300 18px/1 var(--font-display); margin-bottom: 22px; transition: background-color .4s, color .4s, border-color .4s, box-shadow .4s; }
.step.is-on .step__n { background: var(--pearl); color: var(--lacquer); border-color: var(--pearl); box-shadow: 0 0 0 6px rgba(236, 238, 240, .08); }
.step h3 { font: 400 21px/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 8px; }
.step p { color: var(--chrome); margin: 0; font-size: 16px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .steps::before, .steps::after { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; }
  .steps::after { transform: scaleY(var(--p, 0)); transform-origin: 50% 0; }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; }
  .step__n { grid-row: span 2; margin: 0; }
}

/* ---------- Клубная карта ---------- */
.club { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.club__card-wrap { perspective: 1000px; display: grid; place-items: center; padding: 20px 0; }
.club-card {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%;
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1.586;
  border-radius: 16px; padding: 26px 28px;
  display: flex; flex-direction: column;
  color: #EAF0F6;
  background: linear-gradient(135deg, #8A97A8, #3F4B5B 40%, #C7D1DC 70%, #59677A);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.4);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), background .6s;
  overflow: hidden;
}
.club-card.is-tracking { transition: transform .08s linear, background .6s; }
.club-card[data-tier="gold"] { background: linear-gradient(135deg, #D8B66A, #7A5A22 40%, #F3DDA2 70%, #8E6B2C); color: #2B1E08; }
.club-card[data-tier="black"] { background: linear-gradient(135deg, #2A3342, #0A0E14 45%, #3A4558 70%, #0E131B); }
.club-card__holo {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background:
    radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.55), transparent 45%),
    linear-gradient(115deg, transparent 20%, rgba(143, 214, 240, .45) 40%, rgba(240, 160, 255, .35) 50%, rgba(255, 230, 140, .35) 60%, transparent 80%);
  background-size: 100% 100%, 250% 250%;
  background-position: 0 0, var(--gx) var(--gy);
}
.club-card__top { display: flex; justify-content: space-between; align-items: center; }
.club-card__brand { font: 500 20px/1 var(--font-display); letter-spacing: .3em; }
.club-card__chip { width: 46px; }
.club-card__chip rect { fill: rgba(255, 220, 150, .55); stroke: rgba(0,0,0,.25); }
.club-card__chip path { stroke: rgba(0,0,0,.3); fill: none; }
.club-card__level { margin: auto 0 4px; font-size: 14px; opacity: .85; }
.club-card__num { font: 500 clamp(16px, 2.6vw, 22px)/1 var(--font-display); letter-spacing: .14em; margin: 0 0 16px; }
.club-card__bottom { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.club-card__bottom b { font: 600 30px/1 var(--font-display); }
.tiers { display: grid; gap: 10px; margin: 32px 0 28px; }
.tier { text-align: left; display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--line); transition: border-color .3s, background-color .3s; }
.tier b { font: 400 18px/1 var(--font-display); }
.tier span { color: var(--chrome); font-size: 15px; }
.tier em { font-style: normal; font-size: 14px; color: var(--chrome); white-space: nowrap; }
.tier:hover { border-color: rgba(143, 214, 240, .4); }
.tier.is-active { border-color: var(--pearl); background: rgba(236, 238, 240, .05); }
.tier.is-active span { color: var(--pearl); }
@media (max-width: 900px) { .club { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .tier { grid-template-columns: 70px 1fr; } .tier em { grid-column: 2; } }

/* ---------- Запись ---------- */
.section--booking { background: radial-gradient(60% 50% at 80% 0%, rgba(255, 255, 255, .05), transparent 70%), var(--lacquer); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.booking__fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; min-width: 0; }
.booking__when, .field { min-width: 0; }
.field { position: relative; }
.field--wide, .booking__when { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 60px; padding: 26px 18px 10px;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--lacquer-2); color: var(--pearl);
  font: 500 16px/1.3 var(--font-body);
  transition: border-color .3s, box-shadow .3s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%239DADC0' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { background: var(--lacquer-2); color: var(--pearl); }
.field label { position: absolute; left: 19px; top: 19px; color: var(--chrome); pointer-events: none; transition: transform .25s var(--ease), color .25s; transform-origin: 0 0; font-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--foam); box-shadow: 0 0 0 4px rgba(143, 214, 240, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label { transform: translateY(-11px) scale(.78); color: var(--foam); }
.field__err { display: none; font-size: 13px; color: #FF8A8A; margin-top: 6px; }
.field.has-error input { border-color: #FF8A8A; animation: shake .4s; }
.field.has-error .field__err, .field__err--block.is-shown { display: block; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.booking__when { padding: 22px; border-radius: var(--r-md); border: 1px solid var(--line); }
.booking__label { margin: 0 0 12px; font-weight: 600; font-size: 15px; }
.booking__label:not(:first-child) { margin-top: 22px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.chip { flex: none; min-width: 72px; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); text-align: center; transition: border-color .25s, background-color .25s, color .25s; }
.chip small { display: block; font-size: 12px; color: var(--chrome); }
.chip b { font: 400 19px/1.2 var(--font-display); }
.chip:hover { border-color: rgba(143, 214, 240, .5); }
.chip[aria-checked="true"] { background: var(--pearl); color: var(--lacquer); border-color: var(--pearl); }
.chip[aria-checked="true"] small { color: #4A4D52; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { padding: 10px 0; border-radius: 6px; border: 1px solid var(--line); font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; transition: border-color .25s, background-color .25s, color .25s, transform .25s var(--ease); }
.slot:hover:not(:disabled) { border-color: var(--foam); }
.slot[aria-checked="true"] { background: var(--pearl); color: var(--lacquer); border-color: var(--pearl); }
.slot:disabled { opacity: .3; text-decoration: line-through; cursor: not-allowed; }
.slots__empty { grid-column: 1 / -1; color: var(--chrome); margin: 0; font-size: 15px; }

.booking__side { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 16px; }
.preview { padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); position: relative; }
.preview::before { /* хвостик «пузыря» */
  content: ""; position: absolute; left: 22px; bottom: -8px; width: 16px; height: 16px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.preview__title { margin: 0 0 10px; font-size: 13px; color: var(--chrome); list-style: none; cursor: pointer; }
.preview__title::-webkit-details-marker { display: none; }
.preview:not([open]) .preview__title { margin: 0; }
.preview:not([open]) .preview__title::after { content: " — показать"; color: var(--foam); }
.preview__msg { margin: 0; white-space: pre-wrap; word-break: break-word; font: 500 14px/1.55 var(--font-body); color: var(--pearl); max-height: 300px; overflow: auto; }
.send { display: grid; gap: 10px; margin-top: 10px; }
.send__btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; border-radius: var(--r-md); font-weight: 700; font-size: 16px; color: #fff;
  transition: transform .35s var(--ease), box-shadow .3s, filter .3s;
  position: relative; overflow: hidden;
}
.send__btn--wa { background: #1DAA55; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.send__btn--tg { background: #1F8FD0; box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.send__btn:hover { filter: brightness(1.06); }
.send__btn:active { transform: scale(.97); }
.mi { width: 28px; height: 28px; overflow: visible; }
.mi__ring { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linejoin: round; }
.mi__phone { fill: #fff; transform-origin: 16px 16px; }
.send__btn--wa:hover .mi__phone, .send__btn--wa.is-sending .mi__phone { animation: ring .7s ease-in-out; }
@keyframes ring { 10%, 30%, 50% { transform: rotate(-14deg); } 20%, 40%, 60% { transform: rotate(14deg); } 70% { transform: none; } }
.mi__bg { fill: rgba(255,255,255,.2); }
.mi__plane { fill: #fff; transition: transform .5s var(--ease); }
.send__btn--tg:hover .mi__plane { transform: translate(2px, -2px); }
.send__btn--tg.is-sending .mi__plane { animation: fly 1s var(--ease); }
@keyframes fly { 45% { transform: translate(22px, -22px); opacity: 0; } 50% { transform: translate(-22px, 22px); opacity: 0; } 100% { transform: none; opacity: 1; } }
.send__note { font-size: 13px; color: var(--chrome); margin: 0; }
@media (max-width: 1000px) { .booking { grid-template-columns: 1fr; } .booking__side { position: static; } }
@media (max-width: 600px) { .booking__fields { grid-template-columns: minmax(0, 1fr); } .booking__when { padding: 16px; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px; }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 400 21px/1.35 var(--font-display); letter-spacing: -.015em; transition: color .25s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before, .faq__item summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--pearl); border-radius: 2px; transition: transform .4s var(--ease); }
.faq__item summary::after { transform: rotate(90deg); }
.faq__item[open] summary::after { transform: rotate(0); }
.faq__item summary:hover { color: #fff; }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0 0 24px; color: var(--chrome); max-width: 62ch; }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } .faq__item summary { font-size: 17px; } }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contacts__list { list-style: none; padding: 0; margin: 12px 0 32px; }
.contacts__list li { display: grid; grid-template-columns: 130px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contacts__list li > span { color: var(--chrome); font-size: 15px; }
.contacts__list b, .contacts__list a { font-weight: 600; }
.contacts__list a:hover { color: var(--foam); }
.copy { font-size: 13px; color: var(--pearl); padding: 6px 10px; border-radius: 6px; border: 1px solid var(--line-strong); transition: background-color .25s; }
.copy:hover { background: rgba(143, 214, 240, .1); }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.map { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(.9) hue-rotate(185deg) saturate(.55) brightness(.92) contrast(.92); /* тёмная карта под стиль сайта */ }
.map__ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: var(--chrome); font-size: 15px; background: radial-gradient(circle at 50% 45%, rgba(143, 214, 240, .08), transparent 60%); }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .contacts__list li { grid-template-columns: 1fr auto; gap: 4px 12px; } .contacts__list li > span { grid-column: 1 / -1; } .contacts__btns .btn { width: 100%; } .map { aspect-ratio: 1 / 1; } }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--chrome); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { margin: 0; }
.footer p a { margin-left: 18px; }
.footer p a:hover { color: var(--foam); }
.logo--sm { font-size: 16px; color: var(--pearl); }
.logo--sm .logo__mark { width: 20px; height: 20px; }
@media (max-width: 700px) { .footer { padding-bottom: 110px; } .footer__inner { flex-direction: column; align-items: flex-start; } .footer p a:first-child { margin-left: 0; } }

/* ---------- Плавающая кнопка ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fab__btn {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: linear-gradient(180deg, #F4F5F6, #C6CACF); color: #0A0A0A;
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .7);
  transition: transform .4s var(--ease);
}
.fab__btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--pearl); animation: fab-ring 2.6s infinite; }
.fab__btn svg { width: 28px; height: 28px; position: absolute; transition: transform .4s var(--ease), opacity .3s; }
.fab__close { opacity: 0; transform: rotate(-90deg) scale(.5); }
.fab.is-open .fab__chat { opacity: 0; transform: rotate(90deg) scale(.5); }
.fab.is-open .fab__close { opacity: 1; transform: none; }
.fab.is-open .fab__btn::before { animation: none; opacity: 0; }
.fab__btn:hover { transform: scale(1.06); }
@keyframes fab-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
.fab__menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.fab__item {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px;
  color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: opacity .3s, transform .45s var(--ease);
}
.fab__item svg { width: 24px; height: 24px; }
.fab__item--wa { background: var(--wa); }
.fab__item--tg { background: var(--tg); }
.fab__item--ph { background: var(--panel); border: 1px solid var(--line); }
.fab.is-open .fab__menu { pointer-events: auto; }
.fab.is-open .fab__item { opacity: 1; transform: none; }
.fab.is-open .fab__item:nth-child(2) { transition-delay: .05s; }
.fab.is-open .fab__item:nth-child(1) { transition-delay: .1s; }
.fab__item:hover svg { animation: wobble .7s var(--ease); }

/* ---------- Нижняя панель (телефон) ---------- */
.mbar { display: none; }
@media (max-width: 700px) {
  .fab { display: none; }
  .mbar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 45;
    display: flex; gap: 8px; padding: 8px; border-radius: 14px;
    background: rgba(14, 14, 15, .85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line); box-shadow: 0 16px 40px -16px rgba(0,0,0,.8);
    transform: translateY(150%); transition: transform .5s var(--ease);
  }
  .mbar.is-shown { transform: none; }
  .mbar .btn { flex: 1; min-height: 50px; }
  .mbar__icon { flex: none; width: 50px; height: 50px; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; }
  .mbar__icon svg { width: 26px; height: 26px; }
  .mbar__icon--wa { background: var(--wa); }
  .mbar__icon--tg { background: var(--tg); }
}

/* ---------- Модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .3s; }
.modal[hidden] { display: none; }
.modal__box { width: 100%; max-width: 440px; padding: 36px 32px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line-strong); text-align: center; animation: pop .5s var(--ease); }
.modal__box h3 { font: 400 24px/1.25 var(--font-display); letter-spacing: -.02em; margin: 18px 0 10px; }
.modal__box p { color: var(--chrome); margin: 0 0 24px; }
.modal__check { width: 72px; height: 72px; margin: 0 auto; }
.modal__check circle { fill: none; stroke: var(--pearl); stroke-width: 1.2; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .7s .1s var(--ease) forwards; }
.modal__check path { fill: none; stroke: var(--foam); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .45s .65s var(--ease) forwards; }
.modal__btns { display: grid; gap: 10px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.96); } }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 90;
  padding: 14px 22px; border-radius: var(--r-sm);
  background: var(--pearl); color: var(--lacquer); font-weight: 600; font-size: 15px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--ease), opacity .3s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-shown { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 700px) { .toast { bottom: 96px; } }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero__title .line > span { transform: none; }
  .hero__img, .hero__specs { opacity: 1 !important; }
  .hero__text > * { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media (max-width: 900px) { .nav a[href="#gallery"] { display: block; } }
@media (max-width: 440px) {
  .header__phone { font-size: 14px; }
  .hphone { gap: 8px; }
  .logo { font-size: 16px; letter-spacing: .2em; gap: 8px; }
  .logo__mark { width: 22px; height: 22px; }
}
@media (max-width: 360px) { .logo__word { display: none; } }

/* ---------- Группы допуслуг и количество ---------- */
.addgrp { border-top: 1px solid var(--line); }
.addgrp:last-child { border-bottom: 1px solid var(--line); }
.addgrp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 28px 16px 0; position: relative; font-weight: 600; font-size: 15.5px; }
.addgrp summary::-webkit-details-marker { display: none; }
.addgrp summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--chrome); border-bottom: 1.5px solid var(--chrome); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.addgrp[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.addgrp__n { font-weight: 500; font-size: 13px; color: var(--foam); }
.qty { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 12px 12px 50px; }
.qty[hidden] { display: none; }
.qty button { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line-strong); font-size: 18px; line-height: 1; transition: border-color .2s; }
.qty button:hover { border-color: var(--pearl); }
.qty b { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.qty::before { content: "Количество"; margin-right: auto; font-size: 13px; color: var(--chrome); }

/* ---------- Прайс ---------- */
.prices__bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; }
.ptabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ptab { padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--chrome); font-weight: 600; font-size: 14.5px; transition: border-color .25s, color .25s, background-color .25s; }
.ptab:hover { color: var(--pearl); border-color: var(--line-strong); }
.ptab.is-active { background: var(--pearl); color: var(--lacquer); border-color: var(--pearl); }
.seg--sm span { padding: 8px 12px; font-size: 13.5px; }
.ptable-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ptable th, .ptable td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable th { font-size: 13px; font-weight: 600; color: var(--chrome); background: var(--surface); }
.ptable th span { display: block; font: 300 20px/1 var(--font-display); color: var(--pearl); margin-bottom: 6px; }
.ptable .pcol { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; width: 15%; }
.ptable th.pcol { white-space: normal; }
.ptable td.pcol { color: var(--chrome); }
.ptable .pcol.is-active { background: rgba(143, 214, 240, .06); color: var(--pearl); }
.ptable td.pcol.is-active { font-weight: 700; }
.ptable td.pcol i { font-style: normal; font-weight: 400; font-size: 13px; color: var(--chrome); }
.ptable td.pall { text-align: center; color: var(--pearl); }
.ptable .pname { font-weight: 500; }
.ptable .pname small { display: block; font-weight: 400; font-size: 13px; color: var(--chrome); margin-top: 3px; }
.ptable tbody tr:hover td { background: rgba(255, 255, 255, .025); }
.prices__note { margin: 16px 0 0; font-size: 13px; color: var(--chrome); }
@media (max-width: 700px) {
  .prices__bar { flex-direction: column; align-items: stretch; }
  .ptab { padding: 9px 12px; font-size: 14px; }
  .seg--sm { display: grid; grid-template-columns: 1fr 1fr; }
  .ptable .pcol:not(.is-active):not(.pall) { display: none; }
  .ptable .pcol { width: 35%; }
  .ptable th, .ptable td { padding: 12px 14px; }
}
@media (max-width: 1000px) { .addons { grid-template-columns: 1fr; } }

.logo__word, .club-card__brand, .preloader__word, .logo--sm span { text-transform: uppercase; }

.hphone__ico { display: none; width: 18px; height: 18px; }
.nav__phone { display: none !important; }
@media (max-width: 900px) { .nav .nav__phone { display: block !important; color: var(--foam); } }
@media (max-width: 480px) {
  .header__phone { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); }
  .header__phone span { display: none; }
  .hphone__ico { display: block; }
  .logo { font-size: 17px; letter-spacing: .22em; }
}

/* ---------- Выбор номера в записи ---------- */
.numpick { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; margin: 0; display: grid; gap: 8px; }
.numpick legend { padding: 0 6px; font-weight: 600; font-size: 14.5px; }
.numpick__opt { position: relative; cursor: pointer; }
.numpick__opt input { position: absolute; opacity: 0; }
.numpick__opt span { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.numpick__opt b { font-weight: 600; font-size: 14.5px; }
.numpick__opt em { font-style: normal; font-size: 14.5px; color: var(--chrome); font-variant-numeric: tabular-nums; white-space: nowrap; }
.numpick__opt input:checked + span { border-color: var(--pearl); background: rgba(236, 238, 240, .05); }
.numpick__opt input:checked + span em { color: var(--pearl); }
.numpick__opt input:focus-visible + span { outline: 2px solid var(--foam); outline-offset: 2px; }
.numpick__note { margin: 4px 0 0; font-size: 13px; color: var(--chrome); }
.contacts__hint { grid-column: 2 / -1; margin-top: -10px; font-size: 13px; color: var(--chrome); }
.fab__item--wa2 { background: #1a8f4a; }
@media (max-width: 600px) { .contacts__hint { grid-column: 1 / -1; margin-top: 0; } }

/* ==========================================================
   КОМПАКТНАЯ ВЕРСИЯ ДЛЯ ТЕЛЕФОНА
   ========================================================== */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .section__head { margin-bottom: 24px; }
  .h2 { font-size: 30px; margin-bottom: 12px; }
  .section__lead { font-size: 15px; }

  /* Первый экран */
  .hero__media { height: 46vh; min-height: 300px; }
  .hero__inner { margin-top: -90px; }
  .hero__title { font-size: 40px; margin-bottom: 18px; }
  .hero__lead { margin-bottom: 24px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { min-height: 50px; }
  .hero__specs { margin-top: 16px; }
  .hero__specs div { padding: 14px 10px 14px 0; }
  .hero__specs div:nth-child(even) { padding-left: 14px; }
  .hero__specs dt { font-size: 26px; }
  .hero__specs dd { margin-top: 6px; font-size: 13px; }
  .ticker { padding: 14px 0; }
  .ticker span { font-size: 17px; padding: 0 20px; gap: 40px; }

  /* Услуги — лента, листается пальцем */
  .services { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; scrollbar-width: none; }
  .services::-webkit-scrollbar { display: none; }
  .svc, .svc--xl, .svc--tall { flex: none; width: 78vw; height: 380px; scroll-snap-align: start; }
  .svc h3 { font-size: 22px; }

  /* Галерея */
  .section--gallery { padding-bottom: 48px; }
  .shot { height: 340px; }
  .gallery__bar { margin-top: 20px; }

  /* Прайс */
  .ptable th, .ptable td { padding: 10px 12px; font-size: 14px; }
  .ptable .pname small { font-size: 12px; }
  .prices__note { font-size: 12px; }

  /* Калькулятор */
  .calc__group { margin-bottom: 24px; }
  .calc__group legend { margin-bottom: 10px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .seg span { padding: 9px 8px; font-size: 13.5px; line-height: 1.25; }
  .packages { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pkg__box { padding: 12px; gap: 4px; }
  .pkg__box b { font-size: 15px; }
  .pkg__box small { font-size: 12px; line-height: 1.3; }
  .pkg__box .pkg__price { font-size: 16px; padding-top: 6px; }
  .addgrp summary { padding: 14px 28px 14px 0; font-size: 15px; }
  .addon__box { padding: 11px 12px; gap: 10px; }
  .addon__name, .addon__price { font-size: 14px; }
  .addons { gap: 8px; padding-bottom: 12px; }
  .calc__total { padding: 20px; }
  .calc__sum { font-size: 40px; }
  .calc__list { padding-top: 12px; margin-bottom: 16px; font-size: 14px; }

  /* Как проходит визит */
  .steps { gap: 18px; }
  .step__n { width: 40px; height: 40px; font-size: 16px; }
  .step { grid-template-columns: 40px 1fr; column-gap: 14px; }
  .steps::before, .steps::after { left: 20px; top: 20px; bottom: 20px; }
  .step h3 { font-size: 18px; margin-bottom: 4px; }
  .step p { font-size: 14.5px; }

  /* Клубная карта */
  .club__card-wrap { padding: 0; }
  .club-card { max-width: 320px; padding: 18px 20px; border-radius: 14px; }
  .club-card__brand { font-size: 16px; }
  .club-card__chip { width: 36px; }
  .club-card__num { font-size: 15px; margin-bottom: 10px; }
  .club-card__bottom b { font-size: 24px; }
  .tiers { margin: 18px 0 18px; gap: 8px; }
  .tier { padding: 12px 14px; gap: 4px 12px; }
  .tier span, .tier em { font-size: 13.5px; }

  /* Запись */
  .booking { gap: 16px; }
  .booking__fields { gap: 10px; }
  .field input, .field select, .field textarea { min-height: 54px; padding: 22px 14px 8px; font-size: 16px; }
  .field label { left: 15px; top: 16px; font-size: 15px; }
  .field textarea { min-height: 70px; }
  .booking__when { padding: 14px; }
  .booking__label { margin-bottom: 8px; font-size: 14px; }
  .booking__label:not(:first-child) { margin-top: 14px; }
  .chip { min-width: 58px; padding: 8px 8px; }
  .chip b { font-size: 16px; }
  .slots { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .slot { padding: 8px 0; font-size: 14px; }
  .booking__side { gap: 12px; }
  .preview { padding: 14px 16px; }
  .numpick { padding: 12px; gap: 6px; }
  .numpick__opt span { padding: 10px 12px; }
  .numpick__opt b, .numpick__opt em { font-size: 14px; }
  .send { margin-top: 0; gap: 8px; }
  .send__btn { min-height: 52px; }

  /* Вопросы */
  .faq__item summary { padding: 18px 40px 18px 0; font-size: 16px; }
  .faq__a p { margin-bottom: 18px; font-size: 15px; }

  /* Контакты */
  .contacts { gap: 24px; }
  .contacts__list { margin: 4px 0 20px; }
  .contacts__list li { padding: 12px 0; }
  .contacts__btns { gap: 8px; }
  .map { aspect-ratio: 16 / 10; }

  .footer { padding: 24px 0 100px; }
  .footer__inner { gap: 10px; }
}
.footer p a { white-space: nowrap; display: inline-block; }
