/* =====================================================================
   SKUTELNYK — стилі
   Чорний космос · червоний сигнал · білий текст
   ===================================================================== */
:root {
  --void: #050309;
  --ink: #f6e2e8;
  --ink-2: rgba(246, 226, 232, .74);
  --ink-3: rgba(246, 226, 232, .6);
  --red: #ff1f5a;
  --crimson: #c01245;
  --wine: #5c0d31;
  --dusk: #3b1646;
  --line: rgba(255, 31, 90, .42);
  --line-soft: rgba(246, 226, 232, .13);
  --panel: rgba(6, 3, 10, .62);
  --panel-2: rgba(6, 3, 10, .78);
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--void); }

/* ---------- фон ---------- */
#sky {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  display: block; z-index: 0;
  pointer-events: none;
}
.sky-fallback {
  position: fixed; inset: 0; z-index: 0; display: none;
  background:
    radial-gradient(60% 45% at 12% 60%, #ff1f5a 0%, #c01245 22%, #5c0d31 50%, transparent 75%),
    radial-gradient(40% 30% at 80% 30%, #3b1646 0%, transparent 70%),
    radial-gradient(30% 30% at 95% 100%, #000 0 40%, #ff1f5a 44%, transparent 60%),
    var(--void);
}
.no-webgl .sky-fallback { display: block; }
@media (max-width: 700px) {
  /* легка вуаль на телефоні — текст читається краще */
  .sky-fallback { display: block; background: rgba(5, 3, 9, .3); z-index: 1; pointer-events: none; }
  .no-webgl .sky-fallback {
    background:
      radial-gradient(60% 45% at 12% 60%, #ff1f5a 0%, #c01245 22%, #5c0d31 50%, transparent 75%),
      radial-gradient(40% 30% at 80% 30%, #3b1646 0%, transparent 70%),
      var(--void);
  }
}
.nav, main, .footer, .hud-side, .hud-cursor { position: relative; z-index: 2; }

/* ---------- утиліти ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: .28em; font-size: 11px; }
.dim { color: var(--ink-3); }
.red { color: var(--red); }
.kicker {
  font-family: var(--mono); text-transform: uppercase;
  font-size: 12px; letter-spacing: .38em; color: var(--red);
  margin-bottom: 22px;
  text-shadow: 0 0 12px rgba(5, 3, 9, 1), 0 0 4px rgba(5, 3, 9, 1);
}
.corners {
  background-image:
    linear-gradient(var(--red), var(--red)), linear-gradient(var(--red), var(--red)),
    linear-gradient(var(--red), var(--red)), linear-gradient(var(--red), var(--red)),
    linear-gradient(var(--red), var(--red)), linear-gradient(var(--red), var(--red)),
    linear-gradient(var(--red), var(--red)), linear-gradient(var(--red), var(--red));
  background-repeat: no-repeat;
  background-size: 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px, 12px 1px, 1px 12px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
}
.hide-sm { }
@media (max-width: 640px) { .hide-sm { display: none !important; } }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .8em;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .28em;
  padding: 17px 28px; min-height: 52px;
  border: 1px solid var(--red); border-radius: 0;
  background: rgba(255, 31, 90, .1);
  color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s, box-shadow .25s, transform .25s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover { background: var(--red); color: var(--void); box-shadow: 0 0 32px rgba(255, 31, 90, .45); }
.btn:hover span { transform: translateX(4px); }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--line-soft); background: rgba(5, 3, 9, .35); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--void); box-shadow: none; }
.btn-solid { background: var(--red); color: var(--void); font-weight: 700; }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-sm { padding: 11px 18px; min-height: 40px; font-size: 11px; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- шапка ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 18px var(--gut);
  transition: background .3s, border-color .3s, padding .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 3, 9, .72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--line-soft);
  padding-top: 12px; padding-bottom: 12px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 14px;
  letter-spacing: .34em; text-decoration: none; color: var(--ink);
}
.logo-star { color: var(--red); font-size: 16px; letter-spacing: 0; animation: pulse 3.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; transform: scale(.85) rotate(45deg); } }
.nav-links { display: flex; gap: 28px; margin: 0 auto; }
.nav-links a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-2); position: relative; padding: 6px 0;
  transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--red); transition: right .3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-links a.active { color: var(--ink); }
.burger { display: none; }

@media (max-width: 980px) {
  .nav { gap: 12px; }
  .nav-cta { margin-left: auto; }
  .burger {
    display: grid; place-content: center; gap: 6px;
    width: 44px; height: 40px; border: 1px solid var(--line-soft); background: rgba(5, 3, 9, .5); cursor: pointer;
  }
  .burger span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform .3s var(--ease); }
  .nav.open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .nav-links {
    position: fixed; top: 0; left: 0; right: 0; z-index: -1;
    flex-direction: column; gap: 0; margin: 0;
    padding: 84px var(--gut) 24px;
    background: rgba(5, 3, 9, .94);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-100%); transition: transform .4s var(--ease);
  }
  .nav.open .nav-links { transform: none; }
  .nav-links a { padding: 16px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a::after { display: none; }
}
@media (max-width: 420px) { .nav-cta { display: none; } .burger { margin-left: auto; } }

/* ---------- бічний HUD ---------- */
.hud-side {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  pointer-events: none;
}
.hud-side .mono { writing-mode: vertical-rl; font-size: 10px; letter-spacing: .3em; color: var(--ink-3); }
.hud-side #hudSec { color: var(--red); }
.hud-bar { width: 1px; height: 120px; background: var(--line-soft); position: relative; overflow: hidden; }
.hud-bar i { position: absolute; left: 0; top: 0; width: 1px; height: 0; background: var(--red); transition: height .5s var(--ease); }
.hud-cursor {
  position: fixed; left: 18px; bottom: 16px; z-index: 20;
  font-size: 10px; letter-spacing: .26em; color: var(--ink-3); pointer-events: none;
}
.hud-cursor b { color: var(--ink-2); font-weight: 400; }
@media (max-width: 980px), (pointer: coarse) { .hud-side, .hud-cursor { display: none; } }

/* ---------- 001 · головний екран ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: 96px 0 28px;
}
.hero-top {
  display: flex; justify-content: space-between; gap: 16px;
  color: var(--ink-3); font-size: 11px; letter-spacing: .34em;
}
.hero-body { margin-top: auto; padding-top: 48px; padding-bottom: 40px; }
.hero-body .kicker { display: inline-block; padding: 8px 12px; background: rgba(5, 3, 9, .72); border-left: 2px solid var(--red); }
.hero-top span { padding: 4px 0; text-shadow: 0 0 8px var(--void), 0 0 3px var(--void); }
.hero-title {
  font-weight: 600;
  font-size: clamp(46px, 8.6vw, 124px);
  line-height: .93;
  letter-spacing: -.048em;
  color: var(--ink);
  max-width: 13ch;
  text-shadow: 0 4px 40px rgba(5, 3, 9, .55);
}
.hero-title em { font-style: normal; color: var(--red); text-shadow: 0 0 40px rgba(255, 31, 90, .45); }
.hero-lead {
  margin-top: 28px; max-width: 34em;
  color: var(--ink-2); font-size: clamp(15px, 1.4vw, 18px); line-height: 1.65;
  text-shadow: 0 2px 18px rgba(5, 3, 9, .9);
}
.hero-lead b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px 20px;
  background-color: var(--panel);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, background-color .3s;
}
.stat:hover { border-color: var(--line); background-color: rgba(255, 31, 90, .06); }
.stat-k { color: var(--red); font-size: 10px; }
.stat-v { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stat-d { font-size: 13px; color: var(--ink-3); }
.hero-foot {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 22px; color: var(--ink-3); font-size: 10px;
}
.scroll-hint { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); opacity: .6; } }

@media (max-width: 860px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .hero { padding-top: 84px; }
  .hero-body { padding-top: 64px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .stat { padding: 14px; }
}

/* ---------- біжучий рядок ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: rgba(5, 3, 9, .45);
  padding: 16px 0; font-size: 12px; color: var(--ink-2);
}
.marquee-track { display: inline-flex; gap: 28px; align-items: center; animation: marquee 48s linear infinite; }
.marquee i { color: var(--red); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секції ---------- */
.sec { padding: clamp(80px, 12vw, 150px) 0 0; }
.sec-last { padding-bottom: clamp(60px, 8vw, 100px); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 900px; }
.sec-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; max-width: none; }
.sec-num {
  display: inline-block; color: var(--red); margin-bottom: 20px; font-size: 11px;
  padding: 7px 10px 7px 12px; background: rgba(5, 3, 9, .72); border-left: 2px solid var(--red);
}
.sec-title {
  font-weight: 600; font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1; letter-spacing: -.04em;
  text-shadow: 0 4px 30px rgba(5, 3, 9, .6);
}
.sec-sub { margin-top: 20px; max-width: 36em; color: var(--ink-2); font-size: 16px; text-shadow: 0 2px 14px rgba(5, 3, 9, .9); }
.sec-head-row .sec-sub { margin-top: 0; max-width: 30em; }
@media (max-width: 860px) { .sec-head-row { flex-direction: column; align-items: flex-start; gap: 20px; } }

/* ---------- 002 · bento ---------- */
.bento {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a m m b"
    "c m m d"
    "e ch dn f";
}
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; }
.t-d { grid-area: d; } .t-e { grid-area: e; } .t-f { grid-area: f; }
.tile-main { grid-area: m; } .tile-chart { grid-area: ch; } .tile-donut { grid-area: dn; }

.tile {
  position: relative;
  padding: 24px;
  background-color: var(--panel);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.tile:hover { border-color: var(--line); background-color: rgba(255, 31, 90, .05); }
.tile h3 { font-size: 18px; font-weight: 600; letter-spacing: -.02em; margin: 18px 0 8px; }
.tile p { color: var(--ink-3); font-size: 14px; line-height: 1.55; }
.ico { width: 34px; height: 34px; padding: 7px; border: 1px solid var(--line); fill: none; stroke: var(--red); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; background: rgba(255, 31, 90, .08); }
.tile-tag { color: var(--red); font-size: 10px; display: block; }
.tile-row { display: flex; justify-content: space-between; gap: 8px; }
.tile-row .mono { font-size: 10px; letter-spacing: .2em; }
.tile-note { margin-top: 14px; font-size: 13px !important; }

.tile-main {
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(26px, 3vw, 40px);
  border-color: var(--line);
  background-color: rgba(10, 3, 12, .66);
  box-shadow: 0 0 0 1px rgba(255, 31, 90, .08), 0 30px 80px -30px rgba(255, 31, 90, .35), inset 0 0 80px rgba(255, 31, 90, .06);
}
.tile-main:hover { background-color: rgba(10, 3, 12, .72); }
.main-title { font-size: clamp(24px, 2.4vw, 34px) !important; line-height: 1.12; letter-spacing: -.035em !important; margin: 0 !important; }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.checks li::before {
  content: ''; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px;
  background: var(--red); box-shadow: 0 0 10px var(--red);
}
.main-price { display: flex; align-items: center; gap: 18px; margin-top: auto; }
.main-price > div { display: flex; flex-direction: column; gap: 4px; }
.main-price .mono { font-size: 10px; color: var(--ink-3); }
.main-price b { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.main-price > div:last-child b { color: var(--red); }
.main-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--red) 0 4px, transparent 4px 9px); opacity: .7; }
.tile-main .btn { align-self: flex-start; }

/* графік */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 130px; margin-top: 18px; border-bottom: 1px solid var(--line-soft); }
.bar { flex: 1; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.bar::before {
  content: ''; display: block; width: 100%;
  height: 0; transition: height 1.2s var(--ease);
  background: radial-gradient(circle, rgba(255, 31, 90, .9) 1.6px, transparent 2px) 0 0 / 6px 6px;
  border-top: 1px solid var(--red);
}
.bar.hot::before { background: radial-gradient(circle, var(--ink) 1.6px, transparent 2px) 0 0 / 6px 6px, rgba(255, 31, 90, .35); border-top-color: var(--ink); }
.in .bar::before, .bar.in::before { height: var(--h); }
.bar b { position: absolute; left: 0; right: 0; text-align: center; bottom: calc(var(--h) + 6px); font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .4s 1s; }
.in .bar b { opacity: 1; }
.bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.tile-chart .tile-note { margin-top: 32px; }

/* бублик */
.donut-wrap { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.donut { width: 104px; height: 104px; flex: 0 0 auto; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 5.5; }
.d-bg { stroke: rgba(246, 226, 232, .08); }
.d-seg { stroke-dasharray: 0 100; stroke-dashoffset: 0; transition: stroke-dasharray 1.4s var(--ease); }
.in .d1 { stroke-dasharray: 48.8 51.2; }
.in .d2 { stroke-dasharray: 28.8 71.2; }
.in .d3 { stroke-dasharray: 18.8 81.2; }
.d1 { stroke: var(--red); stroke-dashoffset: 0; }
.d2 { stroke: var(--crimson); stroke-dashoffset: -50; }
.d3 { stroke: var(--ink); stroke-dashoffset: -80; }
.legend { list-style: none; display: grid; gap: 8px; font-size: 13px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend b { margin-left: auto; padding-left: 6px; color: var(--ink); font-weight: 600; }
.legend i { width: 8px; height: 8px; flex: 0 0 8px; }
.l1 { background: var(--red); } .l2 { background: var(--crimson); } .l3 { background: var(--ink); }

@media (max-width: 1080px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "m m" "a b" "c d" "e f" "ch dn";
  }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "m" "a" "b" "c" "d" "e" "f" "ch" "dn"; }
  .main-price b { font-size: 30px; }
}

/* кроки */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--line-soft); background: var(--panel); }
.step { padding: 24px; position: relative; }
.step + .step { border-left: 1px solid var(--line-soft); }
.step-n { color: var(--red); font-size: 12px; }
.step h4 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 14px 0 6px; }
.step p { color: var(--ink-3); font-size: 14px; }
.step:not(:last-child)::after {
  content: '→'; position: absolute; right: -9px; top: 22px; z-index: 1;
  font-family: var(--mono); font-size: 12px; color: var(--red); background: var(--void); padding: 2px 1px;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(3) { border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line-soft); }
  .step::after { display: none; }
}

/* ---------- 003 · відгуки ---------- */
.rating { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; margin-bottom: 48px; }
.gauge { position: relative; width: clamp(200px, 22vw, 260px); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 6; }
.g-bg { stroke: rgba(246, 226, 232, .08); stroke-dasharray: 1 3.2; stroke-width: 10; }
.g-fg {
  stroke: var(--red); stroke-width: 10; stroke-dasharray: 0 999;
  filter: drop-shadow(0 0 6px rgba(255, 31, 90, .7));
  transition: stroke-dasharray 2s var(--ease);
}
.gauge-num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.gauge-num b { font-size: clamp(64px, 7vw, 92px); font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.gauge-num span { font-size: 28px; font-weight: 600; color: var(--red); margin: 0 0 30px 4px; }
.gauge-cap { position: absolute; left: 0; right: 0; bottom: 26%; text-align: center; font-size: 10px; color: var(--ink-3); }
.big-p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 34em; text-shadow: 0 2px 14px rgba(5, 3, 9, .9); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; max-width: 640px; }
.mini-stats div { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 4px; }
.mini-stats b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.mini-stats span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) {
  .rating { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .big-p { margin: 0 auto; }
  .mini-stats { margin-left: auto; margin-right: auto; }
}
@media (max-width: 420px) { .mini-stats b { font-size: 20px; } }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.review {
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  background: var(--panel); border: 1px solid var(--line-soft);
  transition: border-color .3s, transform .4s var(--ease);
}
.review:hover { border-color: var(--line); transform: translateY(-3px); }
.review blockquote { font-size: 17px; line-height: 1.45; letter-spacing: -.01em; }
.review figcaption { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.review figcaption i {
  width: 30px; height: 30px; display: grid; place-items: center;
  font-style: normal; font-weight: 700; color: var(--void); background: var(--red); letter-spacing: 0;
}
@media (max-width: 900px) { .reviews { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- 004 · пакети ---------- */
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pkg {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 22px 22px;
  background: rgba(6, 3, 10, .42);
  border: 1px solid var(--line-soft);
  transition: border-color .3s, background-color .3s, box-shadow .3s, transform .4s var(--ease);
}
.pkg::before {
  content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.pkg:hover { border-color: var(--line); background: rgba(10, 3, 12, .6); transform: translateY(-4px); }
.pkg:hover::before, .pkg.selected::before { transform: none; }
.pkg.selected {
  border-color: var(--red); background: rgba(40, 4, 18, .55);
  box-shadow: 0 0 0 1px var(--red), 0 30px 70px -30px rgba(255, 31, 90, .55);
}
.pkg-top { display: flex; justify-content: space-between; align-items: center; }
.pkg-tier { color: var(--red); font-size: 12px; font-weight: 700; }
.pkg-idx { color: var(--ink-3); font-size: 10px; }
.pkg-label { margin-top: 26px; color: var(--ink-3); font-size: 10px; }
.pkg-range { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.035em; margin-top: 6px; line-height: 1.1; }
.pkg h3 { font-size: 18px; font-weight: 600; margin-top: 22px; letter-spacing: -.02em; }
.pkg-lead { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.pkg-list { list-style: none; display: grid; gap: 10px; margin: 22px 0 24px; padding-top: 20px; border-top: 1px dashed var(--line-soft); }
.pkg-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.pkg-list li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 6px; height: 6px; background: var(--red); }
.pkg-note { margin-top: auto; color: var(--ink-3); font-size: 10px; letter-spacing: .2em; margin-bottom: 14px; }
.pkg .btn { width: 100%; }
.pkg.selected .btn { background: var(--red); color: var(--void); }
@media (max-width: 1080px) { .pkgs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pkgs { grid-template-columns: 1fr; } }

/* ---------- 005 · чому AI ---------- */
.story {
  font-size: clamp(18px, 1.9vw, 24px); line-height: 1.5; letter-spacing: -.015em;
  max-width: 40em; color: var(--ink); margin-bottom: 48px;
  padding-left: 22px; border-left: 2px solid var(--red);
  text-shadow: 0 2px 18px rgba(5, 3, 9, .95);
}
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.why { padding: 26px; background: var(--panel); border: 1px solid var(--line-soft); }
.why-n { color: var(--red); font-size: 12px; }
.why h3 { font-size: 20px; font-weight: 600; letter-spacing: -.02em; margin: 16px 0 10px; }
.why p { color: var(--ink-3); font-size: 15px; }
.compare { margin-top: 12px; background-color: rgba(6, 3, 10, .6); border: 1px solid var(--line-soft); }
.cmp-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; padding: 16px 24px; align-items: center; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line-soft); }
.cmp-row span { color: var(--ink-2); }
.cmp-row span:nth-child(2) { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(255, 31, 90, .5); }
.cmp-row b { color: var(--red); font-weight: 600; }
.cmp-head span { text-decoration: none !important; font-size: 11px; }
.cmp-head span:nth-child(2) { color: var(--ink-3); }
.cmp-head .red { color: var(--red) !important; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .cmp-row { padding: 14px 16px; font-size: 14px; grid-template-columns: 1.2fr 1fr 1fr; gap: 8px; } }

/* ---------- 006 · заявка ---------- */
.req-grid { display: grid; grid-template-columns: 1fr 340px; gap: 12px; align-items: start; }
.form-card {
  padding: clamp(22px, 3vw, 36px);
  background-color: rgba(6, 3, 10, .72);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.field label i { color: var(--red); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(5, 3, 9, .7);
  border: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 14px 16px; font-size: 16px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; line-height: 1.5; }
.field select {
  cursor: pointer; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.field select option { background: #0b0610; color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: rgba(246, 226, 232, .3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--red); background: rgba(20, 4, 12, .8);
  box-shadow: 0 0 0 3px rgba(255, 31, 90, .15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: rgba(60, 4, 20, .35); }
.err { font-size: 13px; color: var(--red); min-height: 0; }
.err:empty { display: none; }
.hint { font-size: 13px; color: var(--ink-3); }
.tip-input { position: relative; }
.tip-input input { padding-right: 44px; }
.tip-input span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--red); letter-spacing: 0; font-size: 14px; }
.trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.summary {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  margin: 26px 0 20px; background: var(--line-soft); border: 1px solid var(--line-soft);
}
.summary div { background: rgba(5, 3, 9, .85); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.summary .mono { font-size: 10px; color: var(--ink-3); }
.summary b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
#sumPkg { color: var(--red); }

.agree { margin-bottom: 20px; }
.check { display: flex !important; gap: 12px; align-items: flex-start; cursor: pointer; font-family: var(--sans) !important; text-transform: none !important; letter-spacing: 0 !important; font-size: 14px !important; line-height: 1.5; color: var(--ink-2); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid var(--line); margin-top: 1px; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.check input:checked + .box { background: var(--red); border-color: var(--red); }
.check input:checked + .box::after { content: ''; width: 8px; height: 8px; background: var(--void); }
.check input:focus-visible + .box { outline: 1px solid var(--ink); outline-offset: 2px; }
.check a { color: var(--ink); text-decoration-color: var(--red); text-underline-offset: 3px; }
.form-foot { margin-top: 16px; text-align: center; color: var(--ink-3); font-size: 10px; letter-spacing: .18em; }

.req-side { display: grid; gap: 12px; position: sticky; top: 90px; }
.side-card { padding: 24px; background: var(--panel); border: 1px solid var(--line-soft); }
.timeline { list-style: none; counter-reset: s; margin-top: 18px; display: grid; gap: 18px; }
.timeline li { counter-increment: s; position: relative; padding-left: 40px; display: flex; flex-direction: column; gap: 4px; }
.timeline li::before {
  content: '0' counter(s); position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 11px; color: var(--red);
  width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--line);
}
.timeline b { font-weight: 600; }
.timeline span { font-size: 14px; color: var(--ink-3); }
.side-p { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 960px) {
  .req-grid { grid-template-columns: 1fr; }
  .req-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .req-side { grid-template-columns: 1fr; }
}

/* ---------- 007 · оферта ---------- */
.offer {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding: clamp(26px, 4vw, 44px);
  background-color: rgba(6, 3, 10, .6);
  border: 1px solid var(--line-soft);
}
.offer-title { font-size: clamp(26px, 3vw, 40px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.offer-p { margin-top: 10px; color: var(--ink-3); max-width: 34em; }
.offer-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .offer-actions, .offer-actions .btn { width: 100%; } }

/* ---------- підвал ---------- */
.footer { border-top: 1px solid var(--line-soft); background: rgba(5, 3, 9, .75); padding: 28px 0; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.footer .mono { font-size: 10px; letter-spacing: .2em; }
.footer a.mono { text-decoration: none; }

/* ---------- модальні вікна ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 3, 9, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade .3s; }
.modal-box {
  position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  padding: clamp(24px, 4vw, 36px);
  background-color: #08040c;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px -20px rgba(255, 31, 90, .35);
  animation: pop .35s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal-x {
  position: absolute; right: 12px; top: 10px; width: 40px; height: 40px;
  background: none; border: 0; color: var(--ink-3); font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-x:hover { color: var(--red); }
.modal .kicker { margin-bottom: 12px; font-size: 11px; }
.modal-title { font-size: clamp(26px, 3.4vw, 34px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.cm-pkg { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.cm-pkg .mono { color: var(--red); font-size: 12px; font-weight: 700; }
.cm-pkg b { font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.cm-list { list-style: none; display: grid; gap: 8px; margin: 18px 0; padding: 16px 0; border-top: 1px dashed var(--line-soft); border-bottom: 1px dashed var(--line-soft); }
.cm-list li { position: relative; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.cm-list li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 6px; height: 6px; background: var(--red); }
.cm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.cm-grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cm-grid .wide { grid-column: 1 / -1; }
.cm-grid .mono { font-size: 10px; color: var(--ink-3); letter-spacing: .18em; }
.cm-grid b { font-weight: 600; overflow-wrap: anywhere; }
#cmPrice { color: var(--red); font-size: 18px; }
.cm-grid p { font-size: 14px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 7.5em; overflow: auto; }
.cm-warn { margin-top: 20px; padding: 14px 16px; border-left: 2px solid var(--red); background: rgba(255, 31, 90, .08); font-size: 14px; color: var(--ink-2); }
.cm-err { color: var(--red); font-size: 14px; margin-top: 12px; }
.cm-err:empty { display: none; }
.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.modal-actions .btn { flex: 1; padding-left: 14px; padding-right: 14px; }
@media (max-width: 480px) {
  .cm-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column-reverse; }
}
.modal-done { text-align: center; }
.done-star {
  font-size: 54px; color: var(--red); line-height: 1; margin-bottom: 18px;
  text-shadow: 0 0 30px var(--red); animation: spin 6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.done-p { margin: 14px auto 24px; color: var(--ink-2); max-width: 26em; }
.done-p b { color: var(--ink); overflow-wrap: anywhere; }
.done-demo { color: var(--ink-3); font-size: 10px; margin: -10px 0 20px; letter-spacing: .14em; }

/* ---------- появи при скролі ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.tile.reveal.in:hover, .pkg.reveal.in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- матове скло для всіх блоків із текстом ----------
   Фон крізь блоки видно, але розмито, тож текст читається чітко.
   Щільність скла: --glass (0 — прозоре, 1 — суцільне), розмиття: --glass-blur. */
:root {
  --glass: rgba(9, 4, 13, .7);
  --glass-hover: rgba(20, 6, 16, .76);
  --glass-blur: 16px;
}
.stat, .tile, .steps, .review, .pkg, .why, .compare,
.form-card, .side-card, .offer, .marquee {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(246, 226, 232, .06);
}
.stat:hover, .tile:hover, .review:hover, .pkg:hover { background-color: var(--glass-hover); }
.tile-main { background-color: rgba(12, 4, 14, .76); box-shadow: 0 0 0 1px rgba(255, 31, 90, .08), 0 30px 80px -30px rgba(255, 31, 90, .35), inset 0 0 80px rgba(255, 31, 90, .06); }
.tile-main:hover { background-color: rgba(16, 5, 16, .8); }
.pkg.selected { background-color: rgba(42, 5, 20, .78); }
@media (max-width: 700px) { :root { --glass-blur: 10px; } }

/* ---------- читабельність тексту просто на фоні ----------
   Сірий текст світліший, а абзаци й дрібні підписи поза картками
   отримали підкладку з того самого матового скла. */
:root {
  --ink-2: rgba(246, 226, 232, .88);
  --ink-3: rgba(246, 226, 232, .74);
}
.hero-lead, .sec-sub, .rating-text, .story {
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.15);
  border: 1px solid var(--line-soft);
  text-shadow: none;
}
.hero-lead { width: fit-content; padding: 16px 22px; border-left: 2px solid var(--red); }
.sec-sub { width: fit-content; padding: 14px 20px; border-left: 2px solid var(--red); }
.rating-text { padding: clamp(20px, 2.6vw, 30px); }
.rating-text .big-p { text-shadow: none; }
.story { padding: 20px 24px; border-left: 2px solid var(--red); }

/* дрібні підписи-«чипи» */
.hero-top span, .hero-foot span, .hud-cursor {
  display: inline-block; padding: 6px 10px;
  background-color: rgba(5, 3, 9, .74);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink-2); text-shadow: none;
}
.hero-top, .hero-foot { font-size: 11px; }
.hud-cursor { left: 12px; bottom: 12px; }
.hud-side .mono { color: var(--ink-2); }

/* кільце рейтингу на склі */
.gauge {
  border-radius: 50%;
  background-color: var(--glass);
  -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur));
}
.gauge-cap { color: var(--ink-2); }
.mini-stats b span { font-size: inherit; color: inherit; }
@media (max-width: 980px), (pointer: coarse) { .hud-cursor { display: none; } }
