/* ADRUSH VPN promo — Web3 / neon glass */

:root {
  --bg-deep: #06060f;
  --bg-card: rgba(18, 16, 40, 0.55);
  --stroke: rgba(168, 85, 247, 0.35);
  --cyan: #22d3ee;
  --violet: #a855f7;
  --blue: #3b82f6;
  --text: #e8e6f4;
  --muted: #9b95b8;
  --glow: 0 0 60px rgba(168, 85, 247, 0.25);
  --radius: 20px;
  --font-sans: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  /* layout */
  --wrap-pad: clamp(1.5rem, 7vw, 2.85rem);
  --section-y: clamp(2.25rem, 5vw, 4.5rem);
  --bp-nav: 1023px;
  --bp-hero-2col: 1024px;
  --bp-sm: 480px;
  --bp-md: 640px;
  --tap-min: 44px;
  /* Высота полосы шапки (примерно): панель меню начинается ниже — не пересекается с логотипом по z-index */
  --site-header-slot: clamp(3.35rem, 10vw, 4rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-deep);
  line-height: 1.6;
  overflow-x: clip;
}

img,
video {
  max-width: 100%;
  height: auto;
}

main {
  overflow-x: clip;
  position: relative;
  z-index: 0;
}

html.is-booting,
html.is-booting body {
  overflow: hidden;
  height: 100%;
}

/* Aurora mesh background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 120% 80% at 10% -20%, rgba(168, 85, 247, 0.35), transparent 50%),
    radial-gradient(ellipse 100% 60% at 90% 10%, rgba(59, 130, 246, 0.28), transparent 45%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(34, 211, 238, 0.12), transparent 50%),
    var(--bg-deep);
}

.bg-mesh::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 30% 40%, rgba(168, 85, 247, 0.2), transparent 42%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.18), transparent 40%);
  animation: meshDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshDrift {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate(4%, 3%) rotate(6deg) scale(1.08);
  }
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  animation: gridPulse 14s ease-in-out infinite;
}

@keyframes gridPulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

/* Плавающие неоновые «орбы» */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  animation: orbFloat 16s ease-in-out infinite;
}

.orb-1 {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  background: var(--violet);
  top: 10%;
  left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: var(--blue);
  bottom: 5%;
  right: -8%;
  animation-delay: -5s;
}

.orb-3 {
  width: min(30vw, 240px);
  height: min(30vw, 240px);
  background: var(--cyan);
  top: 45%;
  right: 20%;
  opacity: 0.22;
  animation-delay: -9s;
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(6%, -4%) scale(1.06);
  }
  66% {
    transform: translate(-4%, 5%) scale(0.95);
  }
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #67e8f9;
}

.wrap {
  width: min(1120px, 100%);
  max-width: 100%;
  margin-inline: auto;
  padding-left: calc(var(--wrap-pad) + env(safe-area-inset-left, 0px));
  padding-right: calc(var(--wrap-pad) + env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  /* Полупрозрачность без backdrop-filter на самом header — иначе в WebKit ломается fixed у выезжающего меню */
  background: linear-gradient(180deg, rgba(6, 6, 15, 0.58) 0%, rgba(6, 6, 15, 0.45) 100%);
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  /* Видимая шапка сразу: paused + первый кадр keyframes давали opacity:0 / уезд вверх до конца boot */
  opacity: 1;
  /* transform на шапке ломает position:fixed у выезжающего меню в WebKit — только opacity в анимации */
  overflow: visible;
}

body.nav-open .site-header {
  z-index: 200;
}

/* При открытом меню шапка всегда у верха экрана (sticky + fixed body в WebView дают «уехавшую» панель) */
@media (max-width: 1023px) {
  body.nav-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 500;
    /* Чуть плотнее поверх затемнения, но всё ещё «стекло» */
    background: linear-gradient(180deg, rgba(8, 7, 22, 0.82) 0%, rgba(6, 6, 15, 0.74) 100%);
  }
}

html.is-content-ready .site-header {
  animation: headerDrop 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes headerDrop {
  from {
    opacity: 0.82;
  }
  to {
    opacity: 1;
  }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  /* НЕ использовать padding: 0.75rem 0 — это сбрасывает padding-inline у .wrap и контент прилипает к краям */
  padding-block: 0.75rem;
  flex-wrap: nowrap;
  width: 100%;
  min-width: 0;
}

/* Не используем display:contents — в WebView/Telegram ломается порядок flex и «выпадают» ссылки меню в шапку */
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

.header-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  flex: 1 1 auto;
  min-width: 0;
}

/* Бургер: только мобильные / узкие экраны — glass + неон в духе лендинга */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(168, 85, 247, 0.28) 0%, transparent 42%),
    linear-gradient(315deg, rgba(34, 211, 238, 0.14) 0%, transparent 48%),
    linear-gradient(180deg, rgba(28, 24, 52, 0.97), rgba(10, 9, 22, 0.98));
  color: #fff;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease,
    box-shadow 0.28s ease;
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.35),
    0 4px 20px rgba(0, 0, 0, 0.45),
    0 0 28px rgba(168, 85, 247, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 5;
}

/* Внутренний блик (без z-index: -1 — иначе часто уходит под заливку) */
.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 13px;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, transparent 46%);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.28s ease;
}

.nav-toggle:hover {
  border-color: rgba(192, 132, 252, 0.45);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(168, 85, 247, 0.55),
    0 8px 28px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(168, 85, 247, 0.38),
    0 0 60px rgba(34, 211, 238, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.nav-toggle:hover::before {
  opacity: 0.85;
}

.nav-toggle:active {
  transform: translateY(0) scale(0.96);
}

.nav-toggle[aria-expanded="true"] {
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow:
    0 0 0 1px rgba(34, 211, 238, 0.48),
    0 4px 24px rgba(0, 0, 0, 0.5),
    0 0 36px rgba(34, 211, 238, 0.28),
    0 0 52px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.nav-toggle[aria-expanded="true"]::before {
  opacity: 0.45;
  background: linear-gradient(215deg, rgba(34, 211, 238, 0.2) 0%, transparent 50%);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 1.05rem;
  min-height: calc(3 * 2px + 2 * 4px);
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 1.05rem;
  max-width: 100%;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #f4f2ff 0%, #e0e7ff 45%, #7de3f4 100%);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.35);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease;
  transform-origin: 50% 50%;
}

/* Крестик: средняя линия вне потока — иначе два flex-gap смещают центр; translateY = (h + g) / 2 при h=2px, g=4px */
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  box-shadow: none;
  transform: translate(-50%, -50%);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1),
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  background: #f2f0fb;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.28);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-backdrop {
  display: none;
}

@media (max-width: 1023px) {
  .header-inner {
    flex-wrap: nowrap;
    position: relative;
    z-index: 0;
    justify-content: flex-start;
  }

  .header-bar {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
    z-index: 30;
  }

  .nav-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    /* Ниже строки шапки: логотип и крестик остаются над затемнением */
    top: calc(var(--site-header-slot) + env(safe-area-inset-top, 0px));
    z-index: 10;
    background: rgba(2, 2, 10, 0.78);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.nav-open .nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header-panel {
    position: fixed;
    z-index: 20;
    top: calc(var(--site-header-slot) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    left: auto;
    width: min(21rem, calc(100% - 1.5rem));
    max-width: calc(100vw - 1rem);
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 1rem 1.15rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(12, 10, 28, 0.99), rgba(5, 5, 14, 0.995));
    border-left: 1px solid rgba(168, 85, 247, 0.28);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Закрыто: убрать с экрана и из потока событий */
    transform: translate3d(110%, 0, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .header-panel {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.15rem;
    width: 100%;
    padding: 0.35rem 0 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links a {
    padding: 0.85rem 0.65rem;
    font-size: 1.03rem;
    border-radius: 12px;
    min-height: var(--tap-min);
    display: flex;
    align-items: center;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(168, 85, 247, 0.12);
  }

  .header-cta {
    flex-direction: column;
    width: 100%;
    padding-top: 1.1rem;
    gap: 0.6rem;
    flex-wrap: nowrap;
  }

  .header-cta .btn {
    width: 100%;
    justify-content: center;
    min-height: var(--tap-min);
  }
}

body.nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

@media (min-width: 1024px) {
  .header-inner {
    justify-content: flex-start;
  }

  .header-bar {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-start;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav-backdrop {
    display: none !important;
  }

  .header-panel {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    max-width: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    overflow: visible;
    flex-direction: row;
  }

  body.nav-open {
    overflow: auto;
  }
}

.logo {
  font-weight: 800;
  font-size: clamp(1.15rem, 3.5vw, 1.35rem);
  letter-spacing: -0.03em;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-shrink: 0;
}

.logo span:first-child {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo span:last-child {
  color: #fff;
}

.logo--hero-fallback {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
  justify-content: center;
}

.nav-links a {
  position: relative;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--text);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
  }

  .nav-links a {
    font-size: 0.92rem;
  }

  .nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--violet), var(--cyan));
    transition: width 0.35s ease;
  }

  .nav-links a:hover::after,
  .nav-links a:focus-visible::after {
    width: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .nav-links {
    gap: 0.45rem 0.85rem;
  }

  .nav-links a {
    font-size: 0.86rem;
  }

  .header-cta .btn {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.88rem;
  }
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
  max-width: 100%;
}

@media (max-width: 1023px) {
  .btn {
    min-height: var(--tap-min);
  }
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), #6366f1, var(--blue));
  color: #fff;
  box-shadow: var(--glow), 0 4px 24px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 0 80px rgba(168, 85, 247, 0.35), 0 8px 32px rgba(59, 130, 246, 0.45);
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-1px);
  }
}

.btn-shine {
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 45%,
    transparent 55%
  );
  transform: translateX(-120%);
  animation: btnShine 3.2s ease-in-out infinite;
}

@keyframes btnShine {
  0% {
    transform: translateX(-120%);
  }
  40%,
  100% {
    transform: translateX(120%);
  }
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--stroke);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(168, 85, 247, 0.55);
  background: rgba(168, 85, 247, 0.1);
  color: #fff;
}

/* Hero — только вертикаль, иначе padding: … 0 … сбрасывает боковые поля .wrap на section.hero.wrap */
.hero {
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
}

.hero-grid > * {
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 4.5vw, 3.5rem);
    align-items: center;
  }

  /* Узкая мера строки + карточка крупнее и не «теряется» справа */
  .hero-grid > div:first-child {
    max-width: min(36rem, 100%);
    justify-self: start;
  }

  .hero-grid > div:last-child {
    justify-self: center;
    width: 100%;
    max-width: min(28rem, 100%);
  }

  .hero h1 {
    font-size: clamp(2rem, 2.8vw + 1rem, 3.05rem);
  }

  .hero-lead {
    max-width: 48ch;
    font-size: clamp(1rem, 1.1vw + 0.85rem, 1.08rem);
  }

  .hero-visual-inner:not(.has-banner) {
    min-height: clamp(260px, 28vw, 400px);
  }

  .hero .hero-visual {
    box-shadow: 0 0 48px rgba(168, 85, 247, 0.2), 0 0 96px rgba(59, 130, 246, 0.08);
  }

  .hero-meta {
    margin-top: 1.35rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    max-width: min(36rem, 100%);
  }

  /* Меньше «неонового» залива на больших экранах */
  .hero .btn-primary {
    box-shadow: 0 0 28px rgba(168, 85, 247, 0.22), 0 4px 18px rgba(59, 130, 246, 0.28);
  }

  .hero .btn-primary:hover {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.28), 0 8px 26px rgba(59, 130, 246, 0.35);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.35);
  animation: badgeGlow 2.8s ease-in-out infinite;
}

@keyframes badgeGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.2);
  }
  50% {
    box-shadow: 0 0 24px 2px rgba(34, 211, 238, 0.25);
  }
}

.anim-float {
  animation: floatY 5s ease-in-out infinite;
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.hero h1 {
  font-size: clamp(1.65rem, 6vw + 0.5rem, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}

.gradient-text {
  background: linear-gradient(135deg, #c084fc, #60a5fa, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-text-anim {
  background-size: 200% auto;
  animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.hero-title-block .hero-line-2 {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px);
}

html.is-content-ready .hero-title-block .hero-line-2 {
  animation: lineIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-hero-card {
  opacity: 0;
  transform: perspective(900px) rotateY(-8deg) translateX(24px);
}

html.is-content-ready .anim-hero-card {
  animation: heroCardIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes heroCardIn {
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0) translateX(0);
  }
}

.hero-lead {
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 1.5rem;
  line-height: 1.55;
}

.hero-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 479px) {
  .hero-cta .btn {
    width: 100%;
  }
}

@media (min-width: 480px) and (max-width: 1023px) {
  .hero-cta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-cta .btn:first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
  }
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 0.5rem;
  font-size: clamp(0.8rem, 2.5vw, 0.88rem);
  color: var(--muted);
}

@media (min-width: 640px) {
  .hero-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.35rem;
    align-items: baseline;
    text-align: left;
    justify-content: flex-start;
  }
}

.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero visual card */
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.5), rgba(59, 130, 246, 0.25), transparent);
  box-shadow: var(--glow);
}

.hero-visual-inner {
  border-radius: calc(var(--radius) - 1px);
  background: linear-gradient(165deg, rgba(22, 20, 45, 0.95), rgba(8, 8, 20, 0.98));
  overflow: hidden;
}

/* Fallback без картинки — flex и минимальная высота */
.hero-visual-inner:not(.has-banner) {
  min-height: clamp(200px, 42vw, 320px);
  display: flex;
  flex-direction: column;
}

/* С баннером — без flex (иначе img может растягиваться по высоте); фикс. пропорции OG 1200×630 */
.hero-visual-inner.has-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 630;
  max-height: min(52vh, 440px);
  margin-inline: auto;
}

.hero-banner-img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual-inner.has-banner .hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner-fallback {
  padding: 2.5rem 1.5rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-shield {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: radial-gradient(circle at 30% 20%, rgba(168, 85, 247, 0.4), transparent 55%),
    linear-gradient(145deg, rgba(30, 27, 60, 0.9), rgba(10, 10, 24, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: shieldPulse 3.5s ease-in-out infinite;
}

@keyframes shieldPulse {
  0%,
  100% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }
  50% {
    box-shadow: 0 0 56px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

.has-banner .hero-banner-fallback {
  display: none;
}

.hero-visual-inner:not(.has-banner) .hero-banner-img {
  display: none;
}

/* Sections — только блоковая ось: иначе shorthand с «0» по горизонтали затирает padding .wrap */
section:not(.hero) {
  padding-block: var(--section-y);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--violet);
  margin-bottom: 0.5rem;
}

section h2 {
  font-size: clamp(1.35rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

@media (min-width: 520px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }
}

/* Блок «Преимущества»: плотнее на телефоне — две колонки и компактные отступы */
@media (max-width: 639px) {
  #advantages .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  #advantages .card {
    padding: 0.7rem 0.55rem;
  }

  #advantages .card-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    margin-bottom: 0.45rem;
    border-radius: 10px;
  }

  #advantages .card h3 {
    font-size: 0.86rem;
    margin-bottom: 0.3rem;
    line-height: 1.2;
  }

  #advantages .card p {
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

.card {
  position: relative;
  padding: clamp(1.1rem, 3.2vw, 1.5rem);
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(168, 85, 247, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: rgba(168, 85, 247, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(168, 85, 247, 0.15);
  }

  .card:hover .card-icon {
    transform: scale(1.06) rotate(-3deg);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.35);
  }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.25);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1rem, 2.6vw, 1.1rem);
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.card p {
  margin: 0;
  font-size: clamp(0.86rem, 2.3vw, 0.92rem);
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* SEO article */
.article-panel {
  border-radius: var(--radius);
  padding: clamp(1rem, 3.8vw, 2.5rem);
  background: rgba(12, 11, 28, 0.6);
  border: 1px solid rgba(168, 85, 247, 0.2);
  overflow-wrap: anywhere;
}

.article-panel h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.02rem, 2.8vw, 1.15rem);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.article-panel h3:first-child {
  margin-top: 0;
}

.article-panel p,
.article-panel li {
  color: var(--muted);
  font-size: 0.95rem;
}

.article-panel a {
  overflow-wrap: anywhere;
}

.article-panel ul {
  padding-left: 1.25rem;
}

.article-panel li {
  margin-bottom: 0.35rem;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(1.75rem, 4.5vw, 4rem) clamp(1rem, 3vw, 2rem);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(59, 130, 246, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 120deg, transparent, rgba(168, 85, 247, 0.12), transparent, rgba(59, 130, 246, 0.1), transparent);
  animation: ctaSpin 14s linear infinite;
  pointer-events: none;
}

.cta-band h2,
.cta-band p,
.cta-band .cta-row {
  position: relative;
  z-index: 1;
}

@keyframes ctaSpin {
  to {
    transform: rotate(360deg);
  }
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  color: var(--muted);
  max-width: min(48ch, 100%);
  margin: 0 auto 1.5rem;
  padding-inline: 0.25rem;
  line-height: 1.55;
}

.cta-row {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.65rem;
  justify-content: center;
  align-items: stretch;
  max-width: 22rem;
  margin-inline: auto;
}

@media (min-width: 560px) {
  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
    max-width: none;
    align-items: center;
    justify-content: center;
  }

  .cta-row .btn {
    flex: 1 1 auto;
    min-width: min(100%, 11rem);
    width: auto;
  }
}

/* Footer — glass / неон в духе лендинга */
.site-footer {
  position: relative;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(2rem, 4vw, 2.75rem);
  font-size: 0.9rem;
  color: var(--muted);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(168, 85, 247, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(8, 7, 18, 0.98), rgba(4, 4, 12, 1));
  border-top: 1px solid rgba(168, 85, 247, 0.18);
  overflow: hidden;
}

.footer-top-accent {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(42rem, 88%);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(168, 85, 247, 0.75), rgba(34, 211, 238, 0.45), transparent);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.35);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: clamp(1.1rem, 3vw, 1.65rem);
  grid-template-columns: 1fr;
  align-items: stretch;
}

.footer-col {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
}

.footer-col--brand {
  text-align: center;
  padding: clamp(0.35rem, 2vw, 0.75rem) 0 clamp(0.5rem, 2vw, 1rem);
}

.footer-brand-mark {
  margin: 0 0 0.55rem;
  font-weight: 800;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.footer-brand-a {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-brand-b {
  color: #fff;
  margin-left: 0.2em;
}

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #b8b3d0;
  max-width: 22rem;
  margin-inline: auto;
}

.footer-card {
  padding: clamp(1.1rem, 3vw, 1.35rem) clamp(1.15rem, 3.5vw, 1.5rem);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(16, 14, 36, 0.55);
  border: 1px solid rgba(168, 85, 247, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, 0 12px 40px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.footer-card:hover {
  border-color: rgba(168, 85, 247, 0.38);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset, 0 16px 48px rgba(0, 0, 0, 0.42), 0 0 32px rgba(168, 85, 247, 0.12);
  transform: translateY(-1px);
}

.footer-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--violet);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.footer-links a {
  display: flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.2rem 0.65rem;
  margin: 0 -0.65rem;
  border-radius: 10px;
  color: #d4d0ea;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  background: rgba(168, 85, 247, 0.12);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.footer-legal-wrap {
  margin-top: clamp(1.75rem, 4vw, 2.25rem);
  padding-top: clamp(1.25rem, 3vw, 1.65rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-legal {
  margin: 0;
  text-align: center;
  font-size: 0.78rem;
  color: #8a849e;
  max-width: 38rem;
  margin-inline: auto;
  line-height: 1.55;
}

@media (min-width: 520px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-col--brand {
    grid-column: 1 / -1;
    max-width: 32rem;
  }
}

@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: start;
  }

  .footer-col--brand {
    grid-column: auto;
    text-align: left;
    margin-inline: 0;
    max-width: none;
    padding-right: 0.5rem;
  }

  .footer-brand-mark {
    text-align: left;
  }

  .footer-tagline {
    margin-inline: 0;
    text-align: left;
  }

  .footer-col {
    margin-inline: 0;
    max-width: none;
  }
}

/* Экран первой загрузки */
.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 80% 70% at 50% 40%, rgba(30, 27, 70, 0.95), #04040c);
  transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.boot.boot--exit {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.boot-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.12) 2px,
    rgba(0, 0, 0, 0.12) 3px
  );
  pointer-events: none;
  opacity: 0.4;
}

.boot-glow {
  position: absolute;
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 65%);
  filter: blur(40px);
  animation: bootGlow 2.4s ease-in-out infinite alternate;
}

@keyframes bootGlow {
  from {
    opacity: 0.6;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

.boot-inner {
  position: relative;
  text-align: center;
  padding: 2rem;
  max-width: 360px;
}

.boot-logo {
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
  animation: bootLogoPop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.boot-logo-a {
  background: linear-gradient(135deg, #c084fc, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.boot-logo-b {
  color: #fff;
  margin-left: 0.25rem;
}

@keyframes bootLogoPop {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(12px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
  }
}

.boot-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.boot-bar-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.6);
  transition: width 0.35s ease-out;
}

.boot-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.boot-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-right: 0.35rem;
  vertical-align: middle;
  animation: bootDot 1s ease-in-out infinite;
}

@keyframes bootDot {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 12px var(--cyan);
  }
}

/* Motion — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .btn,
  .card-icon,
  .footer-card {
    transition: none !important;
  }

  .footer-card:hover {
    transform: none !important;
  }

  .bg-mesh::after,
  .bg-grid,
  .orb,
  .boot-glow,
  .boot-dot,
  .hero-badge,
  .anim-float,
  .gradient-text-anim,
  .btn-shine::after,
  .cta-band::before,
  .hero-shield {
    animation: none !important;
  }

  .site-header,
  html.is-content-ready .site-header {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .anim-hero-card {
    opacity: 1;
    transform: none;
  }

  .hero-title-block .hero-line-2 {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .boot {
    display: none;
  }

  .header-panel,
  .nav-backdrop {
    transition: none !important;
  }

  .nav-toggle-line {
    transition: none !important;
  }

  .nav-toggle {
    transition: none !important;
  }

  .nav-toggle:hover,
  .nav-toggle:active {
    transform: none !important;
  }

  html.is-booting,
  html.is-booting body {
    overflow: auto;
    height: auto;
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(4px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

#advantages .card.reveal:nth-child(1) {
  transition-delay: 0.03s;
}
#advantages .card.reveal:nth-child(2) {
  transition-delay: 0.07s;
}
#advantages .card.reveal:nth-child(3) {
  transition-delay: 0.11s;
}
#advantages .card.reveal:nth-child(4) {
  transition-delay: 0.15s;
}
#advantages .card.reveal:nth-child(5) {
  transition-delay: 0.19s;
}
#advantages .card.reveal:nth-child(6) {
  transition-delay: 0.23s;
}
#advantages .card.reveal:nth-child(7) {
  transition-delay: 0.27s;
}
#advantages .card.reveal:nth-child(8) {
  transition-delay: 0.31s;
}
#advantages .card.reveal:nth-child(9) {
  transition-delay: 0.35s;
}

#how .card.reveal:nth-child(1) {
  transition-delay: 0.05s;
}
#how .card.reveal:nth-child(2) {
  transition-delay: 0.12s;
}
#how .card.reveal:nth-child(3) {
  transition-delay: 0.19s;
}
