/* ============================================================
   Dragon VPN — shared styles
   ============================================================ */

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

:root {
  --bg:       #0a0608;
  --bg2:      #110a0c;
  --red:      #e0362a;
  --red-2:    #7a140f;
  --red-dim:  rgba(224,54,42,0.15);
  --red-glow: rgba(224,54,42,0.08);
  --border:   rgba(255,255,255,0.07);
  --border-r: rgba(224,54,42,0.25);
  --text:     #e8e0e0;
  --muted:    #8f7c7a;
  --green:    #2ecc71;
  --logo-f:   'Syne', sans-serif;
  --sans:     'Inter', system-ui, sans-serif;
  --hand:     'Great Vibes', cursive;
  --num:      'Space Grotesk', var(--sans);
  --serif:    'Playfair Display', serif;
  --red-grad: linear-gradient(135deg, #ff5240, var(--red) 55%, var(--red-2));
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 64px);
}

@media (min-width: 1600px) { :root { --container: 1320px; } }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

button, input { font-family: var(--sans); }

a:focus-visible, button:focus-visible, .plan-btn:focus-visible {
  outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px;
}
.input:focus-visible { outline: none; }

.orb { position: fixed; border-radius: 50%; filter: blur(130px); pointer-events: none; z-index: 0; }
.orb-1 { width: 520px; height: 520px; background: #7a120c; top: -180px; right: -100px; opacity: .32; }
.orb-2 { width: 340px; height: 340px; background: #4d0a08; bottom: 100px; left: -80px; opacity: .26; }

.wrap, .nav-inner, .foot-inner {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(10,6,8,0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 68px; gap: 10px;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-text {
  font-family: var(--logo-f);
  font-size: 18px; font-weight: 800;
  color: #fff; letter-spacing: .03em; text-transform: uppercase;
}
.logo-text span { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-link {
  font-size: 13px; font-weight: 500; color: var(--text);
  text-decoration: none; transition: color .2s;
}
.nav-link:hover { color: #fff; }
.nav-buy {
  font-size: 13px; font-weight: 500; color: #fff;
  background: var(--red-grad); text-decoration: none;
  padding: 9px 22px; border-radius: 6px; transition: opacity .2s, transform .15s;
}
.nav-buy:hover { opacity: .9; transform: translateY(-1px); }

.nav-burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; width: 36px; height: 36px; flex-shrink: 0;
  background: transparent; border: none; padding: 0; cursor: pointer;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: #fff; transition: transform .25s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 6px var(--gutter) 22px;
  border-top: 1px solid var(--border);
  background: rgba(10,6,8,0.97);
}
.nav-mobile-menu.show { display: flex; }
.nav-mobile-link {
  padding: 15px 2px; font-size: 14px; font-weight: 500; color: var(--text);
  text-decoration: none; border-bottom: 1px solid var(--border);
}
.nav-mobile-menu .nav-mobile-divider ~ .nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-buy {
  display: block; width: 100%; margin: 14px 0 4px;
  padding: 13px; border: none; border-radius: 6px;
  background: var(--red-grad); color: #fff;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  text-align: center; text-decoration: none; cursor: pointer;
}
.nav-mobile-divider { height: 1px; background: var(--border); margin: 4px 0 6px; }
body.nav-open { overflow: hidden; }

/* ── HERO ── */
.hero { padding: 168px 0 clamp(56px, 9vw, 100px); }
.hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 56px; flex-wrap: wrap;
}
.hero-content { flex: 1 1 440px; min-width: 0; max-width: 620px; }
.hero-visual { flex-shrink: 0; }

.hero-tag {
  font-size: 12px; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.hero-tag::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--red); flex-shrink: 0;
}

.hero-title {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(56px, 7vw, 96px);
  letter-spacing: 0;
  color: #fff; line-height: 1.05; margin-bottom: 20px;
  text-wrap: balance;
}
.hero-title span { color: var(--red); }

.hero-sub {
  font-size: 16px; color: var(--muted);
  max-width: 460px; line-height: 1.7; margin-bottom: 48px; font-weight: 400;
}
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.btn-red {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; background: var(--red-grad); color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 6px;
  transition: transform .15s, box-shadow .2s;
  border: none; cursor: pointer; font-family: var(--sans);
  white-space: nowrap;
  box-shadow: 0 10px 28px -12px rgba(224,54,42,.7);
}
.btn-red::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, var(--red-2), #ff5240 55%, var(--red));
  opacity: 0; transition: opacity .2s ease-out;
}
.btn-red:hover::before { opacity: 1; }
.btn-red:hover { transform: translateY(-1px); box-shadow: 0 14px 32px -12px rgba(224,54,42,.85); }
.hero-note { font-size: 13px; color: var(--muted); white-space: nowrap; }

.hero-emblem {
  width: 480px; max-width: 42vw; height: auto; display: block;
  filter: drop-shadow(0 0 70px rgba(224,54,42,.4));
}

/* ── STATS ── */
.stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin-bottom: clamp(56px, 9vw, 100px);
}
.stat { padding: 0 40px; border-right: 1px solid var(--border); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat-n {
  font-family: var(--num);
  font-size: 38px; font-weight: 700; color: #fff;
  line-height: 1; margin-bottom: 4px; letter-spacing: -.01em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.stat-n span { color: var(--red); }
.stat-l { font-size: 13px; color: var(--muted); }

/* ── SECTION TITLE ── */
.section-title {
  font-size: 11px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 40px;
  display: flex; align-items: center; gap: 12px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ── ANTIJAM SECTION ── */
.antijam { padding-bottom: clamp(56px, 9vw, 100px); }
.antijam-inner {
  border: 1px solid var(--border-r);
  background: var(--red-glow);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.antijam-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,54,42,.4), transparent);
}
.antijam-text { min-width: 0; }
.antijam-visual {
  width: 320px; max-width: 34vw; height: auto; flex-shrink: 0;
  display: block; object-fit: contain;
  filter: drop-shadow(0 0 50px rgba(224,54,42,.35));
}
.antijam-label {
  font-family: var(--logo-f);
  font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px;
}
.antijam-title {
  font-family: var(--num);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.01em;
  color: #fff; line-height: 1.25; margin-bottom: 20px;
}
.antijam-title span { color: var(--red); }
.antijam-body {
  font-size: 15px; color: var(--muted); line-height: 1.75;
  max-width: 620px;
}
.antijam-features {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 32px; max-width: 620px;
}
.antijam-feature-title {
  font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 6px;
}
.antijam-feature-desc { font-size: 12.5px; color: var(--muted); line-height: 1.6; }

/* ── GUEST ACTIONS (купить/продлить без регистрации) ── */
.guest-actions { padding-bottom: clamp(56px, 9vw, 100px); }
.guest-actions-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.guest-action {
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  display: block;
  text-decoration: none;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.guest-action::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red-grad);
  opacity: 0; transition: opacity .25s ease;
}
.guest-action:hover {
  transform: translateY(-4px);
  border-color: var(--border-r);
  background: linear-gradient(165deg, #170d0e, #0d0708);
  box-shadow: 0 16px 40px -16px rgba(224,54,42,.35);
}
.guest-action:hover::before { opacity: 1; }
.guest-action-title {
  font-family: var(--num); font-weight: 700; font-size: 22px;
  color: #fff; margin-bottom: 8px;
}
.guest-action-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.guest-action-cta { font-size: 13px; font-weight: 600; color: var(--red); }

/* ── PRICING ── */
.pricing { padding-bottom: clamp(56px, 9vw, 100px); }
.plans-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.plan {
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 30px 26px;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, background .25s ease;
  position: relative;
  overflow: hidden;
}
.plan::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red-grad);
  opacity: 0; transition: opacity .25s ease;
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--border-r);
  background: linear-gradient(165deg, #170d0e, #0d0708);
  box-shadow: 0 16px 40px -16px rgba(224,54,42,.35);
}
.plan:hover::before { opacity: 1; }
.plan.is-popular {
  border-color: var(--red);
  background: linear-gradient(165deg, #1e1012, #0d0708);
  box-shadow: 0 0 0 1px rgba(224,54,42,.25), 0 20px 50px -20px rgba(224,54,42,.5);
}
.plan.is-popular::before { opacity: 1; }
.plan.is-best { border-color: var(--border-r); }
.plan.is-best::before { opacity: 1; }
.plan-badge {
  font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--red); margin-bottom: 16px; min-height: 16px;
  text-align: center;
}
.plan-name {
  font-family: var(--num);
  font-size: 14px; font-weight: 500;
  color: var(--muted); letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 16px;
  text-align: center;
}
.plan-price {
  font-size: 40px; font-weight: 700;
  color: #fff; line-height: 1;
  letter-spacing: -.01em; margin-bottom: 4px;
  font-family: var(--num); white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.plan-price sup { font-size: 15px; vertical-align: top; margin-top: 6px; font-weight: 500; color: var(--muted); font-family: var(--sans); }
.plan-save {
  font-family: var(--num); font-weight: 500;
  font-size: 13px; color: var(--red);
  display: block; margin-top: 6px; min-height: 18px; white-space: nowrap;
  text-align: center;
}
.plan-save.is-highlight { font-size: 15px; font-weight: 700; }
.plan-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: block; width: 100%; text-align: center; text-decoration: none;
  margin-top: auto; padding: 12px 0; font-size: 12px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--border-r); cursor: pointer;
  color: var(--text); border-radius: 8px;
  transition: color .2s, border-color .2s;
}
.plan-btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--red-grad);
  opacity: 0; transition: opacity .2s ease-out;
}
.plan-btn:hover, .plan.is-popular .plan-btn { color: #fff; border-color: transparent; }
.plan-btn:hover::before, .plan.is-popular .plan-btn::before { opacity: 1; }
.plan-error { font-size: 12px; color: var(--red); margin-top: 10px; text-align: center; }
.plans-empty { grid-column: 1 / -1; font-size: 13px; color: var(--muted); text-align: center; padding: 20px 0; }

/* ============================================================
   SKELETON — заглушки на время загрузки данных
   Одна CSS-анимация на transform (композитится GPU, без JS-таймеров
   и без сторонних библиотек), чтобы не нагружать страницу.
   ============================================================ */
.skeleton {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
}
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
@keyframes skel-shimmer { to { transform: translateX(100%); } }

/* Текстовые заглушки: сам текст-плейсхолдер прячем, размер держит строка,
   поэтому при появлении данных вёрстка не прыгает. */
body.is-loading .skel {
  color: transparent !important;
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  display: inline-block;
  min-width: var(--skel-w, 90px);
  /* высота ровно в размер шрифта — строка сохраняет свой line-height,
     поэтому появление настоящего текста не двигает соседние блоки */
  height: 1em; line-height: 1; vertical-align: -.12em;
  position: relative; overflow: hidden;
  user-select: none; pointer-events: none;
}
body.is-loading .skel::after {
  content: ''; position: absolute; inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.07), transparent);
  animation: skel-shimmer 1.4s ease-in-out infinite;
}
body.is-loading .skel > * { visibility: hidden; }
/* Бейдж статуса: рамку прячем, но высоту держит его собственный padding */
body.is-loading .badge.skel {
  border-color: transparent; height: auto; line-height: inherit; vertical-align: baseline;
}
/* Полоса трафика во время загрузки — пустой жёлоб с подсветкой */
body.is-loading .progress { background: rgba(255,255,255,.05); }

/* Крупная цифра: выравниваем по базовой линии, иначе строка выше на пару пикселей */
body.is-loading .widget-num .skel { vertical-align: baseline; height: .74em; }

.skel-line { display: block; height: 12px; }
.skel-flag { display: inline-block; width: 26px; height: 20px; border-radius: 4px; }

/* Карточка-заглушка тарифа: те же размеры, что у настоящей .plan */
.plan-skeleton { pointer-events: none; }
.plan-skeleton .skel-badge { height: 11px; width: 60%; margin: 0 auto 16px; }
.plan-skeleton .skel-name { height: 14px; width: 70%; margin: 0 auto 16px; }
.plan-skeleton .skel-price { height: 40px; width: 60%; margin: 0 auto 4px; }
.plan-skeleton .skel-save { height: 13px; width: 45%; margin: 6px auto 0; }
.plan-skeleton .skel-btn { height: 41px; width: 100%; margin-top: 24px; border-radius: 8px; }

/* Плавное появление блоков, которые видны только после ответа API */
.reveal { animation: reveal-in .32s ease-out both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton::after, body.is-loading .skel::after { animation: none; }
  .reveal { animation: none; }
}

/* ── REVIEWS ── */
.reviews { padding-bottom: clamp(56px, 9vw, 100px); }
.reviews-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review {
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  padding: 30px 30px 26px; border-radius: 12px;
  position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
  display: flex; flex-direction: column;
}
.review:hover { border-color: var(--border-r); transform: translateY(-3px); }
.review-stars {
  color: var(--red); font-size: 15px; letter-spacing: 3px;
  white-space: nowrap; margin-bottom: 14px;
  text-shadow: 0 0 16px rgba(224,54,42,.5);
}
.review-quote {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: 90px; color: var(--red); opacity: .2;
  position: absolute; top: 10px; right: 28px; line-height: 1;
}
.review-text { font-size: 15px; color: var(--text); line-height: 1.75; margin-bottom: 22px; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--red-dim); border: 1px solid var(--border-r);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--red); flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 500; color: #fff; }
.review-role { font-size: 11px; color: var(--muted); }

/* ── CTA ── */
.cta-section { padding-bottom: clamp(56px, 9vw, 100px); }
.cta-box {
  border: 1px solid var(--border-r);
  background: linear-gradient(120deg, #1c0f0e, var(--bg) 60%, #2a0f0d);
  border-radius: 16px;
  padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,54,42,.5), transparent);
}
.cta-copy { max-width: 480px; }
.cta-hand {
  font-family: var(--logo-f); font-weight: 700; font-size: 11px; color: var(--red);
  letter-spacing: .18em; text-transform: uppercase;
  line-height: 1; display: block; margin-bottom: 14px;
}
.cta-box h2 { font-size: clamp(30px, 3.4vw, 42px); font-weight: 400; font-family: var(--hand); color: #fff; letter-spacing: 0; margin-bottom: 8px; line-height: 1.2; }
.cta-box p { font-size: 14px; color: var(--muted); }
.cta-box .btn-red { flex-shrink: 0; }

/* ── FOOTER ── */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.foot-inner {
  display: flex; justify-content: space-between; align-items: center;
}
.foot-logo { display: flex; align-items: center; text-decoration: none; }
.foot-logo .logo-text { font-size: 16px; }
.foot-copy { font-size: 12px; color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; list-style: none; }
.foot-links a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color .2s; }
.foot-links a:hover { color: var(--text); }

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 92px 20px 40px;
}
.auth-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border-r);
  border-radius: 14px;
  padding: 32px 32px;
  box-shadow: 0 24px 70px -28px rgba(224,54,42,.45);
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.auth-logo {
  font-family: var(--logo-f); font-size: 20px; font-weight: 800;
  color: #fff; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.auth-logo .logo-mark { width: 26px; height: 26px; }
.auth-logo span { color: var(--red); }
.auth-title {
  font-family: var(--logo-f); font-weight: 800;
  font-size: 26px; color: #fff; line-height: 1.2; margin: 12px 0 6px;
  letter-spacing: -.01em;
}
.auth-title span { color: var(--red); }
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 22px; }
/* отступ до формы одинаковый и с подзаголовком (схлопывается с его margin), и без него */
.auth-card form { margin-top: 22px; }

.field { margin-bottom: 14px; }
.field label {
  display: block; font-size: 12px; color: var(--muted);
  letter-spacing: .04em; margin-bottom: 7px; text-transform: uppercase;
}
.input {
  width: 100%; padding: 13px 14px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 7px;
  /* 16px, не меньше — иначе Safari на iPhone зумит страницу при фокусе на инпуте */
  font-size: 16px; font-family: var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: var(--muted); }
.input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.input.is-invalid { border-color: var(--red); }
/* пустая ошибка не резервирует место — иначе поля расходятся на лишние 20px */
.field-error { font-size: 12px; color: var(--red); }
.field-error:not(:empty) { margin-top: 6px; }

.checkrow {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--muted); margin-bottom: 18px;
}
.checkrow input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 2px; accent-color: var(--red); flex-shrink: 0;
}
.checkrow a { color: var(--red); text-decoration: none; }
.checkrow a:hover { text-decoration: underline; }

.auth-row-between {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 8px;
}
.link-muted { font-size: 13px; color: var(--muted); text-decoration: none; transition: color .2s; }
.link-muted:hover { color: var(--red); }

.btn-block {
  width: 100%; justify-content: center; padding: 14px;
  font-size: 14px; font-weight: 600;
}
.btn-red[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.auth-alert {
  display: none;
  background: var(--red-dim); border: 1px solid var(--border-r);
  color: #f3b8b1; border-radius: 7px;
  padding: 11px 14px; font-size: 13px; margin-bottom: 16px;
}
.auth-alert.show { display: block; }

.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 20px; }
.auth-foot a { color: var(--red); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* simple modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 380px;
  background: var(--bg2); border: 1px solid var(--border-r);
  border-radius: 12px; padding: 30px 28px; position: relative;
}
.modal h3 { font-family: var(--logo-f); font-size: 18px; color: #fff; margin-bottom: 10px; }
.modal p { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--red); }

/* ============================================================
   DASHBOARD
   ============================================================ */
.dash-body { padding: 100px 0 80px; }
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 14px;
}
.dash-hello { font-family: var(--hand); font-weight: 400; font-size: 44px; color: #fff; line-height: 1.15; letter-spacing: 0; }
.dash-hello span { color: var(--red); }
.dash-email { font-size: 13px; color: var(--muted); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--border-r); border-radius: 6px;
  background: transparent; color: var(--text); text-decoration: none; cursor: pointer;
  font-family: var(--sans); transition: background .2s, border-color .2s, color .2s;
}
.btn-ghost:hover { background: var(--red); color: #fff; border-color: var(--red); }

.payment-sync-note {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted); margin-top: 18px;
}
.payment-sync-note .spinner { border-color: rgba(224,54,42,.3); border-top-color: var(--red); }

.dash-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 16px; margin-top: 32px;
}
.card {
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 26px 26px;
  min-width: 0;
}
.card.span-2 { grid-column: 1 / -1; }
.card-title {
  font-size: 11px; font-weight: 500; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.card-desc { font-size: 13px; color: var(--muted); margin: -10px 0 20px; }

.badge {
  font-size: 11px; font-weight: 600; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
  white-space: nowrap;
}
.badge.active { color: var(--green); background: rgba(46,204,113,.12); border: 1px solid rgba(46,204,113,.3); }
.badge.inactive { color: var(--muted); background: rgba(255,255,255,.04); border: 1px solid var(--border); }
.badge.online { color: var(--green); background: rgba(46,204,113,.12); }
.badge.offline { color: var(--red); background: var(--red-dim); }

.sub-plan { font-family: var(--num); font-size: 28px; color: #fff; font-weight: 700; margin-bottom: 4px; }
.sub-meta { font-size: 13px; color: var(--muted); }
.sub-meta strong { color: var(--text); font-weight: 500; }

.traffic-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.traffic-used { font-family: var(--num); font-weight: 700; font-size: 26px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.traffic-limit { font-family: var(--num); font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.progress {
  height: 10px; border-radius: 6px; background: var(--bg);
  border: 1px solid var(--border); overflow: hidden;
}
.progress-bar {
  height: 100%; border-radius: 6px;
  background: linear-gradient(90deg, #8e2018, var(--red));
  transition: width .6s ease;
}
.traffic-hint { font-size: 12px; color: var(--muted); margin-top: 10px; }

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

.sub-link-row { display: flex; gap: 8px; }
.sub-link-input {
  flex: 1; min-width: 0; padding: 12px 14px; font-size: 16px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 7px;
  color: var(--text); font-family: var(--mono, monospace);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.sub-link-input:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.btn-copy {
  padding: 0 16px; border: 1px solid var(--border-r); border-radius: 7px;
  background: transparent; color: var(--text); cursor: pointer; font-size: 13px;
  white-space: nowrap; transition: background .2s, color .2s;
}
.btn-copy:hover { background: var(--red); color: #fff; border-color: var(--red); }
.qr-box {
  margin-top: 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
#qr-code {
  width: 150px; height: 150px; background: #fff; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; padding: 8px;
}
#qr-code img, #qr-code canvas { width: 100%; height: 100%; }
.qr-hint { font-size: 13px; color: var(--muted); max-width: 220px; }

.device-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 16px; }
.device-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 16px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg); text-decoration: none; color: var(--text);
  cursor: pointer; font-family: var(--sans);
  transition: border-color .2s, background .2s;
}
.device-card:hover, .device-card.is-active { border-color: var(--border-r); background: var(--red-glow); }
.device-icon { font-size: 22px; line-height: 1; }
.device-name { font-size: 12px; font-weight: 500; }

.onboard-steps { display: flex; flex-direction: column; gap: 20px; margin-top: 24px; margin-bottom: 4px; }
.onboard-steps[hidden] { display: none; }
.onboard-step { display: flex; gap: 14px; }
.onboard-step-num {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: var(--red-dim); border: 1px solid var(--border-r); color: var(--red);
  font-size: 12px; font-weight: 700; font-family: var(--num);
  display: flex; align-items: center; justify-content: center;
}
.onboard-step-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 4px; }
.onboard-step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }
.onboard-link-box { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); display: none; }
.onboard-link-box.show { display: block; }
.onboard-step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.onboard-fallback { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.link-btn {
  background: none; border: none; padding: 0; margin: 0; font: inherit;
  color: var(--red); text-decoration: underline; cursor: pointer;
}
.link-btn:hover { color: #fff; }
.link-btn:disabled { opacity: .5; cursor: not-allowed; text-decoration: none; }
.btn-ghost:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost:disabled:hover { background: transparent; color: var(--text); border-color: var(--border-r); }
#windows-alt-panel:not([hidden]) { margin-top: 4px; display: flex; flex-direction: column; gap: 20px; }

.widget-num {
  font-family: var(--num); font-weight: 700; font-size: 34px; color: #fff;
  line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums;
}
.widget-label { font-size: 13px; color: var(--muted); }
.servers-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.servers-flags { display: flex; flex-wrap: wrap; gap: 8px; }
.servers-flag {
  width: 36px; height: 36px; font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
}

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.pay-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: 13px; }
.pay-table th {
  text-align: left; font-size: 11px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.pay-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.pay-table tr:last-child td { border-bottom: none; }
.pay-status { font-size: 12px; font-weight: 500; }
.pay-status.paid { color: var(--green); }
.pay-status.pending { color: #e0a82e; }
.pay-status.failed { color: var(--red); }
.pay-status.refunded { color: var(--muted); }

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
  .plans-row { grid-template-columns: repeat(2, 1fr); }
  .antijam-features { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 720px) {
  .nav-actions { display: none; }
  .nav-burger { display: flex; }
  .hero { padding-top: 120px; }
  .hero-inner { flex-direction: column; text-align: center; gap: 36px; }
  .hero-content { max-width: 100%; }
  .hero-tag { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-emblem {
    width: 240px; max-width: 56vw;
    margin: 0 auto;
    filter: drop-shadow(0 0 40px rgba(224,54,42,.4));
  }
  .stats {
    border-top: none; border-bottom: none;
    grid-template-columns: repeat(2, 1fr); gap: 14px;
  }
  .stat, .stat:first-child, .stat:last-child {
    border: 1px solid var(--border-r); border-radius: 14px;
    background: linear-gradient(165deg, var(--bg2), #0d0708);
    padding: 28px 14px; text-align: center;
  }
  .plans-row { grid-template-columns: 1fr; }
  .guest-actions-row { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 36px 24px; text-align: center; justify-content: center; }
  .cta-copy { max-width: none; }
  .foot-inner { flex-direction: column; gap: 20px; text-align: center; }
  .antijam-inner {
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
  }
  .antijam-body { max-width: none; margin: 0 auto; }
  .antijam-features { text-align: left; }
  .antijam-visual {
    width: 220px; max-width: 60vw;
    margin: 0 auto;
  }
  .auth-card { padding: 28px 22px; }
  .device-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .device-card { padding: 14px 8px; gap: 6px; }
  .device-icon { font-size: 20px; }
  .device-name { font-size: 11.5px; }
  .onboard-steps { gap: 18px; margin-top: 22px; }
  .onboard-step { gap: 12px; }
  .onboard-step-num { width: 24px; height: 24px; font-size: 11.5px; }
  .onboard-step-title { font-size: 13.5px; }
  .onboard-step-desc { font-size: 12.5px; }
  .onboard-fallback { font-size: 12px; }
}
@media (max-width: 480px) {
  .device-grid { grid-template-columns: repeat(2, 1fr); }
  .device-card { padding: 12px 8px; }
  .device-icon { font-size: 18px; }
  .device-name { font-size: 11px; }
  .onboard-steps { gap: 16px; margin-top: 20px; }
  .onboard-step { gap: 10px; }
  .onboard-step-num { width: 22px; height: 22px; font-size: 11px; }
  .onboard-step-title { font-size: 13px; }
  .onboard-step-desc { font-size: 12px; line-height: 1.55; }
  .onboard-step-actions { gap: 8px; margin-top: 10px; }
  .onboard-step-actions .btn-ghost { padding: 9px 14px; font-size: 12.5px; }
  .onboard-fallback { font-size: 11.5px; }
}
@media (max-width: 360px) {
  .logo-text { font-size: 15px; }
}
/* низкие экраны (ноутбуки, альбомная ориентация) — регистрация без скролла */
@media (max-height: 760px) {
  .auth-page { padding: 84px 20px 28px; }
  .auth-card { padding: 26px 30px; }
  .auth-title { font-size: 23px; margin: 10px 0 6px; }
  .auth-sub { font-size: 13px; margin-bottom: 18px; }
  .auth-card form { margin-top: 18px; }
  .field { margin-bottom: 12px; }
  .field label { margin-bottom: 6px; }
  .input { padding: 11px 13px; }
  .btn-block { padding: 12px; }
  .auth-foot { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-red:hover { transform: none; }
  .nav-burger span { transition: none; }
}

/* ============================================================
   GUEST PAGES — «Купить / Продлить VPN без регистрации»
   Свой шрифт (Onest — геометрический гротеск с кириллицей),
   крупный заголовок, шаги 01–03 и мягкие анимации появления.
   Всё под body.guest-page, остальные страницы не затрагиваются.
   ============================================================ */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.guest-page, .home-page {
  --guest-f: 'Onest', 'Inter', system-ui, sans-serif;
  --sans: var(--guest-f);
  --num: var(--guest-f);
  font-family: var(--guest-f);
}
.guest-page .orb-1, .home-page .orb-1 { animation: orb-drift 18s ease-in-out infinite alternate; }
.guest-page .orb-2, .home-page .orb-2 { animation: orb-drift 22s ease-in-out infinite alternate-reverse; }
.guest-page .orb-3, .home-page .orb-3 {
  width: 420px; height: 420px; background: #5c0f0a; opacity: .2;
  top: 38%; right: 12%;
  animation: orb-drift 26s ease-in-out infinite alternate;
}
@keyframes orb-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-60px, 50px, 0) scale(1.12); }
}

/* сетка-«подложка», гаснущая книзу */
.guest-page .dash-body { position: relative; padding-top: 128px; }
.guest-page .dash-body::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 640px; z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 30%, transparent 75%);
}

/* появление по очереди: задержка задаётся через --d прямо в разметке */
.rise { animation: guest-rise .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s) both; }
@keyframes guest-rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.guest-hero { text-align: center; max-width: 760px; margin: 0 auto; }
.guest-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-r);
  font: 500 12px/1 var(--guest-f);
  letter-spacing: .08em; text-transform: uppercase; color: #d9c6c4;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--red);
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 3px rgba(224,54,42,.25); }
  50%      { box-shadow: 0 0 0 8px rgba(224,54,42,0); }
}
.guest-title {
  font-family: var(--guest-f); font-weight: 800;
  font-size: clamp(38px, 6.2vw, 72px); line-height: 1.04;
  letter-spacing: -.035em; color: #fff;
  margin: 22px 0 18px;
}
.grad-text {
  background: linear-gradient(100deg, #ff7a5c 0%, var(--red) 30%, #ffa088 50%, var(--red) 70%, #ff7a5c 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-flow 6s linear infinite;
}
@keyframes grad-flow { to { background-position: -220% 0; } }
.guest-lead {
  font-size: clamp(15px, 1.6vw, 17px); color: var(--muted);
  line-height: 1.65; max-width: 560px; margin: 0 auto;
}
.guest-perks {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin-top: 26px;
}
.guest-perks li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text);
  background: linear-gradient(165deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid var(--border);
}
.guest-perks svg { width: 14px; height: 14px; color: var(--red); flex-shrink: 0; }

/* шаги 01–03 */
.guest-steps {
  list-style: none;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin: 56px 0 64px;
}
.guest-step {
  position: relative; overflow: hidden;
  padding: 24px 24px 22px; border-radius: 16px;
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease;
}
.guest-step::after {
  content: ''; position: absolute; right: -50px; bottom: -70px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,54,42,.2), transparent 70%);
  opacity: 0; transition: opacity .3s ease; pointer-events: none;
}
.guest-step:hover { transform: translateY(-3px); border-color: var(--border-r); }
.guest-step:hover::after { opacity: 1; }
.guest-step-num {
  display: inline-block; margin-bottom: 14px; min-width: 36px; text-align: center;
  font: 700 13px/1 var(--guest-f); letter-spacing: .04em; font-variant-numeric: tabular-nums;
  color: var(--red);
  padding: 7px 9px; border-radius: 8px;
  background: var(--red-dim); border: 1px solid var(--border-r);
}
.guest-step-title { font-size: 18px; font-weight: 700; color: #fff; letter-spacing: -.01em; margin-bottom: 6px; }
.guest-step-desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

.guest-section-title {
  font-family: var(--guest-f); font-weight: 800;
  font-size: clamp(26px, 3vw, 34px); letter-spacing: -.025em; color: #fff;
  text-align: center; margin-bottom: 26px;
}

/* тарифы: карточки въезжают по очереди после загрузки */
.guest-page .plan:not(.plan-skeleton), .home-page .plan:not(.plan-skeleton) { animation: guest-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.guest-page .plan:nth-child(2), .home-page .plan:nth-child(2) { animation-delay: .07s; }
.guest-page .plan:nth-child(3), .home-page .plan:nth-child(3) { animation-delay: .14s; }
.guest-page .plan:nth-child(4), .home-page .plan:nth-child(4) { animation-delay: .21s; }
.guest-page .plan, .home-page .plan { border-radius: 18px; padding: 30px 24px 24px; }
.guest-page .plan-name, .home-page .plan-name { font-weight: 600; font-size: 13px; letter-spacing: .1em; }
.guest-page .plan-price, .home-page .plan-price { font-weight: 800; font-size: 46px; letter-spacing: -.035em; }
.guest-page .plan-price sup, .home-page .plan-price sup { font-family: var(--guest-f); }
.guest-page .plan-btn, .home-page .plan-btn {
  border-radius: 11px; padding: 13px 0;
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em; text-transform: none;
}
.guest-page .plan-skeleton .skel-btn, .home-page .plan-skeleton .skel-btn { height: 43px; border-radius: 11px; }
/* популярный тариф — вращающаяся градиентная рамка */
.guest-page .plan.is-popular, .home-page .plan.is-popular { border-color: rgba(224,54,42,.35); isolation: isolate; }
.guest-page .plan.is-popular::after, .home-page .plan.is-popular::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--spin), transparent 0 55%, #ff7a5c 70%, var(--red) 80%, transparent 95%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: border-spin 4s linear infinite;
}
@keyframes border-spin { to { --spin: 360deg; } }

/* блик, пробегающий по кнопкам при наведении */
.guest-page .btn-red, .home-page .btn-red { border-radius: 11px; }
.guest-page .btn-red::after, .guest-page .plan-btn::after,
.home-page .btn-red::after, .home-page .plan-btn::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.guest-page .btn-red:hover::after, .guest-page .plan-btn:hover::after,
.home-page .btn-red:hover::after, .home-page .plan-btn:hover::after { animation: btn-shine .8s ease; }
@keyframes btn-shine { to { left: 130%; } }

/* продление: форма поиска и результаты */
.guest-lookup {
  max-width: 620px; margin: 0 auto;
  padding: 30px; border-radius: 18px;
  border-color: var(--border-r);
  box-shadow: 0 30px 80px -40px rgba(224,54,42,.55);
}
.guest-lookup .input { border-radius: 11px; padding: 14px 16px; background: rgba(10,6,8,.7); }
.guest-lookup .btn-block { margin-top: 4px; }
.guest-results { margin-top: 16px; }
.guest-results .card { border-radius: 16px; animation: guest-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.guest-results .card:nth-child(2) { animation-delay: .08s; }
.guest-results .card:nth-child(3) { animation-delay: .16s; }
.guest-page .sub-plan { font-weight: 800; letter-spacing: -.02em; }
.guest-page .progress-bar { transition: width 1s cubic-bezier(.2,.7,.2,1); }

.guest-foot { margin-top: 40px; font-size: 14px; }

@media (max-width: 720px) {
  .guest-page .dash-body { padding-top: 104px; }
  .guest-steps { grid-template-columns: 1fr; margin: 36px 0 44px; gap: 10px; }
  .guest-step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 18px; }
  .guest-step-num { grid-row: span 2; margin-bottom: 0; align-self: start; }
  .guest-step-title { font-size: 16px; margin-bottom: 2px; }
  .guest-perks li { font-size: 12.5px; padding: 7px 12px; }
  .guest-lookup { padding: 24px 20px; }
  .guest-page .orb-3 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rise, .guest-page .plan, .home-page .plan, .guest-results .card,
  .guest-page .orb, .home-page .orb, .pulse-dot, .grad-text,
  .guest-page .plan.is-popular::after, .home-page .plan.is-popular::after,
  .home-page .btn-red:hover::after, .home-page .plan-btn:hover::after,
  .guest-page .btn-red:hover::after, .guest-page .plan-btn:hover::after { animation: none !important; }
}

/* ============================================================
   HOME — главная: шапка, заголовки секций, «Как подключиться»
   ============================================================ */
.home-page .hero { position: relative; }
.home-page .hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 30% 20%, #000 25%, transparent 72%);
          mask-image: radial-gradient(ellipse 80% 75% at 30% 20%, #000 25%, transparent 72%);
}
.home-page .hero-tag { white-space: nowrap; margin-bottom: 26px; }
.home-page .hero-tag::before { content: none; }
.home-page .hero-emblem { animation-name: guest-rise, emblem-float; animation-duration: .9s, 7s; animation-delay: var(--d, 0s), 1.1s; animation-timing-function: cubic-bezier(.2,.7,.2,1), ease-in-out; animation-iteration-count: 1, infinite; animation-direction: normal, alternate; animation-fill-mode: both, none; }
@keyframes emblem-float { from { transform: translateY(0); } to { transform: translateY(-14px); } }
.hero-platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-platforms span {
  font-size: 12px; font-weight: 500; color: #cdbcba;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255,255,255,.025);
}

/* заголовки секций */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.sec-h2 {
  font-family: var(--guest-f); font-weight: 800;
  font-size: clamp(30px, 4vw, 48px); line-height: 1.08;
  letter-spacing: -.03em; color: #fff; margin: 18px 0 12px;
}
.sec-sub { font-size: 15px; color: var(--muted); line-height: 1.65; }
.sec-sub a { color: var(--red); text-decoration: none; }
.sec-sub a:hover { text-decoration: underline; }

.home-page .stats { border-radius: 0; }
.home-page .stat-n { font-weight: 800; letter-spacing: -.03em; font-size: 44px; }
.home-page .antijam-inner { border-radius: 22px; }
.home-page .antijam-title { font-weight: 800; letter-spacing: -.03em; }
.home-page .guest-action { border-radius: 18px; }
.home-page .guest-action-title { font-weight: 800; letter-spacing: -.02em; }
.home-page .review { border-radius: 18px; }
.home-page .cta-box { border-radius: 22px; }

/* ── КАК ПОДКЛЮЧИТЬСЯ ── */
.how { padding-bottom: clamp(56px, 9vw, 100px); }
.how-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: start; }
.how-steps { list-style: none; display: grid; gap: 10px; }
.how-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; border-radius: 16px;
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  transition: border-color .25s ease, transform .25s ease;
}
.how-step:hover { border-color: var(--border-r); transform: translateX(4px); }
.how-num {
  flex-shrink: 0; min-width: 40px; text-align: center;
  font: 800 14px/1 var(--guest-f); color: var(--red);
  padding: 9px 0; border-radius: 10px;
  background: var(--red-dim); border: 1px solid var(--border-r);
  font-variant-numeric: tabular-nums;
}
.how-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.how-text b { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.how-text > span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.how-text a { color: var(--red); text-decoration: none; }
.how-text a:hover { text-decoration: underline; }

.how-apps {
  position: sticky; top: 92px;
  padding: 22px; border-radius: 20px;
  background: linear-gradient(165deg, #170d0e, #0d0708);
  border: 1px solid var(--border-r);
  box-shadow: 0 30px 80px -45px rgba(224,54,42,.6);
}
.os-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.os-tab {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 8px; border-radius: 12px; cursor: pointer;
  font: 600 13px/1 var(--guest-f); color: var(--muted);
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  transition: color .2s, border-color .2s, background .2s;
}
.os-tab svg { width: 16px; height: 16px; flex-shrink: 0; }
.os-tab:hover { color: #fff; border-color: var(--border-r); }
.os-tab[aria-selected="true"] {
  color: #fff; border-color: var(--red);
  background: linear-gradient(165deg, rgba(224,54,42,.22), rgba(224,54,42,.06));
}
.os-tab:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.os-panel {
  margin-top: 16px; padding: 24px; border-radius: 16px;
  background: rgba(10,6,8,.6); border: 1px solid var(--border);
  animation: guest-rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.os-panel-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
}
.os-panel-title {
  font-family: var(--guest-f); font-weight: 800; font-size: 26px;
  letter-spacing: -.025em; color: #fff; margin: 8px 0 8px;
}
.os-panel-text { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; }
.os-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.os-btn { padding: 12px 20px; font-size: 14px; font-weight: 600; border-radius: 11px; }
.os-btn svg { width: 16px; height: 16px; }
.how-help { margin-top: 14px; font-size: 13px; color: var(--muted); text-align: center; }
.how-help a { color: var(--red); text-decoration: none; }
.how-help a:hover { text-decoration: underline; }

/* появление при прокрутке (класс js-reveal ставит home.js) */
.js-reveal .reveal-up {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
.js-reveal .reveal-up.is-in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-apps { position: static; }
}
@media (max-width: 720px) {
  .home-page .hero-tag { font-size: 11px; letter-spacing: .06em; padding: 8px 12px 8px 10px; }
  .hero-platforms { justify-content: center; }
  .sec-head { margin-bottom: 28px; }
  .how-step { padding: 16px; gap: 12px; }
  .how-text b { font-size: 15px; }
  .how-apps { padding: 16px; }
  .os-panel { padding: 20px 18px; }
  .os-panel-title { font-size: 22px; }
  .os-btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-emblem, .os-panel { animation: none !important; }
  .how-step:hover { transform: none; }
}

/* ── FAQ (частые вопросы) ── */
.faq { padding-bottom: clamp(56px, 9vw, 100px); }
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item {
  border-radius: 16px; border: 1px solid var(--border);
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  transition: border-color .25s ease;
}
.faq-item[open] { border-color: var(--border-r); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 16px; }
.faq-icon {
  position: relative; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--red-dim); border: 1px solid var(--border-r);
  transition: transform .3s ease;
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 2px; border-radius: 2px; background: var(--red);
  transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.faq-item[open] .faq-icon { transform: rotate(180deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p { padding: 0 22px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.7; max-width: 680px; }
.faq-item[open] p { animation: guest-rise .4s cubic-bezier(.2,.7,.2,1) both; }
@media (max-width: 720px) {
  .faq-item summary { padding: 16px 18px; font-size: 15px; }
  .faq-item p { padding: 0 18px 16px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-icon, .faq-icon::after { transition: none; }
  .faq-item[open] p { animation: none; }
}

/* ============================================================
   SEO-СТРАНИЦЫ /vpn/*.html и /vpn.html (генерирует
   scripts/seo-pages/generate.mjs) + ключевая строка в h1 главной
   ============================================================ */
.hero-title .hero-kw {
  display: block; margin-bottom: 10px;
  font-family: var(--guest-f, var(--sans)); font-weight: 800;
  font-size: clamp(17px, 1.9vw, 22px); line-height: 1.3;
  letter-spacing: -.01em; color: #fff;
}

nav.crumbs {
  position: static; z-index: auto; border: 0; background: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 13px; color: var(--muted); margin-bottom: 28px;
  justify-content: center;
}
.crumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: var(--text); }
.crumb-sep { opacity: .5; }

.seo-hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.seo-page .btn-ghost { border-radius: 11px; padding: 14px 26px; font-size: 14px; font-weight: 600; }

.seo-section { margin-top: clamp(56px, 8vw, 88px); }
.seo-center { text-align: center; margin-bottom: 28px; }
.seo-about { max-width: 760px; margin-left: auto; margin-right: auto; }
.seo-about .sec-h2 { margin-top: 0; }
.seo-about p { font-size: 16px; color: #c9b9b7; line-height: 1.8; margin-top: 14px; }

.seo-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seo-card {
  padding: 24px; border-radius: 16px;
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  transition: border-color .25s ease, transform .25s ease;
}
.seo-card:hover { border-color: var(--border-r); transform: translateY(-3px); }
.seo-card-title { font-size: 17px; font-weight: 700; color: #fff; letter-spacing: -.01em; margin-bottom: 6px; }
.seo-card-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }

.seo-app { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.seo-app:first-of-type { border-top: none; padding-top: 4px; }
.seo-app-name { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.02em; margin-bottom: 12px; }
.seo-app-links { display: flex; flex-wrap: wrap; gap: 10px; }
.seo-app-btn { padding: 12px 18px; font-size: 14px; font-weight: 600; border-radius: 11px; }

.seo-page .cta-box { border-radius: 22px; }
.seo-page .cta-box h2 {
  font-family: var(--guest-f); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(26px, 3vw, 36px);
}

.seo-related-title {
  font-family: var(--guest-f, var(--sans)); font-weight: 800; font-size: 22px;
  letter-spacing: -.02em; color: #fff; margin-bottom: 18px;
}
.seo-links-group + .seo-links-group { margin-top: 18px; }
.seo-links-group > p {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px;
}
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a {
  padding: 9px 15px; border-radius: 999px; text-decoration: none;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  border: 1px solid var(--border); background: rgba(255,255,255,.025);
  transition: border-color .2s, color .2s, background .2s;
}
.seo-links a:hover { color: #fff; border-color: var(--border-r); background: var(--red-glow); }

.seo-home { padding-bottom: clamp(56px, 9vw, 100px); }
.seo-home .seo-related { max-width: 900px; margin: 0 auto; }
.seo-home .seo-links-group > p, .seo-home .seo-links { justify-content: center; text-align: center; }

.seo-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.seo-hub-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 22px; border-radius: 16px; text-decoration: none;
  background: linear-gradient(165deg, var(--bg2), #0d0708);
  border: 1px solid var(--border);
  transition: border-color .25s ease, transform .25s ease;
}
.seo-hub-card:hover { border-color: var(--border-r); transform: translateY(-3px); }
.seo-hub-card b { font-size: 17px; color: #fff; letter-spacing: -.01em; }
.seo-hub-card span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) {
  .seo-cards, .seo-hub-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .seo-cards, .seo-hub-grid { grid-template-columns: 1fr; }
  .seo-about p { font-size: 15px; }
  .seo-app-btn { flex: 1 1 auto; text-align: center; justify-content: center; }
  .seo-hero-cta a { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .seo-card:hover, .seo-hub-card:hover { transform: none; }
}

/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ (body.dash-page) — в стиле гостевых страниц
   ============================================================ */
.dash-page .dash-header { align-items: flex-end; margin-bottom: 22px; }
.dash-title {
  font-family: var(--guest-f); font-weight: 800;
  font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05;
  letter-spacing: -.035em; color: #fff; margin-top: 14px;
}
.dash-page .dash-grid { margin-top: 18px; }
.dash-page .card { border-radius: 18px; padding: 26px; }
.dash-page .card-title { font-weight: 600; }
.dash-page .sub-plan, .dash-page .traffic-used, .dash-page .widget-num { font-weight: 800; letter-spacing: -.02em; }
.dash-page .btn-ghost, .dash-page .btn-copy { border-radius: 11px; }
.dash-page .sub-link-input { border-radius: 11px; }
.dash-page .progress { border-radius: 999px; height: 10px; }
.dash-page .progress-bar { border-radius: 999px; transition: width .8s cubic-bezier(.2,.7,.2,1); }

.dash-alert {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: 16px; margin-bottom: 4px;
  border: 1px solid var(--border-r);
  background: linear-gradient(120deg, rgba(224,54,42,.16), rgba(224,54,42,.05));
  animation: guest-rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.dash-alert[hidden] { display: none; }
.dash-alert-text { font-size: 14px; color: #f3d2ce; line-height: 1.55; flex: 1 1 260px; }
.dash-alert-btn { padding: 10px 20px; font-size: 13px; font-weight: 600; }
.dash-alert-btn[hidden] { display: none; }
.pay-status.canceled { color: var(--muted); }

@media (max-width: 720px) {
  .dash-page .dash-header { align-items: flex-start; }
  .dash-page .card { padding: 20px 18px; }
  .dash-alert-btn { width: 100%; justify-content: center; }
}
