@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F5F6FA;
  --bg-tint: #EFF1F8;
  --surface: #FFFFFF;
  --ink: #1B1E2B;
  --ink-2: #2A2E45;
  --ink-soft: #5B5F72;
  --accent: #FF5A36;
  --accent-2: #FFB238;
  --accent-ink: #7A2A15;
  --grow: #1FAE87;
  --grow-2: #38DDBB;
  --line: #E7E9F1;
  --radius: 12px;
  --grad-accent: linear-gradient(135deg, var(--accent), var(--accent-2));
  --grad-grow: linear-gradient(135deg, var(--grow), var(--grow-2));
  --grad-dark: linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  --shadow-sm: 0 1px 2px rgba(27,30,43,0.05);
  --shadow-md: 0 10px 30px rgba(27,30,43,0.07);
  --shadow-glow: 0 10px 26px rgba(255,90,54,0.28);
}

html, body { overflow-x: hidden; max-width: 100%; }

html { scroll-behavior: smooth; }

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }

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

.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; }

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255,90,54,0.22);
  margin-bottom: 16px;
  flex-shrink: 0;
}
.icon-badge--grow { background: var(--grad-grow); box-shadow: 0 6px 16px rgba(31,174,135,0.22); }
.icon-badge--dark { background: rgba(255,255,255,0.08); box-shadow: none; }

/* ---------- Header ---------- */

header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  color: var(--ink);
}
.logo img { width: 30px; height: 30px; }
.logo span { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }

.main-nav { display: flex; gap: 26px; }
.main-nav a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.main-nav a:hover { color: var(--ink); }

.nav-actions { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary { background: var(--grad-accent); color: #fff; box-shadow: 0 6px 16px rgba(255,90,54,0.22); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border: none;
  position: relative;
  padding: 11px 6px;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  left: 6px; right: 6px; bottom: 6px;
  height: 2px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.btn-ghost:hover { color: var(--ink); }
.btn-ghost:hover::after { transform: scaleX(1); }

.btn-block { width: 100%; }
.btn-lg { padding: 16px 28px; font-size: 15.5px; }

/* ---------- Hero ---------- */

section.hero {
  position: relative;
  padding-top: 76px;
  padding-bottom: 56px;
  overflow: hidden;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 1100px; height: 900px;
  background: radial-gradient(ellipse at center, rgba(255,90,54,0.22) 0%, rgba(255,178,56,0.13) 38%, rgba(255,178,56,0.05) 60%, transparent 78%);
  z-index: -1;
  pointer-events: none;
}

.hero-content { max-width: 920px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

.hero h1 { font-size: 54px; max-width: none; line-height: 1.1; overflow-wrap: break-word; }
.hl-accent {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }

.badge-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  padding: 0;
  margin: 24px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.badge-row li { display: flex; align-items: center; gap: 7px; }
.badge-row li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--grow); display: inline-block; }

/* Centered stats bar below hero */
section.stats-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  padding-top: 64px;
  padding-bottom: 60px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.stat-block { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stat-block .num {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 38px;
  background: var(--grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat-block .num .star { -webkit-text-fill-color: initial; background: none; color: var(--accent-2); }
.stat-block .lbl {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 700px) {
  .hero h1 { font-size: 38px; }
  .stats-bar { gap: 32px; }
  .stat-block .num { font-size: 30px; }
}

/* ---------- Sections & plates ---------- */

.section { padding: 64px 0; }
.section--tint { background: var(--bg-tint); }

.section-head { max-width: 56ch; margin-bottom: 40px; }
.section-head h2 { font-size: 30px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; }

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-ink);
  background: linear-gradient(135deg, rgba(255,90,54,0.12), rgba(255,178,56,0.12));
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.why-grid .plate { display: flex; flex-direction: column; }

.plate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.plate:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.plate-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.plate-head .icon-badge { margin-bottom: 0; width: 40px; height: 40px; flex-shrink: 0; }
.plate-head .icon-badge .icon { width: 20px; height: 20px; }
.plate-head h3 { margin: 0; }

.feature-grid .plate h3 { font-size: 17px; margin-bottom: 0; }
.feature-grid .plate p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad-accent);
  color: #fff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
}
.step h3 { font-size: 15.5px; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* Promo banner */
.promo-section .promo-banner {
  position: relative;
  overflow: hidden;
  background: var(--grad-dark);
  border-radius: 22px;
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.promo-banner::after {
  content: '';
  position: absolute;
  right: -100px; top: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,90,54,0.35) 0%, rgba(255,178,56,0.12) 55%, transparent 75%);
}
.promo-banner h2 { color: #fff; font-size: 28px; margin: 10px 0 12px; position: relative; }
.promo-banner p { color: rgba(255,255,255,0.65); max-width: 42ch; margin: 0; position: relative; }
.promo-tag {
  display: inline-block;
  background: rgba(31,174,135,0.2);
  color: var(--grow-2);
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  position: relative;
}
.promo-banner .btn-lg { flex-shrink: 0; position: relative; }
@media (max-width: 760px) { .promo-banner { flex-direction: column; align-items: flex-start; } }

/* Testimonials */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.testimonial .quote-icon {
  color: #fff;
  width: 40px; height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--grad-accent);
  flex-shrink: 0;
}
.testimonial-author { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.testimonial-author span { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }
.testimonial p { font-size: 15px; margin: 0; color: var(--ink-2); }

/* FAQ */
.faq-list { max-width: none; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--bg-tint);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 400;
}
.faq-item[open] summary .plus { background: var(--grad-accent); color: #fff; }
.faq-item[open] summary .plus::before { content: '−'; }
.faq-item summary .plus::before { content: '+'; }
.faq-item p { color: var(--ink-soft); margin: 14px 0 0; font-size: 14.5px; max-width: 60ch; }

.cta-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: var(--grad-accent);
  border-radius: 24px;
  padding: 64px 40px;
  box-shadow: var(--shadow-md);
}
.cta-final::after {
  content: '';
  position: absolute;
  left: -80px; bottom: -140px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,255,255,0.22) 0%, transparent 70%);
}
.cta-final h2 { color: #fff; font-size: 32px; max-width: 22ch; margin: 0 auto; position: relative; }
.cta-final p { color: rgba(255,255,255,0.85); margin: 16px auto 30px; max-width: 46ch; position: relative; }
.btn-cta-white {
  background: #fff;
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(0,0,0,0.15);
  position: relative;
}
.btn-cta-white:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,0.2); }

/* Footer */
.site-footer-full { border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 28px; padding-bottom: 32px; }
.footer-desc { color: var(--ink-soft); font-size: 14px; margin-top: 14px; max-width: 34ch; }
.footer-grid h4 { font-size: 13px; color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; }
.footer-grid a { display: block; text-decoration: none; color: var(--ink); font-size: 14px; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 22px; color: var(--ink-soft); font-size: 13px; }

/* ---------- Auth pages ---------- */

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.auth-shell::before {
  content: '';
  position: absolute;
  top: -180px; left: 50%;
  transform: translateX(-50%);
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(255,90,54,0.14) 0%, rgba(255,178,56,0.05) 55%, transparent 75%);
}

.auth-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-md);
}

.auth-card .logo { margin-bottom: 20px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }
.auth-card .sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 28px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  background: #fff;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.form-error {
  background: #FDEDEA;
  color: var(--accent-ink);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-bottom: 18px;
  display: none;
}

.auth-switch { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }

.telegram-wrap { display: flex; justify-content: center; margin-bottom: 18px; }
.telegram-divider { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--ink-soft); font-size: 13px; }
.telegram-divider::before, .telegram-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Dashboard ---------- */

.dash-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }

.dash-side {
  background: var(--grad-dark);
  color: #fff;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
}

.dash-side .logo { color: #fff; margin-bottom: 36px; }
.dash-menu-toggle { display: none; }
.dash-mobile-menu { display: contents; }
.dash-side .logo span { background: none; -webkit-text-fill-color: initial; color: var(--accent-2); }

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  margin-bottom: 4px;
}
.dash-nav a .icon { width: 18px; height: 18px; }
.dash-nav a.active, .dash-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }

.dash-side .logout {
  margin-top: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.55);
  font-size: 13.5px;
  cursor: pointer;
  text-align: left;
  padding: 10px 12px;
}
.dash-side .logout:hover { color: #fff; }

.dash-main { padding: 24px 32px; width: 100%; min-width: 0; }

/* Верхний бар кабинета (заголовок + баланс + CTA) */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  min-width: 0;
}
.dash-header h1 { font-size: 22px; }
.dash-header p { color: var(--ink-soft); margin: 4px 0 0; font-size: 13px; }
.dash-header-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.balance-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 14px;
}
.balance-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--grad-accent); background: var(--accent); }
.dash-header .btn .icon { width: 15px; height: 15px; }

/* CTA-кнопка в сайдбаре */
.dash-cta {
  display: flex; align-items: center; gap: 8px;
  background: var(--grad-accent);
  color: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  box-shadow: 0 6px 16px rgba(255,90,54,0.25);
}
.dash-cta .icon { width: 16px; height: 16px; }

/* Профиль внизу сайдбара */
.dash-profile { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 4px; }
.dash-profile-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-profile-info { flex: 1; min-width: 0; }
.dash-profile-login { color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-profile-plan { color: rgba(255,255,255,0.45); font-size: 11.5px; }
.dash-profile-logout { background: none; border: none; color: rgba(255,255,255,0.45); cursor: pointer; font-size: 15px; flex-shrink: 0; }
.dash-profile-logout:hover { color: #fff; }

/* Обзор: строка счётчиков продвижений */
.ov-topline { text-align: right; color: var(--ink-soft); font-size: 12.5px; margin-bottom: 10px; }
.ov-topline strong { color: var(--ink); }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stat-card-label { font-size: 12px; color: var(--ink-soft); }
.stat-card-icon {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--bg-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.stat-card-icon .icon { width: 14px; height: 14px; }
.stat-card-icon--grow { color: var(--grow); }
.stat-card-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
}
.stat-card-delta { font-size: 12px; font-weight: 700; margin-left: 4px; }
.delta-up { color: var(--grow); }
.delta-down { color: var(--accent); }
.stat-card-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 1100px) { .stat-grid, .stat-grid-4 { grid-template-columns: repeat(2, 1fr); } }

/* Панели компактнее для обзора */
.dash-view[data-view="overview"] .panel { padding: 16px 20px; margin-bottom: 14px; }
.dash-view[data-view="overview"] .panel h2 { font-size: 15px; margin-bottom: 2px; }
.panel-sub { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 12px; }

.panel-chart-head { display: flex; align-items: flex-start; justify-content: space-between; }
.growth-badge { font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 20px; background: #E7F7F1; color: var(--grow); }
.real-data-badge { font-size: 11px; font-weight: 700; padding: 5px 10px; border-radius: 20px; background: #E7F0FD; color: #2563EB; }
.growth-badge.growth-down { background: #FDEDEA; color: var(--accent-ink); }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 100px; margin-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-col-bar { width: 100%; max-width: 22px; background: var(--grad-accent); border-radius: 4px 4px 0 0; }
.bar-col-label { font-size: 9.5px; color: var(--ink-soft); margin-top: 4px; }

.engagement-row { display: flex; justify-content: space-between; gap: 8px; }
.engagement-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.engagement-icon {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.engagement-icon .icon { width: 15px; height: 15px; }
.engagement-icon--pink { background: #FCE7F0; color: #D6266F; }
.engagement-icon--orange { background: #FFF1E8; color: #B8501F; }
.engagement-icon--blue { background: #E7F0FD; color: #2563EB; }
.engagement-icon--teal { background: #E7F7F4; color: var(--grow); }
.engagement-icon--purple { background: #F1E9FE; color: #7C3AED; }
.engagement-icon--amber { background: #FEF3E0; color: #B8791F; }
.engagement-value { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px; }
.engagement-label { font-size: 10.5px; color: var(--ink-soft); text-align: center; }

/* Продвижение: баннер */
.promo-hero {
  background: var(--grad-dark);
  border-radius: 16px;
  padding: 20px 24px;
  color: #fff;
  margin-bottom: 16px;
}
.promo-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 8px;
}
.promo-hero-eyebrow .icon { width: 13px; height: 13px; }
.promo-hero h2 { color: #fff; font-size: 20px; margin-bottom: 6px; }
.promo-hero p { color: rgba(255,255,255,0.65); font-size: 13.5px; margin: 0 0 14px; max-width: 70ch; }
.promo-hero-badges { display: flex; gap: 20px; flex-wrap: wrap; }
.promo-hero-badges span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,0.85); }
.promo-hero-badges .icon { width: 15px; height: 15px; color: var(--accent-2); }

.promo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .promo-grid { grid-template-columns: 1fr; } }

.promo-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.promo-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.promo-card-top .icon-badge { margin-bottom: 0; width: 38px; height: 38px; }
.promo-card-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.price-badge, .trial-badge { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.price-badge { background: var(--bg-tint); color: var(--ink); }
.trial-badge { background: #E7F7F1; color: var(--grow); }
.promo-card h3 { font-size: 16px; margin-bottom: 4px; }
.promo-card-subtitle { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 10px; }
.promo-bullets { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.promo-bullets li {
  font-size: 12.5px; color: var(--ink-2); display: flex; align-items: flex-start; gap: 8px;
}
.promo-bullets li .icon {
  width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--accent);
}
.promo-accounts { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.promo-accounts-head { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 8px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13.5px; font-weight: 600; }
.admin-tag {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-2); background: rgba(255,178,56,0.12);
  padding: 4px 10px; border-radius: 20px; margin-bottom: 20px;
}
.health-steps { padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.health-steps li { margin-bottom: 10px; }
.health-steps code, .panel-sub code {
  background: var(--bg-tint); padding: 1px 6px; border-radius: 4px; font-size: 0.9em;
}
.toggle-error {
  font-size: 11.5px; font-weight: 500; color: var(--accent-ink);
  background: #FDEDEA; border-radius: 6px; padding: 6px 10px; margin: -2px 0 6px;
}

.toggle-switch {
  width: 40px; height: 22px; border-radius: 20px;
  background: var(--line); border: none; cursor: pointer;
  position: relative; flex-shrink: 0; padding: 0;
}
.toggle-switch span {
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform 0.15s ease;
}
.toggle-switch.on { background: var(--grad-accent); }
.toggle-switch.on span { transform: translateX(18px); }

.verify-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: #FFF1E8; border: 1px solid #FFD9B8; color: #7A2A15;
  border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px;
}
.verify-banner .btn { flex-shrink: 0; white-space: nowrap; }

.balance-card {
  background: var(--grad-dark);
  color: #fff;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}
.balance-card .amount {
  font-family: 'Space Grotesk', sans-serif; font-size: 32px; font-weight: 700;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.balance-card .label { color: rgba(255,255,255,0.55); font-size: 13.5px; margin-bottom: 4px; }
.topup-form { display: flex; gap: 10px; }
.topup-form input { width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}
.panel h2 { font-size: 18px; margin-bottom: 20px; }

.order-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.price-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tint);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14.5px;
}
.price-preview .value {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.panel { overflow-x: auto; }
table.orders-table { width: 100%; min-width: 480px; border-collapse: collapse; }
table.orders-table th, table.orders-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.orders-table th { color: var(--ink-soft); font-weight: 500; font-size: 12.5px; }

.status-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.status-processing { background: #FFF1E8; color: #B8501F; }
.status-completed { background: #E7F7F1; color: var(--grow); }

.empty-hint { color: var(--ink-soft); font-size: 14px; padding: 20px 0; text-align: center; }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.account-row:last-child { border-bottom: none; }
.account-nickname { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.account-link { font-size: 13px; color: var(--ink-soft); text-decoration: none; word-break: break-all; }
.account-link:hover { color: var(--accent); }
.icon-btn-danger {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: none;
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn-danger .icon { width: 16px; height: 16px; }
.icon-btn-danger:hover { border-color: var(--accent); color: var(--accent); }

.bar-row { margin-bottom: 18px; }
.bar-row:last-child { margin-bottom: 0; }
.bar-row-label { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.bar-row-label span:last-child { font-weight: 600; }
.bar-track { height: 8px; background: var(--bg-tint); border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad-accent); border-radius: 6px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats-inline { flex-wrap: wrap; gap: 20px; }
  .steps { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ---------- Планшет / крупный телефон ---------- */
@media (max-width: 700px) {
  .wrap { padding: 0 18px; }
  .site-header { flex-wrap: wrap; row-gap: 10px; }

  /* Личный кабинет: сайдбар превращается в верхний бар с выпадающим меню */
  .dash-layout { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .dash-side {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 0;
  }
  .dash-side-top { display: flex; align-items: center; justify-content: space-between; }
  .dash-side .logo { flex-shrink: 0; margin-bottom: 0; }
  .admin-tag { display: none; }
  .dash-cta { display: none; } /* дублирует пункт "Продвижение" в меню */

  .dash-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
  }
  .dash-menu-toggle .icon { width: 20px; height: 20px; }
  .dash-menu-toggle[aria-expanded="true"] { background: rgba(255,255,255,0.16); }

  /* На мобильном по умолчанию скрыто, раскрывается по клику на гамбургер */
  .dash-mobile-menu:not(.open) { display: none; }
  .dash-mobile-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink-2);
    padding: 8px 16px 16px;
    box-shadow: 0 16px 32px rgba(0,0,0,0.28);
    z-index: 60;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .dash-mobile-menu.open .dash-nav { display: flex; flex-direction: column; gap: 2px; }
  .dash-mobile-menu.open .dash-nav a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 10px;
    font-size: 15px;
    white-space: normal;
  }
  .dash-mobile-menu.open .dash-nav a .icon { width: 20px; height: 20px; }
  .dash-mobile-menu.open .dash-profile {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .dash-mobile-menu.open .dash-profile-info { display: block; }

  .dash-main { padding: 16px; min-width: 0; }
  .dash-view { min-width: 0; }
  table.orders-table { min-width: 0; }
  .dash-header { flex-wrap: wrap; gap: 10px; }
  .dash-header-right { width: auto; }
  .dash-header-right .btn { display: none; } /* дублирует вкладку "Продвижение" в меню — на мобильном не нужна */
  .balance-chip { flex-shrink: 0; padding: 7px 14px; font-size: 13px; }
  .dash-header h1 { font-size: 19px; }

  .order-form-row { grid-template-columns: 1fr; }

  .balance-card { flex-direction: column; align-items: flex-start; gap: 18px; }
  .topup-form { width: 100%; }
  .topup-form input { flex: 1; width: auto; min-width: 0; }

  .verify-banner { flex-direction: column; align-items: flex-start; }

  .engagement-row { flex-wrap: wrap; row-gap: 14px; }
  .engagement-item { flex: 0 0 calc(33.333% - 6px); }

  .bar-chart { gap: 3px; }
  .bar-col-bar { max-width: 16px; }
  .bar-col-label { font-size: 8px; }

  .promo-hero { padding: 18px; }
  .cta-final { padding: 40px 24px; }
  .cta-final h2 { font-size: 24px; }
}

/* ---------- Маленький телефон ---------- */
@media (max-width: 480px) {
  .btn { padding: 9px 14px; font-size: 13.5px; }
  .btn-lg { padding: 13px 20px; font-size: 14.5px; }
  .logo { font-size: 17px; }

  .stat-grid, .stat-grid-4 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr !important; }
  .hero h1 { font-size: 28px !important; }
  .hero p.lead { font-size: 15px; }
  .stat-block .num { font-size: 24px; }

  .auth-card { padding: 26px 20px; }
  .auth-shell { padding: 16px; }

  .bar-col:nth-child(even) .bar-col-label { display: none; }

  .engagement-item { flex-basis: calc(50% - 4px); }

  .promo-card { padding: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .plate { transition: none; }
}

/* Появление блоков при скролле */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
