:root {
  --bg: #0f1419;
  --surface: #1a2332;
  --text: #e8edf4;
  --muted: #8b9cb3;
  --accent: #4f8cff;
  --accent-hover: #3a7af0;
  --success: #3dd68c;
  --error: #ff6b6b;
  --border: #2a3544;
  --radius: 12px;
  --header-h: 56px;
  --bottom-nav-h: 64px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  height: var(--header-h);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text);
  text-decoration: none;
}
.logo:hover,
.logo:focus {
  text-decoration: none;
  color: var(--text);
}
.header-nav { display: flex; gap: 0.75rem; align-items: center; }

.main-content {
  padding: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: calc(var(--bottom-nav-h) + 2rem);
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero { text-align: center; padding: 2rem 0; }
.hero h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.hero-sub { color: var(--muted); margin-bottom: 1.5rem; }
.hero-actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.features { display: grid; gap: 1rem; margin: 2rem 0; }
@media (min-width: 768px) {
  .features { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { font-size: 2.25rem; }
}

.feature-card, .card, .tariff-card, .auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.tariffs-section h2 { margin-bottom: 0.5rem; }
.section-lead { color: var(--muted); margin: 0 0 1rem; font-size: 0.95rem; }
.tariff-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .tariff-grid { grid-template-columns: repeat(2, 1fr); } }
.tariff-price-block { margin: 0.75rem 0 1rem; }
.tariff-price { font-size: 1.5rem; font-weight: 700; margin: 0; line-height: 1.2; }
.tariff-price-crypto { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0; line-height: 1.3; }
.tariff-meta { color: var(--muted); font-size: 0.9rem; }

.seo-block { margin: 2.5rem 0 1rem; }
.seo-block h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.seo-block p { color: var(--muted); margin: 0 0 0.75rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-brand { color: var(--text); font-weight: 600; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.875rem; }
.btn-block { display: block; width: 100%; }

.btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #2aabee;
  color: #fff;
  border: none;
}
.btn-telegram:hover { background: #229ed9; color: #fff; text-decoration: none; }
.tg-icon {
  width: 1.25rem;
  height: 1.25rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 15.29l-.29 4.09c.42 0 .6-.18.82-.4l1.97-1.89 4.09 3.01c.75.41 1.29.2 1.48-.69l2.68-12.58c.27-1.24-.45-1.72-1.24-1.42L2.27 9.37c-1.2.47-1.18 1.14-.2 1.44l4.98 1.55L18.9 6.9c.57-.38 1.09-.17.66.23'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.78 15.29l-.29 4.09c.42 0 .6-.18.82-.4l1.97-1.89 4.09 3.01c.75.41 1.29.2 1.48-.69l2.68-12.58c.27-1.24-.45-1.72-1.24-1.42L2.27 9.37c-1.2.47-1.18 1.14-.2 1.44l4.98 1.55L18.9 6.9c.57-.38 1.09-.17.66.23'/%3E%3C/svg%3E") center / contain no-repeat;
}
.telegram-auth { display: flex; justify-content: center; margin: 0.5rem 0; }
.auth-card--telegram { text-align: center; }

.form label { display: block; margin-bottom: 1rem; }
.form input, .form select {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
}
.form .select-wrap {
  position: relative;
  display: block;
  margin-top: 0.35rem;
}
.form .select-wrap select {
  margin-top: 0;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.form .select-chevron {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.auth-card { max-width: 400px; margin: 2rem auto; }
.auth-footer { text-align: center; margin-top: 1rem; }
.divider { text-align: center; color: var(--muted); margin: 1.25rem 0; }

.flash-wrap { max-width: 720px; margin: 0.5rem auto; padding: 0 1rem; }
.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  transition: opacity 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
  overflow: hidden;
}
.flash.is-hiding {
  opacity: 0;
  max-height: 0 !important;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
}
.flash-success, .flash-info { background: rgba(61, 214, 140, 0.15); border: 1px solid var(--success); }
.flash-error { background: rgba(255, 107, 107, 0.15); border: 1px solid var(--error); }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-nav-h);
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  z-index: 100;
}
.bottom-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.5rem;
}
.bottom-nav a.active { color: var(--accent); font-weight: 600; }

.copy-row { display: flex; gap: 0.5rem; }
.copy-row input { flex: 1; min-width: 0; font-size: 0.8rem; }
.copy-field { display: block; margin: 1rem 0; }
.copy-field span { font-size: 0.875rem; color: var(--muted); }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hidden { display: none; }
.card-referral h2,
.card-apps h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
}

.card + .card {
  margin-top: 1rem;
}

.apps-platform {
  margin-bottom: 0.85rem;
}

.apps-platform h3 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.apps-list {
  margin: 0;
  padding-left: 1.1rem;
}

.apps-list li {
  margin-bottom: 0.25rem;
}

.apps-how-title {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.cabinet-footer-link {
  margin-top: 1.25rem;
  text-align: center;
}

.cabinet-footer-link a {
  color: var(--muted);
  font-size: 0.9rem;
}
.success-text { color: var(--success); }
.error-text { color: var(--error); }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 0.5rem; }

.faq {
  margin-top: 2rem;
}
.faq h2 {
  margin-bottom: 1rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.faq-item p {
  margin: 0;
  color: var(--muted);
}

@media (min-width: 1024px) {
  .bottom-nav { display: none; }
  .main-content { padding-bottom: 2rem; }
}
