/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }

/* ===== TOKENS ===== */
:root {
  --brand: #39FF69;
  --bg: #0A0A0A;
  --fg: #EDEDED;
  --mut: #9CA3AF;
  --maxw: 1200px;

  /* unified header element height for vertical alignment */
  --nav-h: 44px;
  --nav-pad-x: 14px;
  --nav-radius: 9999px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== LAYOUT ===== */
.container { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(2rem, 3vw, 4rem); }

.row { display:flex; flex-wrap:wrap; }
.center { align-items:center; }
.between { justify-content:space-between; }

/* ===== TYPO ===== */
h1, h2, h3, h4 { margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.8rem, 1.2rem + 2.8vw, 3rem); line-height:1.1; }
h2 { font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); line-height:1.2; }
p  { margin: 0 0 1rem; color: var(--mut); }

/* ===== HEADER ===== */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 50;
  padding: 0.5rem 0; /* a bit slimmer */
  transition: background .3s ease, backdrop-filter .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.transparent { background: transparent; }
.site-header.scrolled {
  background: rgba(0,0,0,.8);
  backdrop-filter: blur(6px);
  border-bottom-color: rgba(255,255,255,.1);
}

.brand { font-weight: 800; font-size: 1.2rem; color: var(--fg); }
.brand .accent { color: var(--brand); }

.nav {
  display:flex;
  align-items:center;        /* key: vertical center */
  gap: 1rem;
}

/* Links in header: same height as CTA for perfect baseline */
.nav-link{
  display:inline-flex;
  align-items:center;
  height: var(--nav-h);
  padding: 0 var(--nav-pad-x);
  border-radius: var(--nav-radius);
  font-weight: 500;
  font-size: .95rem;
  color: var(--fg);
  transition: color .2s, background .2s;
}
.nav-link:hover{ color: var(--brand); background: rgba(255,255,255,.06); }

/* CTA in header */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  height: var(--nav-h);
  padding: 0 calc(var(--nav-pad-x) * 1.4);
  border-radius: var(--nav-radius);
  font-weight: 600;
  transition: .2s;
}
.nav-cta{ background: var(--brand); color:#000; }
.nav-cta:hover{ background:#5dff82; }

/* burger (mobile) */
.burger { display:none; background:none; border:0; font-size:1.5rem; color:var(--fg); cursor:pointer; }
@media (max-width: 768px) {
  .nav { gap:.6rem; }
  .nav-link { height:auto; padding:.4rem .6rem; }
  .nav-cta { height:auto; padding:.5rem .8rem; }
  .burger { display:block; margin-left:.5rem; }
}

/* ===== HERO VIDEO ===== */
.hero-video {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden; text-align: center;
}
.hero-video__bg { position:absolute; inset:0; z-index:0; }
.hero-video__bg video {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit: cover; object-position: center 40%; z-index:0;
}
.hero-video__overlay {
  position:absolute; inset:0;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,.25));
}
.hero-video__content { position:relative; z-index:1; }

/* Logo (bigger) */
.hero-logo{
  width: min(360px, 50vw);
  margin: 0 auto 1.2rem;
  filter: drop-shadow(0 2px 16px rgba(57,255,105,.25));
  image-rendering: crisp-edges;
}

/* Slogan + neon button */
.hero-slogan{
  font-family: "GT America Bold", sans-serif;
  font-size: clamp(0.5rem, 0.5rem + 2vw, 1.5rem);
  font-weight: 700; text-transform: none; line-height: 1.15;
  margin: 0 0 1.2rem;
  text-shadow: 0 2px 24px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(16px); animation: fadeUp .9s .1s ease forwards;
}
.hero-slogan span{ color: var(--brand); }

.btn--neon{
  font-family: 'Inter', sans-serif;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 9999px;
  padding: .9rem 1.6rem;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.15), 0 0 0 0 rgba(57,255,105,0);
  backdrop-filter: blur(4px);
  transition: transform .12s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn--neon:hover{
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 2px rgba(57,255,105,.35), 0 0 22px rgba(57,255,105,.55);
  background: rgba(57,255,105,.15);
}

/* Animations */
@keyframes fadeUp { to{ opacity:1; transform:none } }

/* ===== MODAL ===== */
.modal[hidden] { display:none !important; }
.modal { position:fixed; inset:0; z-index:1000; display:grid; place-items:center; }
.modal__backdrop { position:absolute; inset:0; background:rgba(0,0,0,.7); }
.modal__dialog {
  position:relative; width:min(960px, 92vw);
  background:#000; border:1px solid rgba(255,255,255,.15);
  border-radius:12px; overflow:hidden; box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.modal__close {
  position:absolute; top:8px; right:8px;
  background:rgba(255,255,255,.08); color:#fff;
  border:1px solid rgba(255,255,255,.2); border-radius:8px;
  padding:.35rem .6rem; cursor:pointer;
}
.modal__video iframe { display:block; width:100%; aspect-ratio:16/9; }

/* ==== MOBILE FIXES (<= 480px) ==== */
@media (max-width: 480px){

  /* высота героя учитывает мобильные панели */
  .hero-video{ min-height: 100svh; }

  /* логотип поменьше */
  .hero-logo{
    width: min(180px, 56vw);
    margin-bottom: .8rem;
  }

  /* слоган заметно компактнее */
  .hero-slogan{
    /* было: clamp(2rem, 1.2rem + 4.5vw, 4rem) */
    font-size: clamp(1.25rem, 0.9rem + 2.2vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: .9rem;
    text-align: center;
  }

  /* кнопка компактнее */
  .btn--neon{
    padding: .7rem 1.1rem;
    font-size: .95rem;
    border-width: 1.8px;
    border-radius: 9999px;
  }

  /* чуть сильнее затемним фон для читаемости */
  .hero-video__overlay{ background: linear-gradient(to top, rgba(0,0,0,.7), rgba(0,0,0,.35)); }

  /* шапка пониже, ссылки/кнопка выровнены по центру */
  :root{ --nav-h: 40px; --nav-pad-x: 10px; }
}

/* === Triple Marquee (no crop, repeat-x) === */
.triple-marquee{
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .1rem;                 /* компактнее расстояние между линиями */
  padding-block: .20rem;
  background: #000;
  max-height: 26vh;           /* суммарно ≈ 1/4 экрана */
}

.tm-row{
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.05);
}
.tm-row:first-child{ border-top: 0; }

.tm-bg{
  position: absolute; inset: 0;
  background-repeat: repeat-x;
  background-position: 0 50%;
  background-size: auto 100%; /* масштаб по высоте, ширина пропорционально -> без обрезки */
  animation: tm-scroll var(--speed) linear infinite;
  will-change: background-position;
}

/* Высоты/скорости (адаптивно через vh, плюс кламп) */
.tm-mid{ --h: clamp(120px, 12vh, 220px); --speed: 36s; height: var(--h); } /* самая читаемая и самая медленная */
.tm-top{ --h: clamp(26px, 3.0vh, 56px);  --speed: 28s; height: var(--h); } /* заметно меньше и медленнее */
.tm-bot{ --h: clamp(40px, 4.2vh, 88px);  --speed: 20s; height: var(--h); } /* меньше и самая быстрая */

/* направление движения */
.tm-top .tm-bg{ animation-direction: reverse; } /* верхняя едет в обратную сторону */
.tm-mid .tm-bg{ animation-direction: reverse;  }
.tm-bot .tm-bg{ animation-direction: reverse;  }

@keyframes tm-scroll{
  from { background-position: 0 50%; }
  to   { background-position: -100% 50%; }
}

/* Reduced motion: статично */
@media (prefers-reduced-motion: reduce){
  .tm-bg{ animation: none; }
}

/* Небольшая подстройка на телефонах: ещё компактнее общий блок и зазоры */
@media (max-width: 480px){
  .triple-marquee{ gap:.15rem; max-height: 28vh; }
  .tm-top{ --h: clamp(22px, 2.8vh, 44px); }
  .tm-bot{ --h: clamp(34px, 3.8vh, 72px); }
}

/* === Contact Teaser === */
.contact-teaser{
  position: relative;
  isolation: isolate;
  padding-block: clamp(28px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(0,0,0,.0) 0%, rgba(0,0,0,.35) 100%);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.contact-teaser__inner{
  display: grid;
  gap: .9rem;
  justify-items: center;
  text-align: center;
}

.contact-teaser__title{
  font-family: "GT America Bold", sans-serif; /* акцентный шрифт */
  font-weight: 700;
  font-size: clamp(1.25rem, .9rem + 2.5vw, 2rem);
  line-height: 1.15;
  margin: 0;
}
.contact-teaser__title span{ color: var(--brand); }

.contact-teaser__text{
  color: var(--mut);
  margin: 0 0 .4rem;
  font-size: clamp(.9rem, .8rem + .4vw, 1rem);
}

/* Telegram neon button */
.btn--tg{
  --ring: rgba(57,255,105,.45);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .9rem 1.4rem;
  border-radius: 9999px;
  border: 2px solid var(--brand);
  color: #000;
  background: var(--brand);
  font-family: "GT America Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: .02em;
  box-shadow: 0 0 0 0 var(--ring);
  transition: transform .12s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn--tg:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 22px var(--ring);
}
.btn--tg:active{
  transform: translateY(0);
}
.btn__icon{
  width: 1.15em; height: 1.15em;
  display: inline-block;
}

/* мобильная подстройка */
@media (max-width: 480px){
  .contact-teaser{ padding-block: 24px; }
  .btn--tg{ padding: .8rem 1.1rem; }
}

/* Contact teaser with Matrix bg */
.contact-teaser{
  position: relative;
  isolation: isolate;
  padding-block: clamp(36px, 6vw, 72px);
  overflow: hidden;
}
#matrix-bg{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}
.contact-teaser__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.6); /* затемняем для читаемости */
  z-index: 1;
}
.contact-teaser__inner{
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

/* === Neon Divider (thin capsule with live grid) === */
.neon-divider{
  position: relative;
  width: 100%;
  height: 42px;                 /* толщина линии */
  margin-block: 8px 10px;       /* компактные отступы */
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: #000;
  overflow: hidden;
  isolation: isolate;
}

/* canvas с «квадратиками» */
#neon-grid{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* стеклянная выпуклость и затемнение краёв + слабый неоновый подсвет */
.neon-divider__glass{
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* мягкая «выпуклость» (vignette) */
  background:
    radial-gradient(120% 180% at 50% 50%, rgba(57,255,105,.25), rgba(57,255,105,0) 60%) /* слабый зелёный объем */,
    linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 70%, rgba(0,0,0,.35)); /* затемнение краёв */
  box-shadow:
    inset 0 0 18px rgba(57,255,105,.25),     /* лёгкий glow изнутри */
    inset 0 0 0 1px rgba(57,255,105,.18);    /* тонкий неоновый кант */
  border-radius: 10px;
}

/* компактнее на мобилках */
@media (max-width: 480px){
  .neon-divider{ height: 56px; margin-block: 8px 18px; }
}

/* ===== Services & Cases — SECTION + TITLE ================== */

.svc{
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 1rem 1rem;
}

/* тонкие диагонали */
.svc::before{
  content:"";
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(
      -28deg,
      rgba(57,255,105,.05) 0 2px,
      transparent           2px 18px
    );
  animation: svcField 26s linear infinite;
  will-change: background-position;
}

/* мягкие «лучи» без швов */
.svc::after{
  content:"";
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    linear-gradient(-28deg, transparent 20%, rgba(57,255,105,.12) 50%, transparent 80%),
    linear-gradient(-28deg, transparent 10%, rgba(57,255,105,.08) 45%, transparent 90%);
  background-size: 400% 100%, 500% 100%;
  background-repeat: no-repeat;
  opacity:.35;
  animation: svcBeamA 40s linear infinite, svcBeamB 60s linear infinite -20s;
}

@keyframes svcField{
  from { background-position: 0 0; }
  to   { background-position: -800px 0; }
}
@keyframes svcBeamA{
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}
@keyframes svcBeamB{
  from { background-position: 200% 0; }
  to   { background-position: 0% 0; }
}

@media (prefers-reduced-motion: reduce){
  .svc::before, .svc::after{ animation:none; }
}

/* --- заголовок и подзаголовок --- */
.svc-header{
  position: relative;
  z-index: 2;            /* поверх фона */
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.neon-title{
  position: relative;    /* важно для clip блика */
  display: block;      /* заголовок занимает всю ширину родителя */
  width: 100%;         /* растянуть */
  overflow: hidden;      /* блик не выходит за текст */
  margin: 0 0 .75rem;
  font-family: "GT America Bold", sans-serif;
  font-size: clamp(1.8rem, 1rem + 3vw, 3rem);
  line-height: 1.1;
  color: #EFFFF3;
  text-shadow:
    0 0  4px rgba(57,255,105,.55),
    0 0 14px rgba(57,255,105,.35),
    0 0 28px rgba(57,255,105,.25);
  animation: neonPulse 3.6s ease-in-out infinite;
}
@keyframes neonPulse{
  0%,100%{ text-shadow: 0 0 4px rgba(57,255,105,.45), 0 0 12px rgba(57,255,105,.28), 0 0 26px rgba(57,255,105,.18); }
  50%    { text-shadow: 0 0 6px rgba(57,255,105,.65), 0 0 18px rgba(57,255,105,.40), 0 0 36px rgba(57,255,105,.28); }
}

.neon-title__glint{
  position:absolute; inset:0;
  pointer-events:none;
  background: linear-gradient(100deg, transparent 40%, rgba(57,255,105,.25) 50%, transparent 60%);
  mix-blend-mode: screen;
  transform: skewX(-18deg) translateX(-140%);
  animation: neonGlint 4.8s ease-in-out infinite 1s;
}
@keyframes neonGlint{
  0%   { transform: skewX(-18deg) translateX(-140%); opacity:0; }
  12%  { opacity:.7; }
  38%  { transform: skewX(-18deg) translateX(140%);  opacity:0; }
  100% { transform: skewX(-18deg) translateX(140%);  opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .neon-title, .neon-title__glint{ animation:none; }
}

.svc-header p{
  position: relative;
  z-index: 2;
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #bbb;
}

/* ===== Service cards ====================================== */

.service{
  position: relative;               /* свой контекст поверх фона */
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;       /* мобилка по вертикали */
  gap: 1.5rem;
  margin: 0 auto 3rem;
  max-width: 1200px;
  padding: 1.5rem;
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  transition: box-shadow .3s ease, transform .3s ease;
}
.service:hover{
  box-shadow: 0 0 18px rgba(57,255,105,.5);
  transform: translateY(-2px);
}

/* важный фикс для грида — чтобы контент не «распирал» колонки */
.service__content,
.service__media{ min-width: 0; }

.service__content{ order: 1; }
.service__media{
  order: 2;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  z-index: 2;
}
.service__media iframe{
  display:block;
  width:100%;
  height:auto;
  aspect-ratio:16/9;
  border:none;
  position:relative;
  z-index:3;
  pointer-events:auto;            /* клики по видео гарантированы */
}

/* Desktop: два столбца; чётные инвертируем */
@media (min-width: 960px){
  .service{
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    align-items: center;
  }
  .service:nth-child(even) .service__content{ order:2; }
  .service:nth-child(even) .service__media{   order:1; }
}

/* Placeholder (когда нет видео) */
.service__media--placeholder{
  display:grid;
  place-items:center;
  min-height: clamp(160px, 30vw, 240px);
  background: rgba(57,255,105,.1);
}
.soon span{
  color: var(--brand);
  font-family:"GT America Bold", sans-serif;
  font-size: 1.2rem;
}

/* Типографика карточек */
.service__title{
  font-family:"GT America Bold", sans-serif;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2rem);
  margin: 0 0 .4rem;
}
.service__lead{
  font-size: 1.05rem;
  margin: 0 0 1rem;
  color:#EDEDED;
}
.service__bullets{
  list-style:none;
  padding:0;
  margin:0 0 1rem;
  display:grid;
  gap:.35rem;
}
.service__bullets li{
  padding-left:1rem;
  position:relative;
  color: var(--mut);
}
.service__bullets li::before{
  content:"";
  position:absolute;
  left:0; top:.55em;
  width:.5rem; height:.5rem;
  border-radius:2px;
  background: var(--brand);
  box-shadow:0 0 6px rgba(57,255,105,.6);
}
.service__case{
  border-top:1px dashed rgba(255,255,255,.15);
  padding-top:.6rem;
}
.service__case-title{
  font-size:.9rem;
  text-transform:uppercase;
  color:var(--brand);
  margin:0 0 .25rem;
}

/* плавный скролл по якорям */
html {
  scroll-behavior: smooth;
}

/* отступ сверху для секций, чтобы хедер не перекрывал */
section {
  scroll-margin-top: 96px; /* подгони под высоту твоего хедера */
}




/* === Process Section === */
.process{
  position: relative;
  isolation: isolate;
  padding: 4rem 1rem;
  background: #000;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  scroll-margin-top: 96px; /* якорь не перекрывается хедером */
}

.process__header{
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 0 auto 2.25rem;
  max-width: 920px;
}
.process__header .neon-title{
  margin: 0 0 .6rem;
}
.process__header p{
  color: var(--mut);
  margin: 0 auto;
  max-width: 720px;
  font-size: 1.05rem;
}

/* Grid: 2x3 на десктопе, 1x6 на мобиле */
.process__grid{
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 18px);
  max-width: 1200px;
}

@media (min-width: 860px){
  .process__grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: clamp(16px, 1.6vw, 22px);
  }
}

/* Step card */
.step{
  position: relative;
  min-width: 0;
  padding: clamp(14px, 2.2vw, 20px);
  border-radius: 14px;
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow .25s ease, transform .25s ease, background .25s ease;
}
.step:hover{
  box-shadow: 0 0 18px rgba(57,255,105,.35), inset 0 0 0 1px rgba(57,255,105,.35);
  transform: translateY(-2px);
  background: rgba(57,255,105,.03);
}

/* Header line in card */
.step__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}
.step__num{
  font-family: "GT America Bold", sans-serif;
  color: #EFFFF3;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .95rem;
}
.step__eta{
  display: inline-block;
  font-size: .8rem;
  line-height: 1;
  color: #0A0A0A;
  background: var(--brand);
  padding: .35rem .5rem;
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(57,255,105,.45);
}

/* Titles & text */
.step__title{
  font-family: "GT America Bold", sans-serif;
  font-size: clamp(1.05rem, .95rem + .6vw, 1.25rem);
  margin: .2rem 0 .25rem;
  color: #fff;
}
.step__text{
  color: var(--mut);
  margin: 0;
  font-size: .98rem;
  line-height: 1.5;
}

/* лёгкая сетка-линия позади (очень деликатная) */
.process::before{
  content:"";
  position:absolute; inset:0;
  z-index:0;
  pointer-events:none;
  background:
    repeating-linear-gradient(0deg, rgba(57,255,105,.035) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(57,255,105,.035) 0 1px, transparent 1px 22px);
  opacity:.35;
}

/* reduced motion — без hover-прыжка */
@media (prefers-reduced-motion: reduce){
  .step{ transition: box-shadow .2s ease, background .2s ease; }
  .step:hover{ transform: none; }
}


/* Neon DNA divider */
.divider-helix{
  --brand: #39FF69;
  position: relative;
  height: 110px;                /* можно 80–140 под твой вкус */
  background: #000;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
  isolation: isolate;
}
#divider-helix{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;         /* не перехватывает клики */
}

/* лёгкая маска по краям, чтобы графика исчезала мягко */
.divider-helix::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, #000 0%, transparent 20%, transparent 80%, #000 100%);
  mix-blend-mode: multiply;
  opacity: .75;
}

/* компактнее на мобиле */
@media (max-width: 480px){
  .divider-helix{ height: 90px; }
}

/* если пользователю не нравятся анимации — показываем статичный узор */
@media (prefers-reduced-motion: reduce){
  #divider-helix { display: none; }
  .divider-helix{
    background:
      linear-gradient(180deg, rgba(57,255,105,.08), rgba(57,255,105,0) 60%),
      #000;
  }
}



/* === Packages / Pricing === */
.packages{
  position: relative;
  isolation: isolate;
  background:#000;
  padding: 4rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  scroll-margin-top: 96px;
}

/* лёгкий фон-узор, деликатный */
.packages::before{
  content:"";
  position:absolute; inset:0;
  pointer-events:none; z-index:0;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(57,255,105,.08), transparent 60%),
    repeating-linear-gradient(
      90deg,
      rgba(57,255,105,.035) 0 1px,
      transparent 1px 22px
    );
  opacity:.35;
}

.packages__header{
  position: relative; z-index: 1;
  text-align:center;
  margin: 0 auto 2.25rem;
  max-width: 920px;
}
.packages__header .neon-title{
  margin:0 0 .6rem;
}
.packages__header p{
  color: var(--mut);
  margin:0 auto;
  max-width: 720px;
  font-size:1.05rem;
}

/* сетка карточек */
.packages__grid{
  position: relative; z-index: 1;
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2vw, 24px);
  max-width: 1200px;
  margin: 0 auto;
}
@media (min-width: 980px){
  .packages__grid{
    grid-template-columns: repeat(3, minmax(0,1fr));
  }
}

/* карточка */
.pkg{
  min-width:0;
  border-radius: 16px;
  background: rgba(255,255,255,.03);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  padding: clamp(16px, 2vw, 22px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.pkg:hover{
  transform: translateY(-3px);
  background: rgba(57,255,105,.035);
  box-shadow:
    0 0 24px rgba(57,255,105,.35),
    inset 0 0 0 1px rgba(57,255,105,.35);
}

/* выделенная карточка */
.pkg--featured{
  background: rgba(57,255,105,.05);
  box-shadow:
    0 0 28px rgba(57,255,105,.35),
    inset 0 0 0 1px rgba(57,255,105,.45);
}

/* шапка карточки */
.pkg__head{
  display:flex; align-items:center; justify-content:space-between;
  gap:.75rem; margin-bottom:.35rem;
}
.pkg__title{
  margin:0;
  font-family:"GT America Bold", sans-serif;
  font-size: clamp(1.2rem, 1rem + .8vw, 1.6rem);
  color:#fff;
}
.pkg__badge{
  display:inline-block;
  font-size:.78rem; line-height:1;
  color:#0A0A0A;
  background: var(--brand);
  padding:.35rem .55rem;
  border-radius:999px;
  box-shadow:0 0 10px rgba(57,255,105,.45);
  text-transform: lowercase;
}
.pkg__badge--hot{
  background: #39FF69;
}

/* описание и список */
.pkg__blurb{
  color:#EDEDED; margin:.35rem 0 1rem;
}
.pkg__list{
  list-style:none; padding:0; margin:0 0 1.2rem;
  display:grid; gap:.45rem;
}
.pkg__list li{
  position:relative; padding-left:1.05rem;
  color: var(--mut);
}
.pkg__list li::before{
  content:""; position:absolute; left:0; top:.6em;
  width:.5rem; height:.5rem; border-radius:2px;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(57,255,105,.55);
}

/* CTA */
.pkg__cta{ display:flex; gap:.5rem; }
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; padding:.7rem 1rem; border-radius: 12px;
  font-weight: 600; text-decoration:none; line-height:1;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn--primary{
  color:#0A0A0A; background: var(--brand);
  box-shadow: 0 0 16px rgba(57,255,105,.45);
}
.btn--primary:hover{
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(57,255,105,.6);
}
.btn--ghost{
  color:#fff; background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.15);
}
.btn--ghost:hover{
  box-shadow:
    0 0 16px rgba(57,255,105,.4),
    inset 0 0 0 1px rgba(57,255,105,.45);
  color:#EFFFF3;
}

/* Neon Data Stream Divider */
.divider-stream{
  --brand: #39FF69;
  position: relative;
  height: 80px;              /* высота разделителя */
  background:#000;
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
  overflow:hidden;
  isolation:isolate;
}
#divider-stream{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  display:block;
  pointer-events:none;
}

/* лёгкая затемняющая маска сверху/снизу для глубины */
.divider-stream::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(to bottom, #000 0%, transparent 40%, transparent 60%, #000 100%);
  mix-blend-mode: multiply;
  opacity:.65;
}

/* меньше высота на мобиле */
@media (max-width:480px){
  .divider-stream{ height:60px; }
}

/* выключаем анимацию при reduce-motion */
@media (prefers-reduced-motion: reduce){
  #divider-stream{ display:none; }
  .divider-stream{ background: #000; }
}



/* === Final Contact CTA === */
.contact-final{
  position: relative;
  padding: clamp(3rem, 6vw, 6rem) 1rem;
  background:#000;
  border-top: 1px solid rgba(255,255,255,.08);
  overflow:hidden;
  text-align:center;
  scroll-margin-top:96px;
}

/* неоновая подсветка за блоком */
.contact-final::before{
  content:"";
  position:absolute; inset:-40% -40%;
  background: radial-gradient(circle at center,
    rgba(57,255,105,.15) 0%,
    rgba(57,255,105,0) 70%);
  animation: pulseGlow 6s ease-in-out infinite;
  z-index:0;
}
@keyframes pulseGlow{
  0%,100%{ transform:scale(1); opacity:.8; }
  50%{ transform:scale(1.2); opacity:.4; }
}

.contact-final__inner{
  position: relative;
  z-index:1;
  max-width:720px;
  margin:0 auto;
  padding:2rem 1.5rem;
  border-radius:18px;
  background: rgba(255,255,255,.02);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06),
              0 0 32px rgba(57,255,105,.25);
}

.contact-final__title{
  font-family:"GT America Bold", sans-serif;
  font-size: clamp(1.8rem, 1.2rem + 2.5vw, 3rem);
  margin:0 0 1rem;
  color:#EFFFF3;
  text-shadow: 0 0 12px rgba(57,255,105,.4);
}

.contact-final__text{
  font-size:1.1rem;
  line-height:1.5;
  margin:0 0 1.8rem;
  color: #bbb;
}

/* кнопка уже есть (btn--primary), просто чуть крупнее */
.contact-final__btn{
  padding: 1rem 1.6rem;
  font-size:1.05rem;
  border-radius:14px;
}

/* === Minimal Neon Divider === */
.divider-minimal{
  position: relative;
  height: 2px;
  margin: 3rem auto;
  background: linear-gradient(
    to right,
    transparent,
    rgba(57,255,105,.8),
    transparent
  );
  max-width: 80%;
  border-radius: 2px;
  overflow: hidden;
}

/* лёгкое движение свечения */
.divider-minimal::before{
  content:"";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #39FF69,
    transparent
  );
  animation: dividerGlow 3s linear infinite;
}

@keyframes dividerGlow{
  0%   { transform: translateX(-100%); opacity:.6; }
  50%  { opacity:1; }
  100% { transform: translateX(100%); opacity:.6; }
}


/* === Footer === */
.site-footer{
  background:#000;
  padding: 3rem 1.5rem 2rem;
  border-top:1px solid rgba(255,255,255,.06);
  color:#bbb;
  text-align:center;
}

.footer__inner{
  max-width:1200px;
  margin:0 auto 2rem;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.5rem;
}

.footer__brand{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.5rem;
}
.footer__logo{
  width:60px; height:auto;
  filter: drop-shadow(0 0 8px rgba(57,255,105,.4));
}
.footer__tagline{
  font-size:.9rem;
  color:#39FF69;
  text-transform:uppercase;
  letter-spacing:.05em;
}

.footer__nav ul{
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  list-style:none;
  margin:0; padding:0;
}
.footer__nav a{
  color:#eee;
  text-decoration:none;
  font-size:.95rem;
  transition:color .2s ease;
}
.footer__nav a:hover{
  color:#39FF69;
}

.footer__socials{
  display:flex;
  gap:1rem;
}
.footer__socials a{
  color:#bbb;
  transition:color .2s ease, transform .2s ease;
}
.footer__socials a:hover{
  color:#39FF69;
  transform:scale(1.1);
}

.footer__copy{
  font-size:.85rem;
  color:#666;
}
