:root {
  /* Фирменная палитра NowaVPN */
  --bg: #051b14;
  --bg-2: #0a2e22;
  --bg-card: rgba(13, 51, 40, 0.65);
  --bg-card-solid: #0d3328;
  --bg-card-hover: #114134;
  --wave: #1e5e4c;
  --wave-2: #006d65;
  --accent: #17b890;
  --accent-deep: #0e8f70;
  --silver: #e8e8e8;
  --text: #f2f7f5;
  --text-muted: #9dbcb0;
  --border: rgba(30, 94, 76, 0.55);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 45%, #03130d 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Шапка ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 27, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo img { height: 44px; width: auto; display: block; }
.logo span {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: #06231b; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, filter 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #ffffff, #c0c0c0);
  color: #06231b;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  box-shadow: 0 6px 24px rgba(23, 184, 144, 0.3);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(23, 184, 144, 0.4); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { background: rgba(30, 94, 76, 0.25); }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-xl { padding: 22px 64px; font-size: 1.35rem; border-radius: 16px; }

/* ===== Волны (фирменный фон) ===== */
.waves {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 16%, transparent 36%, transparent 64%, #000 84%, #000 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 16%, transparent 36%, transparent 64%, #000 84%, #000 100%);
}
.waves svg { position: absolute; width: 1600px; height: auto; opacity: 0.85; }
.waves .w-top { top: -60px; left: -120px; }
.waves .w-bottom { bottom: -80px; right: -200px; transform: rotate(6deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 100px 0 110px;
  text-align: center;
}
.hero-inner { position: relative; z-index: 1; }
.hero-emblem {
  height: 260px; width: auto;
  margin-bottom: 28px;
  filter: drop-shadow(0 8px 28px rgba(0, 0, 0, 0.5));
}
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
h1 .gradient {
  background: linear-gradient(135deg, #ffffff, #b9b9b9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 1.15rem;
  color: #c3d8cf;
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero p.hero-note {
  margin: 32px auto 0;
  font-size: 1rem;
  font-weight: 600;
  color: #d9ece4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(23, 184, 144, 0.12);
  border: 1px solid rgba(23, 184, 144, 0.3);
  max-width: none;
}
.hero p.hero-note svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ===== Статистика ===== */
.stats-wrap { padding-bottom: 80px; }
.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  margin: 0 auto;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.stat {
  position: relative;
  padding: 28px 14px;
  text-align: center;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  height: 56%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border), transparent);
}
.stat b {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.stat span { font-size: 0.9rem; color: var(--text-muted); }

@media (max-width: 700px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 20px 10px; }
  .stat b { font-size: 1.9rem; }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3)::after {
    content: "";
    position: absolute;
    top: 0;
    left: 14%;
    width: 72%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
  }
}

/* ===== Секции ===== */
section { padding: 70px 0; position: relative; }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ===== Преимущества ===== */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background 0.2s, transform 0.2s;
}
.feature:hover { background: var(--bg-card-hover); transform: translateY(-3px); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(23, 184, 144, 0.14);
  border: 1px solid rgba(23, 184, 144, 0.25);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Как подключиться ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.step {
  position: relative;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #c0c0c0);
  color: #06231b;
  font-weight: 700;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Платформы ===== */
.platforms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}
.platform svg { width: 18px; height: 18px; fill: currentColor; color: var(--accent); flex-shrink: 0; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; }
details {
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s;
  flex-shrink: 0;
}
details[open] summary::after { transform: rotate(45deg); }
details .answer {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: linear-gradient(135deg, #0d3a2c, #072419);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 32px;
}
.cta .waves svg { opacity: 0.4; }
.cta-inner { position: relative; z-index: 1; }
.cta img { height: 64px; margin-bottom: 20px; }
.cta h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.cta p { color: var(--text-muted); margin-bottom: 30px; }

/* ===== Подвал ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 30px; }
.footer-inner a { color: var(--text-muted); text-decoration: none; }
.footer-inner a:hover { color: var(--text); }
.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 60px 0 70px; }
  .hero-emblem { height: 72px; }
  section { padding: 50px 0; }
}

/* ===== Юридические страницы (оферта, политика конфиденциальности) ===== */
.legal-hero {
  position: relative;
  padding: 56px 0 20px;
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.back-link:hover { color: var(--text); }
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 10px;
}
.legal-meta { color: var(--text-muted); font-size: 0.95rem; }

.legal-content { padding: 30px 0 80px; }
.legal {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card-solid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px clamp(20px, 5vw, 56px);
}
.legal-intro {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.98rem;
}
.legal h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 34px 0 14px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.legal p { margin-bottom: 14px; font-size: 0.98rem; }
.legal p strong { color: var(--text); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.95rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal-table th {
  width: 38%;
  color: var(--text-muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

.legal-note {
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 12px;
  background: rgba(23, 184, 144, 0.08);
  border: 1px solid rgba(23, 184, 144, 0.25);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.legal-note strong { color: var(--text); }

@media (max-width: 640px) {
  .legal { padding: 30px 18px; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: 100%; }
  .legal-table tr { margin-bottom: 10px; }
  .legal-table th { border-bottom: none; padding-bottom: 4px; }
  .legal-table td { padding-top: 4px; }
}
