:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-hover: #1a1a1a;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-dim: rgba(255, 255, 255, 0.35);
  --primary: #f5c518;
  --primary-dark: #d4a812;
  --green: #22c55e;
  --container: 1120px;
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  margin-right: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 0 24px 20px;
  gap: 12px;
}

.mobile-menu a {
  color: var(--text-muted);
  padding: 8px 0;
  font-weight: 500;
}

body.menu-open .mobile-menu { display: flex; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

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

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(245, 197, 24, 0.08), transparent),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(245, 197, 24, 0.04), transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  position: relative;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: min(100%, 380px);
  height: auto;
  filter: drop-shadow(0 0 60px rgba(245, 197, 24, 0.15));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.accent { color: var(--primary); }

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Sections */
.section { padding: 96px 0; }
.section-muted { background: rgba(255, 255, 255, 0.02); }

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

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  color: var(--text);
  margin-bottom: 12px;
}

.feature-icon svg { width: 32px; height: 32px; }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.875rem;
}

/* Servers */
.servers-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin-inline: auto;
}

.server-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.server-flag { font-size: 2rem; }

.server-card strong {
  display: block;
  font-size: 1rem;
}

.server-card span:not(.status) {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.status {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.status.online {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
}

.status.offline {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.status.checking {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-dim);
}

.servers-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 8px;
}

.contact-note {
  display: block;
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Pricing */
.pricing-wrap {
  display: flex;
  justify-content: center;
}

.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: min(100%, 400px);
  text-align: center;
}

.price-card.featured {
  border-color: rgba(245, 197, 24, 0.35);
  box-shadow: 0 0 80px rgba(245, 197, 24, 0.08);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.price {
  margin-bottom: 28px;
}

.price-value {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
}

.price-currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.price-period {
  display: block;
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 4px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.925rem;
}

.price-features li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  margin-right: 10px;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin-inline: auto;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

a.contact-card:hover {
  border-color: rgba(245, 197, 24, 0.4);
  transform: translateY(-2px);
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-icon svg { width: 28px; height: 28px; }

.contact-icon.tg { background: rgba(42, 171, 238, 0.15); color: #2aabee; }
.contact-icon.support { background: rgba(245, 197, 24, 0.12); color: var(--primary); }
.contact-icon.site { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.contact-card p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  gap: 14px;
  max-width: 360px;
}

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-links h4 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.footer-links a {
  display: block;
  color: var(--text-dim);
  font-size: 0.875rem;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { order: -1; }
  .hero-logo { width: 220px; }
  .hero-sub { margin-inline: auto; }
  .hero-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .features-grid, .contact-grid, .servers-row, .routing-grid { grid-template-columns: 1fr; }
  .footer-links { gap: 32px; }
  .section { padding: 64px 0; }
}

/* RU routing methods */
.routing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.routing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.routing-card.routing-yes {
  border-color: rgba(34, 197, 94, 0.25);
}

.routing-card.routing-no {
  border-color: rgba(255, 255, 255, 0.08);
}

.routing-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.routing-flag {
  font-size: 1.75rem;
  line-height: 1;
}

.routing-head strong {
  display: block;
  font-size: 1.05rem;
}

.routing-head span:not(.routing-flag) {
  display: block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

.routing-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.routing-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.routing-badge-yes {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
}

.routing-badge-no {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

.routing-note {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: rgba(245, 197, 24, 0.06);
  border: 1px solid rgba(245, 197, 24, 0.15);
}

.routing-note p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

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