/* Витрина F-VPN (отдельный домен, см. Caddyfile → LANDING_ADDRESS). Без внешних шрифтов,
   скриптов и счётчиков: страница должна открываться у всех и ничего не отправлять. */

:root {
  --bg: #f3f5fb;
  --card: #ffffff;
  --text: #11142a;
  --muted: #5d6480;
  --line: #e4e8f3;
  --accent: #4a5cff;
  --accent-2: #8a4dff;
  --accent-text: #ffffff;
  --soft: #eef0ff;
  --ok: #17a061;
  --ok-soft: #e3f6ec;
  --shadow: 0 1px 2px rgba(17, 20, 42, 0.04), 0 12px 32px rgba(40, 52, 120, 0.08);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d18;
    --card: #151a2e;
    --text: #eef0f8;
    --muted: #9ba2bd;
    --line: #252b45;
    --accent: #7486ff;
    --accent-2: #a77bff;
    --soft: #1d2346;
    --ok: #4ccf8e;
    --ok-soft: #12301f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* иконки из <symbol> в index.html */
svg use {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--soft);
  color: var(--accent);
}

.icon svg {
  width: 22px;
  height: 22px;
}

/* кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-text);
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(74, 92, 255, 0.28);
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(74, 92, 255, 0.36);
}

.btn.small {
  padding: 9px 16px;
  font-size: 15px;
}

.btn.wide {
  width: 100%;
}

.btn.light {
  background: #fff;
  color: #3646e0;
  box-shadow: 0 10px 24px rgba(20, 20, 80, 0.25);
}

.btn.glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

/* шапка документов */
header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo svg {
  width: 30px;
  height: 30px;
}

nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

nav a:hover {
  color: #fff;
}

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

/* первый экран */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 36px 36px;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(150, 90, 255, 0.55), transparent 45%),
    linear-gradient(140deg, #3550ff 0%, #5b48ff 50%, #8a4dff 100%);
  color: #fff;
}

.hero header {
  border: 0;
  background: transparent;
}

.hero .logo {
  color: #fff;
}

.hero-body {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 64px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-lead {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.pills {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 550;
}

.pills svg {
  width: 26px;
  height: 26px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art svg {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  filter: drop-shadow(0 30px 40px rgba(20, 10, 90, 0.35));
  animation: float 6s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .hero-art svg {
    animation: none;
  }
}

@media (max-width: 760px) {
  .hero-body {
    grid-template-columns: 1fr;
    padding-top: 20px;
    padding-bottom: 40px;
    text-align: center;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .pills {
    align-items: center;
  }

  .actions {
    justify-content: center;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .hero-art {
    order: -1;
  }

  .hero-art svg {
    max-width: 180px;
  }
}

/* секции */
section {
  padding: 52px 0 8px;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(28px, 4.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-align: center;
}

h3 {
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 640px;
  margin: -10px auto 24px;
  text-align: center;
  color: var(--muted);
}

.note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--muted);
}

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

/* преимущества */
#features {
  margin-top: -28px;
  position: relative;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature,
.step,
.plan,
.free,
.pay-item,
.faq details,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature {
  padding: 22px 18px;
  text-align: center;
}

.feature .icon {
  margin-bottom: 12px;
}

.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

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

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    text-align: left;
  }

  .feature .icon {
    margin: 0;
  }

  .feature h3 {
    margin-bottom: 2px;
  }
}

/* шаги */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  counter-increment: step;
  padding: 22px 20px;
}

.step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 800;
}

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

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* бесплатный тариф */
.free {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  padding: 18px 20px;
}

.free h3 {
  margin: 0 0 2px;
}

.free p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.free > div {
  flex: 1;
}

@media (max-width: 560px) {
  .free {
    flex-wrap: wrap;
  }

  .free .btn {
    width: 100%;
  }
}

/* тарифы: переключатель 300 ГБ / «Безлимит» без скриптов (radio + :checked) */
.pricing > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.switch label {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
}

#traffic-std:checked ~ .switch label[for='traffic-std'],
#traffic-unl:checked ~ .switch label[for='traffic-unl'] {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

#traffic-std:focus-visible ~ .switch label[for='traffic-std'],
#traffic-unl:focus-visible ~ .switch label[for='traffic-unl'] {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

#traffic-std:checked ~ .plans-unl,
#traffic-unl:checked ~ .plans-std {
  display: none;
}

@media (max-width: 900px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}

.plan {
  padding: 22px 18px 18px;
}

.plan.accent {
  border-color: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    var(--shadow);
}

.plan h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.checks {
  margin: 0 0 14px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}

.checks li {
  position: relative;
  padding-left: 28px;
  margin: 6px 0;
}

.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%234a5cff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 100% no-repeat;
}

.periods {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.period {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2px 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.period-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  font-size: 15px;
}

.period-price {
  font-weight: 750;
  font-size: 17px;
  text-align: right;
}

.period-month {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--muted);
}

.badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

/* полная таблица цен */
.all-prices {
  margin-top: 18px;
}

.all-prices summary {
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.table-wrap {
  overflow-x: auto;
  margin-top: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

caption {
  padding: 14px 16px 6px;
  text-align: left;
  font-weight: 650;
}

th,
td {
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

thead th {
  border-top: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

th:first-child {
  text-align: left;
}

tbody th {
  font-weight: 500;
}

@media (max-width: 480px) {
  table {
    font-size: 14px;
  }

  th,
  td {
    padding: 8px 5px;
  }

  thead th {
    font-size: 12px;
  }

  th:first-child {
    padding-left: 12px;
  }

  td:last-child,
  thead th:last-child {
    padding-right: 12px;
  }
}

/* оплата и контакты */
.pay {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.pay-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.pay-item:hover {
  border-color: var(--accent);
}

/* вопросы */
.faq {
  display: grid;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  padding: 0 20px;
}

.faq summary {
  position: relative;
  padding: 18px 32px 18px 0;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 18px;
  font-weight: 500;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  margin: -4px 0 18px;
  color: var(--muted);
}

/* призыв внизу */
.cta {
  padding: 40px 24px;
  border-radius: 30px;
  text-align: center;
  color: #fff;
  background:
    radial-gradient(circle at 90% 0%, rgba(255, 255, 255, 0.2), transparent 40%),
    linear-gradient(140deg, #3550ff, #8a4dff);
}

.cta h2 {
  margin-bottom: 10px;
}

.cta p {
  max-width: 480px;
  margin: 0 auto 22px;
  color: rgba(255, 255, 255, 0.86);
}

/* документы */
.doc {
  max-width: 760px;
  padding: 40px 0 24px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.2;
}

.doc h2 {
  margin: 28px 0 8px;
  font-size: 20px;
  text-align: left;
  letter-spacing: 0;
  font-weight: 700;
}

.doc .updated {
  margin: 0 0 24px;
  color: var(--muted);
}

/* подвал */
footer {
  margin-top: 48px;
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 14px;
  color: var(--muted);
}

footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

footer h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--text);
}

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

footer li {
  margin: 4px 0;
}

footer p {
  margin: 4px 0;
}
