/* ==========================================================================
   KarlenWeb — студия создания сайтов
   Тёмная кино-тема. Один акцент: синий #0a84ff.
   Заголовки — Space Grotesk, метки — Space Mono, текст — системный.
   Первый экран: полноэкранная сцена «карта -> сайт -> заявки» (scroll.js).
   ========================================================================== */

:root {
  --canvas: #000000;
  --canvas-2: #0e0e10;
  --panel: #161618;
  --panel-2: #202022;

  --text: #f5f5f7;
  --text-soft: #a7a7ad;
  --text-dim: #86868b;

  --line: #313134;
  --line-soft: #232325;

  --accent: #0a84ff;
  --accent-hover: #409cff;
  --accent-press: #0070e0;

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1120px;
  --wrap-narrow: 720px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Space Grotesk", "SF Pro Display", -apple-system, system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 40px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 30px 90px rgba(0, 0, 0, 0.62);
}

* { box-sizing: border-box; }
html, body { overflow-x: hidden; overflow-x: clip; }
html { scroll-behavior: smooth; background: #000; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}
p { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--accent); color: #fff;
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 2px; border-radius: 6px;
}

main, .footer, .nav { position: relative; z-index: 1; }

/* -------------------------------------------------------------------------- */
/* Живая среда позади всей страницы                                           */
/* -------------------------------------------------------------------------- */

.env { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.env-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  background-position: 0 calc(var(--sy, 0) * -0.06px);
  mask-image: radial-gradient(120% 80% at 50% 26%, #000 28%, transparent 76%);
}
.env-glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.env-glow-1 {
  width: 48vw; height: 48vw; left: -10vw; top: 2vh;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.4), transparent 68%);
  animation: env-float-1 30s var(--ease) infinite;
}
.env-glow-2 {
  width: 42vw; height: 42vw; right: -8vw; top: 54vh;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.24), transparent 68%);
  animation: env-float-2 40s var(--ease) infinite;
}
.env-noise {
  position: absolute; inset: 0; opacity: 0.028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes env-float-1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(6vw, 8vh) scale(1.15); } }
@keyframes env-float-2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-7vw, -6vh) scale(1.1); } }

/* -------------------------------------------------------------------------- */
/* Полоса прогресса прокрутки                                                 */
/* -------------------------------------------------------------------------- */

.scrollbar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.scrollbar span {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Раскладка                                                                  */
/* -------------------------------------------------------------------------- */

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: clamp(80px, 12vw, 140px) 0; }
.section-alt { background: var(--canvas-2); }

.kicker {
  font-family: var(--font-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; max-width: 20ch; }
.section-lead { color: var(--text-soft); font-size: 19px; margin-top: 16px; max-width: 54ch; }

/* -------------------------------------------------------------------------- */
/* Навигация                                                                  */
/* -------------------------------------------------------------------------- */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--canvas) 66%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 18px; height: 58px; }
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em; flex: none;
}
.brand-icon {
  position: relative; width: 26px; height: 26px; flex: none;
  display: inline-grid; place-items: center; overflow: hidden;
}
.brand-photo {
  width: 34px; height: 34px; object-fit: contain;
  filter: invert(1) grayscale(1) contrast(1.06) brightness(1.04);
}
.brand-icon .brand-mark { display: none; }
.brand-icon.no-photo .brand-photo { display: none; }
.brand-icon.no-photo .brand-mark { display: block; }
.brand-mark { width: 25px; height: 25px; color: var(--text); }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { color: var(--text-soft); text-decoration: none; font-size: 14px; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--text); }

.nav-contacts { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.icon-link {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  color: var(--text-soft);
  transform: translate(var(--mx, 0px), var(--my, 0px)) scale(var(--ms, 1));
  transition: color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.28s var(--ease), box-shadow 0.25s var(--ease);
}
.icon-link svg { width: 19px; height: 19px; fill: currentColor; transition: transform 0.28s var(--ease); }
.icon-link:hover {
  color: var(--text); background: var(--panel); --ms: 1.12;
  box-shadow: 0 0 0 1px var(--line-soft), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.icon-link:hover svg { transform: scale(1.06); }
.icon-link:active { --ms: 0.96; }
.icon-link.mail { color: var(--accent); }
.icon-link.mail:hover { color: var(--accent-hover); }
.icon-link.wa { color: #25d366; }
.icon-link.wa:hover { color: #2ee06f; }

/* -------------------------------------------------------------------------- */
/* Кнопки                                                                     */
/* -------------------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 24px; border-radius: 980px;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.14s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(0.98); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 30px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 12px 40px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-primary:active { background: var(--accent-press); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--accent); }
.btn-text { background: transparent; color: var(--accent); padding: 13px 8px; }
.btn-text::after { content: "\203A"; font-size: 1.15em; line-height: 1; transform: translateY(-0.5px); }
.btn-text:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
@media (pointer: coarse) { .btn { min-height: 46px; } }

/* ========================================================================== */
/* ПЕРВЫЙ ЭКРАН                                                                */
/* Десктоп: липкая секция ~480vh, scroll.js пишет на .cine-hold --p (0..1)    */
/* и --a1..--a4. Телефон / reduced-motion: обычный герой .cine-static.        */
/* ========================================================================== */

.cine { position: relative; height: 300vh; z-index: 1; }
.cine-hold {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden;
  background: radial-gradient(130% 90% at 50% -10%, #14161c 0%, #08090c 55%, #030304 100%);
  --p: 1; --a1: 1; --a2: 1; --a3: 1; --a4: 1;
}
.stagewrap { position: absolute; inset: 0; display: grid; place-items: center; }

/* --- морфящаяся рамка: карта -> сайт --- */
.cframe {
  position: relative;
  width: min(1280px, 92vw);
  aspect-ratio: 16 / 9.6;
  border-radius: clamp(12px, 1.4vw, 22px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: translateY(6vh) scale(calc(0.6 + 0.36 * var(--a2)));
  transform-origin: 50% 46%;
}
.cframe::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; background: #04050a;
  opacity: calc(0.34 - 0.24 * clamp(0, (var(--a4) - 0.2) * 2, 1));
}
.cframe-bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 4;
  height: 44px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  background: var(--canvas-2); border-bottom: 1px solid var(--line-soft);
  transform: translateY(calc((1 - clamp(0, (var(--a2) - 0.12) * 3, 1)) * -100%));
}
.cframe-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3d; }
.cframe-url {
  margin-left: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-dim);
  background: var(--panel); padding: 4px 12px; border-radius: 8px;
}

/* карта */
.cmap {
  position: absolute; inset: 0;
  opacity: calc(1 - clamp(0, (var(--a2) - 0.14) * 2.6, 1));
  transform: scale(calc(1 + 0.12 * clamp(0, (var(--a2) - 0.14) * 2.6, 1)));
}
.cmap-tiles { position: absolute; inset: 0; background: #0f1116; }
.cmap-roads { position: absolute; inset: 0; width: 100%; height: 100%; }
.cmap-roads path { fill: none; stroke: #262b34; stroke-width: 6; }
.cmap-roads .lit { stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 5; filter: drop-shadow(0 0 8px var(--accent)); }
.cpin {
  position: absolute; left: 50%; top: 46%; width: 34px; height: 34px;
  transform: translate(-50%, -100%) translateY(calc((1 - var(--a1)) * -130px)) scale(calc(0.7 + 0.3 * clamp(0, var(--a1) * 1.6, 1)));
}
.cpin::before {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%) rotate(45deg);
  width: 13px; height: 13px; background: var(--accent);
}
.cpin-dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #eaf2ff, var(--accent) 60%, #0b3f86);
  box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 55%, transparent);
}
.cpin::after {
  content: ""; position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  animation: c-ping 2.6s var(--ease-out) infinite;
  opacity: clamp(0, calc(var(--a1) * 2 - 0.4), 1);
}
@keyframes c-ping {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 0.8; }
  to { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
.cmap-badge {
  position: absolute; left: 50%; top: 46%; transform: translate(-50%, 18px);
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 12px; font-size: 12px; white-space: nowrap; color: var(--text);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
  opacity: clamp(0, calc((var(--a1) - 0.55) * 3.5), 1);
}

/* сайт */
.csite {
  position: absolute; inset: 44px 0 0 0; background: var(--panel); overflow: hidden;
  opacity: clamp(0, calc((var(--a2) - 0.2) * 2.6), 1);
}
.csite-nav {
  display: flex; align-items: center; gap: 16px;
  height: 13%; min-height: 46px; padding: 0 6%;
  border-bottom: 1px solid var(--line-soft);
  opacity: clamp(0, calc((var(--a2) - 0.3) * 4), 1);
  transform: translateY(calc((1 - clamp(0, (var(--a2) - 0.3) * 4, 1)) * -26px));
}
.csite-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); flex: none; }
.csite-nav b { width: 46px; height: 8px; border-radius: 4px; background: #2c2c2f; }
.csite-nav em { width: 92px; height: 26px; border-radius: 999px; background: var(--accent); margin-left: auto; }
.csite-hero {
  display: flex; gap: 5%; padding: 6% 6% 4%;
  opacity: clamp(0, calc((var(--a2) - 0.42) * 4), 1);
  transform: translateY(calc((1 - clamp(0, (var(--a2) - 0.42) * 4, 1)) * 24px));
}
.csite-lines { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.csite-lines span { border-radius: 6px; background: #2c2c2f; }
.csite-lines .l1 { height: clamp(16px, 3vw, 30px); width: 92%; background: #3c3c40; }
.csite-lines .l2 { height: clamp(16px, 3vw, 30px); width: 62%; background: #3c3c40; }
.csite-lines .l3 { height: 12px; width: 82%; }
.csite-btn {
  margin-top: 8px; align-self: flex-start;
  padding: 10px 20px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: clamp(11px, 1.3vw, 14px); font-weight: 600;
}
.csite-shot { width: 34%; border-radius: 14px; background: linear-gradient(150deg, #1f2632, #12161d); border: 1px solid var(--line-soft); }
.csite-row {
  display: flex; gap: 4%; padding: 0 6% 6%;
  opacity: clamp(0, calc((var(--a2) - 0.6) * 4), 1);
}
.csite-row span { flex: 1; height: clamp(40px, 8vh, 90px); border-radius: 12px; background: var(--canvas-2); border: 1px solid var(--line-soft); }

/* входящие заявки */
.cleads {
  position: absolute; top: 7%; right: 3%; z-index: 6;
  display: flex; flex-direction: column; gap: 12px; width: min(360px, 42vw);
  opacity: clamp(0, calc(1 - (var(--a4) - 0.25) * 3), 1);
}
.clead {
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  transform: translateX(calc((1 - clamp(0, (var(--a3) - var(--li) * 0.16) * 2.4, 1)) * 135%));
  opacity: clamp(0, calc((var(--a3) - var(--li) * 0.16) * 2.4), 1);
}
.clead b { display: block; font-size: 12px; color: var(--accent); font-weight: 700; }
.clead span { display: block; font-size: 13px; color: var(--text-soft); margin-top: 3px; }

/* график роста */
.cspark {
  position: absolute; left: 4%; bottom: 9%; z-index: 6;
  width: min(340px, 40vw); height: clamp(80px, 12vh, 130px); overflow: visible;
  opacity: calc(clamp(0, calc((var(--a3) - 0.1) * 3), 1) * clamp(0, calc(1 - (var(--a4) - 0.25) * 3), 1));
}
.cspark path {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--a3) - 0.15) * 1.6, 1));
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--accent) 60%, transparent));
}

/* --- крупная кинокопия --- */
.cine-copy {
  position: absolute; left: 0; right: 0; top: 0;
  height: 46vh; min-height: 260px; z-index: 7;
  display: grid; place-content: center; justify-items: center;
  text-align: center; padding: 0 5vw; gap: 20px; pointer-events: none;
}
.cine-kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  opacity: clamp(0, calc(1 - var(--p) * 8), 1);
  transform: translateY(calc(var(--p) * -12px));
}
.cine-title {
  position: relative; width: 100%; min-height: 2.5em;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 5.4vw, 74px); line-height: 1.06; letter-spacing: -0.03em; color: #fff;
}
.cine-cap {
  position: absolute; left: 0; right: 0; top: 0; opacity: 0;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.85), 0 10px 60px rgba(0, 0, 0, 0.6);
}
.cine-cap .ln { display: block; white-space: nowrap; }
.cine-cap[data-cap="1"] {
  opacity: clamp(0, calc(1 - (var(--p) - 0.10) * 7), 1);
  transform: translateY(calc((1 - clamp(0, 1 - (var(--p) - 0.10) * 7, 1)) * -18px));
}
.cine-cap[data-cap="2"] {
  opacity: min(clamp(0, calc((var(--p) - 0.22) * 8), 1), clamp(0, calc(1 - (var(--p) - 0.48) * 8), 1));
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.22) * 8, 1)) * 20px));
}
.cine-cap[data-cap="3"] {
  opacity: min(clamp(0, calc((var(--p) - 0.46) * 8), 1), clamp(0, calc(1 - (var(--p) - 0.74) * 9), 1));
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.46) * 8, 1)) * 20px));
}
.cine-cap[data-cap="4"] {
  opacity: clamp(0, calc((var(--p) - 0.76) * 7), 1);
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.76) * 7, 1)) * 20px));
}
.cine-cta {
  position: absolute; left: 50%; bottom: 16vh; z-index: 8;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  opacity: clamp(0, calc((var(--p) - 0.84) * 8), 1);
  transform: translateX(-50%) translateY(calc((1 - clamp(0, (var(--p) - 0.84) * 8, 1)) * 16px));
  pointer-events: none;
}
.cine-cta.on { pointer-events: auto; }
.cine-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 7; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-dim);
  opacity: clamp(0, calc(1 - var(--p) * 9), 1);
}
.cine-hint span {
  width: 1px; height: 34px; background: linear-gradient(to bottom, transparent, var(--text-dim));
  animation: hint-run 1.9s var(--ease-out) infinite;
}
@keyframes hint-run {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- статичный герой (телефон / reduced-motion) --- */
.cine-static { display: none; max-width: var(--wrap); margin: 0 auto; padding: 100px 22px 52px; }
.cine-static .kicker { margin-bottom: 16px; }
.cine-static-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 8vw, 52px); line-height: 1.06; letter-spacing: -0.03em; max-width: 16ch;
}
.cine-static-lead { color: var(--text-soft); font-size: 18px; margin-top: 18px; max-width: 46ch; }
.cine-static-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cine-static-art { margin-top: 44px; max-width: 440px; }
.cine-static-art svg { width: 100%; height: auto; }

/* -------------------------------------------------------------------------- */
/* Шов между секциями (сам дорисовывается)                                    */
/* -------------------------------------------------------------------------- */

.seam { position: relative; height: 1px; max-width: var(--wrap); margin: 0 auto; }
.seam::before {
  content: ""; position: absolute; inset: 0 22px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  transform: scaleX(0); transform-origin: 50%;
  transition: transform 1.1s var(--ease-out);
}
.seam.in::before { transform: scaleX(1); }

/* -------------------------------------------------------------------------- */
/* Шаги                                                                       */
/* -------------------------------------------------------------------------- */

.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.step:hover { border-color: var(--line); transform: translateY(-3px); }
.step-num { font-family: var(--font-mono); color: var(--accent); font-size: 13px; letter-spacing: 0.06em; }
.step h3 { font-size: 21px; margin: 14px 0 8px; }
.step p { color: var(--text-soft); font-size: 15.5px; }

/* -------------------------------------------------------------------------- */
/* Карточки                                                                   */
/* -------------------------------------------------------------------------- */

.cards { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-card); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--text-soft); font-size: 15px; }

.card::before, .step::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 50%),
    color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.35s var(--ease);
}
.card:hover::before, .step:hover::before { opacity: 1; }
.card > *, .step > * { position: relative; }

/* -------------------------------------------------------------------------- */
/* Цена                                                                       */
/* -------------------------------------------------------------------------- */

.price-card {
  margin-top: 42px; max-width: 460px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow-float);
}
.price-head { display: flex; align-items: baseline; gap: 10px; }
.price-value { font-family: var(--font-display); font-size: clamp(36px, 9vw, 46px); font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.price-label { color: var(--text-dim); font-size: 14px; }
.price-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.price-list li { position: relative; padding-left: 28px; color: var(--text-soft); font-size: 15px; }
.price-list li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.price-fine { margin-top: 16px; font-size: 13px; color: var(--text-dim); }

/* -------------------------------------------------------------------------- */
/* Пошаговая форма                                                            */
/* -------------------------------------------------------------------------- */

.stepform {
  margin-top: 36px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow-card);
}
.stepbar { height: 4px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.stepbar-fill { display: block; height: 100%; width: 50%; background: var(--accent); transition: width 0.4s var(--ease-out); }
.stepcount { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); margin: 12px 0 26px; text-transform: uppercase; }

.step-panel { border: 0; padding: 0; margin: 0; min-inline-size: 0; display: none; }
.step-panel.is-active { display: block; animation: panel-in 0.4s var(--ease-out); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.field { margin-bottom: 22px; }
.field label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.field textarea, .field input[type="text"], .field input[type="url"] {
  width: 100%; padding: 14px 15px; font: inherit; font-size: 16px;
  color: var(--text); background: var(--canvas-2);
  border: 1px solid var(--line); border-radius: var(--radius-sm); resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea::placeholder, .field input::placeholder { color: var(--text-dim); }
.field textarea:focus, .field input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field-hint { font-size: 13px; color: var(--text-dim); margin-top: 7px; }
.field-error { font-size: 13.5px; color: #ff453a; margin-top: 7px; font-weight: 500; }
.field.invalid textarea, .field.invalid input { border-color: #ff453a; }

.summary { display: grid; margin: 2px 0 22px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.summary > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line-soft); }
.summary > div:first-child { border-top: 0; }
.summary dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.summary dd { margin: 0; font-size: 14.5px; color: var(--text); word-break: break-word; }

.check { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-soft); cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check .linkbtn { color: var(--text); text-decoration-color: var(--text-dim); }

.linkbtn {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  color: var(--text-soft); font: inherit;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.linkbtn:hover { color: var(--text); text-decoration-color: currentColor; }

.step-actions { margin-top: 28px; }
.step-actions.two { display: flex; gap: 12px; }
.step-actions.two .btn-secondary { flex: none; }
.step-actions.two .btn-primary { flex: 1; }
.step-fine { font-size: 12.5px; color: var(--text-dim); margin-top: 14px; text-align: center; }

.form-error {
  background: rgba(255, 69, 58, 0.12); border: 1px solid rgba(255, 69, 58, 0.4); color: #ff6961;
  font-size: 14px; font-weight: 500; padding: 12px 14px; border-radius: var(--radius-sm); margin-top: 18px;
}
.form-error.is-note { background: var(--panel-2); border-color: var(--line); color: var(--text-soft); font-weight: 400; }

/* -------------------------------------------------------------------------- */
/* FAQ — намеренно тихий блок                                                 */
/* -------------------------------------------------------------------------- */

.faq { margin-top: 30px; display: grid; gap: 2px; }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 16px 2px; }
.faq summary {
  cursor: pointer; list-style: none;
  font-family: var(--font); font-size: 14px; font-weight: 400; color: var(--text-soft);
  transition: color 0.2s var(--ease);
}
.faq summary:hover { color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-dim); }
.faq details[open] summary { color: var(--text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--text-dim); font-size: 13.5px; max-width: 60ch; }

/* -------------------------------------------------------------------------- */
/* Подвал                                                                     */
/* -------------------------------------------------------------------------- */

.footer { background: var(--canvas-2); border-top: 1px solid var(--line-soft); padding: 58px 0 30px; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px 34px; padding-bottom: 30px;
}
.footer-tag { color: var(--text-dim); font-size: 13px; margin-top: 8px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: var(--text-soft); text-decoration: none; font-size: 14px; transition: color 0.2s var(--ease); }
.footer-nav a:hover { color: var(--text); }

/* платёжный блок для модерации Robokassa */
.payblock {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  padding: 22px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.payblock-req { font-size: 13px; color: var(--text-soft); }
.payblock-docs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.payblock-docs .linkbtn { font-size: 12.5px; color: var(--text-dim); text-decoration: none; }
.payblock-docs .linkbtn:hover { color: var(--text-soft); text-decoration: underline; text-decoration-color: var(--line); }
.payblock-sep { color: var(--line); }
.payblock-note { font-size: 12.5px; color: var(--text-dim); max-width: 52ch; }
.paymethods { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.pm {
  width: 54px; height: 34px; border-radius: 7px;
  background: #1c1c1e; border: 1px solid var(--line);
  display: grid; place-items: center;
}
.pm svg { width: 44px; height: 20px; }

.footer-copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.footer-copy p { font-size: 12.5px; color: var(--text-dim); }

/* -------------------------------------------------------------------------- */
/* Лоадер                                                                     */
/* -------------------------------------------------------------------------- */

.loader {
  position: fixed; inset: 0; z-index: 400; display: grid; place-items: center;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: fade-in 0.25s var(--ease);
}
.loader[hidden] { display: none; }
.loader-inner { text-align: center; padding: 30px; }
.loader-ring { width: 72px; height: 72px; }
.loader-track { stroke: var(--line); }
.loader-arc { stroke: var(--accent); stroke-dasharray: 128; stroke-dashoffset: 96; transform-origin: 32px 32px; animation: ring-spin 0.9s linear infinite; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.loader-title { font-size: 19px; font-weight: 700; margin-top: 22px; }
.loader-sub { color: var(--text-soft); font-size: 14px; margin-top: 8px; }

/* -------------------------------------------------------------------------- */
/* Модальное окно                                                             */
/* -------------------------------------------------------------------------- */

.modal { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); animation: fade-in 0.25s var(--ease); }
.modal-dialog {
  position: relative; width: 100%; max-width: 720px; max-height: 86vh;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-float); animation: modal-in 0.3s var(--ease-out);
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-title { font-size: 18px; }
.modal-close { background: none; border: 0; color: var(--text-soft); font-size: 26px; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 8px; }
.modal-close:hover { color: var(--text); background: var(--panel-2); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-body h3 { font-size: 20px; margin-bottom: 14px; }
.modal-body h4 { font-size: 15px; margin: 20px 0 8px; }
.modal-body p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 10px; }
.modal-body strong { color: var(--text); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }

/* -------------------------------------------------------------------------- */
/* Появление блоков — с характером                                            */
/* --pf: сдвиг параллакса в px, задаёт scroll.js (по умолчанию 0px)           */
/* -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.reveal, .reveal[data-reveal="up"], .reveal[data-reveal="blur"] { transform: translateY(calc(26px + var(--pf, 0px))); }
.reveal[data-reveal="blur"] { filter: blur(16px); }
.reveal[data-reveal="scale"] { transform: translateY(var(--pf, 0px)) scale(0.94); }
.reveal[data-reveal="left"] { transform: translateX(-32px); }
.reveal[data-reveal="right"] { transform: translateX(32px); }

.reveal.in { opacity: 1; filter: none; transform: translateY(var(--pf, 0px)); }
.reveal[data-reveal="scale"].in { transform: translateY(var(--pf, 0px)) scale(1); }
.reveal[data-reveal="left"].in, .reveal[data-reveal="right"].in { transform: translateY(var(--pf, 0px)); }

/* заголовки секций — по словам (ui.js разбивает на .w) */
.reveal[data-reveal="words"] { opacity: 1; transform: none; }
.section-title .w { display: inline-block; }
.section-title .w > i {
  display: inline-block; font-style: normal;
  transform: translateY(0.9em); opacity: 0;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 55ms);
}
.section-title.in .w > i { transform: none; opacity: 1; }

/* -------------------------------------------------------------------------- */
/* Дополнительные анимации                                                    */
/* -------------------------------------------------------------------------- */

/* блик по главной кнопке */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease); z-index: -1;
}
.btn-primary:hover::after { left: 130%; }

/* светящаяся рамка у карточки цены */
@property --pcang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.price-card { position: relative; }
.price-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--pcang), transparent 55%, var(--accent) 78%, transparent 92%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: pc-aurora 7s linear infinite; pointer-events: none; opacity: 0.9;
}
@keyframes pc-aurora { to { --pcang: 360deg; } }

/* тень навбара при прокрутке (класс ставит ui.js) */
.nav.scrolled { box-shadow: 0 1px 0 var(--line-soft), 0 12px 34px rgba(0, 0, 0, 0.45); }

/* -------------------------------------------------------------------------- */
/* Адаптив                                                                    */
/* -------------------------------------------------------------------------- */

@media (max-width: 940px) {
  .cine { height: auto; }
  .cine-hold { display: none; }
  .cine-static { display: block; }
  .steps, .cards { grid-template-columns: repeat(2, 1fr); }

  /* когда scroll.js включил авто-проигрыш: показываем сцену, прячем статику */
  .cine.intro .cine-hold {
    display: block; position: relative;
    height: auto; min-height: 100svh;
  }
  .cine.intro .cine-static { display: none; }
  .cine.intro .cleads,
  .cine.intro .cspark,
  .cine.intro .cine-hint { display: none; }        /* на телефоне лишнее / «листайте» неуместно */
  .cine.intro .cframe { width: 94vw; }
  .cine.intro .cine-copy { height: 40vh; padding: 0 5vw; }
  .cine.intro .cine-title { font-size: clamp(26px, 8.4vw, 44px); min-height: 2.3em; }
  .cine.intro .cine-cta { bottom: 8vh; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-contacts { margin-left: auto; }
  .steps, .cards { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .summary > div { grid-template-columns: 1fr; gap: 3px; }
  .step-actions.two { flex-direction: column-reverse; }
  .step-actions.two .btn-secondary, .step-actions.two .btn-primary { width: 100%; }
  .payblock { padding: 20px 14px; }
  .paymethods { gap: 7px; flex-wrap: nowrap; }
  .pm { width: 44px; height: 28px; }
  .pm svg { width: 36px; height: 17px; }
}

/* -------------------------------------------------------------------------- */
/* Меньше движения                                                            */
/* -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .cine { height: auto; }
  .cine-hold, .cine.intro .cine-hold { display: none; }
  .cine-static, .cine.intro .cine-static { display: block; }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .section-title .w > i { opacity: 1; transform: none; }
  .seam::before { transform: scaleX(1); }
  .cpin::after, .cine-hint span, .env-glow { animation: none; }
  .btn-primary::after, .price-card::after { animation: none; display: none; }
  .loader-arc { animation: none; stroke-dashoffset: 40; }
  .icon-link { transform: none; }
  .card::before, .step::before { display: none; }
}
