/* Simple elegant VPN landing - Fixed version */
:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #0b6cff;
  --accent-2: #06b6d4;
  --text: #0f172a;
  --glass: rgba(15, 23, 42, 0.04);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: linear-gradient(180deg, var(--bg), #eef3fb);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header - Fixed sticky behavior */
.site-header {
  background: rgba(246, 248, 251, 0.85);
  padding: 18px 0;
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(12, 34, 70, 0.08);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: opacity 0.2s;
}

.brand:hover {
  opacity: 0.8;
}

.brand .logo {
  width: 36px;
  height: 36px;
}

.brand-text {
  font-weight: 700;
  font-size: 18px;
}

/* Navigation - Fixed mobile */
.nav {
  display: flex;
  gap: 14px;
  align-items: center;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s;
  font-size: 15px;
}

.nav a:hover {
  background: rgba(11, 108, 255, 0.08);
}

.nav a.cta {
  background: var(--accent);
  color: white;
  padding: 10px 16px;
  font-weight: 600;
}

.nav a.cta:hover {
  background: #0956d9;
}

/* Burger menu - для мобилок */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

/* Hero - Fixed CTA buttons */
.hero {
  padding: 60px 0 80px;
}

.hero-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}

.hero-left {
  flex: 1;
}

.hero-right {
  width: 360px;
  display: flex;
  justify-content: center;
}

.hero h1 {
  font-size: 42px;
  margin: 0 0 16px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.6;
}

/* Fixed: hero-cta стили */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  text-align: center;
}

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

.btn.primary:hover {
  background: #0956d9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(11, 108, 255, 0.3);
}

.btn.ghost {
  background: transparent;
  border: 2px solid rgba(15, 23, 42, 0.1);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Device mockup */
.device-mock {
  width: 280px;
  height: 180px;
  background: linear-gradient(180deg, #fff, #f1f7ff);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(12, 34, 70, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.device-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0b6cff, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

/* Sections - Fixed spacing */
.section {
  padding: 60px 0;
}

.section h2 {
  margin: 0 0 32px;
  font-size: 32px;
  text-align: center;
  letter-spacing: -0.01em;
}

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

.card {
  background: var(--card);
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(12, 34, 70, 0.06);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(12, 34, 70, 0.12);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Pale background */
.pale {
  background: linear-gradient(180deg, #fbfdff, #f6f9ff);
}

/* Plans - Fixed badge overflow */
.plans {
  display: flex;
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

.plan {
  flex: 1;
  background: var(--card);
  padding: 32px 24px 24px;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(12, 34, 70, 0.08);
  position: relative;
  transition: all 0.3s;
  margin-top: 16px; /* Место для badge */
}

.plan:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(12, 34, 70, 0.14);
}

.plan.popular {
  border: 2px solid rgba(11, 108, 255, 0.2);
  background: linear-gradient(180deg, rgba(11, 108, 255, 0.02), #fff);
}

/* Fixed: badge не обрезается */
.plan .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(11, 108, 255, 0.3);
}

.plan h3 {
  margin: 8px 0 12px;
  font-size: 22px;
}

.price {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 20px;
  color: var(--accent);
}

.plan ul {
  padding-left: 20px;
  color: var(--muted);
  margin: 0 0 24px;
  list-style: none;
}

.plan ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.plan ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.note {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
}

/* Payments - Fixed mobile layout */
.payments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pay {
  background: var(--card);
  padding: 28px 20px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(12, 34, 70, 0.06);
  transition: all 0.3s;
}

.pay:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(12, 34, 70, 0.12);
}

.pay strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.pay p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: transparent;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 8px 0;
}

/* Footer links */
.footer-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 14px;
}

.footer-links a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.footer-links .separator {
  color: var(--muted);
  opacity: 0.4;
}

/* Responsive - Fixed mobile issues */
@media (max-width: 900px) {
  .wrap {
    padding: 0 20px;
  }
  
  .hero {
    padding: 40px 0 60px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .plans {
    flex-direction: column;
    gap: 20px;
  }
  
  .plan {
    margin-top: 16px;
  }
  
  .payments {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }
  
  .hero-right {
    width: 100%;
    max-width: 320px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section h2 {
    font-size: 26px;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  /* Burger menu показывается */
  .burger {
    display: flex;
    z-index: 101;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 32px 32px;
    gap: 8px;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  }
  
  .nav.active {
    right: 0;
  }
  
  .nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }
  
  .footer-links .separator {
    display: none;
  }
}
