/* ---------- Базовое ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --text: #111111;
  --muted: #6b7280;
  --accent: #ffcc00;       /* жёлтый Яндекс */
  --accent-dark: #111111;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 6px 18px rgba(17, 17, 17, 0.18);
}
.btn--primary:hover { background: #000; }

.btn--lg { padding: 16px 34px; font-size: 17px; }
.btn--sm { padding: 9px 18px; font-size: 14px; }

.btn--disabled {
  opacity: .5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ---------- Хедер ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.logo span { color: #ffb100; }
.logo--center { display: block; text-align: center; margin-bottom: 20px; }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background: linear-gradient(135deg, #fffbe6 0%, #ffffff 60%);
}
.hero__inner { max-width: 760px; }
.hero__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7a6a00;
  background: #fff3b0;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 20px;
}
.hero__title {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 0 0 20px;
}
.hero__text {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 16px;
}
.hero__note {
  font-weight: 600;
  margin: 0 0 30px;
}

/* ---------- Секции ---------- */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }

.section__title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.section__sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 36px;
  max-width: 720px;
}
.section__note {
  margin-top: 28px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Сетки ---------- */
.grid {
  display: grid;
  gap: 20px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Карточки ---------- */
.card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}
.card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.card__value {
  font-size: 22px;
  font-weight: 800;
  color: #ffb100;
  margin: 0 0 4px;
}
.card__muted { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- Шаги ---------- */
.step {
  position: relative;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow);
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #111;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.step__title { font-size: 17px; font-weight: 700; margin: 0 0 6px; }

/* ---------- CTA ---------- */
.cta {
  padding: 90px 0;
  background: #111;
  color: #fff;
  text-align: center;
}
.cta__title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 14px;
}
.cta__text { color: #cfcfcf; font-size: 17px; margin: 0 0 28px; }
.cta .btn--primary {
  background: var(--accent);
  color: #111;
}
.cta .btn--primary:hover { background: #ffd633; }
.cta__note { color: #8a8a8a; font-size: 14px; margin-top: 18px; }

/* ---------- Футер ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: var(--muted);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  text-align: center;
}
.footer a { color: var(--text); text-decoration: underline; }

/* ---------- Центрирование ---------- */
.center { text-align: center; margin-top: 32px; }

/* ---------- Страница редиректа ---------- */
.redirect-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #fffbe6 0%, #f7f8fa 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.redirect { width: 100%; max-width: 480px; }
.redirect__card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.redirect__title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
}
.redirect__text {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 24px;
}
.redirect__captcha {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
  min-height: 102px;
}
.redirect__note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.redirect__back {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.redirect__back:hover { color: var(--text); }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero { padding: 60px 0; }
  .section { padding: 60px 0; }
  .cta { padding: 60px 0; }
  .redirect__card { padding: 30px 20px; }
}