/* ==========================================================================
   Реплюс — design system v2 ("playful studio")
   Public marketing pages: bold outline cards, flat blob shapes, hard shadows.
   Admin pages keep the original dark-glass theme via a scoped token override
   near the bottom of this file (search "ADMIN THEME SCOPE").
   ========================================================================== */

:root {
  /* -- surfaces -- */
  --cream: #FBF5E9;
  --cream-soft: #F4EBD9;
  --paper: #FFFFFF;
  --bg-0: var(--cream);
  --bg-1: var(--cream-soft);
  --bg-2: #EFE3C8;

  /* -- ink / text -- */
  --ink: #16140D;
  --ink-0: var(--ink);
  --ink-soft: #4B4737;
  --ink-1: var(--ink-soft);
  --ink-mute: #837C63;
  --ink-2: var(--ink-mute);
  --ink-3: #A79F82;

  /* -- accents -- */
  --violet: #5B3DF5;
  --violet-2: #3C27B8;
  --coral: #FF5A3C;
  --lime: #C6FF5C;
  --cyan: #1FCFB6;
  --pink: #FF5FA0;
  --amber: #FFC24B;

  /* -- lines / shadows -- */
  --line: rgba(22, 20, 13, 0.14);
  --line-strong: rgba(22, 20, 13, 0.9);
  --ink-shadow: rgba(22, 20, 13, 0.92);

  --shadow-card: 7px 7px 0 var(--ink-shadow);
  --shadow-card-lg: 10px 10px 0 var(--ink-shadow);
  --shadow-card-hover: 3px 3px 0 var(--ink-shadow);
  --shadow-soft: 0 30px 70px rgba(22, 20, 13, 0.14);

  /* -- legacy glass tokens (kept for admin reuse, see ADMIN THEME SCOPE) -- */
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --ff-head: "Unbounded", "Inter", sans-serif;
  --ff-body: "Inter", sans-serif;

  --container: 1220px;
  --ease-pop: cubic-bezier(.2, .9, .25, 1.35);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-head); font-weight: 700; line-height: 1.12; }
p { margin: 0; }
::selection { background: var(--ink); color: var(--cream); }

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

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

/* ==========================================================================
   Custom cursor
   ========================================================================== */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  border-radius: 50%;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 8px; height: 8px; background: var(--ink); }
.cursor-ring {
  width: 38px; height: 38px;
  border: 2px solid var(--ink);
  transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out), background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
.cursor-ring.is-hover { width: 64px; height: 64px; background: rgba(198, 255, 92, 0.5); border-color: var(--ink); }
.cursor-ring.is-down { width: 30px; height: 30px; }
body.has-custom-cursor, body.has-custom-cursor a, body.has-custom-cursor button { cursor: none; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* ==========================================================================
   Scroll progress bar
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--violet), var(--coral) 55%, var(--lime));
  z-index: 998;
  transform-origin: left;
}

/* ==========================================================================
   Background decoration — flat blobs + grain (no blur/glow)
   ========================================================================== */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg-0);
}
.blob {
  position: absolute;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  will-change: transform;
  opacity: 1;
}
.blob-1 { width: 480px; height: 480px; top: -140px; left: -140px; background: var(--lime); opacity: 0.5; animation: driftRotate1 34s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; top: 12%; right: -140px; background: var(--pink); opacity: 0.35; animation: driftRotate2 40s ease-in-out infinite; }
.blob-3 { width: 340px; height: 340px; bottom: -120px; left: 26%; background: var(--cyan); opacity: 0.3; animation: driftRotate3 36s ease-in-out infinite; }
.blob-4 { width: 300px; height: 300px; bottom: 6%; right: 6%; background: var(--amber); opacity: 0.3; animation: driftRotate1 30s ease-in-out infinite reverse; }

@keyframes driftRotate1 {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50% { transform: translate(30px, 40px) rotate(18deg) scale(1.06); }
}
@keyframes driftRotate2 {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50% { transform: translate(-40px, 30px) rotate(-14deg) scale(1.08); }
}
@keyframes driftRotate3 {
  0%, 100% { transform: translate(0,0) rotate(0deg) scale(1); }
  50% { transform: translate(24px, -30px) rotate(10deg) scale(0.96); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   Panel primitive (replaces glassmorphism on public pages)
   ========================================================================== */

.panel {
  background: var(--paper);
  border: var(--border-w, 2px) solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  transform: rotate(-2deg);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid var(--ink);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--violet);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { transform: translate(-3px, -3px); box-shadow: 10px 10px 0 var(--ink-shadow); background: #6b4fff; }
.btn-primary:active { transform: translate(0, 0); box-shadow: 2px 2px 0 var(--ink-shadow); }
.btn-ghost {
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  box-shadow: var(--shadow-card-hover);
}
.btn-ghost:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-shadow); background: var(--cream-soft); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.magnetic { will-change: transform; }

/* ==========================================================================
   Reveal on scroll (progressive-enhancement base; GSAP upgrades this)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }

.split-line { display: block; overflow: hidden; }
.split-line span {
  display: inline-block;
  transform: translateY(110%) rotate(3deg);
  opacity: 0;
  transition: transform 0.7s var(--ease-pop), opacity 0.5s ease;
  transition-delay: calc(var(--i, 0) * 70ms);
}
.split-line.in-view span { transform: translateY(0) rotate(0deg); opacity: 1; }

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marqueeScroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 17px;
  color: var(--cream);
  padding: 0 26px;
  white-space: nowrap;
}
.marquee-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee.marquee-reverse .marquee-track { animation-direction: reverse; }
.marquee.marquee-light { background: var(--cream-soft); border-color: var(--ink); }
.marquee.marquee-light .marquee-item { color: var(--ink); }
.marquee.marquee-light .marquee-item .dot { background: var(--coral); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 2px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(251, 245, 233, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--violet);
  border: 2px solid var(--ink);
  position: relative;
  flex-shrink: 0;
  transform: rotate(-6deg);
  transition: transform 0.3s var(--ease-pop);
}
.logo:hover .logo-mark { transform: rotate(6deg) scale(1.08); }
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 5px;
  background: var(--lime);
  clip-path: polygon(0 0, 60% 0, 100% 100%, 40% 100%);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--paper);
}
.nav-links a {
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--cream-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }

.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 100px 28px 40px;
  gap: 6px;
  transform: translateY(-100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--ff-head);
  font-size: 28px;
  font-weight: 600;
  padding: 14px 4px;
  border-bottom: 2px solid var(--line);
}
.mobile-nav .btn { margin-top: 20px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .header-actions .btn-primary { padding: 11px 18px; font-size: 13.5px; }
}
@media (min-width: 861px) {
  .mobile-nav { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero { padding: 70px 0 60px; position: relative; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}
.hero-title {
  font-size: clamp(36px, 5.2vw, 68px);
  letter-spacing: -0.02em;
  margin: 22px 0 24px;
}
.hero-title .hl {
  position: relative;
  color: var(--violet);
  display: inline-block;
}
.hero-title .hl::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%; bottom: 6%;
  height: 0.32em;
  background: var(--lime);
  z-index: -1;
  transform: rotate(-1.2deg);
}
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-note svg { flex-shrink: 0; }

.hero-strip { margin-top: 46px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-strip-item {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  transform: rotate(-1.4deg);
}
.hero-strip-item:nth-child(2) { transform: rotate(1.2deg); }
.hero-strip-item:nth-child(3) { transform: rotate(-0.8deg); }
.hero-strip-num { font-family: var(--ff-head); font-size: 24px; font-weight: 700; color: var(--coral); }
.hero-strip-label { font-size: 12px; color: var(--ink-mute); font-weight: 600; }

.hero-visual { position: relative; padding: 30px; }
.hero-visual-card { padding: 26px; position: relative; z-index: 1; background: var(--paper); }
.hero-visual-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-visual-head span:first-child { font-family: var(--ff-head); font-weight: 600; font-size: 14px; }
.pill-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700;
  color: var(--ink);
  background: var(--lime);
  border: 2px solid var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
}
.pill-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.mini-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  background: var(--cream-soft);
  border: 1.5px solid var(--line);
  opacity: 0;
  transform: scale(0.5);
  animation: cellIn 0.4s ease forwards;
}
.mini-cell.on { background: var(--violet); border-color: var(--ink); }
@keyframes cellIn { to { opacity: 1; transform: scale(1); } }
.hero-visual-foot { margin-top: 20px; display: flex; justify-content: space-between; align-items: baseline; }
.hero-visual-foot .num { font-family: var(--ff-head); font-size: 22px; font-weight: 700; color: var(--coral); }
.hero-visual-foot .lbl { font-size: 12.5px; color: var(--ink-mute); font-weight: 600; }

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-card-hover);
  animation: floaty 5s ease-in-out infinite;
}
.float-chip-1 { top: -10px; right: 6px; animation-delay: 0s; transform: rotate(-4deg); }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-10px) rotate(-4deg); } }
.dot-green { width: 8px; height: 8px; border-radius: 50%; background: #1d9a5c; }

.hero-visual-card.compact { padding: 18px 20px; }
.hero-visual-card.compact .hero-visual-head { margin-bottom: 12px; }
.hero-visual-card.compact .mini-grid { gap: 4px; }
.hero-visual-card.compact .hero-visual-foot { margin-top: 12px; }

/* ---------- hero badge: rotating "we test-matched this" seal ---------- */
.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  padding-left: 4px;
}
.hero-badge {
  position: relative;
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  display: block;
}
.hero-badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spinBadge 18s linear infinite; }
.hero-badge-ring text { font-family: var(--ff-head); font-size: 8.8px; font-weight: 700; letter-spacing: 0.02em; fill: var(--ink); text-transform: uppercase; }
@keyframes spinBadge { to { transform: rotate(360deg); } }
.hero-badge-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 9px;
  color: var(--ink);
  transition: transform 0.3s var(--ease-pop);
}
.hero-badge:hover .hero-badge-center { transform: translate(-50%, -50%) scale(1.08); }
.hero-badge-caption { font-size: 13px; font-weight: 600; color: var(--ink-soft); max-width: 190px; line-height: 1.35; }

@media (max-width: 940px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding: 10px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-badge-ring { animation: none; }
}

/* ==========================================================================
   Section shells
   ========================================================================== */

.section { padding: 100px 0; position: relative; }
.section-alt { background: var(--cream-soft); }
.section-head { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-title { font-size: clamp(30px, 3.8vw, 46px); margin-top: 16px; letter-spacing: -0.015em; }
.section-sub { color: var(--ink-soft); font-size: 16.5px; margin-top: 16px; }

/* ==========================================================================
   Angle cards (3 reasons)
   ========================================================================== */

.angles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.angle-card {
  padding: 32px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: default;
  transform-style: preserve-3d;
  perspective: 800px;
}
.angle-card:hover { box-shadow: var(--shadow-card-lg); }
.angle-idx {
  position: absolute;
  top: 18px; right: 22px;
  font-family: var(--ff-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-3);
}
.angle-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  margin-bottom: 20px;
  position: relative;
}
.angle-card.c1 .angle-icon { background: var(--lime); }
.angle-card.c2 .angle-icon { background: var(--pink); }
.angle-card.c3 .angle-icon { background: var(--cyan); }
.angle-card h3 { font-size: 21px; margin-bottom: 12px; }
.angle-card p { color: var(--ink-soft); font-size: 15px; }
.angle-tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 1.5px solid var(--ink);
}

@media (max-width: 860px) {
  .angles { grid-template-columns: 1fr; }
}

/* ==========================================================================
   No paperwork banner
   ========================================================================== */

.promise-band {
  padding: 32px 34px;
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.promise-items { display: flex; gap: 34px; flex-wrap: wrap; }
.promise-item { display: flex; align-items: center; gap: 12px; max-width: 240px; }
.promise-item .ic {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 12px;
  background: var(--amber);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--ink);
  transition: transform 0.3s var(--ease-pop);
}
.promise-item:hover .ic { transform: rotate(-10deg) scale(1.08); }
.promise-item strong { display: block; font-size: 14.5px; font-family: var(--ff-head); font-weight: 600; }
.promise-item span { font-size: 13px; color: var(--ink-mute); }

/* ==========================================================================
   How it works
   ========================================================================== */

.steps-wrap { position: relative; }
.steps-path { position: absolute; top: 30px; left: 0; width: 100%; height: 40px; overflow: visible; }
.steps-path path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-dasharray: 6 10;
  stroke-linecap: round;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.steps-path.in-view path { stroke-dashoffset: 0; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.step { position: relative; padding: 30px 24px; }
.step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  background: var(--violet);
  border: 2px solid var(--ink);
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .steps-path { display: none; }
}

/* ==========================================================================
   Match stats ("наглядно" — friends, not random matches)
   ========================================================================== */

.match-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.match-card {
  padding: 34px 30px;
  text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.match-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }
.match-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 2px solid var(--ink);
  font-size: 26px;
  margin-bottom: 18px;
}
.match-num { font-family: var(--ff-head); font-size: clamp(44px, 6vw, 64px); font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--violet); }
.match-card:nth-child(2) .match-num { color: var(--coral); }
.match-label { margin-top: 14px; color: var(--ink-soft); font-size: 15px; max-width: 340px; margin-left: auto; margin-right: auto; }

@media (max-width: 780px) {
  .match-stats { grid-template-columns: 1fr; }
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.faq-item { padding: 4px 8px; overflow: hidden; transition: box-shadow 0.2s ease; }
.faq-item.open { box-shadow: var(--shadow-card-lg); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px;
  background: none;
  border: none;
  color: var(--ink);
  text-align: left;
  font-family: var(--ff-head);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.faq-q .plus {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--ink);
  transition: transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-q .plus { transform: rotate(135deg); background: var(--lime); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 20px; color: var(--ink-soft); font-size: 14.5px; }
.faq-item.open .faq-a { max-height: 220px; padding: 0 20px 22px; }

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta-band {
  padding: 76px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
}
.cta-band .eyebrow { background: var(--cream); }
.cta-band h2 { font-size: clamp(28px, 3.8vw, 44px); margin-bottom: 16px; color: var(--cream); }
.cta-band p { color: rgba(251, 245, 233, 0.7); font-size: 16px; max-width: 480px; margin: 0 auto 30px; }
.cta-band .btn-primary { background: var(--lime); color: var(--ink); }
.cta-band .btn-primary:hover { background: #d4ff7c; box-shadow: 10px 10px 0 rgba(251,245,233,0.35); }
.cta-marquee { position: absolute; inset: auto 0 -6px 0; opacity: 0.08; pointer-events: none; }
.cta-marquee .marquee-item { color: var(--cream); font-size: 90px; }
.cta-marquee.marquee { border: none; background: transparent; padding: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { padding: 56px 0 40px; border-top: 2px solid var(--ink); margin-top: 20px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-note { color: var(--ink-mute); font-size: 13px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.footer-big { font-family: var(--ff-head); font-weight: 700; font-size: clamp(40px, 9vw, 120px); letter-spacing: -0.03em; color: var(--ink); opacity: 0.06; line-height: 1; margin: 10px 0 30px; user-select: none; }

/* ==========================================================================
   Back to top
   ========================================================================== */

.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s var(--ease-pop);
  pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.back-to-top:hover { background: var(--violet); }

/* ==========================================================================
   Form page
   ========================================================================== */

.form-page { padding: 60px 0 100px; }
.form-shell { max-width: 720px; margin: 0 auto; }
.form-head { text-align: center; margin-bottom: 34px; }
.form-head h1 { font-size: clamp(28px, 3.8vw, 40px); margin-top: 14px; }
.form-head p { color: var(--ink-soft); margin-top: 12px; }

.progress-rail { display: flex; align-items: center; gap: 6px; margin-bottom: 36px; }
.progress-step { flex: 1; height: 6px; border-radius: 999px; background: var(--cream-soft); border: 1.5px solid var(--line); overflow: hidden; }
.progress-step .fill { height: 100%; width: 0%; border-radius: 999px; background: var(--violet); transition: width 0.4s ease; }
.progress-labels { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.progress-labels span.active { color: var(--coral); }

.form-card { padding: 38px 36px; }
.form-step { display: none; flex-direction: column; gap: 24px; animation: stepIn 0.4s ease; }
.form-step.active { display: flex; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }

.field { display: flex; flex-direction: column; gap: 9px; }
.field label.field-label { font-size: 14px; font-weight: 600; color: var(--ink); font-family: var(--ff-head); }
.field-hint { font-size: 12.5px; color: var(--ink-3); margin-top: -4px; }

.input, .select, textarea.input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--cream-soft);
  border: 2px solid var(--line);
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.input::placeholder { color: var(--ink-3); }
.input:focus, .select:focus, textarea.input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--paper);
}
textarea.input { resize: vertical; min-height: 100px; }

select.input {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'><path d='M4 6l4 4 4-4' stroke='%23837C63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.interest-chip-group { max-height: 230px; overflow-y: auto; padding: 3px; }
.interest-empty { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--cream-soft);
  border: 2px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.chip input:checked + label { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.chip input:focus-visible + label { outline: 2px solid var(--violet); outline-offset: 2px; }

.toggle-row { display: flex; gap: 12px; }
.toggle-opt { flex: 1; position: relative; }
.toggle-opt input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-opt label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--cream-soft);
  border: 2px solid var(--line);
  cursor: pointer;
  transition: all 0.2s ease;
}
.toggle-opt label strong { font-family: var(--ff-head); font-size: 14.5px; }
.toggle-opt label span { font-size: 12px; color: var(--ink-3); }
.toggle-opt input:checked + label { border-color: var(--ink); background: var(--paper); box-shadow: var(--shadow-card-hover); }

.contact-methods { display: flex; gap: 10px; margin-bottom: 4px; }
.contact-methods .toggle-opt label { align-items: center; flex-direction: row; justify-content: center; padding: 13px; }

.conditional { overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
.conditional.open { max-height: 200px; }

.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.form-error-list {
  background: #FFE3DC;
  border: 2px solid var(--coral);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 13.5px;
  color: #9c2c17;
  margin-bottom: 10px;
}
.form-error-list ul { padding-left: 18px; list-style: disc; }
.field-error { color: var(--coral); font-size: 12.5px; }

/* thanks page */
.thanks-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; text-align: center; position: relative; overflow: hidden; }
.thanks-card { max-width: 480px; padding: 50px 40px; position: relative; z-index: 2; }
.check-circle {
  width: 78px; height: 78px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: var(--lime);
  border: 2px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  animation: popIn 0.5s var(--ease-pop);
}
@keyframes popIn { from { transform: scale(0); } to { transform: scale(1); } }
.thanks-card h1 { font-size: 27px; margin-bottom: 14px; }
.thanks-card p { color: var(--ink-soft); margin-bottom: 28px; }
.confetti-piece {
  position: fixed;
  top: -20px;
  z-index: 1;
  border-radius: 2px;
  pointer-events: none;
  animation: confettiFall var(--dur, 2.4s) var(--delay, 0s) cubic-bezier(.3,.6,.4,1) forwards;
}
@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx, 40px), 100vh) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* ==========================================================================
   Admin — kept on the original dark theme
   ========================================================================== */

.admin-body { background: var(--bg-0); }

/* ADMIN THEME SCOPE: re-pin every token admin markup/CSS reads back to the
   original dark-glass values, so the public redesign above cannot bleed in. */
body.admin-body {
  --bg-0: #0a0b14;
  --bg-1: #10121f;
  --bg-2: #14172a;
  --ink-0: #f5f6fb;
  --ink-1: #c7c9dc;
  --ink-2: #8d90ab;
  --ink-3: #62647c;
  --violet: #8b7bff;
  --violet-2: #5b4bdb;
  --cyan: #3fe0d0;
  --pink: #ff6fa5;
  --amber: #ffb648;
  --glass-bg: rgba(255, 255, 255, 0.055);
  --glass-bg-strong: rgba(255, 255, 255, 0.09);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-strong: rgba(255, 255, 255, 0.22);
  --shadow-glass: 0 10px 40px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-soft: 0 20px 60px rgba(0, 0, 0, 0.45);
  /* re-pin every NEW public-design token that shared components (.btn,
     .field-label, .logo-mark, .panel...) also read, so nothing falls
     through to the light-theme default on a dark admin background */
  --ink: var(--ink-0);
  --ink-soft: var(--ink-1);
  --ink-mute: var(--ink-2);
  --paper: var(--bg-2);
  --cream-soft: rgba(255, 255, 255, 0.06);
  --lime: var(--cyan);
  --coral: var(--pink);
  --line: var(--glass-border);
  --line-strong: var(--glass-border-strong);
  --shadow-card: 0 12px 30px rgba(91, 75, 219, 0.45);
  --shadow-card-hover: 0 8px 20px rgba(0, 0, 0, 0.3);
  --shadow-card-lg: 0 18px 40px rgba(91, 75, 219, 0.6);
  background: var(--bg-0);
  color: var(--ink-0);
}
body.admin-body .bg-scene { background: radial-gradient(ellipse 120% 80% at 50% -10%, #1a1d38 0%, var(--bg-0) 55%); }
body.admin-body .blob { border-radius: 50%; filter: blur(70px); }
body.admin-body .blob-1, body.admin-body .blob-2, body.admin-body .blob-3, body.admin-body .blob-4 { opacity: 0.4; }
body.admin-body .grain { mix-blend-mode: normal; opacity: 0.035; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow: var(--shadow-glass);
}

.admin-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-login-card { width: 100%; max-width: 380px; padding: 40px 34px; }
.admin-login-card h1 { font-size: 22px; margin: 16px 0 6px; }
.admin-login-card p.sub { color: var(--ink-2); font-size: 13.5px; margin-bottom: 24px; }

.admin-shell { max-width: 1300px; margin: 0 auto; padding: 32px 24px 80px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.admin-top h1 { font-size: 22px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card { padding: 20px 22px; }
.stat-card .label { font-size: 12.5px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.03em; }
.stat-card .value { font-family: var(--ff-head); font-size: 28px; font-weight: 700; margin-top: 8px; }
.stat-card.accent .value { color: var(--cyan); }

.sparkline { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-bottom: 28px; padding: 18px 22px; }
.spark-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spark-bar { width: 100%; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), var(--violet)); min-height: 3px; transition: height 0.6s ease; }
.spark-label { font-size: 10.5px; color: var(--ink-3); }

.admin-toolbar { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.admin-toolbar form { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-toolbar input.input, .admin-toolbar select.input { padding: 10px 14px; font-size: 13.5px; width: auto; min-width: 160px; }
body.admin-body .input, body.admin-body .select, body.admin-body textarea.input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--ink-0);
}
body.admin-body .input:focus, body.admin-body .select:focus { border-color: var(--violet); background: rgba(255,255,255,0.08); }

.table-wrap { overflow-x: auto; padding: 4px; }
table.applications { width: 100%; border-collapse: collapse; min-width: 980px; }
table.applications th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  padding: 14px 16px;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}
table.applications th a { display: inline-flex; align-items: center; gap: 4px; }
table.applications td { padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 13.5px; vertical-align: top; color: var(--ink-1); }
table.applications tr:hover td { background: rgba(255,255,255,0.03); }
table.applications td.name-cell { color: var(--ink-0); font-weight: 600; }
.badge { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge.yes { background: rgba(63,224,208,0.15); color: var(--cyan); }
.badge.no { background: rgba(255,255,255,0.07); color: var(--ink-3); }
.truncate { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  font-size: 13px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--ink-1);
}
.pagination a:hover { background: var(--glass-bg-strong); }
.pagination .current { background: var(--violet); border-color: var(--violet); color: #fff; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-2); }

@media (max-width: 900px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
