/* WireGuard — стиль, клонированный с wireguard.com */
/* Палитра: тёмный #2c3e50, красный акцент #ae373a, Flatly/Lato */

:root {
  --wg-dark: #2c3e50;
  --wg-dark-hover: #3d566e;
  --wg-dark-deep: #1c2c3a;
  --wg-red: #ae373a;
  --wg-red-hover: #d7686b;
  --wg-red-deep: #88171a;
  --text-body: #2c3e50;
  --text-light: #7f8c8d;
  --text-muted: #95a5a6;
  --bg-white: #ffffff;
  --bg-light: #ecf0f1;
  --bg-well: #f8f9fa;
  --border: #d7e0e2;
  --border-light: #ecf0f1;
  --success: #1abc9c;
  --info: #3498db;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-card: 0 2px 6px rgba(0,0,0,0.06);
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --font: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --transition: all 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: var(--wg-red); transition: var(--transition); }
a:hover { color: var(--wg-red-hover); }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--wg-dark);
  color: #fff;
}
.btn-primary:hover {
  background: var(--wg-dark-hover);
  color: #fff;
}

.btn-accent {
  background: var(--wg-red);
  color: #fff;
}
.btn-accent:hover {
  background: var(--wg-red-hover);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--wg-dark);
  border: 2px solid var(--wg-dark);
}
.btn-outline:hover {
  background: var(--wg-dark);
  color: #fff;
}

.btn-cta {
  background: var(--wg-red);
  color: #fff;
  font-size: 15px;
  padding: 14px 32px;
}
.btn-cta:hover {
  background: var(--wg-red-hover);
  color: #fff;
}

.btn-large {
  font-size: 15px;
  padding: 14px 28px;
}

.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
  text-transform: none;
  letter-spacing: 0;
}

.btn-block {
  display: flex;
  width: 100%;
  text-align: center;
}

.btn-nav {
  font-size: 13px;
  padding: 8px 18px;
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--wg-dark);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.brand-logo-img {
  height: 28px;
  filter: brightness(0) invert(1);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
}
.nav-link:hover {
  color: var(--wg-red-hover);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.btn-nav-wg {
  background: var(--wg-red);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-nav-wg:hover {
  background: var(--wg-red-hover);
  color: #fff;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  transition: var(--transition);
  border-radius: 1px;
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-actions { display: none; }
  .mobile-toggle { display: flex; }
  .nav-container { padding: 0 16px; }
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */

.hero {
  padding: 80px 0 60px;
  background: var(--wg-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-badge svg { stroke: var(--wg-red-hover); }

.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.hero-actions .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

.hero-trust {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 48px auto 0;
}

.stat-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
}

.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 34px; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-card { padding: 16px 12px; }
  .stat-number { font-size: 22px; }
}

/* ═══════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════ */

section { padding: 72px 0; }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--wg-red);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-body);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .section-title { font-size: 26px; }
  .section-subtitle { font-size: 15px; }
}

/* ═══════════════════════════════════════
   SERVERS
   ═══════════════════════════════════════ */

.servers { background: var(--bg-light); }

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.server-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.server-flag { font-size: 28px; line-height: 1; }

.server-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-body);
}

.server-status {
  font-size: 12px;
  color: var(--success);
  font-weight: 700;
}

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

/* ═══════════════════════════════════════
   FEATURES (WG Panel Style)
   ═══════════════════════════════════════ */

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

.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feature-card-header {
  background: var(--wg-dark);
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-card-header svg {
  width: 18px;
  height: 18px;
  color: rgba(255,255,255,0.7);
}
.feature-card-header h3 {
  font-size: 15px;
  font-weight: 700;
}

.feature-card-body {
  padding: 20px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  text-align: justify;
}

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

/* ═══════════════════════════════════════
   SECURITY
   ═══════════════════════════════════════ */

.security { background: var(--bg-light); }

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.security-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.security-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wg-dark);
  border-radius: 50%;
  margin: 0 auto 16px;
  color: #fff;
}
.security-icon svg { width: 26px; height: 26px; }

.security-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-body);
  margin-bottom: 8px;
}

.security-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

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

/* ═══════════════════════════════════════
   PRICING
   ═══════════════════════════════════════ */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.pricing-card:hover {
  box-shadow: var(--shadow-md);
}

.pricing-featured {
  border-color: var(--wg-red);
  box-shadow: 0 0 0 2px var(--wg-red);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wg-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.pricing-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.price-amount {
  font-size: 40px;
  font-weight: 900;
  color: var(--text-body);
  line-height: 1;
}

.price-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-body);
}

.price-period {
  font-size: 14px;
  color: var(--text-light);
  margin-left: 2px;
}

@media (max-width: 768px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
}

/* ═══════════════════════════════════════
   REFERRAL
   ═══════════════════════════════════════ */

.referral { background: var(--bg-light); }

.referral-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.referral-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wg-dark);
  border-radius: 50%;
  flex-shrink: 0;
  color: #fff;
}
.referral-icon svg { width: 32px; height: 32px; }

.referral-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-body);
  margin-bottom: 8px;
}

.referral-desc {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .referral-card { flex-direction: column; text-align: center; padding: 24px; }
  .referral-icon { width: 60px; height: 60px; }
  .referral-title { font-size: 20px; }
}

/* ═══════════════════════════════════════
   CTA
   ═══════════════════════════════════════ */

.cta-section {
  background: var(--wg-dark);
  padding: 72px 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
}

.cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cta-section { padding: 48px 0; }
  .cta-title { font-size: 26px; }
}

/* ═══════════════════════════════════════
   DOWNLOAD
   ═══════════════════════════════════════ */

.download { background: var(--bg-light); }

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

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.download-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--wg-red);
}

.download-icon { color: var(--wg-dark); }
.download-icon svg { width: 40px; height: 40px; }

.download-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-body);
}

.platform-version {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 1024px) {
  .download-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .download-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-body);
  text-align: left;
  gap: 16px;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer { max-height: 300px; }

.faq-answer p {
  padding: 0 0 18px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  text-align: justify;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */

.footer {
  background: var(--wg-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

.footer-top { margin-bottom: 32px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-seo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.seo-col h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.seo-col ul { display: flex; flex-direction: column; gap: 8px; }

.seo-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: var(--transition);
}
.seo-col a:hover { color: var(--wg-red-hover); }

.footer-seo-desc {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-seo-desc p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.4);
}

.footer-seo-desc a {
  color: rgba(255,255,255,0.55);
  text-decoration: underline;
}
.footer-seo-desc a:hover { color: var(--wg-red-hover); }

.footer-bottom { text-align: center; }

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
  .footer-seo { grid-template-columns: 1fr; gap: 24px; }
}

/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */

[data-aos] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile menu */
@media (max-width: 768px) {
  .nav-menu.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wg-dark);
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    z-index: 1000;
  }
  .nav-menu.mobile-open .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius);
  }
  .nav-menu.mobile-open .nav-link:hover {
    background: rgba(255,255,255,0.08);
  }
  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
