/* ════════════════════════════════════════════════════════════
   Stonk Radar — стили публичной части
   Палитра: ночной синий (navy) · изумруд (emerald) · коралл (coral) · слоновая кость (ivory)
   ════════════════════════════════════════════════════════════ */

:root {
  --navy-950: #060c1c;
  --navy-900: #0a1328;
  --navy-800: #0f1c3a;
  --navy-700: #16264c;
  --navy-600: #22366a;
  --emerald-900: #072a22;
  --emerald-800: #0c3b30;
  --emerald-700: #12503f;
  --emerald-600: #1a6a53;
  --emerald-400: #3fae88;
  --mint: #7fe3bf;
  --coral: #e5605a;
  --coral-600: #cf4a45;
  --coral-300: #ff9a90;
  --ivory: #f3efe6;
  --ivory-2: #e6dfd1;
  --sand: #c9b99a;
  --ink: #0d1530;

  --text: #e9ecf4;
  --text-dim: rgba(233, 236, 244, .68);
  --text-faint: rgba(233, 236, 244, .42);
  --line: rgba(233, 236, 244, .12);
  --line-strong: rgba(233, 236, 244, .22);

  --serif: "Playfair Display", "Times New Roman", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Marck Script", "Brush Script MT", cursive;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--navy-900);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--coral); color: #fff; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* зерно поверх всего — даёт «плёночную» фактуру */
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ─────────────── общие элементы ─────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  transition: transform .35s var(--ease-spring), background .3s, box-shadow .3s, color .3s;
}
.btn svg { width: 26px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn--coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -10px rgba(229, 96, 90, .7); }
.btn--coral:hover { background: var(--coral-600); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(229, 96, 90, .85); }
.btn--ghost { border-color: var(--line-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--mint); color: var(--mint); }

.section-head {
  display: flex; align-items: flex-end; gap: clamp(16px, 3vw, 36px);
  max-width: var(--maxw); margin: 0 auto clamp(28px, 4vw, 48px); padding: 0 var(--gutter);
}
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-num {
  font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 9vw, 120px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1px rgba(233, 236, 244, .3);
}
.section-script { margin: 0 0 2px; font-family: var(--script); font-size: clamp(22px, 2.6vw, 30px); color: var(--mint); line-height: 1; }
.section-title {
  margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.01em;
  font-size: clamp(32px, 4.6vw, 56px); line-height: 1.05;
}
.section-title em { font-style: italic; font-weight: 400; color: var(--coral); }
.section-title--light { color: inherit; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
  background: rgba(255, 255, 255, .03); backdrop-filter: blur(6px);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--mint); animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }

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

/* ─────────────── шапка ─────────────── */

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: rgba(8, 15, 34, .72); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); }
.brand__mark { width: 42px; height: 42px; color: var(--mint); }
.brand__mark path { transform-origin: 24px 24px; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.brand__text { display: flex; flex-direction: column; line-height: .9; }
.brand__script { font-family: var(--script); font-size: 18px; color: var(--mint); margin-left: 2px; }
.brand__serif { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 14px; letter-spacing: .04em; }
.nav a { position: relative; color: var(--text-dim); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--mint); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ivory); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav .nav__tg { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ivory); }
.nav .nav__tg svg { width: 16px; color: var(--mint); }
.nav .nav__tg::after { display: none; }
.nav .nav__tg:hover { border-color: var(--mint); }

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

.notice {
  position: relative; z-index: 40; margin-top: 82px; padding: 10px var(--gutter);
  background: linear-gradient(90deg, var(--coral-600), var(--coral)); color: #fff;
  text-align: center; font-weight: 600; font-size: 14px;
}
.notice + .hero { margin-top: 0; }

/* ─────────────── hero ─────────────── */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px var(--gutter) 110px;
  background:
    radial-gradient(1200px 700px at 78% 35%, rgba(26, 106, 83, .45), transparent 60%),
    radial-gradient(900px 600px at 10% 90%, rgba(34, 54, 106, .7), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  overflow: hidden; isolation: isolate;
}
.hero::before { /* мягкие лучи света сверху справа, как солнечные блики на воде */
  content: ""; position: absolute; top: -30%; right: -5%; width: 60%; height: 110%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(243, 239, 230, .07), transparent),
    radial-gradient(40% 70% at 70% 20%, rgba(127, 227, 191, .08), transparent 70%);
  transform: rotate(-18deg); filter: blur(30px);
}
.topo { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(233, 236, 244, .07); z-index: -1; }
.topo__dots { color: rgba(127, 227, 191, .5); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero__canvas.is-ready { opacity: 1; }

.hero__inner { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.hero__inner > * { max-width: 640px; }
.hero__inner > .hero__title { margin: 0; display: flex; flex-direction: column; align-items: flex-start; line-height: .95; max-width: none; }
.hero__kicker {
  font-family: var(--script); font-weight: 400; color: var(--mint);
  font-size: clamp(36px, 5vw, 64px); margin: 0 0 -.18em .2em; transform: rotate(-4deg); transform-origin: left;
  text-shadow: 0 0 30px rgba(127, 227, 191, .35);
}
.hero__main {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.02em;
  font-size: clamp(52px, 8.2vw, 118px);
  background: linear-gradient(180deg, #fff 0%, var(--ivory) 45%, var(--sand) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, .45));
}
.hero__accent { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 5.4vw, 72px); color: var(--coral-300); margin-top: .08em; }
.hero__text { margin: 28px 0 32px; font-size: clamp(16px, 1.4vw, 18px); color: var(--text-dim); max-width: 520px; }

.search {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 7px 7px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-strong);
  backdrop-filter: blur(14px); box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: border-color .3s, box-shadow .3s;
}
.search:focus-within { border-color: rgba(127, 227, 191, .6); box-shadow: 0 0 0 6px rgba(127, 227, 191, .1), 0 20px 60px -20px rgba(0, 0, 0, .6); }
.search > svg { width: 20px; flex: none; color: var(--text-faint); }
.search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: none; color: var(--ivory); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--text-faint); }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.search button { flex: none; padding: 12px 24px; border: 0; border-radius: 999px; background: var(--ivory); color: var(--ink); font-weight: 700; transition: background .25s, transform .3s var(--ease-spring); }
.search button:hover { background: var(--mint); transform: scale(1.04); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 44px 0 36px; max-width: 640px; }
.stats > div { padding: 0 18px; border-left: 1px solid var(--line); text-align: center; }
.stats > div:first-child { border-left: 0; padding-left: 0; text-align: left; }
.stats dt { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 38px); line-height: 1.1; color: var(--ivory); }
.stats dd { margin: 4px 0 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-faint); }

.cta-line { display: inline-flex; align-items: center; gap: 14px; padding-bottom: 6px; border-bottom: 1px solid var(--line-strong); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; transition: border-color .3s, color .3s; }
.cta-line svg { width: 30px; transition: transform .35s var(--ease); }
.cta-line:hover { color: var(--mint); border-color: var(--mint); }
.cta-line:hover svg { transform: translateX(6px); }

.hero__scroll { position: absolute; left: 50%; bottom: 28px; width: 1px; height: 56px; background: var(--line); overflow: hidden; }
.hero__scroll span { position: absolute; top: -40%; left: 0; width: 1px; height: 40%; background: var(--mint); animation: scrollline 2.2s var(--ease) infinite; }
@keyframes scrollline { to { top: 110%; } }

/* ─────────────── диагональная секция (категории) ─────────────── */

.slash {
  position: relative; color: var(--ink); isolation: isolate; overflow-x: clip;
  padding: clamp(110px, 14vw, 190px) var(--gutter) clamp(110px, 14vw, 190px);
  margin-top: -1px;
}
.slash::before { /* светлая «бумажная» плоскость со срезанными краями */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #f6f2ea, var(--ivory-2));
  clip-path: polygon(0 9%, 100% 0, 100% 91%, 0 100%);
}
.slash__band {
  position: absolute; z-index: -1; left: -5%; right: -5%; top: 42%; height: 46%;
  background: linear-gradient(100deg, var(--coral) 0%, #ec7a6a 60%, var(--coral-600) 100%);
  clip-path: polygon(0 32%, 100% 0, 100% 68%, 0 100%);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .2);
}
.slash__band::after { /* тонкая линия-отблеск по краю ленты */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 0 30%, rgba(255, 255, 255, .25) 50%, transparent 70%);
  mix-blend-mode: overlay;
}
.slash__inner { position: relative; max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.slash__numbers { display: flex; flex-direction: column; gap: 18px; }
.slash__numbers div { display: flex; align-items: center; gap: 14px; }
.slash__numbers b { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 7vw, 92px); line-height: .9; color: var(--ink); min-width: 1.4em; }
.slash__numbers span { font-family: var(--serif); font-size: 15px; line-height: 1.15; color: var(--navy-600); }
.slash .section-title { color: var(--ink); margin-bottom: 26px; }
.slash .section-title em { color: var(--coral-600); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(13, 21, 48, .12); color: var(--ink);
  font-weight: 600; font-size: 14px;
  box-shadow: 0 6px 20px -10px rgba(13, 21, 48, .35);
  transition: transform .35s var(--ease-spring), background .25s, color .25s, box-shadow .3s;
}
.chip small { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(13, 21, 48, .07); }
.chip:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 14px 26px -12px rgba(13, 21, 48, .5); }
.chip[aria-selected="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.chip[aria-selected="true"] small { background: var(--coral); color: #fff; }

/* ─────────────── карточка-купон ─────────────── */

.card {
  --accent: #1f7a5c;
  --rx: 0deg; --ry: 0deg; --flip: 0deg;
  position: relative; perspective: 1400px;
  filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35));
}
.card__inner {
  position: relative; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--flip)));
  transition: transform .9s var(--ease);
}
.card.is-tilting .card__inner { transition: transform .15s linear; }
.card.is-flipped { --flip: 180deg; }
.card__face {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 22px 22px 0; border-radius: var(--radius);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background:
    radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    linear-gradient(165deg, #182a52 0%, #0f1c3a 60%, #0c1630 100%);
  border: 1px solid rgba(255, 255, 255, .1);
  /* вырезы-«надрывы» купона по бокам */
  -webkit-mask:
    radial-gradient(circle 13px at 0 calc(100% - 70px), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% calc(100% - 70px), #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle 13px at 0 calc(100% - 70px), #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle 13px at 100% calc(100% - 70px), #0000 98%, #000) right / 51% 100% no-repeat;
}
.card__glow { /* блик, бегущий за курсором */
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 45%);
}
.card:hover .card__glow { opacity: 1; }
.card__head { display: flex; align-items: center; gap: 12px; }
.card__logo {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 100%, #fff 15%), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 18px -6px color-mix(in srgb, var(--accent) 80%, #000);
  font-family: var(--serif); font-weight: 700; font-size: 22px; color: #fff;
}
.card__logo img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.card__meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.card__store { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__cat { font-size: 12px; color: var(--text-faint); letter-spacing: .04em; }
.card__hot { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgba(229, 96, 90, .16); color: var(--coral-300); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(229, 96, 90, .35); }
.card__discount {
  margin: 20px 0 6px; font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(40px, 4vw, 52px); letter-spacing: -.02em;
  background: linear-gradient(180deg, #fff, var(--ivory-2)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.card__title { margin: 0 0 8px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.card__desc { margin: 0 0 18px; font-size: 14px; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__perf { margin: auto -22px 0; height: 0; border-top: 2px dashed rgba(255, 255, 255, .14); transform: translateY(-1px); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 70px; }
.card__exp { font-size: 12.5px; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.card__exp.is-soon { color: var(--coral-300); }
.card__exp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.card__reveal {
  position: relative; display: inline-flex; align-items: center; overflow: hidden;
  padding: 0; border: 0; border-radius: 12px; background: none; height: 42px;
}
.card__reveal-label {
  position: relative; z-index: 2; display: grid; place-items: center; height: 100%; padding: 0 18px 0 16px;
  background: var(--coral); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap;
  border-radius: 12px 0 0 12px; transition: background .25s, padding .35s var(--ease);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  margin-right: -12px;
}
.card__reveal-peek {
  display: grid; place-items: center; height: 100%; padding: 0 12px 0 22px; min-width: 64px;
  border: 1.5px dashed rgba(255, 255, 255, .35); border-left: 0; border-radius: 0 12px 12px 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 700; letter-spacing: .08em; font-size: 13px; color: var(--ivory);
}
.card__reveal:hover .card__reveal-label { background: var(--coral-600); padding-right: 12px; }

.card__back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 26px 22px;
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--accent) 60%, transparent), transparent 70%),
    linear-gradient(165deg, #10392f, #0a2a24 70%, #082019);
  -webkit-mask: none; mask: none;
}
.card__close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(0, 0, 0, .15); font-size: 20px; line-height: 1; }
.card__close:hover { border-color: var(--mint); color: var(--mint); }
.card__back-store { font-family: var(--script); font-size: 26px; color: var(--mint); line-height: 1; }
.card__back-hint { margin: 0; font-size: 13px; color: var(--text-dim); max-width: 240px; }
.card__code {
  display: flex; align-items: center; width: 100%; max-width: 300px;
  border: 1.5px dashed rgba(127, 227, 191, .55); border-radius: 14px; background: rgba(0, 0, 0, .22); overflow: hidden;
}
.card__code-value {
  flex: 1; min-width: 0; padding: 14px 12px; overflow-wrap: anywhere;
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 20px; font-weight: 800; letter-spacing: .1em; color: #fff;
  user-select: all;
}
.card__copy { flex: none; align-self: stretch; padding: 0 16px; border: 0; border-left: 1.5px dashed rgba(127, 227, 191, .4); background: rgba(127, 227, 191, .12); color: var(--mint); font-weight: 700; font-size: 13px; transition: background .25s; }
.card__copy:hover { background: rgba(127, 227, 191, .25); }
.card__code.is-nocode .card__code-value { font-family: var(--sans); font-size: 15px; letter-spacing: 0; font-weight: 700; }
.card__go { padding: 12px 22px; font-size: 14px; }
.card__go[hidden] { display: none; }
.card__copies { font-size: 12px; color: var(--text-faint); }

.card.is-target .card__face { box-shadow: 0 0 0 2px var(--mint); }

/* ─────────────── горячие (горизонтальная лента) ─────────────── */

.hot { padding: clamp(60px, 8vw, 110px) 0 clamp(30px, 4vw, 60px); background: var(--navy-900); }
.hot[hidden] { display: none; }
.hot__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 360px); gap: 26px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 10px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 40px;
  scrollbar-width: thin; scrollbar-color: var(--navy-600) transparent;
}
.hot__rail .card { scroll-snap-align: start; }
.hot__rail .card:nth-child(even) { margin-top: 36px; }

/* ─────────────── все промокоды ─────────────── */

.promos { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); background: linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.toolbar { margin-left: auto; }
.select { position: relative; display: block; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; color: var(--text-dim); }
.select select { appearance: none; padding: 11px 40px 11px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04); color: var(--ivory); font: inherit; font-size: 14px; cursor: pointer; }
.select option { background: var(--navy-800); }
.filter-state { max-width: var(--maxw); margin: -20px auto 28px; padding: 0 var(--gutter); color: var(--text-dim); font-size: 14px; }
.filter-state button { margin-left: 8px; border: 0; background: none; color: var(--mint); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px 26px;
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.grid .card { opacity: 0; transform: translateY(30px) scale(.98); animation: cardIn .8s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.empty { max-width: 420px; margin: 20px auto 0; padding: 0 var(--gutter); text-align: center; color: var(--text-dim); }
.empty svg { width: 72px; margin: 0 auto 14px; color: var(--mint); }

/* ─────────────── «Как пользоваться» — изумрудная секция с листьями ─────────────── */

.how {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(100px, 12vw, 170px) var(--gutter);
  background:
    radial-gradient(70% 60% at 50% 40%, #2a7a62 0%, transparent 70%),
    radial-gradient(60% 50% at 10% 100%, var(--emerald-900), transparent 70%),
    linear-gradient(180deg, var(--emerald-700) 0%, var(--emerald-800) 50%, var(--emerald-900) 100%);
  color: #f2f7f4;
}
.how::before { /* мягкий световой блик сверху */
  content: ""; position: absolute; top: -30%; left: 20%; width: 60%; height: 70%; z-index: -1;
  background: radial-gradient(closest-side, rgba(220, 255, 240, .18), transparent); filter: blur(20px);
}
.how::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, rgba(6, 12, 28, .5)); z-index: -1; }
.how .section-script { color: #d8f5e9; }
.how__inner { position: relative; max-width: var(--maxw); margin: 0 auto; }

.leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.leaf { position: absolute; width: clamp(140px, 18vw, 280px); filter: drop-shadow(0 30px 30px rgba(0, 20, 12, .55)); will-change: transform; transform: rotate(var(--r, 0deg)) scale(var(--sc, 1)); }
.leaf--1 { top: -40px; left: -60px; --r: 35deg; }
.leaf--2 { top: 18%; right: -80px; --r: -140deg; --sc: 1.25; }
.leaf--3 { bottom: 4%; left: 4%; --r: 160deg; --sc: .9; opacity: .9; }
.leaf--4 { bottom: -60px; right: 14%; --r: -30deg; --sc: 1.1; }
.leaf--5 { top: 40%; left: 42%; --r: 75deg; --sc: .55; opacity: .35; filter: blur(3px); }

.drop { /* капли росы — объёмные за счёт двух бликов */
  position: absolute; width: var(--s, 14px); height: var(--s, 14px); border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .95) 0 10%, transparent 22%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, .35) 0 8%, transparent 20%),
    radial-gradient(circle at 50% 50%, rgba(140, 220, 190, .15), rgba(10, 60, 45, .45) 80%);
  box-shadow: inset -2px -3px 5px rgba(255, 255, 255, .25), inset 2px 3px 6px rgba(0, 30, 20, .45), 0 4px 8px rgba(0, 25, 15, .35);
  animation: drip 7s ease-in-out infinite; animation-delay: var(--dl, 0s);
}
@keyframes drip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.d1 { --s: 18px; top: 22%; left: 18%; }
.d2 { --s: 9px; top: 30%; left: 22%; --dl: -2s; }
.d3 { --s: 24px; top: 64%; right: 12%; --dl: -1s; }
.d4 { --s: 11px; top: 12%; right: 30%; --dl: -3s; }
.d5 { --s: 15px; bottom: 18%; left: 36%; --dl: -4s; }
.d6 { --s: 7px; top: 48%; left: 8%; --dl: -5s; }
.d7 { --s: 13px; bottom: 30%; right: 34%; --dl: -2.5s; }
.d8 { --s: 20px; top: 8%; left: 58%; --dl: -1.5s; }

.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); }
.step {
  position: relative; padding: 34px 28px 30px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 30px 60px -30px rgba(0, 25, 15, .8), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.step--shift { transform: translateY(50px); }
.step--shift.reveal { transform: translateY(78px); }
.step--shift.reveal.is-in { transform: translateY(50px); }
.step__num {
  display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(80px, 9vw, 120px); line-height: .85;
  background: linear-gradient(180deg, #fff 10%, rgba(255, 255, 255, .25)); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 24px; }
.step p { margin: 0; color: rgba(242, 247, 244, .78); font-size: 15px; }

/* ─────────────── FAQ ─────────────── */

.faq { padding: clamp(90px, 11vw, 150px) 0; background: var(--navy-900); }
.faq__list { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 26px 50px 26px 0;
  font-family: var(--serif); font-size: clamp(19px, 2vw, 24px); font-weight: 500; transition: color .25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 300; font-size: 30px; color: var(--mint); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--mint); }
.faq details p { margin: -8px 0 26px; color: var(--text-dim); max-width: 720px; }

/* ─────────────── подвал ─────────────── */

.footer { position: relative; padding: clamp(110px, 13vw, 170px) var(--gutter) 30px; background: var(--navy-950); overflow: hidden; isolation: isolate; text-align: center; }
.footer__slash { position: absolute; z-index: -1; left: -10%; right: -10%; top: 0; height: 60%; background: linear-gradient(100deg, var(--navy-800), var(--navy-700)); clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%); }
.footer__slash::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%; background: linear-gradient(100deg, transparent 40%, rgba(229, 96, 90, .25)); clip-path: polygon(0 92%, 100% 32%, 100% 40%, 0 100%); }
.join { max-width: 640px; margin: 0 auto 90px; }
.join__title { margin: 0 0 16px; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 84px); line-height: 1; letter-spacing: -.02em; }
.join__text { margin: 0 auto 32px; color: var(--text-dim); max-width: 440px; }
.footer__bottom {
  position: relative; max-width: var(--maxw); margin: 0 auto; padding-top: 34px; border-top: 1px solid var(--line);
}
.footer__bottom::before { /* «язычок» по центру, как вкладка */
  content: ""; position: absolute; left: 50%; top: -1px; width: 140px; height: 12px; transform: translateX(-50%);
  border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; background: var(--navy-950);
}
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.footer__nav a:hover { color: var(--mint); }
.footer__text { margin: 22px auto 8px; max-width: 620px; font-size: 13px; color: var(--text-faint); }
.footer__copy { margin: 0; font-size: 12px; color: var(--text-faint); }

/* ─────────────── тост ─────────────── */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, calc(100% + 40px));
  display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px;
  background: var(--ivory); color: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .55); transition: transform .5s var(--ease-spring), visibility 0s .5s;
  visibility: hidden;
  max-width: calc(100vw - 32px);
}
.toast::before { content: "✓"; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--emerald-600); color: #fff; font-size: 13px; }
.toast.is-show { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-spring); }

/* ─────────────── адаптив ─────────────── */

@media (max-width: 980px) {
  .slash__inner { grid-template-columns: 1fr; }
  .slash__numbers { flex-direction: row; flex-wrap: wrap; gap: 18px 30px; }
  .slash__numbers b { min-width: 0; }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .step--shift, .step--shift.reveal.is-in { transform: none; }
  .step--shift.reveal { transform: translateY(28px); }
}

@media (max-width: 820px) {
  .burger { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: rgba(6, 12, 28, .96); backdrop-filter: blur(20px);
    font-family: var(--serif); font-size: 28px; letter-spacing: 0;
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav .nav__tg { font-family: var(--sans); font-size: 16px; }
  .notice { margin-top: 74px; }
  .hero { padding-top: min(380px, 44vh); align-items: flex-end; }
  .hero__canvas.is-ready { opacity: 1; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .stats > div:nth-child(3) { border-left: 0; padding-left: 0; text-align: left; }
  .section-head { flex-wrap: wrap; }
  .toolbar { margin-left: 0; width: 100%; }
  .hot__rail .card:nth-child(even) { margin-top: 0; }
}

@media (max-width: 520px) {
  .search { padding-left: 16px; }
  .search button { padding: 12px 16px; }
  .section-num { font-size: 56px; }
  .grid { grid-template-columns: 1fr; }
  .hot__rail { grid-auto-columns: 86%; }
  .slash::before { clip-path: polygon(0 4%, 100% 0, 100% 96%, 0 100%); }
}

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