/* ============================================
   vpnsf.ru — основные стили
   Палитра: #FFFFFF #B9B9B9 #000000 #007CFF
   Шрифт: SF Pro Rounded
   ============================================ */

:root {
  --white: #ffffff;
  --gray: #b9b9b9;
  --black: #000000;
  --blue: #007cff;
  --blue-dark: #0066d6;
  --bg-soft: #f5f6f8;
  --radius: 20px;
  --radius-sm: 14px;
  --max-width: 1160px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  --shadow-blue: 0 16px 40px rgba(0, 124, 255, 0.28);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Rounded', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
  color: inherit;
}

img,
svg {
  display: block;
}

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

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--black);
}

.btn-ghost:hover {
  background: #ebedf0;
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 38px;
  font-size: 18px;
}

/* ---------- Хедер ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Прогрессивный edge-blur: сильный у верха, плавно затухает книзу */
.header__blur {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(100% + 36px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.72) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 100%);
}

/* Второй слой блюра — усиливает прогрессию у верхней кромки */
.header__blur::after {
  content: '';
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

.header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.logo__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.logo__mark img,
.logo__mark svg {
  width: 100%;
  height: 100%;
}

.logo b {
  color: var(--blue);
  font-weight: 700;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.logo__tag {
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--gray);
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links {
  display: flex;
  gap: 30px;
}

.nav__links a {
  font-weight: 500;
  font-size: 16px;
  color: #333;
  transition: color 0.15s ease;
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: 0.25s ease;
}

/* ---------- Секции ---------- */
.section {
  padding: 100px 0;
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: var(--blue);
  background: rgba(0, 124, 255, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section__title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section__subtitle {
  margin-top: 16px;
  font-size: 18px;
  color: #5a5a5a;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: #444;
  background: var(--bg-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero__badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23c16b;
  box-shadow: 0 0 0 4px rgba(35, 193, 107, 0.18);
}

.hero__title {
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero__title .accent {
  color: var(--blue);
}

.hero__text {
  margin-top: 22px;
  font-size: 19px;
  color: #4f4f4f;
  max-width: 480px;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__stats {
  margin-top: 46px;
  display: flex;
  gap: 40px;
}

.hero__stat b {
  display: block;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
}

.hero__stat span {
  font-size: 14px;
  color: var(--gray);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
}

.hero__glow {
  position: absolute;
  inset: 12%;
  background: radial-gradient(circle, rgba(0, 124, 255, 0.35), transparent 62%);
  filter: blur(30px);
}

.hero__globe {
  position: relative;
  width: 78%;
  max-width: 420px;
  animation: float 6s ease-in-out infinite;
}

.hero__globe img,
.hero__globe svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 124, 255, 0.25));
  overflow: visible;
}

/* Кликабельные сегменты глобуса — улетают за экран */
.globe-piece {
  cursor: pointer;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.15s ease;
}

.globe-piece:hover {
  opacity: 0.8;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- Логотипы-полоска ---------- */
.marquee {
  padding: 34px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.marquee__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--gray);
  font-weight: 600;
  font-size: 18px;
}

.marquee__row span {
  opacity: 0.75;
}

/* ---------- Фичи ---------- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.feature__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(0, 124, 255, 0.1);
  color: var(--blue);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.feature__icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.feature p {
  font-size: 16px;
  color: #5a5a5a;
}

/* ---------- Тарифы ---------- */
.plans__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.plan--featured {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.plan__tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
}

.plan__name {
  font-weight: 600;
  font-size: 20px;
}

.plan__desc {
  margin-top: 6px;
  font-size: 15px;
  color: #6a6a6a;
}

.plan--featured .plan__desc {
  color: var(--gray);
}

.plan__price {
  margin: 26px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan__price b {
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.03em;
}

.plan__price span {
  color: var(--gray);
  font-size: 16px;
}

.plan__note {
  font-size: 14px;
  color: #6a6a6a;
  margin-bottom: 26px;
}

.plan--featured .plan__note {
  color: var(--gray);
}

.plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  flex-grow: 1;
}

.plan__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.plan__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.plan--featured .plan__list svg {
  color: #4da3ff;
}

.plan .btn {
  width: 100%;
}

.plan--featured .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.plan--featured .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------- Как работает ---------- */
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: left;
}

.step__num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 20px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.step h3 {
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.step p {
  color: #5a5a5a;
  font-size: 16px;
}

/* ---------- CTA-баннер ---------- */
.cta {
  padding: 80px 0;
}

.cta__box {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  border-radius: 32px;
  padding: 70px 40px;
  text-align: center;
  color: var(--white);
}

.cta__box::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  right: -120px;
  top: -180px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 60%);
}

.cta__box h2 {
  position: relative;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}

.cta__box p {
  position: relative;
  margin: 16px auto 32px;
  max-width: 520px;
  font-size: 18px;
  opacity: 0.9;
}

.cta__box .btn {
  position: relative;
  background: var(--white);
  color: var(--blue);
}

.cta__box .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faq__q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 19px;
  color: var(--black);
  text-align: left;
  padding: 26px 40px 26px 0;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq__q::after {
  content: '+';
  font-weight: 500;
  font-size: 28px;
  color: var(--blue);
  transition: transform 0.25s ease;
}

.faq__item.open .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__a p {
  padding: 0 0 26px;
  color: #5a5a5a;
  font-size: 16px;
}

/* ---------- Футер ---------- */
.footer {
  background: var(--bg-soft);
  padding: 70px 0 34px;
  margin-top: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer__about {
  max-width: 300px;
}

.footer__about p {
  margin-top: 16px;
  color: #6a6a6a;
  font-size: 15px;
}

.footer__col h4 {
  font-weight: 600;
  font-size: 15px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.footer__col a {
  display: block;
  color: #333;
  font-size: 16px;
  margin-bottom: 12px;
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--blue);
}

.footer__bottom {
  margin-top: 50px;
  padding-top: 26px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--gray);
  font-size: 14px;
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; max-width: 380px; margin: 0 auto; }
  .features__grid,
  .plans__grid,
  .steps__grid { grid-template-columns: 1fr; }
  .plan--featured { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .nav__links,
  .nav .btn { display: none; }
  .nav__toggle { display: flex; }

  .nav.open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    gap: 18px;
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav.open .btn {
    display: inline-flex;
    margin-top: 8px;
  }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hero__stats { gap: 26px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta__box { padding: 50px 24px; }
}

/* ---------- Анимация появления ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__globe { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Тарифы: капсулы + одна карточка ---------- */
.plan-picker {
  max-width: 760px;
  margin: 0 auto;
}

.plan-switch {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.plan-switch__opt {
  font-family: inherit;
  font-weight: 600;
  font-size: 16px;
  color: var(--black);
  background: var(--white);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.plan-switch__opt:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
}

.plan-switch__opt.is-active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  box-shadow: var(--shadow-blue);
}

/* Центральная «Бесплатно» — выделена синей обводкой всегда */
.plan-switch__opt--free {
  color: var(--blue);
  border-color: var(--blue);
}

.plan-switch__save {
  font-weight: 600;
  font-size: 12px;
  color: var(--blue);
  background: rgba(0, 124, 255, 0.12);
  padding: 2px 9px;
  border-radius: 999px;
}

.plan-switch__opt.is-active .plan-switch__save {
  color: var(--white);
  background: rgba(255, 255, 255, 0.25);
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 20px 50px rgba(0, 124, 255, 0.12);
}

.plan-card__tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-weight: 600;
  font-size: 12px;
  color: var(--white);
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
}

.plan-card__tag:empty {
  display: none;
}

.plan-card__name {
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.plan-card__desc {
  margin-top: 6px;
  font-size: 15px;
  color: #6a6a6a;
}

.plan-card__price {
  margin: 24px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-card__price b {
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.03em;
}

.plan-card__price span {
  color: var(--gray);
  font-size: 16px;
}

.plan-card__note {
  font-size: 14px;
  color: #6a6a6a;
  margin-bottom: 26px;
}

.plan-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.plan-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.plan-card__list svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.plan-card__btn {
  width: 100%;
  margin-top: auto;
}

.plan-card__trial {
  width: 100%;
  margin-top: 12px;
  background: rgba(0, 124, 255, 0.1);
  color: var(--blue);
}

.plan-card__trial:hover {
  background: rgba(0, 124, 255, 0.18);
  transform: translateY(-2px);
}

/* ---------- Тарифы: сетка ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.plan-grid .plan-card {
  margin: 0;
  max-width: none;
  border: 2px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-grid .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Выделение выбранного тарифа — только hover-свечение, без постоянной обводки */

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

@media (max-width: 600px) {
  .plan-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

/* ---------- Эффекты для тарифов: ClickSpark + BorderGlow (порт React Bits) ---------- */
#plans {
  position: relative;
}

/* Канвас с искрами поверх секции, клики пропускает */
.click-spark-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 20;
}

/* BorderGlow: карточка со свечением у краёв (тарифы и «Возможности») */
.glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 20;
  --color-sensitivity: 40;
  --cone-spread: 25;
  --glow-padding: 26px;
  position: relative;
  isolation: isolate;
}

/* Цветная градиентная рамка, следующая за курсором (конусная маска) */
.glow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  z-index: -1;
  border: 2px solid transparent;
  border-radius: calc(var(--radius) + 2px);
  pointer-events: none;
  background:
    linear-gradient(var(--white) 0 100%) padding-box,
    radial-gradient(at 80% 55%, #007cff 0px, transparent 50%) border-box,
    radial-gradient(at 8% 6%, #38bdf8 0px, transparent 50%) border-box,
    radial-gradient(at 41% 38%, #4da3ff 0px, transparent 50%) border-box,
    radial-gradient(at 86% 85%, #38bdf8 0px, transparent 50%) border-box,
    linear-gradient(#007cff 0 100%) border-box;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
  -webkit-mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black calc(var(--cone-spread) * 1%),
    transparent calc((var(--cone-spread) + 15) * 1%),
    transparent calc((100 - var(--cone-spread) - 15) * 1%),
    black calc((100 - var(--cone-spread)) * 1%)
  );
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  transition: opacity 0.25s ease-out;
}

/* Внешнее мягкое свечение за пределами карточки */
.glow-card > .edge-light {
  position: absolute;
  inset: calc(var(--glow-padding) * -1);
  z-index: 1;
  border-radius: var(--radius);
  pointer-events: none;
  mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  -webkit-mask-image: conic-gradient(
    from var(--cursor-angle) at center,
    black 2.5%, transparent 10%, transparent 90%, black 97.5%
  );
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  transition: opacity 0.25s ease-out;
}

.glow-card > .edge-light::before {
  content: '';
  position: absolute;
  inset: var(--glow-padding);
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px hsl(210deg 100% 55% / 80%),
    inset 0 0 3px 0 hsl(210deg 100% 55% / 50%),
    inset 0 0 6px 0 hsl(210deg 100% 55% / 40%),
    inset 0 0 15px 0 hsl(210deg 100% 55% / 30%),
    inset 0 0 25px 2px hsl(210deg 100% 55% / 20%),
    0 0 3px 0 hsl(210deg 100% 55% / 50%),
    0 0 6px 0 hsl(210deg 100% 55% / 40%),
    0 0 15px 0 hsl(210deg 100% 55% / 30%),
    0 0 25px 2px hsl(210deg 100% 55% / 22%),
    0 0 50px 2px hsl(210deg 100% 55% / 14%);
}

/* Вне наведения свечение плавно гаснет */
.glow-card:not(:hover)::before,
.glow-card:not(:hover) > .edge-light {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

/* ---------- Dither: дизеринг-волны в hero (порт React Bits) ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Белая вуаль для читаемости текста поверх волн */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.72) 46%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 26%);
}

.hero__grid {
  position: relative;
  z-index: 1;
}

/* ---------- Шаг 2: список приложений ---------- */
.step__apps {
  font-size: 16px;
  color: #5a5a5a;
}

.step__platform {
  font-weight: 600;
  color: var(--black);
  margin-top: 12px;
}

.step__platform:first-child {
  margin-top: 0;
}

.step__apps ul {
  list-style: none;
  margin: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.step__apps a {
  color: var(--blue);
  font-weight: 600;
  white-space: nowrap;
}

.step__apps a:hover {
  text-decoration: underline;
}

.step__link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-weight: 600;
}

.step__link:hover {
  text-decoration: underline;
}
