/* Лендинг «5 путёвок в Умру». Цвета и шрифт — как у buhari-school.framer.ai. */
:root {
  --ink: #171717;
  --muted: #5b6472;
  --line: #e6e9ef;
  --grid: #f1f3f7;
  --ground: #ffffff;
  --soft: #f4f7fc;
  --blue: #0051a9;
  --blue-2: #2986e3;
  --blue-deep: #003e80;
  --gold-1: #d6af00;
  --gold-2: #fed309;
  --gold-ink: #7a6200;
  --ok: #1d7a46;
  --err: #b42318;
  --radius: 22px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lock { overflow: hidden; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--ground);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}

.wrap { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 8px; }

.gold {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* плашка демо-версии: только для согласования макета */
.demo-bar { padding: 8px 16px; background: #fff3c4; color: #5c4c10; font-size: 13px; font-weight: 500; text-align: center; border-bottom: 1px solid #f2e3a0; }

/* ── шапка ─────────────────────────────────────────── */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
/* Логотип школы. Высота задана, ширина считается сама: строка шапки не прыгает при загрузке. */
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 24px; width: auto; display: block; }
@media (min-width: 720px) { .logo img { height: 28px; } }

/* ── кнопки ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 8px 8px 8px 26px;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-2), var(--blue));
  color: #fff; font: inherit; font-weight: 600; font-size: 17px; text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(0, 81, 169, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(0, 81, 169, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn:active { transform: translateY(0); }
.btn .arrow { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; flex: none; }
.btn.small { min-height: 42px; padding: 6px 6px 6px 18px; font-size: 15px; gap: 8px; }
.btn.small .arrow { width: 30px; height: 30px; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }
.btn.plain { padding: 8px 26px; }
.btn.ghost { background: #fff; color: var(--blue); box-shadow: none; border: 1.5px solid var(--line); }

/* ── первый экран ──────────────────────────────────── */
.hero { padding-block: 44px 28px; text-align: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 8px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 500; color: var(--ink);
}
.chip i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #3d3100; }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 9.6vw, 76px); font-weight: 800; }
.hero .lead { margin: 20px auto 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 2.2vw, 19px); }
.hero .cta { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero .note { font-size: 14px; color: var(--muted); }


/* ── секции ────────────────────────────────────────── */
section { padding-block: 44px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.sec-title { margin-top: 10px; font-size: clamp(30px, 6.4vw, 46px); font-weight: 800; }
.sec-lead { margin-top: 14px; max-width: 38em; color: var(--muted); }

/* как выиграть — настоящая последовательность, поэтому номера */
.steps { margin-top: 28px; display: grid; gap: 12px; counter-reset: step; list-style: none; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: var(--blue); background: var(--soft);
}
.steps li:last-child::before { background: linear-gradient(135deg, var(--gold-1), var(--gold-2)); color: #3d3100; }
.steps h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.steps p { margin-top: 4px; color: var(--muted); font-size: 16px; }
.fair { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* как проходит обучение — синий блок */
.learn {
  margin-inline: 12px; border-radius: 32px; padding-inline: 8px;
  background: radial-gradient(120% 90% at 100% 0%, #1a6fd0 0%, var(--blue) 45%, var(--blue-deep) 100%);
  color: #fff;
}
.learn .eyebrow { color: var(--gold-2); }
.learn .sec-lead { color: rgba(255, 255, 255, 0.78); }
.weeks { margin-top: 26px; display: grid; gap: 12px; }
.week { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 20px; }
.week small { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-2); }
.week h3 { margin-top: 6px; font-size: 22px; font-weight: 700; }
.week p { margin-top: 6px; color: rgba(255, 255, 255, 0.8); font-size: 16px; }
.letters {
  margin-top: 14px; direction: rtl; display: flex; flex-wrap: wrap; gap: 6px;
  font-family: 'Geeza Pro', 'Noto Naskh Arabic', 'Arial', serif; font-size: 22px; line-height: 1;
}
.letters span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.1); }
.features { margin-top: 12px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.feature { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 18px; }
.feature .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--soft); color: var(--blue); display: grid; place-items: center; }
.feature h3 { margin-top: 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.feature p { margin-top: 4px; font-size: 15px; color: var(--muted); line-height: 1.45; }

/* грант и садака */
.pair { display: grid; gap: 12px; margin-top: 26px; }
.panel { border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); background: #fff; }
.panel.gold-panel { background: linear-gradient(180deg, #fffcef, #fff7d1); border-color: #f2e3a0; }
.panel h3 { font-size: 22px; font-weight: 800; }
.panel p { margin-top: 8px; color: var(--muted); font-size: 16px; }
.panel.gold-panel p { color: #5c4c10; }
.panel ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink); font-size: 16px; }
.panel li + li { margin-top: 4px; }

/* вопросы */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 18px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 28px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 14px; font-size: 24px; font-weight: 400; color: var(--blue); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); font-size: 16px; }

.final { text-align: center; }
.final .sec-lead { margin-inline: auto; }
.noscript { padding: 20px; text-align: center; }
.final .btn { margin-top: 24px; }

footer { padding-block: 32px 44px; border-top: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); }

/* ── анкета ────────────────────────────────────────── */
.quiz { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 22, 40, 0.5); }
.sheet {
  width: 100%; max-width: 560px; max-height: 94vh; overflow-y: auto;
  background: #fff; border-radius: 28px 28px 0 0;
  padding: 18px 20px calc(24px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, 0.35);
}
@media (min-width: 700px) {
  .quiz { align-items: center; }
  .sheet { border-radius: 28px; padding-bottom: 28px; }
}
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; font: inherit; }
.progress { flex: 1; height: 6px; border-radius: 6px; background: var(--soft); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue-2), var(--blue)); transition: width 0.3s ease; }
.step-count { margin-top: 18px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.q-title { margin-top: 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.q-hint { margin-top: 8px; color: var(--muted); font-size: 16px; }
.options { margin-top: 20px; display: grid; gap: 10px; }
.option {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 17px; color: var(--ink); cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease;
}
.option:hover { border-color: var(--blue-2); }
.option[aria-pressed="true"] { border-color: var(--blue); background: var(--soft); }
.option .dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); }
.option[aria-pressed="true"] .dot { border: 7px solid var(--blue); }
.option small { display: block; color: var(--muted); font-size: 14px; }
.option.price b { white-space: nowrap; }

.field { margin-top: 16px; display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input {
  width: 100%; min-height: 54px; padding: 12px 16px; border-radius: 16px; border: 1.5px solid var(--line);
  font: inherit; font-size: 18px; color: var(--ink); background: #fff;
}
.field input:focus { outline: none; border-color: var(--blue); }
.phone-wrap { position: relative; }
.phone-wrap span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--ink); pointer-events: none; }
.phone-wrap input { padding-left: 46px; }
.field input[aria-invalid="true"] { border-color: var(--err); }
.check { margin-top: 16px; display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--muted); line-height: 1.45; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); }
.error { margin-top: 12px; color: var(--err); font-size: 15px; font-weight: 500; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.q-actions .btn { width: 100%; justify-content: space-between; }
.soft-stop { margin-top: 16px; border-radius: 18px; padding: 16px; background: #fffaf0; border: 1px solid #f2e3a0; color: #5c4c10; font-size: 15px; }

/* экран «доступ открыт» */
.done-mark { width: 64px; height: 64px; border-radius: 20px; background: #e9f6ee; color: var(--ok); display: grid; place-items: center; margin-top: 10px; }
.creds { margin-top: 18px; border-radius: 20px; background: var(--soft); padding: 16px 18px; display: grid; gap: 10px; }
.creds div { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.creds span { color: var(--muted); font-size: 14px; }
.creds b { font-size: 20px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.copy { border: 0; background: #fff; color: var(--blue); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.stores { margin-top: 16px; display: grid; gap: 10px; }
.store { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; }
.store.alt { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.info-line { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: #fff8e1; color: #5c4c10; font-size: 15px; }
.muted { color: var(--muted); }
.spin.gap { margin-top: 18px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--soft); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* страницы правил и политики */
.doc { max-width: 760px; padding-block: 36px 60px; }
.doc h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 800; }
.doc h2 { margin-top: 30px; font-size: 21px; font-weight: 700; }
.doc p, .doc li { color: #333a45; font-size: 16px; }
.doc p { margin-top: 10px; }
.doc ul { padding-left: 20px; }
.todo { background: #fff8e1; border-radius: 6px; padding: 0 4px; }

@media (min-width: 760px) {
  .wrap { padding-inline: 32px; }
  .hero { padding-block: 72px 36px; }
  section { padding-block: 64px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weeks { grid-template-columns: 1fr 1fr; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pair { grid-template-columns: 1fr 1fr; }
  .learn { margin-inline: 24px; padding-inline: 16px; }
}
@media (max-width: 340px) {
  .features { grid-template-columns: 1fr; }
}

/* Ссылка-кнопка внутри текста: «восстановите пароль прямо здесь». */
.linkish {
  padding: 0; border: 0; background: none; font: inherit; color: var(--blue);
  text-decoration: underline; cursor: pointer;
}
.linkish:hover { color: #003f85; }
