/* ===================== Tokens ===================== */
:root {
  --bg: #0A0E14;
  --surface: #12181F;
  --surface-2: #1A222C;
  --border: #232C38;
  --text: #E8ECF2;
  --text-muted: #8B96A5;
  --accent: #35E0C4;
  --accent-2: #7C8CF8;
  --accent-contrast: #06110F;
  --danger: #F26D6D;
  --radius: 14px;
  --radius-sm: 9px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --shadow: 0 20px 60px -20px rgba(0,0,0,0.55);
  --tunnel-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
}

html[data-theme="light"] {
  --bg: #F5F7F9;
  --surface: #FFFFFF;
  --surface-2: #EEF2F5;
  --border: #DEE4E9;
  --text: #10151B;
  --text-muted: #5B6572;
  --accent: #0E9C86;
  --accent-2: #5865E0;
  --accent-contrast: #FFFFFF;
  --shadow: 0 20px 50px -25px rgba(15,25,35,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  transition: background .35s ease, color .35s ease;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; line-height: 1.12; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent);
}
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 14px; }
.section-head p { color: var(--text-muted); margin-top: 14px; font-size: 16.5px; }

/* ===================== Buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--tunnel-gradient); color: var(--accent-contrast); }
.btn-primary:hover { box-shadow: 0 10px 30px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ===================== Header ===================== */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.logo-mark {
  width: 30px; height: 30px; border-radius: 9px; background: var(--tunnel-gradient);
  display: flex; align-items: center; justify-content: center;
}
.logo-mark svg { width: 16px; height: 16px; }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; font-family: var(--font-mono); font-size: 12.5px; }
.lang-switch button { padding: 7px 12px; background: transparent; border: none; color: var(--text-muted); }
.lang-switch button.active { background: var(--surface-2); color: var(--text); }

.status-toggle {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px 6px 6px;
  background: var(--surface); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
}
.status-dot { width: 26px; height: 15px; border-radius: 999px; background: var(--border); position: relative; transition: background .25s ease; }
.status-dot::after { content:''; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: var(--text-muted); transition: transform .25s ease, background .25s ease; }
html:not([data-theme="light"]) .status-dot { background: color-mix(in srgb, var(--accent) 35%, transparent); }
html:not([data-theme="light"]) .status-dot::after { transform: translateX(11px); background: var(--accent); }

.nav-toggle { display: none; }

/* ===================== Hero ===================== */
.hero { padding: 88px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 58px); margin-top: 18px; }
.hero .lede { margin-top: 20px; font-size: 17.5px; color: var(--text-muted); max-width: 480px; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-mono); font-size: 20px; color: var(--text); }
.hero-stat span { font-size: 12.5px; color: var(--text-muted); }

.map-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  padding: 26px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.map-card svg { width: 100%; height: auto; }
.tunnel-line { stroke: url(#tunnelGrad); stroke-width: 1.6; fill: none; stroke-dasharray: 6 7; animation: dash 3.2s linear infinite; opacity: .85; }
@keyframes dash { to { stroke-dashoffset: -130; } }
.node-pulse { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
@keyframes pulse { 0%,100% { opacity: .55; r: 4.5; } 50% { opacity: 1; r: 6.5; } }
.map-label { font-family: var(--font-mono); font-size: 10.5px; fill: var(--text-muted); }
.map-readout { margin-top: 18px; display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: 14px; }
.map-readout b { color: var(--accent); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .tunnel-line, .node-pulse { animation: none; }
}

/* ===================== Steps ===================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.step-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step h3 { margin-top: 14px; font-size: 19px; }
.step p { margin-top: 10px; color: var(--text-muted); font-size: 14.5px; }

/* ===================== Countries ===================== */
.countries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.country-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; background: var(--surface); transition: border-color .2s ease, transform .2s ease; }
.country-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.country-top { display: flex; align-items: center; justify-content: space-between; }
.country-node { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.country-node span { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.country-ping { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.country-card h3 { margin-top: 16px; font-size: 18px; }
.country-card .proto { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* ===================== Pricing ===================== */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  width: 100%; max-width: 440px; border: 1px solid var(--border); border-radius: 20px;
  padding: 38px; background: var(--surface); box-shadow: var(--shadow); text-align: left; position: relative; overflow: hidden;
}
.price-card::before {
  content: ''; position: absolute; inset: 0; opacity: .06; background: var(--tunnel-gradient); pointer-events: none;
}
.price-top { display: flex; align-items: baseline; gap: 8px; }
.price-value { font-family: var(--font-mono); font-size: 44px; font-weight: 500; }
.price-period { color: var(--text-muted); font-size: 15px; }
.price-card ul { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.price-card li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.price-card li::before { content: '＋'; color: var(--accent); font-family: var(--font-mono); }
.price-card .btn { margin-top: 28px; }

/* ===================== Order form ===================== */
.order-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 46px; align-items: flex-start; }
.order-notes { display: flex; flex-direction: column; gap: 18px; }
.order-note { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; background: var(--surface); font-size: 14px; color: var(--text-muted); }
.order-note b { color: var(--text); display: block; margin-bottom: 4px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; }

.form-card { border: 1px solid var(--border); border-radius: 20px; padding: 32px; background: var(--surface); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; font-family: var(--font-mono); letter-spacing: .02em; }
.field select, .field input, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-family: var(--font-body); font-size: 14.5px;
}
.field select:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 90px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.consent input { margin-top: 3px; }
.consent a { color: var(--accent); }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success.visible { display: block; }
.form-success h3 { margin-top: 14px; }
.form-success p { color: var(--text-muted); margin-top: 10px; font-size: 14.5px; }
.check-badge { width: 46px; height: 46px; border-radius: 50%; background: var(--tunnel-gradient); display: flex; align-items: center; justify-content: center; margin: 0 auto; }

/* ===================== FAQ ===================== */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item summary { padding: 18px 20px; cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-family: var(--font-mono); color: var(--accent); font-size: 18px; }
.faq-item[open] summary::after { content: '–'; }
.faq-item .faq-body { padding: 0 20px 20px; color: var(--text-muted); font-size: 14.5px; }

/* ===================== Footer ===================== */
footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 40px; }
.footer-brand p { margin-top: 14px; color: var(--text-muted); font-size: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-family: var(--font-mono); font-weight: 500; margin-bottom: 14px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); }
.requisites-note { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.requisites-note em { color: var(--text); font-style: normal; }

/* ===================== Legal pages ===================== */
.legal-page { padding: 70px 0 100px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 38px); }
.legal-page .updated { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-muted); margin-top: 10px; }
.legal-page h2 { font-size: 19px; margin-top: 40px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--text-muted); font-size: 15px; margin-top: 10px; }
.legal-page ul { list-style: disc; padding-left: 20px; }
.legal-page .req-block { margin-top: 30px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.legal-page .req-block p { color: var(--text); margin-top: 6px; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .order-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .countries-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
