/* =========================================================
   Sushi Academy — лендинг курсу. Mobile first.
   ========================================================= */
:root {
  --bg: #0E0D0C;
  --bg-2: #141210;
  --surface: #171513;
  --surface-2: #1C1916;
  --surface-3: #26221E;
  --line: #2F2A25;
  --line-2: #3A342E;
  --text: #F4EFE8;
  --soft: #CFC6BB;
  --muted: #B9AFA3;
  --dim: #91877B;
  --salmon: #FF8F6B;
  --red: #D42E25;
  --red-hover: #B8241C;
  --radius: 20px;
  --radius-lg: 24px;
  --header-h: 104px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--salmon); }
a:hover { color: #FFB396; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--salmon); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0 0; }
.eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--salmon); }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 7vw, 44px); line-height: 1.15; letter-spacing: -.01em; }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; max-width: 760px; }
.section-head p { color: var(--muted); }
.section-head--center { text-align: center; align-items: center; margin-left: auto; margin-right: auto; }
.icon { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: 16px; line-height: 1.2; text-align: center; text-decoration: none;
  transition: transform .15s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn--main { background: var(--red); color: #fff; }
.btn--main:hover { background: var(--red-hover); color: #fff; }
.btn--ghost { background: transparent; border: 1px solid #4A433C; color: var(--text); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

/* ---------- Sticky header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(14, 13, 12, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.promo { background: var(--red); color: #fff; }
.promo__inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding-top: 6px; padding-bottom: 6px; }
.promo__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.promo__offer { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo__offer s { opacity: .75; font-weight: 400; }
.promo__timer { font-size: 13px; font-variant-numeric: tabular-nums; opacity: .95; }
.promo__btn { flex-shrink: 0; background: #fff; color: var(--red); min-height: 38px; padding: 0 14px; font-size: 14px; }
.promo__btn:hover { background: var(--text); color: var(--red-hover); }

.nav__inner { display: flex; align-items: center; gap: 16px; min-height: 52px; }
.logo { display: none; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.logo span { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .08em; }
.nav__links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; scroll-snap-type: x proximity; }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links a { flex-shrink: 0; scroll-snap-align: start; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--soft); font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); border-color: var(--salmon); background: rgba(255, 143, 107, .08); }
.nav__cta { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); }
.hero__inner { position: relative; z-index: 2; padding-top: 28px; }
.hero__content { display: flex; flex-direction: column; gap: 18px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(14, 13, 12, .6); color: var(--muted); font-size: 13px; line-height: 1.3; }
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--salmon); flex-shrink: 0; }
.hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(29px, 8.4vw, 62px); line-height: 1.08; letter-spacing: -.01em; }
.hero__title span { color: var(--salmon); }
.hero__lead { color: var(--soft); max-width: 560px; }
.offer { display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(23, 21, 19, .92); max-width: 560px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.price__now { font-family: var(--font-display); font-weight: 700; font-size: 36px; line-height: 1; }
.price__old { font-size: 18px; color: var(--dim); text-decoration: line-through; }
.price__sale { font-size: 13px; font-weight: 600; color: var(--salmon); padding: 4px 10px; border: 1px solid #5A3A2E; border-radius: 999px; white-space: nowrap; }
.timer-label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.timer { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.timer__cell { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; border-radius: 10px; background: var(--surface-3); }
.timer__num { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.timer__unit { font-size: 11px; color: var(--muted); }
.offer__btns { display: flex; flex-direction: column; gap: 10px; }
.trust { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--soft); }
.trust__item { display: flex; align-items: center; gap: 10px; color: var(--soft); text-decoration: none; }
a.trust__item { text-decoration: underline; text-decoration-color: #5A3A2E; text-underline-offset: 3px; }
.hero__media { position: relative; margin-top: 12px; height: 240px; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 70%; }
.hero__media::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56px; z-index: 1; background: linear-gradient(var(--bg), rgba(14, 13, 12, 0)); }

/* ---------- Stats ---------- */
.stats { margin-top: 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-top: 28px; padding-bottom: 28px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.stat__label { font-size: 13px; color: var(--muted); line-height: 1.4; }
.stats__note { font-size: 12px; color: var(--dim); padding-bottom: 20px; margin-top: -8px; }

/* ---------- Carousel (mobile) ---------- */
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px 4px; scroll-padding: 0 16px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 84%; scroll-snap-align: start; }
.carousel-ui { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width .25s var(--ease), background-color .25s; }
.dots button.is-active { width: 22px; background: var(--salmon); }
.arrows { display: flex; gap: 8px; }
.arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .2s, opacity .2s; }
.arrow:hover { border-color: var(--text); }
.arrow:disabled { opacity: .35; cursor: default; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.card__img { width: 100%; height: 190px; object-fit: cover; }
.card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.card__title { font-size: 19px; font-weight: 600; line-height: 1.3; }
.card__text { font-size: 15px; color: var(--muted); }

/* Paths */
.path { padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; }
.path__head { display: flex; align-items: center; gap: 14px; }
.path__icon { width: 48px; height: 48px; border-radius: 14px; background: #2A1F1A; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.path__title { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.checklist { display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; font-size: 15px; }
.checklist li svg { margin-top: 3px; }
.checklist b { font-weight: 600; }
.checklist span span { color: var(--muted); }

/* Skills */
.skill { background: #000; display: flex; flex-direction: column; }
.skill__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.skill__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.skill__list { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.skill__list li::before { content: "— "; color: var(--salmon); }

/* Author */
.author { display: grid; gap: 28px; }
.author__photo { position: relative; max-width: 480px; }
.author__photo img { width: 100%; aspect-ratio: 763 / 911; object-fit: cover; border-radius: var(--radius-lg); }
.author__badge { position: absolute; left: 14px; bottom: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(14, 13, 12, .9); border: 1px solid var(--line-2); }
.author__badge b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.author__badge span { font-size: 13px; color: var(--muted); }
.author__text { display: flex; flex-direction: column; gap: 16px; }
.author__text p { color: var(--soft); }
.author__text p + p { color: var(--muted); }

/* Program */
.program { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 64px; padding: 64px 0; }
.modules { display: flex; flex-direction: column; gap: 12px; }
.module { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.module summary { list-style: none; cursor: pointer; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; -webkit-tap-highlight-color: transparent; }
.module summary::-webkit-details-marker { display: none; }
.module__meta { display: flex; flex-direction: column; gap: 4px; }
.module__num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--salmon); }
.module__title { font-size: 19px; font-weight: 600; }
.module__level { font-size: 13px; color: var(--muted); }
.module__toggle { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .3s var(--ease); }
.module[open] .module__toggle { transform: rotate(45deg); }
.lessons { padding: 0 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.lesson { padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.lesson__title { font-weight: 600; }
.lesson__text { font-size: 15px; color: var(--muted); }
.lesson__extra { font-size: 14px; color: var(--salmon); }
.bonus { margin-top: 12px; padding: 22px 20px; border-radius: var(--radius); border: 1px solid #5A3A2E; background: #1C1613; display: flex; flex-direction: column; gap: 12px; }
.bonus__title { font-size: 19px; font-weight: 600; }
.bonus ul { display: grid; gap: 8px; color: var(--soft); font-size: 15px; }
.bonus li { display: flex; gap: 10px; }
.bonus li svg { margin-top: 3px; }

/* Video */
.format { display: grid; gap: 28px; }
.video { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 11; }
.video__btn { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video__btn img { width: 100%; height: 100%; object-fit: cover; }
.video__play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s var(--ease); }
.video__btn:hover .video__play { transform: scale(1.06); }
.video__label { position: absolute; left: 14px; bottom: 14px; padding: 7px 12px; border-radius: 999px; background: rgba(14, 13, 12, .88); font-size: 13px; font-weight: 600; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; }
.format__list { display: flex; flex-direction: column; gap: 14px; }
.format__list li { display: flex; gap: 14px; }
.format__list li svg { margin-top: 2px; }
.format__list b { font-weight: 600; }
.format__list span span { color: var(--muted); }

/* Tariffs */
.tariff { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 20px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.tariff--hot { border: 2px solid var(--red); background: #1E1513; }
.tariff__flag { position: absolute; top: -13px; left: 20px; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; }
.tariff__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.tariff__desc { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tariff__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tariff__now { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1; }
.tariff__old { font-size: 17px; color: var(--dim); text-decoration: line-through; }
.tariff__list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex-grow: 1; }
.tariff__list li { display: flex; gap: 10px; }
.tariff__list li svg { margin-top: 3px; }
.tariffs .carousel { padding-top: 18px; }
.tariffs .carousel > * { flex-basis: 86%; }

.guarantee { margin-top: 24px; display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px dashed #4A433C; }
.guarantee b { display: block; font-size: 17px; margin-bottom: 4px; }
.guarantee p { font-size: 15px; color: var(--muted); }

.steps { margin-top: 40px; }
.steps__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin-bottom: 16px; }
.steps ol { display: grid; gap: 12px; counter-reset: step; }
.step { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
.step__num { grid-row: span 2; font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--salmon); line-height: 1.2; }
.step b { font-weight: 600; }
.step span { font-size: 15px; color: var(--muted); }
.steps__contact { margin-top: 16px; font-size: 15px; color: var(--muted); }

/* Reviews */
.reviews-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.rating { display: flex; align-items: center; gap: 12px; }
.rating b { font-family: var(--font-display); font-size: 34px; font-weight: 700; }
.rating span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.review { padding: 22px 20px; display: flex; flex-direction: column; gap: 18px; }
.review__stars { display: flex; gap: 2px; }
.review__text { font-size: 15px; color: #DED6CC; flex-grow: 1; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__who img { width: 52px; height: 52px !important; border-radius: 50%; object-fit: cover; border: 2px solid var(--line-2); flex-shrink: 0; }
.review__name { font-weight: 600; display: block; }
.review__meta { font-size: 13px; color: var(--dim); }

/* FAQ */
.faq { max-width: 860px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-size: 16px; font-weight: 600; min-height: 56px; -webkit-tap-highlight-color: transparent; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg { transition: transform .3s var(--ease); }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item p { padding: 0 0 18px; color: var(--muted); font-size: 15px; }

/* Final CTA */
.final { margin: 64px 0; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid var(--line); display: grid; }
.final__body { padding: 28px 20px; display: flex; flex-direction: column; gap: 16px; }
.final__body p { color: var(--muted); }
.final__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: #0B0A09; font-size: 14px; }
.footer__grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col b { color: var(--text); font-weight: 600; margin-bottom: 2px; }
.footer__col a { text-decoration: none; }
.footer__col span { color: var(--dim); }
.footer .logo { display: inline-flex; }
.footer__bottom { border-top: 1px solid var(--line); padding: 16px 0 24px; color: var(--dim); font-size: 13px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 5, 4, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .45s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 24px 24px 0 0; padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  transform: translateY(40px); opacity: 0;
  transition: transform .55s var(--ease), opacity .45s var(--ease);
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__grabber { position: absolute; top: 10px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: var(--line-2); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-3); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.modal__close:hover { background: var(--line-2); }
.modal__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; padding-right: 44px; }
.modal__kicker { font-size: 13px; font-weight: 600; color: var(--salmon); text-transform: uppercase; letter-spacing: .1em; }
.modal__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.2; }
.modal__text { font-size: 15px; color: var(--muted); }
.modal__gifts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; font-size: 15px; }
.modal__gifts li { display: flex; gap: 10px; align-items: flex-start; }
.modal__gifts li svg { margin-top: 3px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 500; color: var(--soft); padding: 0; }
.input {
  width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px;
  transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none;
}
.input::placeholder { color: #6E665D; }
.input:focus { outline: none; border-color: var(--salmon); box-shadow: 0 0 0 3px rgba(255, 143, 107, .18); }
.input.is-invalid { border-color: #F26B5E; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23B9AFA3' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 40px var(--bg) inset; caret-color: var(--text); }
.field__error { font-size: 13px; color: #FF8A7E; min-height: 0; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 15px; color: var(--soft); transition: all .2s; }
.chip input:checked + span { border-color: var(--salmon); color: var(--text); background: rgba(255, 143, 107, .1); }
.chip input:focus-visible + span { outline: 2px solid var(--salmon); outline-offset: 2px; }
.form__note { font-size: 12px; color: var(--dim); line-height: 1.45; }
.form__error { font-size: 14px; color: #FF8A7E; display: none; }
.form__error.is-shown { display: block; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   ≥ 480px
   ========================================================= */
@media (min-width: 480px) {
  .wrap { padding: 0 24px; }
  .carousel { margin: 0 -24px; padding-left: 24px; padding-right: 24px; scroll-padding: 0 24px; }
  .carousel > * { flex-basis: 70%; }
  .offer { padding: 24px; }
  .offer__btns, .cta-row { flex-direction: row; flex-wrap: wrap; }
  .offer__btns .btn { flex: 1 1 200px; }
  .hero__media { height: 320px; }
  .nav__links { margin: 0 -24px; padding: 0 24px; }
}

/* =========================================================
   ≥ 768px — планшет
   ========================================================= */
@media (min-width: 768px) {
  :root { --header-h: 108px; }
  body { font-size: 17px; }
  .section { padding-top: 96px; }
  .section-head { margin-bottom: 40px; gap: 14px; }
  .hero__lead { font-size: 18px; }
  .price__now { font-size: 42px; }
  .trust { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; }
  .hero__media { height: 420px; }
  .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 36px; padding-bottom: 36px; }
  .stat__num { font-size: 30px; }
  .stat__label { font-size: 14px; }

  .carousel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .carousel-ui { display: none; }
  .tariffs .carousel { padding-top: 18px; }

  .card__img { height: 220px; }
  .author { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
  .program { margin-top: 96px; padding: 96px 0; }
  .format { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
  .steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .final { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; margin: 96px 0; }
  .final__body { padding: 48px; }
  .final__img { height: 100%; aspect-ratio: auto; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .modal { align-items: center; padding: 24px; }
  .modal__dialog { max-width: 480px; border-radius: 24px; border-bottom: 1px solid var(--line-2); padding: 36px 32px 32px; transform: translateY(24px) scale(.97); }
  .modal__grabber { display: none; }
}

/* =========================================================
   ≥ 1024px — десктоп
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 116px; }
  .promo__inner { justify-content: center; gap: 24px; min-height: 44px; }
  .promo__text { flex-direction: row; gap: 16px; align-items: center; }
  .promo__offer, .promo__timer { font-size: 14px; }
  .nav__inner { min-height: 72px; gap: 32px; }
  .logo { display: inline-flex; }
  .nav__links { margin: 0 auto; padding: 0; gap: 4px; overflow: visible; }
  .nav__links a { border-color: transparent; padding: 0 12px; }
  .nav__cta { display: inline-flex; }

  .hero { min-height: 680px; display: flex; align-items: center; }
  .hero__inner { padding-top: 80px; padding-bottom: 100px; }
  .hero__content { max-width: 640px; gap: 26px; }
  .hero__media { position: absolute; inset: 0; height: auto; margin: 0; z-index: 1; }
  .hero__media img { object-position: right bottom; }
  .hero__media::before { display: none; }
  .hero__lead { font-size: 19px; }
  .offer__btns .btn { flex: 0 1 auto; }
  .timer { display: flex; }
  .timer__cell { flex-direction: row; gap: 4px; align-items: baseline; padding: 6px 10px; }
  .timer__num { font-size: 16px; }
  .timer__unit { font-size: 13px; }

  .carousel { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
  .carousel--4 { --cols: 4; }
  .carousel--2 { --cols: 2; }
  .path { padding: 36px; }
  .skill { flex-direction: row; align-items: center; }
  .skill__img { width: 50%; }
  .modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
  .module summary { cursor: default; padding: 28px 28px 12px; }
  .module__toggle { display: none; }
  .lessons { padding: 0 28px 28px; }
  .bonus ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .bonus { padding: 28px; }
  .tariff { padding: 32px 28px 28px; }
  .steps ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; }
}
