/* ===== VERSHINA IT — SHARED STYLES ===== */
@property --shine {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
:root {
  --bg: #0A0A0A;
  --bg-elevated: #121212;
  --bg-card: rgba(18, 18, 18, 0.6);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text-high: #FAFAFA;
  --text-mid: #A1A1AA;
  /* #7C7C87 on #0A0A0A ≈ 4.6:1 — WCAG AA for the small mono labels set in this token */
  --text-low: #7C7C87;
  --text-faint: #2A2A2D;
  --accent: #FF3B5C;
  --accent-mid: #C92D49;
  --accent-soft: rgba(255, 59, 92, 0.12);
  --violet: #7C5AFF;
  --cyan: #22D3EE;
  --green: #4ADE80;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-high);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-feature-settings: "ss01", "ss06", "cv11";
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
  cursor: none;
}

/* CUSTOM CURSOR */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(250, 250, 250, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), border-color .25s, background .25s, opacity .25s;
  mix-blend-mode: difference;
}
.cursor.down { width: 26px; height: 26px; border-color: rgba(255, 255, 255, 0.9); }
.cursor.grow.down { width: 60px; height: 60px; }
.cursor.hidden, .cursor-dot.hidden { opacity: 0; }
.cursor.grow {
  width: 76px; height: 76px;
  background: rgba(250, 250, 250, 0.04);
  border-color: rgba(250, 250, 250, 0.7);
}
.cursor-dot {
  position: fixed; top: 0; left: 0;
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width .2s cubic-bezier(.2,.8,.2,1), height .2s cubic-bezier(.2,.8,.2,1), opacity .25s;
}
.cursor-dot.down { width: 9px; height: 9px; }
@media (hover: none) {
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* GRAIN OVERLAY */
.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><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>");
}

/* GLOBAL BG ACCENTS */
body::before {
  content: '';
  position: fixed; inset: -18%;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 38% 32% at 78% 26%, rgba(255, 59, 92, 0.075), transparent 60%),
    radial-gradient(ellipse 34% 28% at 12% 84%, rgba(124, 90, 255, 0.05), transparent 62%),
    radial-gradient(ellipse 26% 22% at 52% 54%, rgba(34, 211, 238, 0.028), transparent 65%);
  z-index: 0;
  animation: auroraDrift 26s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(-1.5%, -1%, 0)  scale(1);    opacity: .8;  }
  50%  { transform: translate3d(1.5%, 2%, 0)    scale(1.07); opacity: 1;   }
  100% { transform: translate3d(-0.5%, 1.5%, 0) scale(1.03); opacity: .88; }
}
@media (max-width: 720px) {
  body::before { animation: none; inset: 0; }
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 110% 90% at center 35%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 110% 90% at center 35%, black 0%, transparent 80%);
  z-index: 0;
}
main, nav, footer { position: relative; z-index: 2; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .35s, background .35s, border-color .35s;
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 38px -14px rgba(0, 0, 0, 0.6);
}
.logo {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
  color: var(--text-high);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.01em;
}
.logo {
  perspective: 600px;
}
.logo-mark {
  width: 30px; height: 30px;
  display: inline-block;
  transform-style: preserve-3d;
  transform-origin: 50% 50%;
  animation: logoSpin 7s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 2px 6px rgba(255, 59, 92, 0.18));
}
.logo:hover .logo-mark {
  animation-play-state: paused;
  transform: scale(1.10) rotateY(0deg) rotateX(0deg);
}
@keyframes logoSpin {
  0%   { transform: rotateY(-26deg) rotateX(6deg); }
  25%  { transform: rotateY(8deg)   rotateX(-3deg); }
  50%  { transform: rotateY(26deg)  rotateX(-6deg); }
  75%  { transform: rotateY(-8deg)  rotateX(3deg); }
  100% { transform: rotateY(-26deg) rotateX(6deg); }
}

.nav-menu { display: flex; gap: 32px; list-style: none; }
.nav-menu a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .18s ease;
  position: relative;
}
.nav-menu a:hover { color: var(--text-high); }
.nav-menu a.active { color: var(--text-high); }
.nav-menu a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -22px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.nav-menu a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-menu a.active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  margin-right: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}
.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-low);
  font: inherit;
  cursor: none;
  padding: 4px 10px;
  border-radius: 999px;
  transition: color .18s, background .18s;
  letter-spacing: 0.04em;
}
.lang-btn.active {
  color: var(--text-high);
  background: rgba(255, 255, 255, 0.06);
}
.lang-btn:not(.active):hover { color: var(--text-mid); }
.nav-link {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color .18s;
}
.nav-link:hover { color: var(--text-high); }
.nav-cta {
  padding: 8px 16px;
  background: var(--text-high);
  color: var(--bg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: none;
  transition: all .18s;
  text-decoration: none;
  display: inline-block;
}
.nav-cta:hover { background: rgba(250, 250, 250, 0.88); }

/* SHARED PAGE HERO (для подстраниц) */
.page-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 48px 72px;
  position: relative;
}
/* PAGE-HERO ATMOSPHERE — конус света + светящийся горизонт */
.page-hero::before {
  content: '';
  position: absolute;
  top: -140px; left: 50%;
  width: min(1200px, 130vw);
  height: 560px;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 52% at 50% 0%, rgba(255, 59, 92, 0.09), transparent 70%),
    radial-gradient(ellipse 68% 58% at 50% 0%, rgba(250, 250, 250, 0.045), transparent 66%);
  animation: heroGlow 9s ease-in-out infinite alternate;
  z-index: -1;
}
@keyframes heroGlow {
  from { opacity: .75; transform: translateX(-50%) scaleY(.96); }
  to   { opacity: 1;   transform: translateX(-50%) scaleY(1.04); }
}
.page-hero::after {
  content: '';
  position: absolute;
  left: 48px; right: 48px; bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg,
    transparent,
    rgba(255, 59, 92, 0.45) 20%,
    rgba(250, 250, 250, 0.30) 50%,
    rgba(255, 59, 92, 0.45) 80%,
    transparent);
  box-shadow: 0 0 22px rgba(255, 59, 92, 0.22);
}
@media (max-width: 1024px) {
  .page-hero::after { left: 24px; right: 24px; }
}
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-mid);
  margin-bottom: 28px;
}
.page-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.12);
}
.page-title {
  font-family: 'Geist', sans-serif;
  font-weight: 300;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 18ch;
}
.page-title .accent {
  font-weight: 400;
  color: var(--accent);
  background: linear-gradient(110deg,
    var(--accent) 30%, #FFB3C0 50%, var(--accent) 70%);
  background-size: 250% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: accentSheen 6s ease-in-out infinite;
}
@keyframes accentSheen {
  0%, 45%   { background-position: 120% 0; }
  75%, 100% { background-position: -80% 0; }
}
@supports not (-webkit-background-clip: text) {
  .page-title .accent { background: none; -webkit-text-fill-color: currentColor; }
}
.page-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 60ch;
  margin-bottom: 0;
}
.page-lead b { color: var(--text-high); font-weight: 500; }

/* SECTION */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 48px;
  position: relative;
}
/* SECTION DIVIDER — градиентный горизонт между секциями */
.section + .section::before {
  content: '';
  position: absolute;
  top: 0; left: 48px; right: 48px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--border-strong) 30%, var(--border-strong) 70%, transparent);
}
.section + .section::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 180px; height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(255, 59, 92, 0.35);
  opacity: .8;
}
@media (max-width: 1024px) {
  .section + .section::before { left: 24px; right: 24px; }
}
.section-title {
  font-family: 'Geist', sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.section-lead {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 56ch;
  margin-bottom: 40px;
  line-height: 1.55;
}

/* CARD (универсальная; бывает <a> — сбрасываем link-стили) */
.card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(8px);
  transition: border-color .22s, transform .22s;
  overflow: hidden;
}
.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 24px 48px -24px rgba(0, 0, 0, 0.7),
    0 16px 44px -20px rgba(255, 59, 92, 0.12);
}
.card-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--accent);
  background: var(--accent-soft);
}
.card-icon svg { width: 18px; height: 18px; }
.card-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
}
.card-desc {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  margin-bottom: 16px;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
}
.card-price { color: var(--text-high); font-weight: 500; }
.card-link {
  color: var(--text-mid);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .18s;
}
.card-link:hover { color: var(--accent); }

/* CTA buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.008em;
  cursor: none;
  transition: all .18s ease;
  border: 1px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 0 0 1px var(--accent-mid),
    0 8px 24px -8px rgba(255, 59, 92, 0.55);
}
.btn-primary:hover {
  background: #FF4D6D;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.22) inset,
    0 0 0 1px var(--accent-mid),
    0 14px 36px -8px rgba(255, 59, 92, 0.7);
}
.btn-primary svg { width: 14px; height: 14px; }
.btn-secondary {
  background: transparent;
  color: var(--text-high);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
}

/* MARQUEE */
.marquee {
  position: relative; z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
  padding: 14px 0;
  width: max-content;
}
.marquee-item {
  font-family: 'Geist Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-low);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.marquee-item .dot {
  width: 4px; height: 4px;
  background: var(--text-faint);
  border-radius: 50%;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
@media (hover: hover) {
  .marquee:hover .marquee-track { animation-play-state: paused; }
  .marquee-item { transition: color .25s, transform .25s cubic-bezier(.2,.8,.2,1); }
  .marquee-item:hover { color: var(--text-high); transform: scale(1.15); }
  .marquee-item:hover .dot { background: var(--accent); }
}

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 40px;
  position: relative;
  z-index: 2;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-tag {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 28ch;
}
.footer-col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-low);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--text-mid);
  text-decoration: none;
  font-size: 14px;
  transition: color .18s;
}
.footer-col a:hover { color: var(--text-high); }
.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11.5px;
  color: var(--text-low);
}

/* ===== SCROLL REVEAL (классы вешает app.js — без JS контент всегда виден) ===== */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; }
  .reveal.is-visible {
    opacity: 1;
    animation: revealUp .9s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: var(--rd, 0ms);
  }
  @keyframes revealUp {
    from { opacity: 0; transform: translateY(26px) scale(.99); filter: blur(6px); }
    60%  { filter: blur(0); }
    to   { opacity: 1; transform: none; filter: none; }
  }
}

/* ===== MICRO-MOMENTS: cases big-num + pricing featured ===== */
@media (prefers-reduced-motion: no-preference) {
  .case-card.is-visible .big-num {
    animation: bigNumSettle 1.1s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: calc(var(--rd, 0ms) + .18s);
  }
  @keyframes bigNumSettle {
    from { opacity: 0; transform: scale(1.14); filter: blur(16px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  .price-card.featured.is-visible {
    animation:
      revealUp .9s cubic-bezier(.22, 1, .36, 1) backwards,
      featuredGlow 1.8s ease backwards;
    animation-delay: var(--rd, 0ms), calc(var(--rd, 0ms) + .5s);
  }
  @keyframes featuredGlow {
    0%   { box-shadow: 0 16px 48px -12px rgba(255, 59, 92, 0); }
    40%  { box-shadow: 0 16px 72px -8px rgba(255, 59, 92, 0.55), 0 0 0 1px rgba(255, 59, 92, 0.4); }
    100% { box-shadow: 0 16px 48px -12px rgba(255, 59, 92, 0.25); }
  }
}

/* ===== PAGE-HERO ENTRANCE (подстраницы) ===== */
@media (prefers-reduced-motion: no-preference) {
  .page-eyebrow, .page-lead {
    animation: heroRise .8s cubic-bezier(.22, 1, .36, 1) backwards;
  }
  .page-eyebrow { animation-delay: .05s; }
  .page-lead    { animation-delay: .55s; }
  .page-title .w {
    display: inline-block;
    animation: wordRise .85s cubic-bezier(.22, 1, .36, 1) backwards;
    animation-delay: calc(.14s + var(--wi, 0) * 50ms);
  }
  @keyframes heroRise {
    from { opacity: 0; transform: translateY(16px); filter: blur(4px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
  @keyframes wordRise {
    from { opacity: 0; transform: translateY(.45em); filter: blur(8px); }
    to   { opacity: 1; transform: none; filter: none; }
  }
}

/* ===== PARALLAX MOOD (JS пишет --sy; без JS всё статично) ===== */
@media (prefers-reduced-motion: no-preference) {
  body::before {
    top: -18%; bottom: -18%; /* запас, чтобы сдвиг не оголял край */
    transform: translate3d(0, max(calc(var(--sy, 0) * -0.05px), -160px), 0);
  }
  main > .page-hero {
    transform: translateY(calc(var(--sy, 0) * 0.12px));
    opacity: calc(1 - var(--sy, 0) / 900);
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav { padding: 14px 24px; }
  .page-hero, .section, .footer { padding-left: 24px; padding-right: 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; }
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
  a, button { cursor: pointer; }
}

/* ===== CARD 3D TILT + GLARE (класс .tilt вешает app.js) ===== */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .tilt.tilt,
  .tilt.tilt:hover {
    position: relative;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--card-lift, 0px));
    transition: transform .18s cubic-bezier(.2,.8,.2,1), border-color .22s, box-shadow .3s;
  }
  .tilt.tilt:hover { --card-lift: -3px; will-change: transform; }
  .tilt.tilt::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(280px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.07), transparent 65%);
    opacity: 0;
    transition: opacity .3s;
  }
  .tilt.tilt:hover::after { opacity: 1; }
}

/* ===== BORDER TRACE (бегущий градиент по рамке) ===== */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card.card:not(.accent-card):hover,
  .case-card.case-card:hover,
  .price-card.price-card:not(.featured):hover,
  .ai-card.ai-card:hover,
  .value-card.value-card:hover,
  .team-card.team-card:hover {
    border-color: transparent;
    background:
      linear-gradient(#101010, #101010) padding-box,
      conic-gradient(from var(--shine),
        rgba(255,255,255,0.10) 0%,
        rgba(255,255,255,0.10) 80%,
        rgba(255,59,92,0.85) 89%,
        #FFB3C0 92%,
        rgba(255,59,92,0.85) 95%,
        rgba(255,255,255,0.10) 100%) border-box;
    animation: border-trace 2.6s linear infinite;
  }
  @keyframes border-trace { to { --shine: 360deg; } }
}

/* ===== BTN: SHINE SWEEP + ARROW + RIPPLE ===== */
.btn, .nav-cta, .price-cta, .ai-cta { position: relative; overflow: hidden; }
.btn::after, .nav-cta::after {
  content: '';
  position: absolute; top: -2px; bottom: -2px; left: -30%;
  width: 26%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.28), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover::after, .nav-cta:hover::after { animation: btn-shine .9s cubic-bezier(.25,.6,.3,1) 1; }
  .btn svg, .price-cta svg, .ai-cta svg { transition: transform .28s cubic-bezier(.2,.8,.2,1); }
  .btn:hover svg, .price-cta:hover svg, .ai-cta:hover svg { transform: translateX(4px); }
}
@keyframes btn-shine {
  from { transform: translateX(0) skewX(-18deg); opacity: 0; }
  20%  { opacity: 1; }
  to   { transform: translateX(560%) skewX(-18deg); opacity: 0; }
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  pointer-events: none;
  animation: ripple .55s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }


/* ===== BURGER + MOBILE MENU ===== */
.nav-burger {
  display: none;
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  cursor: none;
  flex-shrink: 0;
}
.nav-burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.6px;
  background: var(--text-high);
  border-radius: 2px;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .2s, top .3s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 19.5px; }
.nav-burger span:nth-child(3) { top: 25px; }
.nav-burger.open span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 49;
  padding: 96px 28px 40px;
  background: rgba(8, 8, 10, 0.97);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: var(--text-high);
  text-decoration: none;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1);
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .10s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .20s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .25s; }
.mobile-menu.open a:nth-child(6) { transition-delay: .30s; }
.mobile-menu a.mm-cta { color: var(--accent); border-bottom: none; }
body.menu-locked { overflow: hidden; }

@media (max-width: 860px) {
  .nav-menu, .nav-link { display: none; }
  .nav-burger { display: block; }
}
@media (max-width: 560px) {
  .nav .nav-cta { display: none; }  /* CTA есть в мобильном меню */
  .logo span { white-space: nowrap; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none; }
}

/* SCROLLBAR + SELECTION */
html {
  scrollbar-width: thin;
  scrollbar-color: #26262B transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #232327;
  border: 3px solid #0A0A0A;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: #3A3A40; }
::-webkit-scrollbar-thumb:active { background: var(--accent-mid); }
::selection { background: rgba(255, 59, 92, 0.32); color: #FAFAFA; }

/* REDUCED MOTION — respect OS-level animation preference */
@media (prefers-reduced-motion: reduce) {
  .logo-mark { animation: none !important; }
  .marquee-track { animation: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
