/* Reñşı — design B tokens */
:root {
  --bg: #0e0e0d;
  --surface: #1a1918;
  --line: #3a3833;
  --line-strong: #5a564d;
  --text: #f3ecd9;
  --text-2: #d9d2c0;
  --muted: #b3ac9c;
  --accent: #a80c0c;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #0e0e0d; } }
:root[data-theme="dark"] { --bg: #0e0e0d; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
a { color: var(--text); }
a:hover { color: #fff; }
img, video { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: 1376px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* type */
.eyebrow { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; overflow-wrap: break-word; margin: 0; }
.h1 { font-size: clamp(48px, 8.4vw, 104px); line-height: 0.98; }
.h2 { font-size: clamp(34px, 6.4vw, 72px); line-height: 1.02; }
.h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; font-size: clamp(22px, 3vw, 30px); line-height: 1.1; margin: 0; }
.lead { margin: 0; max-width: 560px; font-size: clamp(16px, 2.2vw, 18px); line-height: 1.55; color: var(--text-2); }
.body { font-size: 16px; line-height: 1.55; color: var(--text-2); margin: 0; }
.small { font-size: 14px; color: var(--text-2); }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 10px 24px;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
  text-decoration: none; border: 1px solid var(--text); background: transparent; color: var(--text); cursor: pointer; }
.btn:hover { background: var(--text); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--text); }
.btn--accent:hover { background: #c41212; border-color: #c41212; color: #fff; }
.btn--xl { min-height: 64px; font-size: 15px; letter-spacing: 0.1em; }
.btn--sm { min-height: 44px; padding: 0 20px; }
.link-caps { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }

/* header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: 0.04em; text-decoration: none; }
.site-nav { display: flex; align-items: center; gap: 24px; }

main.landing { display: flex; flex-direction: column; gap: clamp(56px, 8vw, 104px); padding-top: 8px; padding-bottom: 64px; }
section { scroll-margin-top: 24px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

/* grids */
.grid { display: grid; gap: 24px; }
.grid--hero { grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--facts { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 18px 32px; padding: 22px 0; border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); margin-top: clamp(28px, 4vw, 48px); }
.grid--facts .v { font-size: 16px; margin-top: 6px; }

/* hero */
.hero-copy { display: flex; flex-direction: column; gap: 20px; }
.hero-copy .btn { align-self: stretch; max-width: 520px; }
.media-ph { aspect-ratio: 16 / 9; min-height: 200px; padding: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); text-align: center; position: relative; overflow: hidden; }
.media-ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { width: clamp(56px, 12vw, 96px); height: clamp(56px, 12vw, 96px); display: flex; align-items: center; justify-content: center;
  background: transparent; border: 3px solid var(--text); border-radius: 50%; cursor: pointer; position: relative; z-index: 1; }
.ph-label { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }

/* before / after */
.ba { position: relative; aspect-ratio: 16 / 9; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.ba > div { display: flex; align-items: flex-end; padding: 10px; font-size: 11px; letter-spacing: 0.14em; }
.ba .before { background: #2b2a28; color: var(--text-2); }
.ba .after { justify-content: flex-end; }
.ba::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--text); }
.caption { font-size: 13px; letter-spacing: 0.12em; color: var(--muted); margin-top: 10px; text-transform: uppercase; }

/* brands */
.brands { display: flex; flex-direction: column; gap: 18px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brands ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px clamp(24px, 5vw, 56px);
  font-family: var(--display); font-size: clamp(20px, 3.4vw, 30px); font-weight: 500; text-transform: uppercase; color: var(--text-2); }

/* pains */
.pain { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; border-top: 2px solid var(--text); }
.idea { display: flex; flex-direction: column; gap: 14px; padding: clamp(20px, 4vw, 40px); background: var(--surface); border: 1px solid var(--line); margin-top: 28px; }
.idea .display { font-size: clamp(40px, 9vw, 112px); line-height: 0.96; }

/* teacher */
.teacher { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: clamp(24px, 4vw, 56px); align-items: center; }
.portrait { aspect-ratio: 4 / 5; max-height: 560px; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); font-size: 12px; letter-spacing: 0.14em; color: var(--muted); text-align: center; }
.teacher .copy { display: flex; flex-direction: column; gap: 20px; }
.teacher .copy .btn { align-self: flex-start; }

/* lesson cards */
.lcard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; }
.thumb .flag { position: absolute; left: 0; top: 0; padding: 5px 9px; background: var(--bg); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; }
.thumb .time { position: absolute; right: 0; bottom: 0; padding: 5px 9px; background: var(--bg); font-size: 12px; letter-spacing: 0.1em; }
.lcard .t { font-size: 17px; line-height: 1.35; font-weight: 600; }

/* program */
.program { border-top: 2px solid var(--line); }
.module { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 6px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.module .meta { font-size: 12px; letter-spacing: 0.12em; color: var(--muted); margin-top: 6px; }

/* tariffs */
.tariff { display: flex; flex-direction: column; gap: 14px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); }
.tariff--hot { background: var(--surface); border-color: var(--text); }
.tariff .top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 24px; font-size: 13px; letter-spacing: 0.14em; }
.tariff .top b { font-size: 11px; letter-spacing: 0.14em; }
.tariff .kind { font-family: var(--display); font-size: 22px; line-height: 1.15; font-weight: 500; text-transform: uppercase; color: var(--text-2); }
.tariff .price { font-family: var(--display); font-size: 48px; line-height: 1; font-weight: 700; }
.tariff .monthly { font-size: 14px; color: var(--muted); margin-top: -6px; }
.tariff ul { list-style: none; margin: 0; padding: 14px 0; display: flex; flex-direction: column; gap: 8px; flex: 1; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--text-2); }
.tariff .term { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding: clamp(18px, 3vw, 26px); background: var(--surface); border: 1px solid var(--line); margin-top: 24px; }
.panel .copy { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.panel .display { font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; }
.guarantee { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--text); margin-top: 24px; }
.guarantee .display { flex: 1 1 220px; font-size: clamp(24px, 3.4vw, 30px); }
.guarantee p { flex: 2 1 320px; }

/* faq */
.faq { border-top: 2px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0;
  cursor: pointer; font-size: clamp(17px, 2.4vw, 19px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: 0 0 20px; transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { max-width: 760px; margin: 0 0 18px; }

/* final cta */
.final { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: clamp(36px, 8vw, 72px) clamp(16px, 4vw, 24px); background: var(--surface); border: 1px solid var(--line); text-align: center; }
.final .display { max-width: 980px; font-size: clamp(34px, 7vw, 80px); line-height: 1; }
.final .links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: 14px; }
.final .links a, .site-footer a { color: var(--text-2); }

/* footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* mobile sticky cta */
.only-phone { display: none; }
@media (max-width: 640px) {
  .hide-phone { display: none !important; }
  .only-phone { display: flex; }
  .sticky-cta { position: sticky; bottom: 0; padding: 10px 16px; background: var(--bg); border-top: 1px solid var(--line); }
  .sticky-cta .btn { flex: 1; min-height: 52px; }
}
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ===== App pages (catalog, lesson, auth, checkout, account) ===== */
.app-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.app-header .site-nav { margin-left: auto; gap: 20px; }
.search { flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.avatar { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--text); border-radius: 50%; font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) { .search { order: 3; flex-basis: 100%; max-width: none; } }

main.app { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); padding-top: 8px; padding-bottom: 64px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: clamp(16px, 3vw, 28px); }
.card--hi { border-color: var(--text); }
.bar { height: 4px; background: var(--line); }
.bar > i { display: block; height: 100%; background: var(--accent); }
.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.chip { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--text);
  font: inherit; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; cursor: pointer; text-decoration: none; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.mod-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 14px; }
.mod-head .display { font-size: clamp(26px, 4vw, 40px); line-height: 1.05; }
.rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 14px 28px; margin-top: 18px; }
.row { display: flex; gap: 14px; align-items: center; text-decoration: none; }
.row .thumb { flex: 0 0 clamp(120px, 30vw, 176px); display: flex; align-items: center; justify-content: center; }
.row .thumb .time { font-size: 11px; padding: 3px 7px; letter-spacing: 0.08em; }
.row .st { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.row .tt { font-size: 15px; line-height: 1.35; font-weight: 600; }
.lock { position: absolute; inset: 0; margin: auto; }
.continue { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr)); gap: clamp(16px, 4vw, 48px); align-items: center; }
.continue .display { font-size: clamp(26px, 4.6vw, 48px); line-height: 1.05; }

/* lesson */
.lesson-layout { display: flex; flex-wrap: wrap; gap: clamp(28px, 4vw, 40px); align-items: flex-start; }
.lesson-layout > article { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.lesson-layout > aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.player { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); position: relative; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lesson-layout .display.title { font-size: clamp(28px, 4.4vw, 52px); line-height: 1.04; }
.block { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; border-top: 2px solid var(--line); }
.block h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 700; text-transform: uppercase; }
.pl { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 10px; border-bottom: 1px solid var(--line); text-decoration: none; }
.pl.now { background: var(--surface); font-weight: 700; }
.pl .dot { flex: 0 0 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 50%; font-size: 12px; font-weight: 700; }
.pl.done .dot { background: var(--text); color: var(--bg); border-color: var(--text); }
.pl.now .dot { border-color: var(--text); }
.pl .tt { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
.pl .tm { font-size: 12px; color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font: inherit; font-size: 16px; }
.field textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }

/* auth */
.code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.code input { height: 60px; width: 100%; padding: 0; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font: inherit; font-size: 24px; text-align: center; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 24px; align-items: start; }
.facts3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px 32px; padding-top: 22px; border-top: 2px solid var(--line); }
.notice { padding: 14px 16px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text-2); }
[hidden] { display: none !important; }

/* checkout */
.sum { display: flex; flex-direction: column; gap: 10px; }
.sum .line { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--text-2); }
.sum .total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.sum .total b { font-family: var(--display); font-size: 40px; }
.or { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: 0.14em; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* legal */
.legal { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.05; }
.legal h2 { font-family: var(--display); font-size: 22px; text-transform: uppercase; margin: 32px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.6; color: var(--text-2); }

/* tariff page extras */
.list-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.list-check li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.list-check li::before { content: "—"; color: var(--accent); font-weight: 700; }
.list-x li::before { content: "×"; color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.skills > div { padding-top: 18px; border-top: 2px solid var(--text); display: flex; flex-direction: column; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); padding: 12px 18px; background: var(--text); color: var(--bg); font-weight: 600; z-index: 10; }
.tp > section { display: flex; flex-direction: column; gap: 20px; }
.tp > section > .eyebrow + .h2 { margin: 0; }
.tp .tariff { align-self: start; }
main.app .search { flex: 0 0 auto; width: 100%; }
