/* ── Variables ── */
:root {
  --bg: #08080c;
  --bg-elevated: #111118;
  --bg-card: #16161f;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8e8ed;
  --text-muted: #8b8b9a;
  --accent: #7c5cff;
  --accent-light: #a78bfa;
  --accent-glow: rgba(124, 92, 255, 0.35);
  --gradient: linear-gradient(135deg, #7c5cff 0%, #ff6b9d 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Unbounded', system-ui, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Typography ── */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--gradient);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--sm { padding: 10px 20px; font-size: 0.875rem; }
.btn--lg { padding: 18px 36px; font-size: 1rem; }

.btn--outline {
  background: transparent;
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn--outline:hover {
  border-color: var(--accent-light);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: none;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open { display: flex; }

.header--minimal .nav,
.header--minimal .burger { display: none; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 80px;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.hero__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.hero__text {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 20px 0 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
  min-width: 180px;
}

.stat-card__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section--dark {
  background: var(--bg-elevated);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 12px;
}

/* ── About ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-grid__text p {
  color: var(--text-muted);
  margin-top: 16px;
}

.about-grid__text p + p { margin-top: 12px; }

.facts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fact {
  display: flex;
  gap: 20px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fact__num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-light);
  opacity: 0.6;
  flex-shrink: 0;
}

.fact h3 { margin-bottom: 6px; }
.fact p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(124, 92, 255, 0.3);
  transform: translateY(-4px);
}

.card__icon {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--text-muted); }

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: none;
}

.step {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  list-style: none;
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-muted); }

/* ── Benefits ── */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.benefit__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.benefit h3 { margin-bottom: 8px; }
.benefit p { font-size: 0.9rem; color: var(--text-muted); }

/* ── CTA ── */
.cta-section { padding-bottom: 100px; }

.cta-box {
  text-align: center;
  padding: 64px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top, var(--accent-glow) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box > * { position: relative; }

.cta-box h2 { margin-bottom: 12px; }

.cta-box > p {
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
}

.cta-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: border-color 0.2s;
}

.contact-link span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-link:hover { border-color: var(--accent-light); }

/* ── Footer ── */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}

.footer__links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.6;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer--minimal .footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer--minimal .footer__copy {
  border: none;
  padding: 0;
}

/* ── Offer page ── */
.offer-page {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.offer-doc {
  max-width: 720px;
  margin: 0 auto;
}

.offer-doc__header {
  text-align: center;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.offer-doc__subtitle {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 1.05rem;
}

.offer-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.offer-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.offer-section h2 {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--accent-light);
}

.offer-section p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.offer-section p strong { color: var(--text); }

.offer-section ul {
  list-style: disc;
  padding-left: 24px;
  margin: 8px 0 12px;
}

.offer-section li {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.offer-contacts { list-style: none !important; padding-left: 0 !important; }
.offer-contacts li { list-style: none; }

.offer-section a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.requisites-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.requisites-box p { color: var(--text); margin-bottom: 20px; }

.requisites-box dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 24px;
}

.requisites-box dt {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

.requisites-box dd {
  font-size: 0.9rem;
  color: var(--text);
}

.requisites-box a { color: var(--accent-light); }

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .stat-card { flex: 1; min-width: 140px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }

  .cards { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .nav, .header .btn--sm { display: none; }
  .burger { display: flex; }

  .cards { grid-template-columns: 1fr; }

  .steps { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; }

  .footer__links { text-align: left; }

  .cta-box { padding: 40px 24px; }

  .cta-contacts { flex-direction: column; align-items: stretch; }
}
