/* ============================================================
   Зубрежка · посадочная страница
   Тёплый графит + янтарь · Onest (UI) + STIX Two Text (формулы)
   Источник: design/mockups/landing/src/ (композиция А)
   ============================================================ */

:root {
  --bg: #161310; --surface: #1F1A14; --surface2: #2A241C; --border: #383023;
  --text: #F0E9DE; --muted: #A3947D; --accent: #E8A33D; --on-accent: #1F1A14;
  --fx-op: #C9BCA6; --r: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Onest', sans-serif;
  -webkit-font-smoothing: antialiased;
}

.lp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }

/* ---------- навигация ---------- */
.land-nav { display: flex; align-items: center; gap: 11px; height: 88px; }
.land-logo {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
}
.land-word { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- блок 1 · hero ---------- */
.lp-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 60px;
  padding-top: 24px; padding-bottom: 84px;
}
.lp-hero .land-copy { flex: 1; max-width: 620px; }

.land-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.land-badge {
  display: inline-flex; align-items: center; gap: 8px;
  width: max-content; white-space: nowrap;
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--accent);
  padding: 7px 14px; border-radius: 99px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.land-h1 { margin: 0; font-size: 56px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; text-wrap: balance; }
.land-sub { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 560px; }
.land-sub .nm { color: var(--text); font-weight: 600; }

.cta-stack { display: flex; flex-direction: column; gap: 12px; }
.land-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 58px; padding: 0 36px;
  border: none; border-radius: var(--r); cursor: pointer;
  background: var(--accent); color: var(--on-accent);
  font-size: 17px; font-weight: 700; text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.land-cta:hover {
  background: #F2B254; transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(232, 163, 61, 0.22);
}
.land-cta:active { transform: translateY(0) scale(0.985); box-shadow: none; }
.land-fine { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- телефон-мокап ---------- */
.phone-wrap {
  --pscale: 0.72;
  position: relative; flex: 0 0 auto;
  width: calc(414px * var(--pscale)); height: calc(868px * var(--pscale));
}
.phone-glow {
  position: absolute; inset: -18%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 163, 61, 0.07), transparent 72%);
}
.bezel-l {
  position: relative; z-index: 1;
  width: 414px;
  background: #0A0908; border-radius: 50px; padding: 12px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform: scale(var(--pscale)); transform-origin: top left;
}
.bezel-screen-l { border-radius: 38px; overflow: hidden; position: relative; }
.bezel-screen-l .punch {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: #0A0908; z-index: 5;
  box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.25);
}

/* экран упражнения — срез дизайн-системы приложения (zubr.css) */
.scr {
  width: 390px; height: 844px;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  position: relative; overflow: hidden;
}
.statusbar {
  height: 36px; padding: 0 20px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.02em;
}
.sb-icons { display: flex; align-items: center; gap: 7px; }
.sb-signal { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.sb-signal i { width: 3px; border-radius: 1px; background: var(--muted); display: block; }
.sb-batt { width: 21px; height: 11px; border: 1.5px solid var(--muted); border-radius: 3px; padding: 1.5px; }
.sb-batt i { display: block; height: 100%; width: 70%; background: var(--muted); border-radius: 1px; }
.topbar { height: 56px; padding: 0 14px 0 6px; flex: 0 0 auto; display: flex; align-items: center; gap: 12px; }
.btn-x {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 20px; border-radius: 14px;
}
.progress { flex: 1; height: 6px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.counter { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.upper {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  gap: 22px; padding: 0 24px 20px; min-height: 0;
}
.lower { padding: 0 16px 28px; flex: 0 0 auto; }
.prompt { font-size: 16px; font-weight: 500; color: var(--muted); margin: 0; }
.fx {
  font-family: 'STIX Two Text', Georgia, serif;
  font-weight: 500; font-size: 46px; line-height: 1.2;
  display: flex; align-items: baseline; gap: 0.22em;
  color: var(--text); white-space: nowrap;
}
.fx i { font-style: italic; font-weight: 500; }
.fx sup { font-size: 0.58em; font-style: normal; margin-left: 0.06em; transform: translateY(-0.1em); display: inline-block; }
.fx .op { font-style: normal; color: var(--fx-op); }
.slot {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.7em; height: 1.22em; border-radius: 8px 8px 2px 2px;
  align-self: center; transform: translateY(0.04em); padding: 0 0.2em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-bottom: 3px solid var(--accent);
}
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.opt {
  height: 88px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  font-family: 'STIX Two Text', Georgia, serif; font-size: 30px; font-weight: 500;
}
.opt i { font-style: italic; }
.opt sup { font-size: 0.58em; margin-left: 0.05em; }

/* ---------- общая типографика секций ---------- */
.lp-h2 { margin: 0; font-size: 38px; font-weight: 700; letter-spacing: -0.012em; line-height: 1.15; text-wrap: balance; }
.lp-body { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.lp-section { padding: 88px 0; }
.lp-section.lp-tight { padding-top: 0; }

/* ---------- блок 2 · инсайт ---------- */
.lp-insight { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.lp-insight-copy { display: flex; flex-direction: column; gap: 18px; }
.lp-diagram-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 24px 24px 16px;
}
.lp-diagram-card svg { display: block; width: 100%; height: auto; }

/* ---------- блок 3 · как это работает ---------- */
.lp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 44px; }
.lp-step { display: flex; flex-direction: column; gap: 12px; }
.lp-step .lp-num {
  width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent);
}
.lp-step h3 { margin: 0; font-size: 19px; font-weight: 700; }
.lp-step p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------- блок 4 · механика ---------- */
.lp-mech { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; gap: 10px;
}
.lp-card h3 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.3; }
.lp-card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ---------- блок 5 · цитата ---------- */
.lp-quote {
  background: var(--surface);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 72px 0;
}
.lp-quote-text {
  margin: 0 auto; max-width: 880px; text-align: center;
  font-family: 'STIX Two Text', Georgia, serif; font-style: italic; font-weight: 500;
  font-size: 27px; line-height: 1.5; text-wrap: pretty;
}

/* ---------- блок 6 · FAQ ---------- */
.lp-faq { display: grid; grid-template-columns: 320px 1fr; gap: 72px; align-items: start; }
.lp-faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  transition: border-color 0.15s;
}
.faq-item[open] { border-color: color-mix(in srgb, var(--accent) 35%, transparent); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer;
  color: var(--text); font-size: 17px; font-weight: 600;
  list-style: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-chev {
  flex: 0 0 auto; font-size: 22px; font-weight: 400; line-height: 1;
  color: var(--muted); transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] .faq-chev { transform: rotate(45deg); color: var(--accent); }
.faq-a { margin: 0; padding: 0 22px 20px; font-size: 15.5px; line-height: 1.6; color: var(--muted); }

/* ---------- блок 7 · финальный CTA + футер ---------- */
.lp-final { padding: 110px 0 100px; }
.lp-final-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; }
.lp-final-in .lp-h2 { max-width: 22ch; font-size: 42px; }
.lp-final-in .cta-stack { align-items: center; }

.lp-footer { border-top: 1px solid var(--border); }
.lp-footer-in {
  height: 84px; display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted);
}
.lp-footer-link {
  color: var(--muted); text-decoration: none; padding-bottom: 1px;
  border-bottom: 1px solid color-mix(in srgb, var(--muted) 35%, transparent);
  transition: color 0.15s, border-color 0.15s;
}
.lp-footer-link:hover { color: var(--accent); border-color: var(--accent); }

/* ---- Форма обратной связи (футер, фаза Л3) ---- */
.fb { padding-top: 22px; font-size: 14px; color: var(--muted); }
.fb summary { cursor: pointer; width: max-content; list-style: none; }
.fb summary::-webkit-details-marker { display: none; }
.fb[open] summary { color: var(--accent); }
.fb-form { display: grid; gap: 8px; max-width: 480px; margin-top: 14px; }
.fb-label { font-size: 13px; color: var(--muted); }
.fb-input {
  font: inherit; color: var(--text);
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.fb-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.fb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fb-send {
  font: inherit; font-weight: 600; cursor: pointer; width: max-content;
  color: var(--on-accent); background: var(--accent);
  border: 0; border-radius: 999px; padding: 10px 22px;
}
.fb-send:disabled { opacity: .6; cursor: default; }
.fb-status { min-height: 1.2em; font-size: 13px; color: var(--muted); margin: 0; }

/* ============================================================
   Мобильная вёрстка (≤ 880px)
   ============================================================ */
@media (max-width: 880px) {
  .lp-wrap { padding-left: 24px; padding-right: 24px; }
  .land-nav { height: 64px; }

  .lp-hero { flex-direction: column; align-items: stretch; gap: 36px; padding-top: 8px; padding-bottom: 60px; }
  .lp-hero .land-copy { max-width: none; }
  .land-copy { gap: 16px; }
  .land-badge { font-size: 12.5px; padding: 6px 12px; }
  .land-h1 { font-size: 31px; line-height: 1.18; }
  .land-sub { font-size: 15px; line-height: 1.55; }
  .cta-stack { width: 100%; }
  .land-cta { width: 100%; height: 56px; }
  .land-fine { text-align: center; }
  .phone-wrap { --pscale: 0.62; margin: 0 auto; }

  .lp-h2 { font-size: 26px; line-height: 1.22; }
  .lp-body { font-size: 15px; line-height: 1.6; }
  .lp-section { padding: 60px 0; }

  .lp-insight { grid-template-columns: 1fr; gap: 30px; align-items: start; }
  .lp-steps-grid { grid-template-columns: 1fr; gap: 28px; margin-top: 28px; }
  .lp-mech { grid-template-columns: 1fr; gap: 14px; }

  .lp-quote { padding: 52px 0; }
  .lp-quote-text { font-size: 20px; line-height: 1.55; }

  .lp-faq { grid-template-columns: 1fr; gap: 26px; }
  .faq-q { font-size: 16px; padding: 16px 18px; }
  .faq-a { padding: 0 18px 18px; font-size: 14.5px; }

  .lp-final { padding: 72px 0 64px; }
  .lp-final-in .lp-h2 { font-size: 26px; }
}
