:root {
  --bg: #0a0b0d;
  --bg-2: #111317;
  --surface: #16191e;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f0eb;
  --muted: #8d919a;
  --accent: #d4ff3a;
  --accent-ink: #0a0b0d;
  --radius: 28px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-loading { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img, canvas { display: block; }

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

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Типографика ---------- */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(32px, 5vw, 64px);
  text-transform: uppercase;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.section-label span {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.accent-text { color: var(--accent); }

/* split-строки */
.split-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-line > span { display: inline-block; will-change: transform; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 58px;
  padding: 0 30px;
  border-radius: 99px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  white-space: nowrap;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn span { position: relative; pointer-events: none; }
.btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn--wide { width: 100%; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent::before { background: var(--text); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.25); color: var(--text); background: transparent; }
.btn--ghost::before { background: var(--text); }
.btn--ghost:hover { color: var(--bg); }
.btn--dark { background: var(--bg); color: var(--text); }
.btn--dark::before { background: #2a2e36; }

/* ---------- Прелоадер ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.preloader__panels { position: absolute; inset: 0; display: flex; }
.preloader__panels span { flex: 1; background: var(--bg-2); height: 100%; margin-right: -1px; }
.preloader__inner { position: relative; text-align: center; width: min(360px, 80vw); }
.preloader__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(48px, 9vw, 96px);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(100deg, #555 20%, #fff 45%, #555 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 2.2s linear infinite;
}
@keyframes shine { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.preloader__count { font-family: var(--font-display); font-size: 14px; margin: 26px 0 10px; color: var(--muted); }
.preloader__bar { height: 2px; background: var(--line); overflow: hidden; }
.preloader__bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.preloader__hint { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Курсор ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; pointer-events: none; z-index: 900; }
.cursor {
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  display: grid; place-items: center;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.35s, border-color 0.35s, opacity 0.3s;
}
.cursor__label { font-size: 11px; font-weight: 700; color: var(--accent-ink); opacity: 0; transition: opacity 0.2s; letter-spacing: 0.04em; }
.cursor.is-hover { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(255, 255, 255, 0.1); border-color: transparent; }
.cursor.is-wash {
  width: 92px; height: 92px; margin: -46px 0 0 -46px;
  border-color: rgba(212, 255, 58, 0.9);
  background: radial-gradient(circle, rgba(212, 255, 58, 0.18), rgba(212, 255, 58, 0) 70%);
}
.cursor.is-wash .cursor__label { opacity: 1; color: var(--accent); }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
  transition: transform 0.6s var(--ease), background 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled { background: rgba(10, 11, 13, 0.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.nav__logo sup { font-size: 9px; color: var(--accent); margin-left: 2px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav__links a { position: relative; color: rgba(242, 240, 235, 0.8); transition: color 0.3s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__phone { font-weight: 700; font-size: 14px; }
.nav__burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; }
.nav__burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease); }
.nav__burger i:first-child { top: 18px; }
.nav__burger i:last-child { top: 25px; }
.menu-open .nav__burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .nav__burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  background: var(--bg-2);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--gutter);
  gap: 6px;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); visibility: visible; }
.mobile-menu a { font-family: var(--font-display); font-size: clamp(30px, 9vw, 54px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; }
.mobile-menu__phone { font-size: 18px !important; color: var(--accent); margin-top: 24px; font-family: var(--font-body) !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__glow {
  position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 62% 55%, rgba(212, 255, 58, 0.09), transparent 70%),
    radial-gradient(50% 45% at 70% 60%, rgba(120, 160, 255, 0.08), transparent 70%);
}
.hero__word {
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34vw;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  white-space: nowrap;
  user-select: none;
}
.hero__grid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 45%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 10%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 90%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__content {
  position: absolute;
  left: var(--gutter);
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 40px;
  width: min(540px, 44vw);
  pointer-events: none;
  z-index: 2;
}
.no-3d .hero__meter, .no-3d .hero__done { display: none; }
.hero__content a, .hero__content button { pointer-events: auto; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 26px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(212, 255, 58, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(212, 255, 58, 0); } 100% { box-shadow: 0 0 0 0 rgba(212, 255, 58, 0); } }
.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { color: rgba(242, 240, 235, 0.72); max-width: 400px; margin: 0 0 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__meter {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  width: 280px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(22, 25, 30, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3;
}
.meter__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.meter__head b { font-family: var(--font-display); font-size: 26px; color: var(--text); letter-spacing: -0.03em; }
.meter__bar { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); margin: 10px 0 12px; overflow: hidden; }
.meter__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #8a6f45, var(--accent)); transition: width 0.3s; }
.meter__hint { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.meter__reset {
  margin-top: 12px; padding: 0; border: 0; background: none;
  font-size: 12.5px; font-weight: 700; color: var(--accent);
}
.meter__reset:hover { text-decoration: underline; }

.hero__done {
  position: absolute;
  left: 50%; top: 22%;
  transform: translate(-50%, 20px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 28px;
  border-radius: 22px;
  background: rgba(10, 11, 13, 0.7);
  border: 1px solid rgba(212, 255, 58, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  z-index: 4;
}
.hero__done b { font-family: var(--font-display); font-size: 28px; color: var(--accent); }
.hero__done span { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.hero__done.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
  pointer-events: none;
}
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--accent), transparent); animation: drip 1.8s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Бегущая строка ---------- */
.marquee-wrap {
  position: relative;
  z-index: 2;
  padding: 40px 0;
  background: var(--bg);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: calc(var(--radius) * -1);
  overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; align-items: center; will-change: transform; }
.marquee span {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 7vw, 110px);
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 1.1;
  padding: 0 0.3em;
}
.marquee em { font-style: normal; color: var(--accent); font-size: clamp(22px, 3vw, 44px); }
.marquee--reverse span { color: transparent; -webkit-text-stroke: 1px rgba(242, 240, 235, 0.35); }

/* ---------- О студии ---------- */
.about { position: relative; padding: clamp(80px, 12vw, 180px) 0; background: var(--bg); z-index: 2; }
.about__text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 clamp(60px, 9vw, 120px);
  max-width: 1180px;
}
.about__text .w { opacity: 0.14; transition: none; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat b { font-family: var(--font-display); font-size: clamp(38px, 5vw, 76px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; }
.stat span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ---------- Услуги ---------- */
.services { position: relative; background: var(--bg); z-index: 2; }
.services__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 40px; overflow: hidden; }
.services__head .h2 { margin-bottom: clamp(24px, 4vh, 48px); font-size: clamp(34px, min(5.4vw, 8vh), 84px); }
.services__track {
  display: flex;
  gap: 22px;
  padding: 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.svc {
  position: relative;
  width: clamp(290px, 28vw, 400px);
  min-height: min(460px, 54vh);
  padding: 30px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.4s;
}
.svc::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 255, 58, 0.12), transparent 60%);
  opacity: 0; transition: opacity 0.4s;
  pointer-events: none;
}
.svc:hover { border-color: rgba(212, 255, 58, 0.35); }
.svc:hover::before { opacity: 1; }
.svc__num { font-family: var(--font-display); font-size: 13px; color: var(--muted); }
.svc h3 { font-family: var(--font-display); font-size: 25px; line-height: 1.1; letter-spacing: -0.02em; margin: auto 0 14px; text-transform: uppercase; }
.svc p { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.svc__price { font-weight: 700; font-size: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.svc--cta { background: var(--accent); color: var(--accent-ink); border-color: transparent; justify-content: flex-end; }
.svc--cta p { color: rgba(10, 11, 13, 0.7); }
.svc--cta h3 { margin-top: 0; }
.svc--cta .btn { align-self: flex-start; }

/* иконки услуг — анимированные CSS-формы */
.svc__icon { position: relative; width: 120px; height: 120px; margin: clamp(16px, 3vh, 34px) 0 clamp(16px, 3vh, 30px); }
.svc__icon::before, .svc__icon::after { content: ""; position: absolute; }
.svc__icon--wash::before { inset: 10px; border-radius: 50%; border: 2px dashed rgba(212, 255, 58, 0.7); animation: spin 10s linear infinite; }
.svc__icon--wash::after { width: 34px; height: 34px; left: 43px; top: 43px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); animation: bob 2.4s ease-in-out infinite; }
.svc__icon--polish::before { inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #222, #d4ff3a, #222, #fff, #222); animation: spin 4s linear infinite; mask: radial-gradient(circle, transparent 38%, #000 40%); -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%); }
.svc__icon--polish::after { inset: 34px; border-radius: 50%; background: #2a2e36; }
.svc__icon--ceramic::before { inset: 14px; transform: rotate(45deg); border: 2px solid var(--accent); border-radius: 18px; animation: breathe 3s ease-in-out infinite; }
.svc__icon--ceramic::after { inset: 38px; transform: rotate(45deg); background: var(--accent); border-radius: 8px; animation: breathe 3s ease-in-out infinite reverse; }
.svc__icon--ppf::before { inset: 0; border-radius: 22px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.02)); border: 1px solid rgba(255, 255, 255, 0.3); }
.svc__icon--ppf::after { inset: 0; border-radius: 22px; background: linear-gradient(120deg, transparent 40%, rgba(212, 255, 58, 0.8) 50%, transparent 60%); background-size: 250% 100%; animation: shine 2.6s linear infinite; }
.svc__icon--interior::before { left: 20px; right: 20px; bottom: 14px; height: 36px; border-radius: 14px; background: #2a2e36; border: 2px solid var(--accent); }
.svc__icon--interior::after { left: 34px; right: 34px; top: 10px; height: 60px; border-radius: 18px 18px 6px 6px; border: 2px solid var(--accent); animation: bob 3s ease-in-out infinite; }
.svc__icon--chrome::before { inset: 0; border-radius: 50%; background: linear-gradient(90deg, #111 50%, #e8e8e8 50%); animation: spin 6s linear infinite; }
.svc__icon--chrome::after { inset: 30px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes breathe { 50% { scale: 0.86; } }

/* ---------- До / после ---------- */
.polish { position: relative; z-index: 2; padding: clamp(100px, 12vw, 180px) 0; background: var(--bg-2); border-radius: var(--radius); }
.polish__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(30px, 6vw, 90px); align-items: center; }
.polish__text { color: var(--muted); max-width: 440px; }
.polish__list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.polish__list li { display: flex; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.polish__list b { font-family: var(--font-display); color: var(--accent); min-width: 96px; font-size: 18px; }
.compare {
  position: relative;
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
  --pos: 50%;
  clip-path: inset(0 0 0 0 round var(--radius));
}
.compare canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
.compare__handle i {
  position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.compare__handle i::before, .compare__handle i::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px;
  border: 6px solid transparent;
}
.compare__handle i::before { left: 9px; border-right-color: var(--accent-ink); }
.compare__handle i::after { right: 9px; border-left-color: var(--accent-ink); }
.compare__tag {
  position: absolute; top: 18px;
  padding: 6px 14px; border-radius: 99px;
  background: rgba(10, 11, 13, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  pointer-events: none;
}
.compare__tag--l { left: 18px; }
.compare__tag--r { right: 18px; color: var(--accent); }

/* ---------- Процесс ---------- */
.process { position: relative; z-index: 2; padding: clamp(100px, 12vw, 180px) 0 clamp(60px, 8vw, 120px); background: var(--bg); }
.stack { position: relative; }
.stack__card {
  position: sticky;
  top: calc(110px + var(--i) * 22px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 5vw, 80px);
  align-items: start;
  min-height: 300px;
  padding: clamp(28px, 4vw, 56px);
  margin-bottom: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transform-origin: center top;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.35);
}
.stack__card:nth-child(even) { background: #1b1f25; }
.stack__card:last-child { background: var(--accent); color: var(--accent-ink); }
.stack__card:last-child p { color: rgba(10, 11, 13, 0.7); }
.stack__card:last-child .stack__n { color: var(--accent-ink); -webkit-text-stroke: 0; }
.stack__n {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(64px, 10vw, 160px); line-height: 0.85; letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--accent);
}
.stack__card h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 42px); line-height: 1.05; letter-spacing: -0.03em; text-transform: uppercase; margin: 0 0 18px; }
.stack__card p { color: var(--muted); max-width: 560px; margin: 0; font-size: 17px; }

/* ---------- Пакеты ---------- */
.prices { position: relative; z-index: 2; padding: clamp(80px, 10vw, 160px) 0; background: var(--bg); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; perspective: 1200px; }
.plan {
  position: relative;
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
}
.plan__name { font-family: var(--font-display); font-size: 22px; text-transform: uppercase; letter-spacing: -0.02em; }
.plan__price { white-space: nowrap; font-family: var(--font-display); font-size: clamp(28px, 2.8vw, 46px); letter-spacing: -0.04em; margin: 18px 0 26px; font-weight: 700; }
.plan__price small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0 0 34px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 26px; position: relative; color: rgba(242, 240, 235, 0.8); font-size: 15px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan--hot { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.plan--hot li { color: rgba(10, 11, 13, 0.8); }
.plan--hot li::before { border-color: var(--accent-ink); }
.plan--hot .plan__price small { color: rgba(10, 11, 13, 0.6); }
.plan__badge { position: absolute; top: 28px; right: 28px; padding: 5px 12px; border-radius: 99px; background: var(--accent-ink); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Отзывы ---------- */
.reviews { position: relative; z-index: 2; padding: clamp(80px, 10vw, 160px) 0 clamp(60px, 8vw, 120px); background: var(--bg); overflow: hidden; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.rating { display: flex; align-items: center; gap: 22px; margin-bottom: clamp(32px, 5vw, 64px); }
.rating__num { font-family: var(--font-display); font-weight: 900; font-size: clamp(64px, 8vw, 128px); line-height: 0.8; letter-spacing: -0.05em; color: var(--accent); }
.rating__side { display: grid; gap: 8px; }
.rating__side span { color: var(--muted); font-size: 14px; }

.stars { position: relative; display: inline-block; font-size: 15px; letter-spacing: 3px; line-height: 1; color: rgba(255, 255, 255, 0.15); }
.stars::before { content: "★★★★★"; }
.stars i { position: absolute; left: 0; top: 0; width: var(--fill, 100%); overflow: hidden; white-space: nowrap; color: var(--accent); font-style: normal; }
.stars i::before { content: "★★★★★"; }
.stars--big { font-size: 26px; letter-spacing: 4px; }

.rv-rows {
  display: grid; gap: 20px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.rv-row-wrap { overflow: visible; }
.rv-row { display: flex; gap: 20px; width: max-content; will-change: transform; }
.rv {
  width: clamp(290px, 30vw, 400px);
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.4s, background 0.4s, transform 0.5s var(--ease);
}
.rv:hover { border-color: rgba(212, 255, 58, 0.4); background: #1a1e24; transform: translateY(-6px); }
.rv header { display: flex; align-items: center; gap: 14px; }
.rv__ava {
  display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-size: 14px; color: var(--accent-ink);
  background: linear-gradient(135deg, hsl(var(--h) 80% 72%), hsl(calc(var(--h) + 50) 85% 60%));
}
.rv header strong { display: block; font-size: 16px; }
.rv header span { font-size: 13px; color: var(--muted); }
.rv p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(242, 240, 235, 0.82); flex: 1; }
.rv__tag { align-self: flex-start; font-style: normal; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Расположение ---------- */
.location { position: relative; z-index: 2; padding: clamp(60px, 8vw, 120px) 0 clamp(100px, 12vw, 180px); background: var(--bg); }
.location__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(30px, 5vw, 80px); align-items: stretch; }
.location__info { display: flex; flex-direction: column; justify-content: center; }
.location__info .h2 { margin-bottom: 28px; font-size: clamp(30px, 4vw, 64px); }
.location__text { color: var(--muted); max-width: 440px; margin: 0 0 30px; }
.location__rows { display: grid; margin-bottom: 34px; }
.location__rows div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.location__rows span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.location__rows b { font-size: 17px; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.map {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  isolation: isolate;
}
.map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: invert(0.92) hue-rotate(180deg) saturate(0.7) contrast(0.95);
  transform: scale(1.12);
  transition: transform 1.4s var(--ease);
}
.map.is-revealed iframe { transform: scale(1); }
.map__shield {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: end center; padding-bottom: 26px;
  border: 0; background: transparent;
  font-size: 13px; font-weight: 700; color: var(--text);
  opacity: 0; transition: opacity 0.3s;
}
.map__shield:hover { opacity: 1; background: linear-gradient(to top, rgba(10, 11, 13, 0.6), transparent 40%); }
.map.is-unlocked .map__shield { display: none; }
.map__badge {
  position: absolute; left: 18px; top: 18px; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 99px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.map__badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-ink); animation: pulse-dark 2s infinite; }
@keyframes pulse-dark { 0% { box-shadow: 0 0 0 0 rgba(10, 11, 13, 0.5); } 70%, 100% { box-shadow: 0 0 0 9px rgba(10, 11, 13, 0); } }

.schedule {
  padding: 22px;
  margin-bottom: 34px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.schedule__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.schedule__head > span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.schedule__days { list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.schedule__days li {
  display: grid; justify-items: center; gap: 2px;
  padding: 10px 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.schedule__days span { font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.schedule__days b { font-size: 11px; font-weight: 600; color: var(--muted); }
.schedule__days li.is-today { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.schedule__days li.is-today b { color: rgba(10, 11, 13, 0.65); }
.schedule__line { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.07); margin-bottom: 26px; }
.schedule__open {
  position: absolute; top: 0; bottom: 0;
  left: calc(9 / 24 * 100%); width: calc(13 / 24 * 100%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(212, 255, 58, 0.35), var(--accent));
  transform-origin: left;
}
.schedule__now {
  position: absolute; top: 50%; left: 0;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  border-radius: 50%;
  background: var(--text);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--text);
}
.schedule__ticks span { position: absolute; top: 16px; transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.schedule__ticks span:nth-child(1) { left: 0; transform: none; }
.schedule__ticks span:nth-child(2) { left: calc(9 / 24 * 100%); }
.schedule__ticks span:nth-child(3) { left: calc(22 / 24 * 100%); }

.open-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.open-status em { font-style: normal; }
.open-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-status.is-open { color: var(--accent); }
.open-status.is-open i { background: var(--accent); animation: pulse 2s infinite; }
.open-status.is-closed { color: #ff8a65; }
.open-status.is-closed i { background: #ff8a65; }
.open-status--dark { margin-top: 6px; color: var(--accent-ink) !important; font-size: 14px; }
.open-status--dark i { background: var(--accent-ink) !important; animation: none !important; }

.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 950;
  padding: 14px 22px; border-radius: 99px;
  background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s;
  pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- FAQ ---------- */
.faq { position: relative; z-index: 2; padding: clamp(60px, 8vw, 120px) 0 clamp(100px, 12vw, 180px); background: var(--bg); }
.faq__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(30px, 6vw, 90px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 28px 0;
  font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500; letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }
.faq__item summary i { position: relative; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: transform 0.5s var(--ease), background 0.3s; }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -0.75px 0 0 -6px; background: currentColor; }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.faq__a { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 60px 28px 0; color: var(--muted); }

/* ---------- Контакты ---------- */
.contacts {
  position: relative; z-index: 2;
  padding: clamp(90px, 12vw, 170px) 0;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius) var(--radius) 0 0;
}
.contacts__big {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 8.4vw, 132px); line-height: 0.88; letter-spacing: -0.055em;
  text-transform: uppercase; margin: 0 0 clamp(50px, 7vw, 100px);
}
.contacts__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(30px, 6vw, 90px); }
.form { display: grid; gap: 18px; }
.field { position: relative; display: block; }
.field input {
  width: 100%; height: 64px; padding: 22px 0 6px;
  border: 0; border-bottom: 1.5px solid rgba(10, 11, 13, 0.3);
  background: transparent; color: var(--accent-ink);
  font: 600 19px var(--font-body);
  outline: none; border-radius: 0;
  transition: border-color 0.3s;
}
.field input:focus { border-color: var(--accent-ink); }
.field span { position: absolute; left: 0; top: 22px; font-size: 17px; color: rgba(10, 11, 13, 0.55); pointer-events: none; transition: transform 0.35s var(--ease), font-size 0.35s; transform-origin: left; }
.field input:focus + span,
.field input:not(:placeholder-shown) + span { transform: translateY(-20px) scale(0.75); }
.field.is-error input { border-color: #c2261b; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.chip { padding: 10px 18px; border-radius: 99px; border: 1.5px solid rgba(10, 11, 13, 0.25); background: transparent; color: var(--accent-ink); font-weight: 600; font-size: 14px; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.chip:hover { border-color: var(--accent-ink); }
.chip.is-on { background: var(--accent-ink); color: var(--accent); border-color: var(--accent-ink); }
.form__ok { font-weight: 700; font-size: 18px; opacity: 0; transform: translateY(10px); transition: 0.5s var(--ease); height: 0; }
.form.is-sent .form__ok { opacity: 1; transform: none; height: auto; }
.form__err { display: none; font-weight: 600; color: #8a1c12; }
.form__err a { border-bottom: 1px solid currentColor; }
.form.is-failed .form__err { display: block; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form.is-sending button[type="submit"] { opacity: 0.6; pointer-events: none; }
.info { display: grid; align-content: start; }
.info__row { display: flex; flex-direction: column; gap: 4px; padding: 22px 0; border-bottom: 1px solid rgba(10, 11, 13, 0.18); }
.info__row:first-child { padding-top: 0; }
.info__row span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(10, 11, 13, 0.55); }
.info__row b { font-size: 21px; }
.info__row a { border-bottom: 1px solid currentColor; }

/* ---------- Футер ---------- */
.footer { position: relative; background: var(--bg); padding: 40px 0 30px; overflow: hidden; }
.footer__big {
  display: flex; justify-content: space-between;
  padding: 0 var(--gutter);
  font-family: var(--font-display); font-weight: 900;
  font-size: 21vw; line-height: 0.8; letter-spacing: -0.06em;
  overflow: hidden;
}
.footer__big span { display: inline-block; background: linear-gradient(180deg, var(--text), #3a3d44); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; font-size: 14px; color: var(--muted); }
.footer__bottom a:hover { color: var(--accent); }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
  .nav__links, .nav__phone { display: none; }
  .nav .btn { margin-left: auto; }
  .nav__burger { display: block; }
}
@media (max-width: 900px) {
  .hero__content { justify-content: flex-end; padding: 0 0 150px; width: auto; right: var(--gutter); }
  .hero__title { font-size: clamp(38px, 11vw, 64px); }
  .hero__lead { display: none; }
  .hero__meter { left: var(--gutter); right: var(--gutter); width: auto; bottom: 20px; padding: 14px 16px; }
  .meter__reset { position: absolute; right: 16px; bottom: 14px; margin: 0; }
  .meter__hint { padding-right: 130px; }
  .meter__bar { margin: 8px 0 10px; }
  .hero__scroll { display: none; }
  .hero__done { top: 14%; width: calc(100% - 32px); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 28px; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services__pin { min-height: 0; padding: 90px 0 40px; }
  .services__track { flex-direction: column; width: auto; }
  .svc { width: 100%; min-height: 0; }
  .svc h3 { margin-top: 0; }
  .polish__grid, .faq__grid, .contacts__grid, .location__grid { grid-template-columns: 1fr; }
  .map { min-height: 380px; }
  .rv { width: 290px; }
  .plans { grid-template-columns: 1fr; }
  .stack__card { grid-template-columns: 1fr; gap: 14px; min-height: 0; top: calc(90px + var(--i) * 14px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav { gap: 12px; padding: 14px 16px; }
  .nav .btn--sm { height: 40px; padding: 0 16px; font-size: 13px; }
  .hero__actions .btn { height: 52px; padding: 0 22px; font-size: 14px; }
  .hero__actions .btn--ghost { display: none; }
  .hero__eyebrow { margin-bottom: 16px; font-size: 11px; }
  .hide-sm { display: none; }
  .schedule { padding: 16px; }
  .schedule__days { gap: 4px; }
  .schedule__days b { font-size: 10px; }
  .footer__bottom { flex-direction: column; }
  .faq__a p { padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
