/* NextgenVPN — лендинг nextgencloud.tech */
:root {
  --bg: #060607;
  --card: #0e0e11;
  --card-2: #131317;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f3f5;
  --muted: #8d8d97;
  --dim: #5f5f69;
  --accent: #8b8cff;
  --violet: #b49bff;
  --mint: #6ee7b7;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font: "Geologica", system-ui, -apple-system, sans-serif;
  --mono: var(--font);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

.mono,
.mono-label {
  font-family: var(--mono);
}

/* ---------- promo bar ---------- */
.promo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #17172a;
  background: linear-gradient(90deg, #e9e6ff, #f4f2fb 45%, #dcd8ff);
  text-align: center;
}

.promo__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4d4bd8;
  box-shadow: 0 0 0 4px rgba(77, 75, 216, 0.18);
}

.promo__cta {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- nav ---------- */
.glass {
  background: rgba(22, 22, 26, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 0;
  transition: background 0.3s;
}

.nav.is-scrolled {
  background: linear-gradient(rgba(6, 6, 7, 0.85), rgba(6, 6, 7, 0));
}

.nav__inner {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 8px;
}

.brand b {
  font-weight: 600;
}

.nav__links {
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
}

.nav__links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: #c9c9d1;
  transition: background 0.2s, color 0.2s;
}

.nav__links a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px 6px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.pill:hover {
  transform: translateY(-1px);
}

.pill__chip {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform 0.3s var(--ease);
}

.pill:hover .pill__chip {
  transform: rotate(-45deg);
}

.nav__cta:hover .pill__chip {
  transform: none;
}

.pill--light {
  background: #f3f3f5;
  color: #0b0b0e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 10px 40px -10px rgba(139, 140, 255, 0.6);
}

.pill--light .pill__chip {
  background: #0b0b0e;
  color: #f3f3f5;
}

.pill--glass {
  background: rgba(22, 22, 26, 0.55);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 14px;
}

.pill--glass .pill__chip {
  background: rgba(255, 255, 255, 0.1);
  width: 28px;
  height: 28px;
}

.pill--ghost {
  padding: 6px 20px;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.pill--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.pill--block {
  width: 100%;
  padding: 6px 20px;
}

/* ---------- frames (hero & cta) ---------- */
.hero {
  padding: 4px 16px 0;
}

.frame {
  position: relative;
  width: min(100%, 1400px);
  margin-inline: auto;
  min-height: min(84vh, 760px);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 30% 20%, #2a2668 0%, transparent 60%),
    radial-gradient(90% 80% at 80% 90%, #4a2f8f 0%, transparent 55%),
    #08080c;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
}

.shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.shader.is-ready {
  opacity: 1;
}

.frame__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 48%, rgba(6, 6, 7, 0.55), transparent 75%),
    linear-gradient(to bottom, transparent 70%, rgba(6, 6, 7, 0.55));
  pointer-events: none;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 20px 120px;
}

/* иллюстрация: глобус над телефоном (Higgsfield), чёрный фон растворяется через screen */
.hero-art {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  mix-blend-mode: screen;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
  transition: transform 0.6s var(--ease);
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  -webkit-mask-image: radial-gradient(closest-side at 50% 46%, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 46%, #000 72%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}

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

@media (min-width: 1024px) {
  .frame--hero .hero__content {
    align-items: flex-start;
    text-align: left;
    width: 58%;
    padding: 96px 0 140px clamp(40px, 5vw, 80px);
  }

  .frame--hero .hero__title {
    font-size: clamp(44px, 4.5vw, 72px);
  }

  .frame--hero .hero__actions {
    justify-content: flex-start;
  }

  .frame--hero .frame__veil {
    background:
      radial-gradient(55% 60% at 22% 50%, rgba(6, 6, 7, 0.6), transparent 75%),
      linear-gradient(to bottom, transparent 70%, rgba(6, 6, 7, 0.55));
  }
}

@media (min-width: 1024px) {
  .hero-art {
    top: 0;
    bottom: 40px;
    right: 1%;
    display: flex;
    align-items: center;
    width: min(50%, 700px);
  }
}

@media (max-width: 1023px) {
  .hero-art {
    top: 12px;
    left: 50%;
    width: min(92vw, 460px);
    margin-left: calc(min(92vw, 460px) / -2);
  }

  .frame--hero .hero__content {
    padding-top: calc(min(92vw, 460px) * 0.8);
  }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #d4d4dc;
  background: rgba(10, 10, 14, 0.45);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.tag__led,
.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: blink 2.4s ease-in-out infinite;
}

@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.hero__title {
  margin-top: 28px;
  font-size: clamp(40px, 7.2vw, 92px);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.045em;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}

/* акцент: светлое начертание с градиентной заливкой */
.thin {
  font-weight: 300;
  background: linear-gradient(90deg, #ffffff 0%, #cfc8ff 45%, #9d8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin-top: 24px;
  max-width: 540px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: #c4c4cc;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(6, 6, 7, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero__meta div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 24px;
  font-size: 14px;
}

.hero__meta div + div {
  border-left: 1px solid var(--line);
}

.hero__meta dt {
  display: inline-flex;
  color: var(--violet);
}

.hero__meta dd {
  margin: 0;
  color: #cfcfd6;
}

/* ---------- sections ---------- */
.section {
  padding: 120px 0 0;
}

.head {
  margin-bottom: 48px;
}

.head--center {
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.head h2,
.cta h2 {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.dim {
  font-weight: 300;
  color: #7d7a9e;
}

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.card {
  grid-column: span 3;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  min-height: 300px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(139, 140, 255, 0.09), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.card:hover {
  border-color: var(--line-2);
}

.card:hover::before {
  opacity: 1;
}

.card--wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
}

.card--small {
  grid-column: span 2;
  grid-template-columns: 1fr;
  min-height: 0;
}

.card__text {
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: auto;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: #d8d8e0;
}

.card--small .card__icon {
  margin-bottom: 40px;
}

.card h3 {
  margin-top: 28px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card--small h3 {
  margin-top: 0;
}

.card p {
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: #d0d0d8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.link {
  margin-top: 18px;
  font-size: 14px;
  color: var(--accent);
}

.link:hover {
  color: var(--violet);
}

.panel {
  position: relative;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* terminal */
.panel--term {
  display: flex;
  flex-direction: column;
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}

.term__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.term__bar span {
  margin-left: 8px;
}

.term {
  flex: 1;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.95;
  color: #b9b9c3;
}

.term li {
  display: flex;
  gap: 10px;
  white-space: nowrap;
  overflow: hidden;
  animation: termIn 0.35s var(--ease) both;
}

.term .ok {
  color: var(--mint);
}

.term .arr {
  color: var(--accent);
}

.term .muted {
  color: var(--dim);
}

.term .caret::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 2px;
  vertical-align: -2px;
  background: #c9c9d1;
  animation: blink 1s steps(1) infinite;
}

@keyframes termIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.mono-label {
  font-size: 11px;
  color: var(--dim);
}

/* rings */
.panel--rings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 20px;
}

.ring {
  position: relative;
  width: 132px;
  height: 132px;
  flex: none;
}

.ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 6;
}

.ring__track {
  stroke: rgba(255, 255, 255, 0.07);
}

.ring__bar {
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
  transition: stroke-dashoffset 1.8s var(--ease) 0.2s;
  filter: drop-shadow(0 0 6px rgba(110, 231, 183, 0.5));
}

.is-visible .ring__bar {
  stroke-dashoffset: 0;
}

.ring__value {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.ring__value b {
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  color: var(--mint);
  letter-spacing: -0.04em;
}

.ring__value span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.stats {
  display: grid;
  gap: 16px;
}

.stats div {
  display: grid;
}

.stats b {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.stats span {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* radar */
.panel--radar {
  min-height: 260px;
  background-color: rgba(0, 0, 0, 0.35);
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1.4px);
  background-size: 16px 16px;
}

.panel--radar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 62% 45%, transparent 25%, rgba(8, 8, 10, 0.85) 90%);
}

.radar {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.radar__big {
  position: absolute;
  left: 28px;
  bottom: -28px;
  font-size: 220px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.08em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.radar__dot {
  position: absolute;
  left: var(--x, 62%);
  top: var(--y, 45%);
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent), 0 0 60px rgba(139, 140, 255, 0.6);
}

.radar__dot i {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(139, 140, 255, 0.7);
  animation: ping 3s ease-out infinite;
}

.radar__dot i + i {
  animation-delay: 1.5s;
}

.radar__dot:nth-child(3) i {
  animation-delay: 0.5s;
}

.radar__dot:nth-child(3) i + i {
  animation-delay: 2s;
}

.radar__dot:nth-child(4) i {
  animation-delay: 1s;
}

.radar__dot:nth-child(4) i + i {
  animation-delay: 2.5s;
}

@keyframes ping {
  to {
    transform: scale(9);
    opacity: 0;
  }
}

.radar__dot b {
  position: absolute;
  left: 18px;
  top: -4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: #d6d6ff;
}

/* общие условия над тарифами */
.perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -16px 0 32px;
}

.perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: #d0d0d8;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

/* ---------- steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps::before {
  display: none;
  content: "";
  position: absolute;
  top: 46px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 15%, var(--line-2) 85%, transparent);
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}

.step__num {
  display: block;
  font-size: 76px;
  font-weight: 300;
  line-height: 0.9;
  letter-spacing: -0.05em;
  background: linear-gradient(160deg, #e9e6ff 10%, #8b8cff 55%, rgba(139, 140, 255, 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  margin-top: 28px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.step p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
}

.step a,
.faq a {
  color: var(--accent);
}

/* ---------- pricing ---------- */
.prices {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.price {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
}

.price__term {
  font-size: 15px;
  color: var(--muted);
}

.price__value {
  margin-top: 18px;
  font-size: 44px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.price__sub {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.price__first {
  margin: 14px 0 28px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  color: var(--muted);
}

.price__first b {
  font-weight: 500;
  color: var(--mint);
}

.price .pill {
  margin-top: auto;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.price--featured {
  border-color: transparent;
  background:
    linear-gradient(180deg, #17172a, #0f0f16) padding-box,
    conic-gradient(from var(--angle), rgba(139, 140, 255, 0.15), var(--accent), var(--violet), rgba(110, 231, 183, 0.6), rgba(139, 140, 255, 0.15)) border-box;
  border: 1px solid transparent;
  box-shadow: 0 30px 80px -30px rgba(139, 140, 255, 0.55);
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}

.price__badge {
  position: absolute;
  top: 22px;
  right: 18px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: #dcdcff;
  background: rgba(139, 140, 255, 0.16);
  border: 1px solid rgba(139, 140, 255, 0.35);
}

.prices__note {
  max-width: 680px;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(currentColor, currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 10px no-repeat;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 4px 22px;
  max-width: 620px;
  color: var(--muted);
}

/* ---------- cta ---------- */
.section--cta {
  padding: 120px 16px 0;
}

.frame--cta {
  min-height: 460px;
  align-items: center;
}

.cta {
  padding: 72px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta p {
  margin: 18px 0 32px;
  max-width: 460px;
  color: #c4c4cc;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 120px;
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

.footer h4 {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--dim);
}

.footer__grid a:not(.brand) {
  display: block;
  padding: 4px 0;
  font-size: 15px;
  color: #c4c4cc;
}

.footer__grid a:not(.brand):hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  font-size: 13px;
  color: var(--dim);
}

/* ---------- Happ: виджет подключения ---------- */
.panel--happ {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 18px;
  background:
    radial-gradient(70% 60% at 50% 100%, rgba(139, 140, 255, 0.16), transparent 70%),
    rgba(0, 0, 0, 0.35);
}

.island {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 230px);
  height: 38px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 30px -8px rgba(0, 0, 0, 0.8);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.island__left,
.island__right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.island__right {
  color: var(--mint);
}

.widget {
  width: min(100%, 260px);
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(48, 44, 92, 0.75), rgba(20, 20, 28, 0.9));
  border: 1px solid rgba(180, 160, 255, 0.18);
  box-shadow: 0 20px 50px -20px rgba(139, 140, 255, 0.5);
}

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

.widget__app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #c9c6e6;
}

.widget__app img {
  border-radius: 6px;
}

.switch {
  position: relative;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.4s;
}

.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s var(--ease);
}

.switch.is-on {
  background: var(--mint);
}

.switch.is-on i {
  transform: translateX(18px);
}

.widget__status {
  margin-top: 18px !important;
  font-size: 24px !important;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text) !important;
}

.widget__server {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  color: #c9c6e6;
}

.widget__server em {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  color: #c9c9ff;
  background: rgba(139, 140, 255, 0.14);
}

/* ---------- подписка: одна ссылка → устройства ---------- */
.panel--sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 18px 20px;
}

.url {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  color: #dcdcf0;
  background: rgba(139, 140, 255, 0.1);
  border: 1px solid rgba(139, 140, 255, 0.3);
  box-shadow: 0 0 30px -6px rgba(139, 140, 255, 0.45);
  white-space: nowrap;
}

.url svg {
  color: var(--violet);
}

.url b {
  font-weight: 400;
  color: var(--violet);
}

.fan {
  display: block;
  width: 100%;
  max-width: 280px;
  height: 64px;
  overflow: visible;
}

.fan path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.fan path.is-on {
  stroke: var(--accent);
  animation: fanDraw 0.7s var(--ease) both;
}

.fan path:last-child {
  stroke-dasharray: 0.03 0.03;
}

@keyframes fanDraw {
  from {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
}

.devs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: 280px;
}

.dev {
  justify-self: center;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: color 0.4s, background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.dev.is-on {
  color: #ecebff;
  background: rgba(139, 140, 255, 0.14);
  border-color: rgba(139, 140, 255, 0.45);
  box-shadow: 0 0 24px -6px rgba(139, 140, 255, 0.7);
}

.dev--empty {
  border-style: dashed;
  border-color: var(--line-2);
}

.slots {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: 18px !important;
  font-size: 14px !important;
  color: #c4c4cc !important;
}

.slots b {
  font-weight: 500;
  color: var(--text);
}

.slots small {
  font-size: 12px;
  color: var(--dim);
}

/* ---------- флаги ---------- */
.flag {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(10, 10, 14, 0.9), 0 0 0 2.5px rgba(255, 255, 255, 0.12);
}

.flags {
  display: inline-flex;
}

.flags .flag + .flag {
  margin-left: -5px;
}

.flags--sm .flag {
  width: 16px;
  height: 16px;
}

.tag {
  gap: 10px;
  padding: 6px 14px 6px 8px;
}

/* ---------- список серверов ---------- */
.panel__title {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--muted) !important;
}

.panel--servers {
  padding: 18px;
}

.servers {
  margin-top: 12px;
}

.server {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  margin-top: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  opacity: 0.35;
  transform: translateX(-6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), border-color 0.5s;
}

.server.is-on {
  opacity: 1;
  transform: none;
}

.server:first-child.is-on {
  border-color: rgba(110, 231, 183, 0.35);
  background: rgba(110, 231, 183, 0.05);
}

.server .flag {
  width: 22px;
  height: 22px;
}

.server__name {
  font-size: 14px;
  line-height: 1.2;
  color: var(--text);
}

.server__info {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin-right: auto;
}

.server__proto {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.server__proto i {
  padding: 2px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  color: #c9c9ff;
  background: rgba(139, 140, 255, 0.12);
}

.server__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  transition: background 0.4s, box-shadow 0.4s;
}

.server.is-on .server__dot {
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}

/* метки стран на карте */
.radar__dot b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  top: -9px;
  white-space: nowrap;
  font-family: var(--font);
}

.radar__dot b .flag {
  width: 18px;
  height: 18px;
}

.perks__flags::before {
  display: none;
}

/* ---------- intro (первый экран: без JS, чтобы не тормозить LCP) ---------- */
.intro {
  animation: intro 1s var(--ease) both;
}

.hero__title.intro {
  animation-delay: 0.08s;
}

.hero__lead.intro {
  animation-delay: 0.16s;
}

.hero__actions.intro {
  animation-delay: 0.24s;
}

@keyframes intro {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(6px);
  }
}

/* ---------- reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .card,
  .card--wide {
    grid-template-columns: 1fr;
  }

  .card__icon {
    margin-bottom: 0;
  }

  .card h3 {
    margin-top: 20px;
  }

  .panel {
    min-height: 220px;
  }

  .prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: calc(100% + 4px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    padding: 8px;
    border-radius: 20px;
    background: rgba(14, 14, 18, 0.92);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s var(--ease);
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav__links a {
    padding: 12px 16px;
    font-size: 16px;
  }

  .nav__toggle {
    display: inline-flex;
  }

  .bento,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .card--small {
    grid-column: auto;
  }

  .faq-grid {
    gap: 0;
  }

  .steps::before {
    display: none;
  }

  .step h3 {
    margin-top: 28px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
  }

  .hero__meta div {
    padding: 10px 20px;
  }

  .hero__meta div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .hero__content {
    padding: 72px 8px 190px;
  }

  .section {
    padding-top: 88px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 0 8px;
  }

  .section--cta {
    padding-inline: 8px;
  }

  .frame {
    border-radius: 22px;
  }

  .nav__cta {
    display: none;
  }

  .prices {
    grid-template-columns: 1fr;
  }

  .panel--rings {
    gap: 18px;
  }

  .ring {
    width: 112px;
    height: 112px;
  }

  .radar__big {
    font-size: 160px;
  }

  .promo__sep,
  .promo__cta {
    display: none;
  }

  .tag {
    font-size: 12px;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}
