/* MGV VPN — site styles. Design source: dark navy with chrome/blue accents.
   Palette: bg #0F1520..#212936, accent #6DB3F2, muted #8B9BB4, chrome gradients. */

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

html, body {
  margin: 0;
  padding: 0;
  color: #FFFFFF;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(140% 100% at 50% 0%, #212936 0%, #1C2333 45%, #0F1520 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* noise overlay — pre-rasterized, no mix-blend-mode (cheaper on GPU) */
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── topnav ─────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(20,26,40,0.94);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(145deg, #e8eef3, #aeb8c4 45%, #6f7a89 55%, #c8d2dd);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4), inset 0 1px 1px rgba(255,255,255,0.7);
}
.brand-mark span {
  font-weight: 900; font-size: 15px; letter-spacing: -0.5px; color: #1C2333;
}
.brand-name {
  font-weight: 800; font-size: 19px; letter-spacing: 0.5px;
  background: linear-gradient(180deg, #ffffff, #c8d2dd 45%, #8b97a6 58%, #eef3f7);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.topnav-links { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 9px 16px; font-size: 14px; font-weight: 500; color: #8B9BB4;
  border-radius: 8px; transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,0.05); color: #FFFFFF; }

/* ─── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 9px; border: none;
  transition: transform .15s ease, filter .15s ease, border-color .15s ease, background .15s ease;
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 12px; font-weight: 700; }
.btn-primary {
  color: #0F1520; font-weight: 700;
  background: linear-gradient(180deg, #8fc7f7, #6DB3F2 55%, #4f97da);
  box-shadow: 0 4px 16px rgba(109,179,242,0.35), inset 0 1px 1px rgba(255,255,255,0.5);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  color: #FFFFFF;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-ghost:hover { border-color: rgba(109,179,242,0.6); background: rgba(255,255,255,0.07); }
.btn-tg { gap: 10px; }
.btn-tg svg { flex-shrink: 0; }

/* ─── layout ─────────────────────────────────────────────────────────────── */
.page { position: relative; z-index: 2; }
section { max-width: 1120px; margin: 0 auto; padding: 56px 48px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: #4A7FA5;
}
.section-title {
  margin: 12px 0 0; font-size: 38px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff, #c8d2dd 50%, #97a3b1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-sub { margin: 14px 0 0; font-size: 16px; color: #8B9BB4; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* Hero small hint under CTA — "уже есть аккаунт в боте?" */
.hero-hint {
  margin-top: 22px;
  font-size: 13px; color: #8B9BB4;
  line-height: 1.6;
}
.hero-hint a {
  color: #6DB3F2; font-weight: 600; text-decoration: none;
  border-bottom: 1px dotted rgba(109,179,242,0.4);
}
.hero-hint a:hover { color: #8fc7f7; border-bottom-color: rgba(143,199,247,0.7); }

/* CTA banner sub-hint */
.cta-hint {
  margin-top: 16px; font-size: 12px; color: #8B9BB4;
}

/* «Максимум» тариф — покрасивше отличается */
.plan-unlimited {
  background: linear-gradient(180deg, #3a2c58, #2d2244);
  border: 1px solid rgba(179,109,242,0.4);
  box-shadow: 0 20px 60px rgba(129,74,242,0.28);
}
.plan-badge-lifetime {
  background: linear-gradient(180deg, #c78ff7, #9f5cea);
  color: #150F1F;
}
.plan-unlimited .plan-amount {
  background: linear-gradient(180deg, #ffffff, #dfc7ff 55%, #b09fda);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.plan-unlimited .plan-check { color: #c78ff7; }
.plan-unlimited .plan-cta.btn-primary {
  background: linear-gradient(180deg, #c78ff7, #9f5cea 55%, #7d3fd6);
  box-shadow: 0 8px 28px rgba(129,74,242,0.4), inset 0 1px 1px rgba(255,255,255,0.5);
}

/* ─── hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: 76px; padding-bottom: 56px; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: rgba(74,127,165,0.12);
  border: 1px solid rgba(109,179,242,0.25);
  margin-bottom: 32px;
}
.hero-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #6DB3F2; box-shadow: 0 0 10px #6DB3F2;
}
.hero-badge span:not(.hero-dot) { font-size: 13px; font-weight: 500; color: #8B9BB4; }

/* hero emblem (CSS-only logo) */
.hero-emblem {
  position: relative;
  width: 200px; height: 200px;
  margin: 4px auto 18px;
  animation: mgvFloat 7s ease-in-out infinite;
  will-change: transform;
}
.hero-emblem-glow {
  position: absolute; inset: -40%;
  background: radial-gradient(closest-side, rgba(109,179,242,0.35), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-emblem-mark {
  position: relative;
  width: 100%; height: 100%; border-radius: 44px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #ffffff 0%, #e8eef3 25%, #aeb8c4 50%, #6f7a89 60%, #c8d2dd 80%, #f0f4f8 100%);
  box-shadow:
    inset 0 4px 6px rgba(255,255,255,0.9),
    inset 0 -6px 10px rgba(15,21,32,0.35),
    0 30px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.5);
}
.hero-emblem-mark span {
  font-family: 'Inter', sans-serif;
  font-size: 132px; font-weight: 900; letter-spacing: -6px;
  background: linear-gradient(180deg, #1C2333, #2C3A4F);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: none;
}
@keyframes mgvFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-title {
  margin: 4px 0 0;
  font-size: 62px; line-height: 1.05; font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff, #d4dde6 38%, #8b97a6 56%, #f0f4f8 80%, #b4bfca);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-shadow: 0 2px 30px rgba(0,0,0,0.4);
}
.hero-sub { max-width: 560px; margin: 24px auto 0; font-size: 18px; line-height: 1.6; color: #8B9BB4; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 54px; flex-wrap: wrap; }
.stat-num { font-size: 30px; font-weight: 800; }
.stat-cap { font-size: 13px; color: #8B9BB4; margin-top: 4px; }
.stat-sep { width: 1px; background: rgba(255,255,255,0.08); }

/* ─── cards / features ───────────────────────────────────────────────────── */
.card {
  padding: 32px; border-radius: 12px;
  background: linear-gradient(180deg, #2C3A4F, #263040);
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(145deg, #e8eef3, #aeb8c4 50%, #7d8896);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.8), 0 4px 12px rgba(0,0,0,0.4);
  margin-bottom: 20px;
}
.feature-title { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.feature-desc { margin: 0; font-size: 15px; line-height: 1.6; color: #8B9BB4; }

/* ─── pricing ────────────────────────────────────────────────────────────── */
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 34px 30px;
}
.plan-popular {
  background: linear-gradient(180deg, #31506b, #25384c);
  border: 1px solid rgba(109,179,242,0.5);
  box-shadow: 0 20px 60px rgba(74,127,165,0.3);
}
.plan-badge {
  position: absolute; top: 20px; right: 22px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
  background: linear-gradient(180deg, #8fc7f7, #4f97da);
  color: #0F1520;
}
.plan-title { font-size: 17px; font-weight: 700; }
.plan-period { font-size: 13px; color: #8B9BB4; margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 24px; }
.plan-amount {
  font-size: 46px; font-weight: 900; letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff, #c8d2dd 55%, #97a3b1);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.plan-rub { font-size: 15px; color: #8B9BB4; }
.plan-note { font-size: 13px; color: #6DB3F2; margin-top: 6px; min-height: 18px; }
.plan-sep { height: 1px; background: rgba(255,255,255,0.08); margin: 22px 0; }
.plan-feats { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-feats li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #c7d0dc; }
.plan-check { color: #6DB3F2; font-weight: 700; }
.plan-cta { margin-top: auto; text-align: center; padding: 13px; font-size: 15px; border-radius: 10px; }

/* ─── CTA banner ─────────────────────────────────────────────────────────── */
.cta-banner {
  margin-top: 56px; padding: 48px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, #2f4a63, #243140 55%, #1b2533);
  border: 1px solid rgba(109,179,242,0.18);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  padding: 18px 22px; border-radius: 12px;
  background: linear-gradient(180deg, #2C3A4F, #263040);
  border: 1px solid rgba(255,255,255,0.07);
  transition: border-color .15s ease;
}
.faq-item[open] { border-color: rgba(109,179,242,0.35); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-size: 16px; font-weight: 600; color: #c7d0dc;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 22px; color: #6DB3F2; font-weight: 300;
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 12px 0 0; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 14px; line-height: 1.65; color: #8B9BB4;
}
.faq-item a { color: #6DB3F2; font-weight: 600; }
.cta-title { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.cta-sub { margin: 14px auto 26px; max-width: 480px; font-size: 16px; color: #b6c2d2; }

/* ─── footer ─────────────────────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2; margin-top: 40px; padding: 32px 48px;
  border-top: 1px solid rgba(255,255,255,0.06); background: rgba(15,21,32,0.5);
}
.footer-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-tagline { font-size: 11px; color: #8B9BB4; margin-top: 2px; letter-spacing: 0.3px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: #8B9BB4; }
.footer-links a:hover { color: #FFFFFF; }
.footer-copy { font-size: 13px; color: #6f7a89; }

/* ─── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  section { padding: 36px 22px; }
  .hero { padding-top: 36px; padding-bottom: 36px; }
  .hero-emblem { width: 150px; height: 150px; }
  .hero-emblem-mark { border-radius: 34px; }
  .hero-emblem-mark span { font-size: 96px; letter-spacing: -4px; }
  .hero-title { font-size: 38px; letter-spacing: -1px; }
  .hero-sub { font-size: 15px; margin-top: 18px; }
  .hero-cta { margin-top: 26px; }
  .hero-cta .btn { width: 100%; padding: 14px 22px; font-size: 15px; }
  .hero-stats { gap: 24px; margin-top: 36px; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: 26px; }
  .section-sub { font-size: 14px; }
  .grid-3 { grid-template-columns: 1fr; gap: 14px; }
  .grid-4 { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 24px 22px; }
  .topnav { padding: 12px 16px; gap: 10px; }
  .topnav-links { gap: 6px; }
  .nav-link { display: none; }
  .topnav-links .btn-ghost,
  .topnav-links .btn-primary { padding: 9px 14px; font-size: 13px; }
  .brand-name { font-size: 17px; }
  .footer { padding: 22px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-links { gap: 16px; }
  .btn-lg { padding: 14px 22px; font-size: 15px; }
  .cta-banner { padding: 28px 20px; margin-top: 36px; }
  .cta-title { font-size: 22px; }
  .cta-sub { font-size: 14px; margin: 12px auto 18px; }
  /* FAQ */
  .faq-item { padding: 14px 18px; }
  .faq-item summary { font-size: 15px; }
  .faq-item p { font-size: 13.5px; }
  /* Pricing plan */
  .plan { padding: 26px 22px; }
  .plan-amount { font-size: 38px; }
  .plan-badge { top: 14px; right: 16px; padding: 5px 10px; font-size: 10px; }
}

@media (max-width: 520px) {
  section { padding: 28px 16px; }
  .hero { padding-top: 24px; }
  .hero-emblem { width: 120px; height: 120px; margin-bottom: 12px; }
  .hero-emblem-mark { border-radius: 28px; }
  .hero-emblem-mark span { font-size: 78px; }
  .hero-title { font-size: 30px; }
  .hero-badge { padding: 6px 12px; margin-bottom: 18px; }
  .hero-badge span:not(.hero-dot) { font-size: 12px; }
  .hero-stats { gap: 16px; }
  .stat-sep { display: none; }
  .stat-num { font-size: 20px; }
  .stat-cap { font-size: 11px; }
  .section-title { font-size: 22px; }
  .section-eyebrow { font-size: 11px; letter-spacing: 1.4px; }
  .topnav { padding: 10px 12px; gap: 8px; }
  .topnav-links { gap: 6px; }
  .topnav-links .btn-ghost,
  .topnav-links .btn-primary { padding: 8px 12px; font-size: 12px; }
  /* Hide brand text on tiny screens to fit both CTA buttons */
  .brand-mark { width: 30px; height: 30px; border-radius: 8px; }
  .brand-mark span { font-size: 13px; }
  .brand-name { display: none; }
  .cta-banner { padding: 24px 16px; border-radius: 12px; }
  .cta-title { font-size: 20px; }
  .footer-copy { font-size: 12px; }
  .plan-amount { font-size: 34px; }
}

/* Extra-narrow: shorten button labels via title attribute / leave icon only would need JS;
   keep tiny but legible. */
@media (max-width: 360px) {
  .topnav-links .btn-primary svg { display: none; }
  .topnav { padding: 9px 10px; }
}

/* Планшет — 2 колонки для 4-плановой сетки тарифов */
@media (min-width: 561px) and (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
