/* 5G VPN — сайт fiveg.vip. Тёмная тема в фирменных цветах приложений 5G VPN, шрифт Inter (OFL, локально). */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #090e31;
  --bg-deep: #060a24;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-hover: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0fa;
  --text-muted: #b3b9d6;
  --text-subtle: #8f96bb;
  --violet: #b39ddb;
  --violet-strong: #9c7bd0;
  --accent-a: #9c27b0;
  --accent-b: #673ab7;
  --green: #5ccf63;
  --green-deep: #43a047;
  --focus: #c9b5ff;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1160px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--violet);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
a:hover {
  color: #d9ccf5;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #090e31;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* ─── фон: мягкое свечение ─── */
.glow {
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 380px at 18% 12%, rgba(156, 39, 176, 0.28), transparent 70%),
    radial-gradient(520px 360px at 85% 8%, rgba(103, 58, 183, 0.3), transparent 70%),
    radial-gradient(700px 300px at 50% 70%, rgba(67, 160, 71, 0.08), transparent 70%);
}

/* ─── шапка ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 14, 49, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.header.scrolled,
.header--doc {
  border-bottom-color: var(--border);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand img {
  width: 40px;
  height: 40px;
}
.nav {
  display: none;
  margin-left: auto;
  gap: 4px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav a:hover {
  color: var(--text);
  background: var(--surface);
}
.header__cta {
  display: none;
}
@media (min-width: 960px) {
  .nav {
    display: flex;
  }
  .header__cta {
    display: inline-flex;
  }
  .menu {
    display: none;
  }
}

/* мобильное меню без JavaScript */
.menu {
  margin-left: auto;
  position: relative;
}
.menu summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.menu summary::-webkit-details-marker {
  display: none;
}
.menu[open] summary {
  background: var(--surface-hover);
}
.menu__panel {
  position: absolute;
  right: 0;
  top: 58px;
  width: min(300px, calc(100vw - 40px));
  padding: 8px;
  background: #11174a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
}
.menu__panel a {
  color: var(--text);
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 500;
}
.menu__panel a:hover {
  background: var(--surface-hover);
}
.menu__panel .btn {
  margin-top: 6px;
}

/* ─── кнопки ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  touch-action: manipulation;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}
.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 10px 30px -10px rgba(156, 39, 176, 0.7);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px -10px rgba(156, 39, 176, 0.85);
}
.btn--primary:active {
  transform: translateY(0) scale(0.98);
}
.btn--ghost {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 15px;
}
.btn--block {
  width: 100%;
}

/* ─── секции ─── */
main {
  position: relative;
  z-index: 1;
}
.section {
  padding: 72px 0;
}
@media (min-width: 768px) {
  .section {
    padding: 104px 0;
  }
}
.section__head {
  max-width: 720px;
  margin: 0 0 40px;
}
.section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h2 {
  font-size: clamp(28px, 4vw, 40px);
}
h3 {
  font-size: 19px;
  letter-spacing: -0.01em;
}
.lead {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 18px;
}

/* ─── первый экран ─── */
.hero {
  padding: 56px 0 72px;
}
@media (min-width: 960px) {
  .hero {
    padding: 88px 0 104px;
  }
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(92, 207, 99, 0.18);
}
.hero h1 {
  margin-top: 20px;
  font-size: clamp(36px, 6.2vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.hero h1 .grad {
  background: linear-gradient(120deg, #e6d9ff 0%, #b39ddb 40%, #7fd88a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lead {
  max-width: 560px;
  font-size: 19px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}
.hero__facts li {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero__facts b {
  display: block;
  font-size: 22px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hero__facts span {
  display: block;
  color: var(--text-subtle);
  font-size: 13px;
  line-height: 1.35;
  margin-top: 2px;
}

/* скриншот приложения 5G VPN (главный экран) в рамке телефона */
.shot {
  margin: 0 auto;
  width: min(340px, 100%);
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(180deg, #1c2466 0%, #0b1038 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(103, 58, 183, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
}
@media (max-width: 600px) {
  .shot {
    width: min(300px, 100%);
  }
}
.faq .answer ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

/* иллюстрация: карточка приложения */
.device {
  position: relative;
  margin: 0 auto;
  width: min(340px, 100%);
  padding: 28px 24px 24px;
  border-radius: 36px;
  background: linear-gradient(180deg, #121a52 0%, #0b1038 100%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 100px -30px rgba(103, 58, 183, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  text-align: center;
}
.device__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}
.device__bar img {
  width: 28px;
  height: 28px;
}
.device__power {
  position: relative;
  margin: 36px auto 18px;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #66bb6a, #43a047 55%, #2e7d32);
  box-shadow: 0 0 0 14px rgba(67, 160, 71, 0.1), 0 0 60px rgba(67, 160, 71, 0.45);
}
.device__power svg {
  width: 64px;
  height: 64px;
  color: #fff;
}
.device__status {
  font-weight: 700;
  font-size: 18px;
  color: var(--green);
}
.device__hint {
  color: var(--text-subtle);
  font-size: 13px;
  margin-top: 4px;
}
.device__traffic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}
.device__traffic div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.device__traffic small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.device__traffic .down small {
  color: #7fa3ff;
}
.device__traffic .up small {
  color: #b39ddb;
}
.device__traffic b {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.69);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: no-preference) {
  .device__power::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px solid rgba(92, 207, 99, 0.45);
    animation: ring 2.4s var(--ease) 0.6s 1 both;
  }
  @keyframes ring {
    from {
      transform: scale(0.9);
      opacity: 1;
    }
    to {
      transform: scale(1.25);
      opacity: 0;
    }
  }
}

/* ─── карточки возможностей ─── */
.grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid--3,
  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/* четыре карточки приложений в ряд — только когда кнопки помещаются в одну строку */
@media (min-width: 1200px) {
  .grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid--4 .card {
    padding: 24px;
  }
  .grid--4 .btn {
    padding-left: 12px;
    padding-right: 12px;
    white-space: nowrap;
  }
}
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.card p {
  margin: 10px 0 0;
  color: var(--text-muted);
}
.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.25), rgba(103, 58, 183, 0.25));
  border: 1px solid rgba(179, 157, 219, 0.28);
  color: #d9ccf5;
}
.icon svg {
  width: 24px;
  height: 24px;
}
.icon--green {
  background: rgba(67, 160, 71, 0.16);
  border-color: rgba(92, 207, 99, 0.3);
  color: #8fe596;
}

/* ─── шаги ─── */
.steps {
  counter-reset: step;
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
}
.steps p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

/* ─── тариф ─── */
.pricing {
  display: grid;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 960px) {
  .pricing {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.plan {
  position: relative;
  padding: 36px 32px;
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(156, 39, 176, 0.2), rgba(103, 58, 183, 0.12) 45%, rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(179, 157, 219, 0.35);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.plan__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.plan__tag {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #0b2a0d;
  background: #7fd88a;
}
.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 22px;
  font-variant-numeric: tabular-nums;
}
.plan__price b {
  font-size: clamp(52px, 8vw, 68px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.plan__price span {
  color: var(--text-muted);
  font-size: 17px;
}
.plan__day {
  margin: 10px 0 0;
  color: var(--text-muted);
}
.plan__day b {
  color: var(--text);
}
.checks {
  display: grid;
  gap: 12px;
  margin: 28px 0 32px;
  padding: 0;
  list-style: none;
}
.checks li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
}
.checks svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--green);
}
.checks small {
  display: block;
  color: var(--text-subtle);
  font-size: 14px;
}

.price-side {
  display: grid;
  gap: 20px;
}
.table-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.table-card h3 {
  margin-bottom: 14px;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.table th,
.table td {
  padding: 12px 0;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.table th {
  color: var(--text-subtle);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.table td:not(:first-child),
.table th:not(:first-child) {
  text-align: right;
}
.table tr:last-child td {
  border-bottom: 0;
}
.pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.pay-methods li {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 500;
}
.note {
  margin: 14px 0 0;
  color: var(--text-subtle);
  font-size: 14px;
}

/* ─── приложения ─── */
.app {
  display: flex;
  flex-direction: column;
}
.app__os {
  color: var(--text-subtle);
  font-size: 14px;
  margin: 6px 0 0;
}
.app p:not(.app__os) {
  flex: 1;
  margin-top: 12px;
}
.app .btn {
  margin-top: 22px;
}
.app__logo {
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: #fff;
}
.app__logo svg {
  width: 28px;
  height: 28px;
}
.callout {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(179, 157, 219, 0.28);
  background: rgba(103, 58, 183, 0.12);
  color: var(--text-muted);
}
.callout svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--violet);
  margin-top: 2px;
}
.callout p {
  margin: 0;
}

/* ─── вопросы ─── */
.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}
.faq details {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq details[open] {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 17px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--violet);
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary svg {
  transform: rotate(45deg);
}
.faq .answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
}
.faq .answer p {
  margin: 0 0 10px;
}
.faq .answer p:last-child {
  margin: 0;
}

/* ─── контакты ─── */
.contact {
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .contact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.contact .card a.big {
  display: inline-block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}
.contact .card a.big:hover {
  color: var(--violet);
}

/* ─── финальный призыв ─── */
.cta {
  position: relative;
  padding: 56px 28px;
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(500px 240px at 50% 0%, rgba(156, 39, 176, 0.35), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
}
.cta .lead {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta .hero__actions {
  justify-content: center;
}

/* ─── подвал ─── */
.footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  padding: 48px 0 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  color: var(--text-subtle);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  gap: 28px;
}
@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.footer h2 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.footer a {
  color: var(--text-muted);
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
}
.footer a:hover {
  color: var(--text);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.codeword {
  color: var(--text-muted);
}
.codeword b {
  color: var(--text);
  font-weight: 600;
}

/* ─── страницы документов ─── */
.doc {
  padding: 48px 0 24px;
}
.doc__wrap {
  max-width: 820px;
  margin: 0 auto;
}
.doc__crumbs {
  font-size: 14px;
  color: var(--text-subtle);
  margin-bottom: 20px;
}
.doc__crumbs a {
  color: var(--text-muted);
}
.doc h1 {
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.03em;
}
.doc__meta {
  margin: 12px 0 0;
  color: var(--text-subtle);
  font-size: 15px;
}
.doc__toc {
  margin: 32px 0 8px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}
.doc__toc h2 {
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.doc__toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 1;
  column-gap: 32px;
}
@media (min-width: 720px) {
  .doc__toc ol {
    columns: 2;
  }
}
.doc__toc li {
  padding: 3px 0;
  break-inside: avoid;
}
.doc__toc a {
  color: var(--text-muted);
  text-decoration: none;
}
.doc__toc a:hover {
  color: var(--text);
}
.doc section {
  margin-top: 40px;
}
.doc section h2 {
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.doc p,
.doc li {
  color: #d3d7ec;
  font-size: 16.5px;
  line-height: 1.7;
}
.doc p {
  margin: 0 0 12px;
}
.doc ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc .num {
  color: var(--violet);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.doc__box {
  margin: 16px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(179, 157, 219, 0.28);
  background: rgba(103, 58, 183, 0.1);
}
.doc__box p:last-child {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* вспомогательные классы (CSP: без inline-стилей) */
.section--tight {
  padding-top: 0;
}
@media (min-width: 768px) {
  .section--tight {
    padding-top: 0;
  }
}
.footer__about {
  margin: 14px 0 0;
  max-width: 360px;
}
.footer__bottom--solo {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.doc__final {
  margin-top: 20px;
}

/* ─── Бесплатный прокси для Telegram (над первым экраном) ─── */
.tgp {
  padding: 20px 0 0;
}
.tgp__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px 16px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(42, 171, 238, 0.35);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(42, 171, 238, 0.16), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow);
}
.tgp__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #37bbfe, #1e96d3);
  box-shadow: 0 8px 24px -8px rgba(42, 171, 238, 0.8);
}
.tgp__icon svg {
  width: 24px;
  height: 24px;
  margin-left: -2px;
}
.tgp__text h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.tgp__text p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.tgp__btn {
  grid-column: 1 / -1;
  width: 100%;
  background: linear-gradient(135deg, #37bbfe, #1e96d3);
  box-shadow: 0 10px 30px -10px rgba(42, 171, 238, 0.75);
}
.tgp__btn:hover {
  box-shadow: 0 14px 34px -10px rgba(42, 171, 238, 0.9);
}
@media (min-width: 768px) {
  .tgp {
    padding-top: 28px;
  }
  .tgp__card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 20px 24px;
    gap: 20px;
  }
  .tgp__btn {
    grid-column: auto;
    width: auto;
    white-space: nowrap;
  }
}
