/* OpenVPN — стиль, вдохновлённый openvpn.net */
/* Цветовая палитра: синий #1652B8, оранжевый акцент #ED7F22, тёмный #111322 */

:root {
  --primary-blue: #2060CC;
  --primary-blue-hover: #4A80E0;
  --primary-blue-dark: #1848AA;
  --orange: #ED7F22;
  --orange-light: #FFA54A;
  --dark-navy: #111322;
  --text-body: #404968;
  --text-light: #6B7294;
  --bg-white: #ffffff;
  --bg-light: #F9FAFB;
  --bg-off: #FCFCFD;
  --border: #EFF1F5;
  --border-dark: #B9C0D4;
  --success: #11A76E;
  --shadow-sm: 0px 1px 3px rgba(16, 24, 40, 0.1);
  --shadow-md: 0px 4px 8px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0px 12px 16px -4px rgba(16, 24, 40, 0.03);
  --shadow-card: 0px 4px 8px -2px rgba(220, 223, 234, 0.06);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.2s ease;
}

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

html { scroll-behavior: smooth; }

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

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.container {
  max-width: 1280px;
  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: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  line-height: 1.4;
}

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

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

.btn-outline {
  background: transparent;
  color: var(--text-body);
  border: 1px solid var(--border-dark);
}
.btn-outline:hover {
  background: var(--bg-light);
}

.btn-cta {
  background: var(--primary-blue);
  color: #fff;
  font-size: 16px;
  padding: 14px 32px;
}
.btn-cta:hover {
  background: var(--primary-blue-hover);
}

.btn-large {
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
}

.btn-sm {
  font-size: 13px;
  padding: 6px 16px;
}

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

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

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

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-navy);
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-text {
  color: #1A3967;
}

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

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
  position: relative;
}
.nav-link:hover {
  color: var(--primary-blue);
}

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

.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: var(--dark-navy);
  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: #fff url('https://openvpn.net/_next/static/media/hero-bg-hq.d59d148c.webp') center top / cover no-repeat;
}

.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(22, 82, 184, 0.08);
  border: 1px solid rgba(22, 82, 184, 0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-blue);
  margin-bottom: 24px;
}
.hero-badge svg { stroke: var(--primary-blue); }

.hero-title {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark-navy);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
  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-trust {
  font-size: 13px;
  color: var(--text-light);
}

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

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

.stat-number {
  font-size: 28px;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
}

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

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

section {
  padding: 80px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-blue);
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  color: var(--dark-navy);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

@media (max-width: 768px) {
  section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .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: 16px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  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: 500;
  color: var(--dark-navy);
}

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

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

/* ═══════════════════════════════════════
   FEATURES
   ═══════════════════════════════════════ */

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

.feature-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 82, 184, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  color: var(--primary-blue);
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.6;
}

@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: 24px;
  max-width: 800px;
  margin: 0 auto;
}

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

.security-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 82, 184, 0.08);
  border-radius: 50%;
  margin: 0 auto 16px;
  color: var(--primary-blue);
}
.security-icon svg { width: 28px; height: 28px; }

.security-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.security-desc {
  font-size: 14px;
  color: var(--text-body);
  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: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  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(--primary-blue);
  box-shadow: 0 0 0 1px var(--primary-blue), var(--shadow-md);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 50px;
  white-space: nowrap;
}

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

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

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

.price-amount {
  font-size: 40px;
  font-weight: 600;
  color: var(--dark-navy);
  line-height: 1;
}

.price-currency {
  font-size: 20px;
  font-weight: 500;
  color: var(--dark-navy);
}

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

.pricing-features {
  flex: 1;
  margin-bottom: 24px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-body);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--success);
}

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

/* ═══════════════════════════════════════
   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-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.referral-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 82, 184, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
  color: var(--primary-blue);
}
.referral-icon svg { width: 36px; height: 36px; }

.referral-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

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

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

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

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

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

.cta-title {
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

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

.cta-actions {
  display: flex;
  justify-content: center;
}

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

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

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

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

.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-lg);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}
.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-blue);
}

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

.download-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark-navy);
}

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

@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: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-navy);
  text-align: left;
  gap: 16px;
}

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

.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 20px;
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
}

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

.footer {
  background: var(--dark-navy);
  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;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.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: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  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.6);
  transition: var(--transition);
}
.seo-col a:hover {
  color: #fff;
}

.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.45);
}

.footer-seo-desc a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}
.footer-seo-desc a:hover { color: #fff; }

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

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

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

/* ═══════════════════════════════════════
   ANIMATIONS (data-aos)
   ═══════════════════════════════════════ */

[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 overlay */
@media (max-width: 768px) {
  .nav-menu.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 16px;
    gap: 8px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
  }
  .nav-menu.mobile-open .nav-link {
    padding: 12px 16px;
    border-radius: var(--radius);
  }
  .nav-menu.mobile-open .nav-link:hover {
    background: var(--bg-light);
  }
  .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);
  }
}
