/* Imperial Team — общий CSS для RU и EN версий.
   Mobile-first: база рассчитана на 360–430px, расширения только через min-width. */

:root {
  --bg: #0f0d0a;
  --bg-soft: #16130e;
  --card: #1a1712;
  --line: #2b2721;
  --text: #edeae3;
  --muted: #a8a294;
  --accent: #35d14b;
  --accent-soft: rgba(53, 209, 75, 0.12);
  --max: 1120px;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

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

/* Шапка (не липкая: на мобильном экономим высоту) */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--accent); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.lang a,
.lang .current {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  font-weight: 600;
}
.lang .current { color: var(--accent); background: var(--accent-soft); }
.lang a { color: var(--muted); transition: color 0.2s; }
.lang a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--bg);            /* тёмный текст: белый на этом зелёном нечитаем (2:1) */
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }

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

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  height: 480px;
  background: radial-gradient(closest-side, var(--accent-soft), transparent);
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(53, 209, 75, 0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(30px, 8.4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 840px;
  overflow-wrap: break-word;
}

.hero .sub {
  color: var(--muted);
  font-size: clamp(16px, 4.4vw, 20px);
  margin-top: 20px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-cta .btn { flex: 1 1 auto; }

/* Секции */
.section { padding: 56px 0; }
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sec-title {
  font-size: clamp(26px, 6.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 10px;
  max-width: 640px;
}

.sec-lead {
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 18px);
  margin-top: 14px;
  max-width: 640px;
}

/* Цифры */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px 18px;
}
.stat .num {
  font-size: clamp(26px, 7vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  overflow-wrap: break-word;
}
.stat .label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* Рекламодатели и гео */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s;
}
.pill:hover { border-color: var(--accent); }

.pills-note {
  color: var(--muted);
  font-size: 15px;
  margin-top: 18px;
}

.geo-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: 40px;
}
.geo-pills { margin-top: 16px; }
.geo-pills .pill { font-weight: 500; color: var(--muted); gap: 10px; }
.geo-pills .code {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* Финальный призыв */
.cta-box {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 22px;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.cta-box h2 {
  font-size: clamp(26px, 6.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cta-box p {
  color: var(--muted);
  font-size: clamp(16px, 4.2vw, 18px);
  margin-top: 12px;
}
.cta-box .btn { margin-top: 28px; font-size: 17px; padding: 14px 28px; }
.cta-box .handle {
  display: block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
}

/* Подвал */
footer { border-top: 1px solid var(--line); padding: 32px 0; }
.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ≥768px */
@media (min-width: 768px) {
  .wrap { padding-inline: 24px; }
  .nav { min-height: 68px; }
  .logo { font-size: 20px; }
  .hero { padding: 96px 0 80px; }
  .hero::before { width: 900px; height: 600px; }
  .section { padding: 80px 0; }
  .hero-cta .btn { flex: 0 0 auto; }
  .stats { gap: 20px; margin-top: 44px; }
  .stat { padding: 26px 24px; }
  .cta-box { padding: 56px 32px; }
}

/* ≥1024px */
@media (min-width: 1024px) {
  .hero { padding: 120px 0 96px; }
  .section { padding: 96px 0; }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* Доступность: уважаем reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pill, .lang a { transition: none; }
  .btn:hover { transform: none; }
}
