:root {
  --bg: #081426;
  --bg-soft: #0c1a32;
  --surface: rgba(10, 19, 37, 0.86);
  --surface-strong: rgba(8, 16, 31, 0.96);
  --line: rgba(145, 168, 202, 0.14);
  --line-strong: rgba(44, 112, 255, 0.28);
  --text: #f7f9ff;
  --muted: #9caecc;
  --blue: #2c70ff;
  --blue-2: #49a0ff;
  --cyan: #1fd7ff;
  --shadow: 0 24px 84px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: min(1180px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(44, 112, 255, 0.16), transparent 20%),
    radial-gradient(circle at 82% 14%, rgba(31, 215, 255, 0.1), transparent 18%),
    linear-gradient(180deg, #07101d 0%, #081426 44%, #06101c 100%);
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

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

button,
input {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 500,
    "GRAD" 0,
    "opsz" 24;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(8, 20, 38, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__logo {
  width: 42px;
  height: 42px;
}

.brand__text strong,
.brand__text em {
  display: block;
  font-style: normal;
  line-height: 1;
}

.brand__text strong {
  font-size: 20px;
  font-weight: 700;
}

.brand__text em {
  margin-top: 4px;
  color: var(--blue-2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.nav a {
  transition: color 160ms ease;
}

.nav a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 23, 44, 0.74);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  cursor: pointer;
}

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

.button--primary {
  background: linear-gradient(135deg, #2c70ff 0%, #3687ff 42%, #29c0ff 100%);
  border-color: transparent;
  box-shadow: 0 18px 38px rgba(44, 112, 255, 0.28);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.02);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 36px;
  min-height: 760px;
  background:
    linear-gradient(180deg, rgba(6, 12, 24, 0.28), rgba(6, 12, 24, 0.72)),
    url("../vpn/assets/img/hero-background.png") center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(44, 112, 255, 0.18), transparent 28%),
    radial-gradient(circle at 78% 22%, rgba(31, 215, 255, 0.16), transparent 26%),
    linear-gradient(180deg, rgba(8, 20, 38, 0.36), rgba(8, 20, 38, 0.52));
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: 680px;
  display: flex;
  align-items: center;
}

.hero__content {
  width: 100%;
}

.lead {
  margin: 0 0 18px;
  color: var(--blue-2);
  font-size: 15px;
  font-weight: 700;
}

.hero__content h1 {
  margin: 0;
  max-width: 1040px;
  font-size: clamp(54px, 5.9vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.hero__copy {
  margin: 22px 0 0;
  max-width: 900px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

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

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  max-width: 920px;
}

.fact {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(9, 18, 35, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.fact strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.fact span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.section {
  padding: 30px 0;
}

.section__header {
  margin-bottom: 20px;
}

.section__header h2 {
  margin: 0;
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

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

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

.card,
.step,
.pricing-card,
.telegram-banner,
.faq-item,
.devices__visual,
.device-item,
.payment-card,
.modal__dialog {
  background: linear-gradient(180deg, rgba(12, 25, 47, 0.92), rgba(8, 18, 34, 0.96));
  border: 1px solid rgba(145, 168, 202, 0.12);
  box-shadow: 0 18px 48px rgba(5, 12, 24, 0.36);
}

.card {
  padding: 22px;
  border-radius: var(--radius-lg);
  min-height: 208px;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(44, 112, 255, 0.12);
  color: var(--blue-2);
  font-size: 24px;
}

.card h3 {
  margin: 18px 0 0;
  font-size: 20px;
}

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.step {
  padding: 22px;
  border-radius: 22px;
  min-height: 220px;
}

.step__number {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #2c70ff, #35a7ff);
  box-shadow: 0 14px 28px rgba(44, 112, 255, 0.3);
  font-weight: 800;
}

.step h3 {
  margin: 18px 0 0;
  font-size: 18px;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.devices-split {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  align-items: center;
}

.devices-split__content h2 {
  margin-top: 0;
  max-width: 560px;
}

.devices-split__content p {
  margin: 18px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.devices-split__visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(145, 168, 202, 0.12);
  box-shadow: 0 18px 48px rgba(5, 12, 24, 0.36);
}

.devices-split__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(44, 112, 255, 0.12), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(31, 215, 255, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(8, 16, 31, 0.04), rgba(8, 16, 31, 0.18));
  pointer-events: none;
}

.devices-split__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  min-height: 338px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}

.pricing-card--trial {
  --pricing-accent: #6f8cff;
  background:
    radial-gradient(circle at 18% 0%, rgba(96, 120, 255, 0.38), transparent 26%),
    linear-gradient(180deg, rgba(10, 24, 48, 0.98), rgba(8, 18, 34, 0.97));
  border-color: rgba(82, 119, 255, 0.38);
  box-shadow: 0 18px 50px rgba(55, 82, 170, 0.14);
}

.pricing-card--month {
  --pricing-accent: #3cb0ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(59, 169, 255, 0.4), transparent 26%),
    linear-gradient(180deg, rgba(12, 28, 52, 0.98), rgba(8, 18, 34, 0.97));
  border-color: rgba(54, 153, 255, 0.38);
  box-shadow: 0 18px 50px rgba(44, 112, 255, 0.12);
}

.pricing-card--featured {
  --pricing-accent: #35d9ff;
  background:
    radial-gradient(circle at 18% 0%, rgba(48, 212, 255, 0.48), transparent 26%),
    linear-gradient(180deg, rgba(12, 34, 64, 0.99), rgba(8, 18, 34, 0.97));
  border-color: rgba(76, 188, 255, 0.7);
  box-shadow: 0 34px 90px rgba(44, 112, 255, 0.22);
}

.pricing-card--popular {
  box-shadow: 0 34px 90px rgba(44, 112, 255, 0.22);
}

.pricing-card--halfyear {
  --pricing-accent: #39ddb8;
  background:
    radial-gradient(circle at 18% 0%, rgba(51, 214, 177, 0.38), transparent 26%),
    linear-gradient(180deg, rgba(14, 34, 58, 0.99), rgba(8, 18, 34, 0.97));
  border-color: rgba(62, 202, 182, 0.4);
  box-shadow: 0 18px 50px rgba(35, 169, 151, 0.12);
}

.pricing-card__glow {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  pointer-events: none;
  opacity: 0.65;
  mix-blend-mode: screen;
}

.pricing-card--trial .pricing-card__glow {
  background: linear-gradient(180deg, rgba(96, 120, 255, 0.18), transparent 40%);
}

.pricing-card--month .pricing-card__glow {
  background: linear-gradient(180deg, rgba(59, 169, 255, 0.18), transparent 40%);
}

.pricing-card--featured .pricing-card__glow {
  background: linear-gradient(180deg, rgba(48, 212, 255, 0.2), transparent 40%);
}

.pricing-card--halfyear .pricing-card__glow {
  background: linear-gradient(180deg, rgba(51, 214, 177, 0.18), transparent 40%);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 18px;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: #1f62ff;
  border: 1px solid #1f62ff;
  font-size: 12px;
  font-weight: 700;
  color: #f7f9ff;
  box-shadow: 0 14px 30px rgba(31, 98, 255, 0.32);
}

.pricing-card__head h3 {
  margin: 0;
  font-size: 20px;
  color: var(--pricing-accent);
}

.pricing-card__head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.pricing-card__price {
  color: var(--pricing-accent);
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.pricing-card__copy {
  margin: 0;
  color: #d8e5fb;
  font-size: 15px;
  line-height: 1.7;
}

.pricing-card__value {
  min-height: 122px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-card__value-label {
  display: block;
  margin-bottom: 8px;
  color: var(--pricing-accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card__value strong {
  display: block;
  color: #f7f9ff;
  font-size: 16px;
  line-height: 1.45;
}

.pricing-card__value em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.45;
}

.pricing-card .button {
  margin-top: auto;
}

.pricing-benefit {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pricing-benefit__item,
.pricing-benefit__note {
  min-height: 92px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(145, 168, 202, 0.1);
}

.pricing-benefit__item span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.pricing-benefit__item strong {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.15;
}

.pricing-benefit__note {
  grid-column: span 2;
  color: #d8e5fb;
  line-height: 1.65;
}

.telegram-banner {
  border-radius: 28px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.telegram-banner h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.05;
}

.telegram-banner p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.65;
}

.faq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.faq-item {
  padding: 20px 22px;
  border-radius: 22px;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.faq__icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(145, 168, 202, 0.14);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, background 180ms ease;
}

.faq-item[open] .faq__icon {
  transform: rotate(45deg);
  background: rgba(44, 112, 255, 0.16);
}

.faq-item p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.footer {
  padding: 20px 0 44px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.is-open {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  width: min(620px, 100%);
  padding: 28px;
  border-radius: 28px;
  z-index: 1;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal__eyebrow {
  margin: 0 0 10px;
  color: var(--blue-2);
  font-size: 14px;
  font-weight: 700;
}

.modal__dialog h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
}

.modal__text {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.modal__plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.modal__plan > div,
.payment-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.modal__plan span,
.payment-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.modal__plan strong,
.payment-row strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.payment-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 24px;
  display: grid;
  gap: 12px;
}

.modal__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.modal__hint {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.purchase-flow {
  margin-top: 22px;
}

.purchase-flow__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.purchase-flow__step {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  font-weight: 700;
}

.purchase-flow__step.is-active {
  color: var(--text);
  background: rgba(44, 112, 255, 0.16);
  border-color: rgba(44, 112, 255, 0.3);
}

.purchase-flow__panel {
  margin-top: 16px;
}

.plan-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.plan-picker__button {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.plan-picker__button.is-active {
  background: rgba(44, 112, 255, 0.16);
  border-color: rgba(44, 112, 255, 0.3);
}

.receipt-drop {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(145, 168, 202, 0.2);
  text-align: center;
}

.receipt-drop .material-symbols-outlined {
  font-size: 36px;
  color: var(--blue-2);
}

.receipt-drop strong {
  display: block;
  margin-top: 12px;
  font-size: 22px;
}

.receipt-drop p {
  margin: 10px auto 0;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.65;
}

.receipt-drop input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(145, 168, 202, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

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

.checking-state,
.key-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.checking-state {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
}

.spinner {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--blue-2);
  animation: spin 1s linear infinite;
}

.key-card strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: 0.02em;
  word-break: break-word;
}

.key-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
  }

  .cards--4,
  .steps,
  .pricing-grid,
  .devices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100vw - 22px, 100vw);
  }

  .topbar__inner {
    min-height: 74px;
  }

  .hero {
    padding-top: 28px;
    min-height: 0;
  }

  .hero__grid {
    min-height: 0;
  }

  .hero__content h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .hero__copy {
    font-size: 16px;
  }

  .hero__facts,
  .cards--4,
  .steps,
  .pricing-grid,
  .pricing-benefit,
  .devices-split,
  .modal__plan,
  .plan-picker,
  .purchase-flow__steps {
    grid-template-columns: 1fr;
  }

  .telegram-banner,
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-card--featured {
    transform: none;
  }

  .modal {
    padding: 12px;
  }

  .modal__dialog {
    padding: 22px;
  }
}
