/* =========================================================
   Аліна Врадій - стили сайта (версия 2, «премиум»)
   Принципы: плотно и понятно (без лишнего воздуха), у каждого блока -
   ясное следующее действие; тонкие линии вместо теней, строгие
   прямоугольные кадры, жёлтый - акцент для главной кнопки.
   Сначала телефон, потом планшет (640) и компьютер (1000+).
   ========================================================= */

/* ---------- Цвета ---------- */
:root {
  /* Палитра 4 «Триада» (выбор заказчика 2026-10-08). Имена переменных - исторические, роли:
     --blue основной (шалфейный), --mint вторичный (жёлтый), --yellow акцент/кнопки (лавандовый), --navy тёмный текст */
  --blue: #82B98C;
  --mint: #E9C968;
  --yellow: #9A86C8;
  --navy: #1A2620;
  --white: #FFFFFF;
  /* те же цвета каналами - для прозрачных оттенков rgb(var(--blue-rgb) / .2) */
  --blue-rgb: 130 185 140;
  --mint-rgb: 233 201 104;
  --yellow-rgb: 154 134 200;
  --navy-rgb: 26 38 32;
  --yellow-ink: #634EA0;
  --bg-rgb: 17 26 22;

  --bg: #FFFFFF;
  --bg-alt: #F0F6F1;
  --bg-alt-2: #FBF6E7;
  --tint-blue: #E7F2E9;
  --tint-mint: #FBF2D9;
  --tint-yellow: #EFEBF8;
  --blue-ink: #3E7A49;
  --mint-ink: #8A6812;
  --surface: #FFFFFF;
  --surface-2: #F4F7F4;
  --ink: var(--navy);
  --muted: rgb(var(--navy-rgb) / .68);
  --faint: rgb(var(--navy-rgb) / .46);
  --line: rgb(var(--navy-rgb) / .12);
  --line-strong: rgb(var(--navy-rgb) / .26);
  --accent-ink: var(--blue-ink);
  --deep: var(--stage);
  --stage: #23463B; /* фон первого экрана (градиент) и полосы акции - тёмный в обеих темах */
  --stage-0: #152B24;
  --stage-2: #1D3B32;
  --deep-ink: #FFFFFF;
  --deep-muted: rgba(255, 255, 255, .72);
  --deep-line: rgba(255, 255, 255, .16);
  --hdr: rgba(255, 255, 255, .97);
  --shadow: 0 30px 60px -40px rgb(var(--navy-rgb) / .45);

  --f-head: 'Prata', Georgia, 'Times New Roman', serif;
  --f-body: 'Literata', Georgia, 'Times New Roman', serif;

  --g: 18px;
  --sec: 44px;
  --w: 1240px;
  --hdr-h: 58px;
  --tab-h: 64px;
  --r: 6px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111A16;
  --bg-alt: #16231D;
  --bg-alt-2: #16231D;
  --tint-blue: rgb(var(--blue-rgb) / .12);
  --tint-mint: rgb(var(--mint-rgb) / .12);
  --tint-yellow: rgb(var(--yellow-rgb) / .1);
  --blue-ink: var(--blue);
  --mint-ink: var(--mint);
  --yellow-ink: var(--yellow);
  --surface: #1E2D26;
  --surface-2: #2A3C33;
  --ink: #FFFFFF;
  --muted: rgba(255, 255, 255, .72);
  --faint: rgba(255, 255, 255, .5);
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .24);
  --accent-ink: var(--blue);
  --deep: #1E2D26;
  --deep-line: rgba(255, 255, 255, .12);
  --hdr: rgb(var(--bg-rgb) / .97);
  --shadow: 0 30px 60px -40px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

/* ---------- Основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; overflow-x: clip;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--yellow); color: var(--navy); }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--navy); padding: 8px 14px; }
.skip:focus { left: 8px; }
.only-dark { display: none; }
[data-theme="dark"] .only-dark { display: inline-flex; }
[data-theme="dark"] .only-light { display: none; }
.i { width: 1.2em; height: 1.2em; flex: none; }
.muted { color: var(--muted); }
.center { text-align: center; }

.wrap { width: 100%; max-width: calc(var(--w) + var(--g) * 2); margin-inline: auto; padding-inline: var(--g); }
.wrap--mid { max-width: calc(940px + var(--g) * 2); }
.wrap--narrow { max-width: calc(740px + var(--g) * 2); }

/* ---------- Типографика ---------- */
h1, h2, h3, h4, .t1, .t2, .t3 { font-family: var(--f-head); font-weight: 400; margin: 0; letter-spacing: -.012em; }
.t1 { font-size: clamp(1.95rem, 1.3rem + 3.2vw, 4.1rem); line-height: 1.08; }
.t1--sm { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 3rem); line-height: 1.1; }
.t2 { font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.15; }
.t3 { font-size: clamp(1.2rem, 1.1rem + .5vw, 1.5rem); line-height: 1.25; }
.lead { font-size: 1.04rem; color: var(--muted); margin: 12px 0 0; max-width: 58ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 10px;
  font-family: var(--f-body); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-ink);
}
.kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; opacity: .6; }
.kicker--gold { color: var(--yellow); }
/* Вторая строка заголовка (часть H1 для Google): «Курс ABA-терапії для батьків - практичне навчання ABA онлайн» */
.t1__sub { display: block; margin-top: 8px; font-size: .5em; line-height: 1.25; opacity: .78; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.head { display: grid; gap: 8px; margin-bottom: 22px; }
.head .lead { margin-top: 0; }
.head__link { margin-top: 4px; }

/* ---------- Кнопки ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r); border: 1px solid transparent;
  font-family: var(--f-body); font-size: .95rem; font-weight: 500; letter-spacing: .02em; line-height: 1.2; text-align: center;
  text-decoration: none; cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .2s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 1.05em; height: 1.05em; transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(4px); }
.btn--gold { background: var(--yellow); color: var(--navy); }
.btn--gold:hover { background: color-mix(in srgb, var(--yellow) 78%, #fff); }
.btn--ink { background: var(--navy); color: #fff; }
.btn--ink:hover { background: color-mix(in srgb, var(--navy) 82%, #fff); }
[data-theme="dark"] .btn--ink { background: var(--white); color: var(--navy); }
.btn--line { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--ghost-light:hover { border-color: #fff; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .88rem; }
.btn--lg { --h: 54px; padding: 0 28px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: .95rem; letter-spacing: .01em; border-bottom: 1px solid var(--line-strong); padding-bottom: 4px; transition: border-color .2s; }
.arrow-link:hover { border-color: currentColor; }
.arrow-link .i { transition: transform .25s var(--ease); }
.arrow-link:hover .i { transform: translateX(4px); }

.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .2s; }
.icon-btn:hover { border-color: var(--line-strong); }
.icon-btn > span { display: flex; align-items: center; justify-content: center; line-height: 0; } /* без строки текста - иконка ровно по центру кружка */
.icon-btn svg { display: block; }
[data-theme="dark"] .icon-btn > .only-dark { display: flex; }
[data-theme="dark"] .icon-btn > .only-light, .icon-btn > .only-dark { display: none; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }

.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.tag--gold::before { background: var(--yellow); }
.tag--blue::before { background: var(--blue); }
.badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 3px; font-size: .74rem; font-weight: 600; letter-spacing: .04em; background: var(--surface-2); color: var(--ink); }
.badge--sale { background: var(--mint); color: var(--navy); }
.badge--ok { background: var(--mint); color: var(--navy); }
.badge--wait { background: var(--yellow); color: var(--navy); }

/* ---------- Шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--hdr); border-bottom: 1px solid var(--line); }
.hdr__in { height: var(--hdr-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.logo__name { font-family: var(--f-head); font-size: 1.3rem; letter-spacing: .01em; }
.logo__sub { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.hdr__nav { display: none; }
.hdr__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hdr__cta { display: none; }
.langs { position: relative; }
.langs__btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: .8rem; font-weight: 600; letter-spacing: .1em; }
.langs__menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: .2s var(--ease); border-radius: var(--r); }
.langs.is-open .langs__menu { opacity: 1; visibility: visible; transform: none; }
.langs__menu a { display: flex; gap: 12px; padding: 10px 12px; text-decoration: none; font-size: .92rem; border-radius: 4px; }
.langs__menu a b { width: 24px; color: var(--faint); font-size: .78rem; letter-spacing: .08em; }
.langs__menu a:hover, .langs__menu a[aria-current] { background: var(--surface-2); }

/* ---------- Нижнее меню (телефон) ---------- */
.tabbar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 4px 4px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: var(--hdr); border-top: 1px solid var(--line);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: 100%; min-width: 0;
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; color: var(--faint);
  font-size: .68rem; letter-spacing: .02em; -webkit-tap-highlight-color: transparent; position: relative;
}
.tabbar .i { width: 22px; height: 22px; }
.tabbar [aria-current] { color: var(--ink); font-weight: 600; }
.tabbar a[aria-current]:not(.tabbar__main)::before { content: ""; position: absolute; top: -4px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--yellow); }
.tabbar__orb { width: 50px; height: 50px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); box-shadow: 0 0 0 5px var(--bg), 0 12px 24px -10px rgb(var(--navy-rgb) / .6); }
.tabbar__main { color: var(--ink) !important; }

/* Узкие телефоны: шапка и подписи нижнего меню должны помещаться без переносов и наложений. */
@media (max-width: 359px) {
  .hdr__in { gap: 10px; }
  .logo { min-width: 0; }
  .logo__name { font-size: 1rem; white-space: nowrap; }
  .logo__sub { margin-top: 4px; font-size: .43rem; letter-spacing: .16em; white-space: nowrap; }
  .hdr__tools { gap: 5px; }
  .langs__btn { height: 38px; padding-inline: 9px; }
  .icon-btn { width: 38px; height: 38px; }
  .tabbar a, .tabbar button { font-size: .58rem; letter-spacing: 0; }
}

/* ---------- Секции ---------- */
.sec { padding-block: var(--sec); }
.sec--alt { background: var(--bg-alt); }
.sec--tight { padding-block: calc(var(--sec) * .7); }

/* ---------- Первый экран (тёмный) ---------- */
.stage { position: relative; background: var(--deep); color: var(--deep-ink); overflow: hidden; }
.stage::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(80% 60% at 85% 10%, rgb(var(--blue-rgb) / .2), transparent 60%), radial-gradient(60% 50% at 0% 100%, rgb(var(--mint-rgb) / .1), transparent 60%); }
.stage > * { position: relative; z-index: 1; }
.stage .lead { color: var(--deep-muted); }
.stage__in { display: grid; gap: 24px; padding-block: 26px 74px; }
.stage__pad { padding-block: 26px 30px; }
.stage__text { max-width: 780px; }
.stage .t1 { color: #fff; }
.who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; border: 1px solid rgba(255, 255, 255, .35); }
.who b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.08rem; line-height: 1.3; }
.who small { color: var(--deep-muted); font-size: .84rem; line-height: 1.35; display: block; }
.trust { list-style: none; margin: 16px 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 0; border-top: 1px solid var(--deep-line); }
.trust li { font-size: .8rem; color: var(--deep-muted); letter-spacing: .02em; }
.trust li { display: inline-flex; align-items: center; gap: 7px; margin-right: 14px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); }
.stage__photo { display: none; }

/* Кадр: прямоугольник + тонкая золотистая линия со смещением */
.frame { position: relative; }
.frame img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; }
.frame::before { content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 1px solid var(--yellow); opacity: .75; }

/* Карточка «Почніть з головного» */
.starter { position: relative; z-index: 2; margin-top: -52px; }
.starter__card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 18px 16px 16px; border-radius: var(--r); }
.starter__head { margin-bottom: 14px; }
.starter__q { font-family: var(--f-head); font-size: 1.4rem; line-height: 1.25; margin: 0; }
.options { display: grid; gap: 6px; }
.option {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  min-height: 50px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; font-size: .98rem; line-height: 1.3;
  transition: border-color .2s, background-color .2s;
}
.option .i { color: var(--faint); transition: transform .25s var(--ease), color .2s; }
.option:hover { border-color: var(--ink); }
.option:hover .i { transform: translateX(4px); color: var(--ink); }
.starter__alt { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.starter__alt .linklike { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .2em; color: var(--ink); }

/* ---------- Лестница программ ---------- */
.ladder { display: grid; border-top: 1px solid var(--line); }
.step { display: grid; gap: 6px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.step__top { display: flex; justify-content: space-between; align-items: baseline; }
.step__n { font-family: var(--f-head); font-size: 1rem; color: var(--faint); }
.step__label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink); }
.step__title { font-family: var(--f-head); font-size: 1.5rem; line-height: 1.15; }
.step__text { margin: 0; color: var(--muted); font-size: .96rem; }
.step__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 6px; }
.step__foot .price__main { font-size: 1.6rem; }
.step__go { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 16px; border-radius: 20px; border: 1px solid var(--line-strong); font-size: .88rem; white-space: nowrap; transition: background-color .25s, color .25s; }
.step:hover .step__go { background: var(--ink); color: var(--bg); }

/* ---------- Цена ---------- */
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.price__main { font-family: var(--f-head); font-size: 1.9rem; line-height: 1.1; }
.price__alt { font-size: .9rem; color: var(--muted); }
.price__old { font-family: var(--f-head); font-size: 1.35rem; line-height: 1.1; color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: #D9826B; }
.price--lg .price__old { font-size: 1.75rem; }
.price--xl .price__old { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); }
.price__from { color: var(--muted); font-size: .95rem; }
.price--lg .price__main { font-size: 2.6rem; }
.price--xl .price__main { font-size: clamp(3rem, 2rem + 4vw, 4.6rem); }
.price--xl { justify-content: center; }
.price--na { color: var(--muted); font-style: italic; margin: 0; }

/* ---------- Результаты ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 30px; }
.tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 30px; cursor: pointer; font-size: .88rem; letter-spacing: .04em; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.story-list { display: grid; border-top: 1px solid var(--line); }
.story { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.story img { width: 84px; height: 84px; object-fit: cover; border-radius: 2px; }
.story__title { display: block; font-family: var(--f-head); font-size: 1.15rem; line-height: 1.25; margin: 4px 0; }
.story__text { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story:hover .story__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }

.rail { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px max(var(--g), calc((100vw - var(--w)) / 2)) 16px; scroll-padding-inline: max(var(--g), calc((100vw - var(--w)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail-nav { display: none; gap: 8px; }
.rail--reviews { align-items: stretch; }
/* Отзывы мозаикой: колонки разной высоты, без пустот */
.rmosaic { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.rmosaic.is-masonry { grid-auto-rows: 4px; gap: 0 16px; } /* site.js задаёт каждой карточке высоту в «строках» */
.rmosaic .rcard { width: auto; max-width: none; margin: 0; }
.rmosaic.is-masonry .rcard { margin-bottom: 16px; }
/* разные карточки */
@media (min-width: 1100px) {
  .rmosaic.is-masonry .rcard--wide { grid-column: span 2; }
  .rmosaic .rcard--wide .rcard__text { columns: 2; column-gap: 28px; }
}
.rmosaic.is-masonry { grid-auto-flow: dense; }
.rmosaic__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
@media (min-width: 700px) { .rmosaic { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rmosaic { grid-template-columns: repeat(3, 1fr); } }
.rcard { flex: none; width: 84vw; max-width: 380px; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.rcard__q { font-family: var(--f-head); font-size: 2.6rem; line-height: .5; height: 18px; color: var(--yellow); }
.rcard__text { margin: 0; flex: 1; }
.rcard__text p { margin: 0; font-size: .96rem; line-height: 1.6; }
.rcard__text p + p { margin-top: .7em; }
.rcard__text strong { font-weight: 600; }
.rcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.rcard__foot b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.05rem; line-height: 1.25; }
.rcard__foot small { display: block; color: var(--muted); font-size: .8rem; }
.rcard__orig { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 20px; background: none; cursor: zoom-in; font-size: .78rem; color: var(--muted); }
.rcard__orig .i { width: 14px; height: 14px; }
.rcard__orig:hover { color: var(--ink); border-color: var(--line-strong); }
.review, .cert { position: relative; flex: none; scroll-snap-align: start; cursor: zoom-in; padding: 0; border: 1px solid var(--line); background: #fff; overflow: hidden; border-radius: 2px; }
.rail[data-gallery="reviews"] { align-items: flex-start; }
.review { width: 76vw; max-width: 320px; max-height: 420px; }
.review img { width: 100%; height: auto; }
.review.is-long::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(transparent, #fff); }
.review__zoom { position: absolute; z-index: 1; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.cert { width: 72vw; max-width: 340px; aspect-ratio: 4 / 3; }
.cert img { width: 100%; height: 100%; object-fit: contain; background: #fff; } /* сертификат целиком, без обрезки */

/* ---------- Инструменты ---------- */
.tools { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tool-card { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 4px; align-content: start; padding: 18px 16px; background: var(--bg); text-decoration: none; color: inherit; transition: background-color .25s; }
.sec--alt .tool-card { background: var(--bg-alt); }
.tool-card:hover { background: var(--surface-2); }
.tool-card__icon { grid-row: span 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); }
.tool-card__icon .i { width: 22px; height: 22px; }
.tool-card h3 { font-size: 1.22rem; line-height: 1.25; }
.tool-card p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.tool-card .arrow-link { justify-self: start; margin-top: 6px; font-size: .9rem; }

/* ---------- Об Алине ---------- */
.editorial { display: grid; gap: 30px; align-items: center; }
.editorial .frame { aspect-ratio: 4 / 3; max-width: 420px; margin-right: 14px; }
.quote { margin: 0; font-family: var(--f-head); font-size: clamp(1.3rem, 1.1rem + 1vw, 2rem); line-height: 1.3; }
.quote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--yellow); margin-bottom: 8px; }
.editorial p { color: var(--muted); }

/* ---------- Вопросы-ответы ---------- */
.faq { 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: 20px; padding: 16px 0; font-family: var(--f-head); font-size: 1.1rem; line-height: 1.35; -webkit-tap-highlight-color: transparent; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .i { flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.faq__item[open] summary .i { transform: rotate(45deg); }
.faq__a { padding: 0 0 18px; color: var(--muted); max-width: 70ch; }
.faq__a p { margin: 0; }

/* ---------- Финальный призыв ---------- */
.final { background: var(--deep); color: #fff; }
.final__in { display: grid; gap: 20px; padding-block: 40px; }
.final .lead { color: var(--deep-muted); }
.final__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Подвал ---------- */
.ftr { background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0 20px; font-size: .95rem; }
.ftr a { text-decoration: none; color: var(--ink); }
.ftr__top { display: grid; gap: 26px; }
.ftr__brand p { color: var(--muted); max-width: 36ch; margin: 10px 0 0; line-height: 1.5; }
.ftr__h { font-family: var(--f-body); font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr__list a, .ftr__item { display: inline-flex; align-items: center; gap: 10px; line-height: 1.3; color: var(--ink); }
.ftr__list .i { width: 18px; height: 18px; flex: none; color: var(--blue-ink); }
.ftr__list a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.ftr__legal { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.ftr__docs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ftr__docs a { font-size: .84rem; color: var(--muted); }
.ftr__docs a:hover { color: var(--ink); text-decoration: underline; }
.ftr__langs { display: inline-flex; align-self: flex-start; gap: 2px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 20px; }
.ftr__langs a { padding: 5px 12px; border-radius: 16px; font-size: .8rem; color: var(--muted); }
.ftr__langs a[aria-current] { background: var(--ink); color: var(--bg); }
.ftr__copy { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; font-size: .76rem; color: var(--faint); }
.ftr__copy a { color: var(--faint); }
.ftr__copy a:hover { color: var(--muted); }

/* =========================================================
   ПОДБОР ПРОГРАММЫ
   ========================================================= */
.quiz { max-width: 760px; margin-top: 20px; }
.quiz__bar { height: 3px; background: var(--line); margin-bottom: 18px; border-radius: 2px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; background: var(--ink); width: 25%; transition: width .4s var(--ease); }
.quiz__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.quiz__q { font-family: var(--f-head); font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem); line-height: 1.2; margin: 0 0 16px; }
.quiz__step { animation: fadeUp .45s var(--ease) both; }
.quiz__back { background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; padding: 0; margin-top: 22px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.result { display: grid; gap: 22px; animation: fadeUp .5s var(--ease) both; }
.result__main { border: 1px solid var(--ink); padding: 22px 18px; border-radius: var(--r); background: var(--surface); }
.result__label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.result__title { font-family: var(--f-head); font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; }
.result__why { margin: 16px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result__why h3, .result__block h3 { font-family: var(--f-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.result__why p { margin: 0 0 8px; }
.result__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.result__side { display: grid; gap: 28px; align-content: start; }
.result__alt { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.result__alt b { font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; display: block; }
.result__alt small { color: var(--muted); }
.mini-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mini-list a { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.mini-list span { font-family: var(--f-head); font-size: 1.05rem; line-height: 1.35; }
.mini-list .i { color: var(--faint); flex: none; margin-top: 4px; }

/* =========================================================
   ЧЕК-ЛИСТ
   ========================================================= */
.check { display: grid; gap: 24px; }
.check__label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 30px; font-size: .95rem; transition: .2s; }
.seg input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.signs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.signs li { border-bottom: 1px solid var(--line); }
.signs label { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; cursor: pointer; font-size: 1rem; line-height: 1.45; }
.signs input { flex: none; appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 1px 0 0; border: 1px solid var(--line-strong); border-radius: 4px; display: grid; place-items: center; cursor: pointer; transition: .2s; background: var(--bg); }
.signs input:checked { background: var(--ink); border-color: var(--ink); }
.signs input:checked::after { content: ""; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
.signs-group + .signs-group { margin-top: 18px; }
.check__go { margin-top: 18px; }
.signs-group__t { margin: 0 0 6px; font-family: var(--f-head); font-size: 1.1rem; }
.check-src { margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.check-src summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; color: var(--ink); }
.check-src summary::-webkit-details-marker { display: none; }
.check-src[open] summary .i { transform: rotate(180deg); }
.check-src p { margin: 0 0 10px; }
.check-src ul { margin: 0 0 14px; padding-left: 1.1em; display: grid; gap: 6px; }
.check-src a, .check-mchat a { color: var(--ink); }
.check-mchat { margin: -8px 0 18px; font-size: .9rem; }
.check-mchat a { display: inline-flex; gap: 8px; align-items: center; }
.verdict { border: 1px solid var(--ink); padding: 22px 18px; border-radius: var(--r); background: var(--surface); }
.verdict.is-new { animation: fadeUp .45s var(--ease) both; }
.verdict h3 { font-size: 1.6rem; line-height: 1.2; margin-bottom: 10px; }
.verdict__dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; vertical-align: middle; background: var(--mint); }
.verdict[data-level="some"] .verdict__dot { background: var(--yellow); }
.verdict[data-level="many"] .verdict__dot, .verdict[data-level="urgent"] .verdict__dot { background: #D9826B; }
.verdict h4 { font-family: var(--f-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin: 20px 0 8px; }
.verdict ol { margin: 0 0 20px; padding-left: 1.2em; color: var(--muted); }
.verdict ol li { margin-bottom: 6px; }
.verdict .actions { display: grid; gap: 10px; }
.disclaimer { font-size: .84rem; color: var(--faint); margin: 18px 0 0; }

/* =========================================================
   БИБЛИОТЕКА
   ========================================================= */
.lib { display: grid; gap: 18px; }
.lib__search { display: flex; align-items: center; gap: 12px; padding: 0 16px; min-height: 50px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.lib__search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.lib__search .i { color: var(--muted); }
.lib__side { display: grid; gap: 12px; min-width: 0; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 30px; background: transparent; cursor: pointer; font-size: .9rem; color: var(--ink); white-space: nowrap; transition: .2s; }
.chip small { color: var(--faint); font-size: .78rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .7; }
.lib__types { display: flex; gap: 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.lib__types button { flex: none; background: none; border: 0; border-bottom: 2px solid transparent; padding: 0 0 12px; margin-bottom: -1px; cursor: pointer; font-size: .92rem; color: var(--muted); letter-spacing: .02em; }
.lib__types button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.lib__list { list-style: none; margin: 0; padding: 0; }
.entry { display: grid; grid-template-columns: 1fr 76px; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: .8rem; color: var(--faint); }
.entry__title { display: block; font-family: var(--f-head); font-size: 1.15rem; line-height: 1.28; margin: 4px 0; }
.entry:hover .entry__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.entry__text { color: var(--muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry img { width: 76px; height: 76px; object-fit: cover; border-radius: 2px; }
.lib__empty { padding: 40px 0; color: var(--muted); }
.lib__starts { margin-bottom: 22px; }
.starts { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.starts a { display: grid; gap: 4px; padding: 14px 16px; background: var(--bg); text-decoration: none; transition: background-color .2s; }
.starts a:hover { background: var(--surface-2); }
.starts b { font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; line-height: 1.3; }

.progress { position: fixed; z-index: 41; left: 0; top: var(--hdr-h); height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--yellow); }

/* =========================================================
   ПРОГРАММЫ
   ========================================================= */
.subnav { position: sticky; top: var(--hdr-h); z-index: 30; background: var(--hdr); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.subnav__in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 13px 0 11px; font-size: .86rem; letter-spacing: .04em; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a.is-active { color: var(--ink); border-color: var(--ink); }
.plans { display: grid; gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.plan--featured { border-color: var(--ink); box-shadow: var(--shadow); }
.plan__flag { position: absolute; top: -12px; left: 22px; padding: 4px 12px; background: var(--yellow); color: var(--navy); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; border-radius: 3px; }
.plan__label { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink); }
.plan__name { font-family: var(--f-head); font-size: 1.75rem; line-height: 1.1; }
.plan__for { margin: -6px 0 0; color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 12px; font-size: .95rem; line-height: 1.45; }
.plan li .i { color: var(--mint); margin-top: 2px; width: 18px; height: 18px; stroke-width: 2.2; }
.plan__bonus { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin: 4px 0 -8px; }
.plan__more { align-self: flex-start; margin-top: auto; }
.plan .btn { margin-top: auto; }
.plan__more + .btn { margin-top: 4px; }
.plan-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 30px; margin-bottom: 18px; }
.plan-switch button { flex: 1; border: 0; background: none; padding: 10px 6px; border-radius: 30px; cursor: pointer; font-size: .86rem; color: var(--muted); }
.plan-switch button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.consult-band { display: grid; gap: 18px; padding: 22px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); margin-top: 16px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; }
.ticks .i { color: var(--mint); margin-top: 3px; width: 18px; height: 18px; stroke-width: 2.2; }
.quiz-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); margin-bottom: 18px; }
.quiz-hint p { margin: 0; font-family: var(--f-head); font-size: 1.1rem; }

.modules { border-top: 1px solid var(--line); }
.module { border-bottom: 1px solid var(--line); }
.module summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 16px 0; -webkit-tap-highlight-color: transparent; }
.module summary::-webkit-details-marker { display: none; }
.module__n { font-family: var(--f-head); font-size: 1.4rem; color: var(--faint); }
.module__t { font-family: var(--f-head); font-size: 1.15rem; line-height: 1.3; display: flex; flex-direction: column; }
.module__t small { font-family: var(--f-body); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.module summary .i { color: var(--muted); transition: transform .3s var(--ease); }
.module[open] summary .i { transform: rotate(45deg); }
.module__body { padding: 0 0 18px 58px; color: var(--muted); }
.module__body p { margin: 0; }
.lessons { list-style: none; margin: 0; padding: 0 0 18px 58px; display: grid; gap: 10px; }
.lessons b { font-weight: 500; }
.lessons p { margin: 4px 0 0; color: var(--muted); font-size: .95rem; }

.compare__scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.compare table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: center; }
.compare thead th { font-family: var(--f-head); font-weight: 400; font-size: 1.2rem; }
.compare tbody th { text-align: left; font-weight: 400; color: var(--muted); }
.compare .yes .i { color: var(--ink); stroke-width: 2.2; }
.compare .no .i { color: var(--faint); }
.compare__price td { font-family: var(--f-head); font-size: 1.15rem; }

.how { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.how div { padding: 18px 16px; background: var(--bg); }
.how b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.25rem; margin: 10px 0 6px; }
.how p { margin: 0; color: var(--muted); font-size: .95rem; }

.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--deep-line); margin-top: 18px; max-width: 560px; }
.facts-row div { padding: 12px 12px 0 0; }
.facts-row div + div { padding-left: 14px; border-left: 1px solid var(--deep-line); }
.facts-row b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: #fff; }
.facts-row span { font-size: .78rem; line-height: 1.35; display: block; color: var(--deep-muted); }

.pricebox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 0 0; border-top: 1px solid var(--deep-line); margin-top: 20px; max-width: 640px; }
.pricebox .price__main { color: #fff; }
.pricebox .price__old { color: rgba(255, 255, 255, .65); }
.pricebox .price__alt, .stage .price__alt { color: rgba(255, 255, 255, .78); font-size: 1rem; }

.stack-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.stack-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stack-list li > span { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.stack-list li > b { flex: none; }
.stack-list span .i { color: var(--muted); margin-top: 3px; }
.stack-list small { display: block; color: var(--faint); font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; }
.stack-list b { white-space: nowrap; font-weight: 500; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.stack-list s { color: var(--faint); }
.stack-list em { font-style: normal; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.stack-list__total { font-weight: 600; }
.stack-list__total s { font-family: var(--f-head); font-weight: 400; font-size: 1.5rem; color: var(--muted); text-decoration-thickness: 2px; text-decoration-color: #D9826B; }
.offer { padding: 22px 18px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.offer__buy { display: grid; gap: 12px; justify-items: center; text-align: center; padding-top: 18px; border-top: 1px solid var(--line); }
.offer__buy p { margin: 0; color: var(--muted); }
.offer__buy--no-old .price__old { display: none; } /* зачёркнутая цена уже есть строкой выше: «Загальна цінність» */

/* =========================================================
   ТЕКСТОВЫЕ СТРАНИЦЫ, СТАТЬИ, КЕЙСЫ
   ========================================================= */
.page-head { padding-block: 24px 22px; border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 10px; }
.back { display: flex; width: max-content; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; margin-bottom: 14px; }
.back:hover { color: var(--ink); }

.article__head { padding-top: 22px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; margin: 18px 0 0; }
.article__cover { margin: 20px auto 0; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.article__layout { display: grid; gap: 20px; padding-block: 22px 16px; }
.article__body { max-width: 700px; }
.toc__box { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc__box summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.toc__box summary::-webkit-details-marker { display: none; }
.toc__box ol { margin: 0; padding: 0 0 16px 18px; display: grid; gap: 8px; font-size: .92rem; }
.toc__box a { text-decoration: none; color: var(--muted); }
.toc__box a:hover, .toc__box a.is-active { color: var(--ink); }

.prose { font-size: 1.06rem; line-height: 1.78; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.05rem); line-height: 1.2; margin: 2em 0 .6em; }
.prose h3 { font-size: 1.3rem; line-height: 1.3; margin: 1.6em 0 .5em; }
.prose h4 { font-size: 1.1rem; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--faint); }
.prose blockquote { margin: 1.8em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--yellow); }
.prose img { border-radius: 2px; margin: 1.6em 0; max-width: 100%; height: auto; }
.prose figure { margin: 1.6em 0; }
.prose figure img { margin: 0; width: 100%; }
.prose figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 12px 12px 12px 0; text-align: left; vertical-align: top; }
.prose thead td, .prose th { font-weight: 600; }

.endcard { display: grid; gap: 16px; padding: 22px 18px; background: var(--deep); color: #fff; border-radius: var(--r); }
.endcard .lead { color: var(--deep-muted); margin: 8px 0 0; }
.endcard .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.case__hero { display: grid; gap: 20px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.case__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.case__facts { display: grid; margin: 18px 0 0; border-top: 1px solid var(--line); }
.case__facts div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.case__facts dt { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); }
.case__facts dd { margin: 4px 0 0; }
.case__layout { display: grid; gap: 24px; padding-block: 24px; }
.case__aside { display: grid; gap: 20px; align-content: start; }
.quote-card { margin: 0; padding: 26px 22px; background: var(--deep); color: #fff; border-radius: var(--r); }
.quote-card p { font-family: var(--f-head); font-size: 1.2rem; line-height: 1.45; margin: 0 0 14px; }
.quote-card cite { font-style: normal; color: var(--deep-muted); font-size: .86rem; }
.note-card { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.note-card h2 { font-size: 1.3rem; }
.note-card p { margin: 10px 0 0; color: var(--muted); }
.disclaimer-box { margin-top: 10px; padding: 20px 0; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: .94rem; }
.disclaimer-box h2 { font-size: 1.1rem; color: var(--ink); }
.disclaimer-box p { margin: 8px 0 0; }

/* Об Алине */
.about-hero { display: grid; gap: 26px; padding-block: 24px 36px; }
.about-hero .frame { aspect-ratio: 4 / 3; max-width: 440px; margin-right: 14px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: 20px; }
.figures div { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); }
.figures div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.figures b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.figures span { display: block; margin-top: 6px; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.story-text p { margin: 0 0 1.1em; }
.story-text .story__more { display: none; }
.story-text.is-open .story__more { display: block; }
.story-text blockquote { margin: 1.6em 0; font-family: var(--f-head); font-size: 1.5rem; line-height: 1.35; padding-left: 22px; border-left: 2px solid var(--yellow); }
.story-text blockquote p { margin: 0; }
.story-toggle .i { transition: transform .3s var(--ease); }
.story-text.is-open .story-toggle .i { transform: rotate(180deg); }
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline__y { font-family: var(--f-head); font-size: 1.15rem; color: var(--faint); }
.timeline h3 { font-size: 1.3rem; }
.timeline p { margin: 0; color: var(--muted); }
.principles { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principles div { padding: 20px 16px; background: var(--bg); }
.principles h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.principles p { margin: 0; color: var(--muted); }
.principles .num { font-family: var(--f-head); color: var(--faint); }

/* Контакты */
.channels { border-top: 1px solid var(--line); }
.channel { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.channel__icon { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.channel b { display: block; font-family: var(--f-head); font-weight: 400; font-size: 1.2rem; }
.channel small { color: var(--muted); font-size: .86rem; }
.channel > .i { color: var(--faint); transition: transform .25s var(--ease); }
.channel:hover > .i { transform: translateX(4px); color: var(--ink); }
.panel { padding: 22px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.panel h2 { font-size: 1.7rem; }
.panel > p { color: var(--muted); margin: 8px 0 22px; }
.contacts-grid { display: grid; gap: 28px; }

/* Заказ */
.order { padding: 24px 18px; border: 1px solid var(--ink); border-radius: var(--r); text-align: center; background: var(--surface); }
.order__rows { margin: 24px 0; text-align: left; border-top: 1px solid var(--line); }
.order__rows div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order__rows dt { color: var(--muted); }
.order__rows dd { margin: 0; text-align: right; }
.order__soon { text-align: left; padding: 20px 0; margin-bottom: 18px; }
.order__soon h2 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.order__soon p { color: var(--muted); margin: 8px 0 18px; }
.done__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ink); }
.done__icon .i { width: 28px; height: 28px; }
.big404 { font-family: var(--f-head); font-size: clamp(6rem, 4rem + 10vw, 11rem); line-height: 1; margin: 0; color: var(--faint); }

/* =========================================================
   ФОРМЫ, ОКНА, ПАНЕЛИ
   ========================================================= */
.form { display: grid; gap: 16px; }
.form__row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; align-content: start; }
.field label, .field legend { font-size: .8rem; font-weight: 500; letter-spacing: .05em; padding: 0; margin-bottom: 2px; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 4px; border: 1px solid var(--line-strong);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field.has-error input, .field.has-error textarea { border-color: #C46A52; }
.field__err { margin: 0; font-size: .84rem; color: #C46A52; }
[data-theme="dark"] .field__err { color: var(--yellow); }
.field__err:empty { display: none; }
.select { position: relative; }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 30px; border: 1px solid var(--line-strong); font-size: .9rem; transition: .2s; }
.radio input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check-row input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
[data-theme="dark"] .check-row input { accent-color: var(--blue); }
.form__error { margin: 0; padding: 12px 14px; border-left: 2px solid var(--yellow); background: var(--surface-2); font-size: .92rem; }
.form__error:empty { display: none; }
.form__note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; font-size: .8rem; color: var(--faint); }
.form__note .i { width: 14px; height: 14px; }
.form__more summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .9rem; color: var(--muted); padding: 2px 0; -webkit-tap-highlight-color: transparent; }
.form__more summary::-webkit-details-marker { display: none; }
.form__more summary .i { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.form__more[open] summary .i { transform: rotate(45deg); }
.form__more-in { display: grid; gap: 14px; margin-top: 12px; }
.form__consent { margin: 0; font-size: .8rem; line-height: 1.45; color: var(--faint); text-align: center; }
.form__consent a { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sending button[type=submit] { opacity: .6; pointer-events: none; }

.modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(10, 22, 33, .6); opacity: 0; transition: opacity .3s var(--ease); }
.modal__panel {
  position: relative; width: 100%; max-height: 94vh; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 14px 14px 0 0; padding: 10px var(--g) calc(24px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .38s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__panel { transform: none; }
.modal__grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 4px auto 18px; }
.modal__close { position: absolute; top: 14px; right: 14px; }
.modal__title { font-family: var(--f-head); font-size: 1.7rem; line-height: 1.2; padding-right: 48px; }
.modal__price { margin: 10px 0 0; }
.modal__price s { font-family: var(--f-head); font-size: 1.2rem; color: var(--muted); margin-right: 8px; text-decoration-thickness: 2px; text-decoration-color: #D9826B; }
.modal__price b { font-family: var(--f-head); font-weight: 400; font-size: 1.35rem; }
.modal__sub { color: var(--muted); margin: 10px 0 22px; font-size: .95rem; }
.modal__done { text-align: center; padding: 18px 0 6px; }
.modal__done p { color: var(--muted); }
.done__actions { display: grid; gap: 10px; margin-top: 20px; }
body.is-locked { overflow: hidden; }
.sheet__list { border-top: 1px solid var(--line); margin: 18px 0 20px; }
.sheet__list a { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.sheet__list b { font-family: var(--f-head); font-weight: 400; font-size: 1.15rem; display: block; }
.sheet__list small { color: var(--muted); }
.sheet__list > a > .i { color: var(--faint); }

.lb { position: fixed; inset: 0; z-index: 80; background: rgba(8, 18, 27, .95); display: flex; align-items: center; justify-content: center; padding: 64px 12px; }
.lb__fig { margin: 0; max-width: 100%; max-height: 100%; display: flex; }
.lb__fig img { max-width: 100%; max-height: calc(100vh - 128px); max-height: calc(100dvh - 128px); object-fit: contain; background: #fff; }
.lb .icon-btn { color: #fff; border-color: rgba(255, 255, 255, .3); }
.lb__close { position: absolute; top: 12px; right: 12px; }
.lb__nav { position: absolute; bottom: 16px; }
.lb__prev { left: calc(50% - 56px); }
.lb__next { right: calc(50% - 56px); }
.lb__count { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .7); font-size: .88rem; }

/* =========================================================
   Статья «Что такое ABA»
   ========================================================= */
.aba-page { padding-block: 22px 16px; }
.aba-info-intro { padding: 8px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.aba-info-intro h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.8rem); line-height: 1.08; margin: 0 0 22px; }
.aba-info-intro p { color: var(--muted); font-size: 1.06rem; }
.aba-info-lead { font-size: 1.16rem !important; color: var(--ink) !important; }
.aba-info-intro__keywords { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.aba-info-intro__keywords span { padding: 4px 12px; border: 1px solid var(--line); border-radius: 30px; font-size: .8rem; color: var(--muted); }
.aba-info-eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: .7rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.aba-info-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.aba-info-toc { margin: 0 0 40px; }
.aba-info-toc h2 { font-family: var(--f-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.aba-info-toc__grid { display: grid; border-top: 1px solid var(--line); }
.aba-info-toc__grid a { padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--f-head); font-size: 1.05rem; }
.aba-info-section { padding: 28px 0; border-top: 1px solid var(--line); font-size: 1.04rem; line-height: 1.78; }
.aba-info-section h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.18; margin: 0 0 18px; }
.aba-info-section h3 { font-size: 1.2rem; margin: 0 0 6px; }
.aba-info-section p { margin: 0 0 1em; }
.aba-info-note { margin: 22px 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--yellow); font-family: var(--f-head); font-size: 1.15rem; line-height: 1.5; }
.aba-info-note p { margin: 0; }
.aba-check-list { list-style: none; padding: 0; margin: 0 0 1em; border-top: 1px solid var(--line); }
.aba-check-list li { padding: 10px 0 10px 26px; border-bottom: 1px solid var(--line); position: relative; }
.aba-check-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.aba-info-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 22px 0; }
.aba-info-card, .aba-skill { padding: 22px 20px; background: var(--bg); }
.aba-info-card p, .aba-skill p { margin: 0; color: var(--muted); font-size: .98rem; }
.aba-info-card__number { font-family: var(--f-head); font-size: 1.4rem; color: var(--faint); margin-bottom: 8px; }
.aba-skill__icon { font-size: 1.4rem; margin-bottom: 8px; filter: grayscale(1); opacity: .7; }
.aba-steps { border-top: 1px solid var(--line); margin: 22px 0; }
.aba-step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.aba-step__number { font-family: var(--f-head); font-size: 1.6rem; color: var(--faint); }
.aba-step p { margin: 4px 0 0; color: var(--muted); }
.aba-related { margin-top: 18px; font-size: .94rem; color: var(--muted); }
.aba-related a { color: var(--ink); margin-left: 4px; }
.aba-article-image { margin: 0 0 8px; }
.aba-article-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.aba-article-image figcaption { margin-top: 10px; font-size: .86rem; color: var(--muted); }
.aba-faq { border-top: 1px solid var(--line); }
.aba-faq details { border-bottom: 1px solid var(--line); }
.aba-faq summary { cursor: pointer; padding: 16px 0; font-family: var(--f-head); font-size: 1.1rem; }
.aba-faq__answer { padding: 0 0 18px; color: var(--muted); }
.aba-faq__answer p { margin: 0 0 6px; }
.aba-course-cta { margin: 20px 0; padding: 36px 24px; background: var(--deep); color: #fff; border-radius: var(--r); }
.aba-course-cta .aba-info-eyebrow { color: var(--yellow); }
.aba-course-cta h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); line-height: 1.2; margin: 0 0 12px; }
.aba-course-cta p { color: var(--deep-muted); }
.aba-course-cta__button { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--yellow); color: var(--navy); text-decoration: none; font-weight: 500; border-radius: var(--r); margin-top: 8px; }

/* «Хлебные крошки» */
.crumbs { margin: 0 0 14px; font-size: .84rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--faint); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs--dark, .crumbs--dark a { color: var(--deep-muted); }
.crumbs--dark [aria-current], .crumbs--dark li + li::before { color: rgba(255, 255, 255, .5); }
.crumbs--dark a:hover { color: #fff; }

/* «Що далі?» после статьи */
.next__title { margin-bottom: 18px; }
.next__grid { display: grid; gap: 26px; }
.next__program { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border: 1px solid var(--ink); border-radius: var(--r); background: var(--surface); }
.next__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.next__buy .price__main { font-size: 1.6rem; }
.next__quiz { align-self: flex-start; margin-top: 6px; font-size: .9rem; }
.next__read { list-style: none; margin: 10px 0 16px; padding: 0; border-top: 1px solid var(--line); }
.next__read a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.next__read img { width: 72px; height: 54px; object-fit: cover; border-radius: 2px; }
.next__read span { font-family: var(--f-head); font-size: 1.02rem; line-height: 1.3; }
.next__read a:hover span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }

/* Баннер согласия на cookie (только ЕС/UK/CH и если включены пиксели) */
.cookie { position: fixed; z-index: 60; left: 8px; right: 8px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 8px); }
.cookie__in { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); box-shadow: 0 18px 40px -20px rgba(10, 22, 33, .55); }
.cookie__text { margin: 0; font-size: .88rem; line-height: 1.45; color: var(--muted); }
.cookie__text b { color: var(--ink); font-weight: 600; margin-right: 4px; }
.cookie__text a { color: var(--ink); }
.cookie__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ftr__cookie { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: transparent; }
.ftr__cookie:hover { text-decoration-color: currentColor; }
@media (min-width: 640px) { .cookie__in { grid-template-columns: 1fr auto; align-items: center; } .cookie__btns { grid-template-columns: auto auto; } }
@media (min-width: 1000px) { .cookie { bottom: 16px; } }

/* Нижняя панель «цена + кнопка» (страницы продуктов, телефон/планшет) */
.buybar {
  position: fixed; z-index: 44; left: 0; right: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px var(--g);
  background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -12px 24px -18px rgba(10, 22, 33, .5);
  transform: translateY(calc(100% + var(--tab-h))); visibility: hidden; transition: transform .3s var(--ease), visibility .3s;
}
.buybar.is-on { transform: none; visibility: visible; }
.buybar__price { font-family: var(--f-head); font-size: 1.35rem; line-height: 1.1; white-space: nowrap; }
.buybar .btn { --h: 44px; padding: 0 18px; font-size: .9rem; }

/* Только проявление, без сдвига: сдвиг при прокрутке на телефоне выглядит как подёргивание */
.reveal { opacity: 0; transition: opacity .4s ease; }
.reveal.is-in { opacity: 1; }

/* =========================================================
   Планшет: от 640px
   ========================================================= */
@media (min-width: 640px) {
  :root { --g: 32px; --sec: 60px; }
  .tool-card { grid-template-columns: 1fr; row-gap: 10px; padding: 24px 22px; }
  .tool-card__icon { grid-row: auto; }
  .editorial .frame, .about-hero .frame { aspect-ratio: 4 / 5; }
  .hdr__cta { display: inline-flex; }
  .form__row { grid-template-columns: 1fr 1fr; }
  .options { grid-template-columns: 1fr 1fr; }
  .tools { grid-template-columns: repeat(3, 1fr); }
  .starts { grid-template-columns: repeat(3, 1fr); }
  .rail-nav { display: flex; }
  .review { width: 320px; }
  .rcard { width: 360px; }
  .cert { width: 340px; }
  .entry { grid-template-columns: 1fr 140px; gap: 28px; }
  .entry img { width: 140px; height: 100px; }
  .aba-info-grid { grid-template-columns: 1fr 1fr; }
  .aba-info-toc__grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .principles, .how { grid-template-columns: repeat(2, 1fr); }
  .figures { grid-template-columns: repeat(4, 1fr); }
  .figures div { padding-left: 14px; border-left: 1px solid var(--line); }
  .figures div:first-child { padding-left: 0; border-left: 0; }
  .modal { align-items: center; padding: 24px; }
  .modal__panel { max-width: 560px; border-radius: 10px; padding: 30px 34px 34px; transform: translateY(20px); opacity: 0; transition: transform .3s var(--ease), opacity .3s var(--ease); }
  .modal.is-open .modal__panel { transform: none; opacity: 1; }
  .modal__grip { display: none; }
  .ftr__top { grid-template-columns: 1fr 1fr; align-items: start; }
  .ftr__brand { grid-column: 1 / -1; }
  .ftr__legal, .ftr__copy { flex-direction: row; align-items: center; justify-content: space-between; }
  .ftr__langs { align-self: auto; }
  .timeline li { grid-template-columns: 160px 1fr; gap: 24px; }
  .case__facts { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .starter__card { padding: 28px 28px 24px; }
  .result__main, .verdict, .offer, .panel, .order { padding: 30px 30px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-switch { display: none; }
  .plans .plan[hidden] { display: flex !important; }
}

/* =========================================================
   Компьютер: от 1000px
   ========================================================= */
@media (min-width: 1000px) {
  :root { --hdr-h: 72px; --sec: 84px; }
  body { font-size: 18px; padding-bottom: 0; }
  .tabbar { display: none; }
  .buybar { display: none; }
  .hdr__nav { display: flex; gap: 30px; margin-inline: auto; }
  .hdr__nav a { position: relative; padding: 6px 0; font-size: .9rem; letter-spacing: .03em; text-decoration: none; color: var(--muted); transition: color .2s; }
  .hdr__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .3s var(--ease); }
  .hdr__nav a:hover, .hdr__nav a[aria-current] { color: var(--ink); }
  .hdr__nav a:hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); }
  .hdr__tools { margin-left: 0; }
  .head { grid-template-columns: 1fr 1fr; align-items: end; gap: 40px; margin-bottom: 36px; }
  .head > :first-child { grid-column: 1; }
  .head .lead, .head__link { margin: 0; justify-self: end; max-width: 44ch; }
  .stage__in { grid-template-columns: 1.3fr .7fr; align-items: end; gap: 64px; padding-block: 56px 0; }
  .stage__text { padding-bottom: 140px; }
  .stage__pad { padding-block: 56px 60px; }
  .stage__photo { display: block; align-self: end; }
  .stage__photo .frame { aspect-ratio: 5 / 7; }
  .stage__photo .frame::before { inset: 22px -22px 0 22px; }
  .starter { margin-top: -100px; }
  .starter__card { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; padding: 38px 42px; }
  .starter__q { font-size: 1.9rem; }
  .ladder { grid-template-columns: repeat(3, 1fr); border-top: 0; }
  .step { padding: 24px 32px 0 0; border-bottom: 0; border-top: 1px solid var(--ink); align-content: start; }
  .step__foot { margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
  .step__foot .price__main { font-size: 1.45rem; }
  .step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
  .story-list { grid-template-columns: repeat(3, 1fr); gap: 40px; border-top: 0; }
  .story { grid-template-columns: 1fr; border-bottom: 0; padding-top: 0; gap: 16px; }
  .story img { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0; }
  .editorial { grid-template-columns: .7fr 1.3fr; gap: 80px; }
  .final__in { grid-template-columns: 1.3fr .7fr; align-items: end; padding-block: 72px; }
  .final__actions { justify-content: flex-end; }
  .ftr__top { grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
  .ftr__brand { grid-column: auto; }
  .quiz { margin-top: 0; }
  .quiz-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
  .result { grid-template-columns: 1.25fr .75fr; gap: 56px; align-items: start; }
  .check { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
  .check__go { display: none; }
  .check__aside { position: sticky; top: calc(var(--hdr-h) + 32px); }
  .lib { grid-template-columns: 240px 1fr; gap: 56px; align-items: start; }
  .lib__side { position: sticky; top: calc(var(--hdr-h) + 32px); gap: 22px; }
  .lib__side .chips { flex-direction: column; align-items: stretch; overflow: visible; margin: 0; padding: 0; gap: 0; border-top: 1px solid var(--line); }
  .lib__side .chip { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0; min-height: 46px; justify-content: space-between; background: none; color: var(--muted); }
  .lib__side .chip[aria-pressed="true"] { color: var(--ink); background: none; }
  .lib__side .chip[aria-pressed="true"]::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-left: auto; }
  .lib__side .chip[aria-pressed="true"] small { display: none; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .consult-band { grid-template-columns: 1fr 1fr auto; align-items: center; gap: 40px; padding: 34px 40px; }
  .principles, .how { grid-template-columns: repeat(4, 1fr); }
  .principles--3 { grid-template-columns: repeat(3, 1fr); }
  .article__layout { grid-template-columns: 220px 1fr; gap: 64px; justify-content: center; padding-block: 36px 24px; }
  .toc { position: sticky; top: calc(var(--hdr-h) + 32px); align-self: start; }
  .toc__box summary { pointer-events: none; }
  .toc__box summary .i { display: none; }
  .case__hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; padding-block: 44px; }
  .case__layout { grid-template-columns: 1fr 340px; gap: 64px; padding-block: 40px; }
  .case__aside { position: sticky; top: calc(var(--hdr-h) + 32px); }
  .about-hero { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 80px; padding-block: 56px 72px; }
  .page-head { padding-block: 44px 36px; }
  .contacts-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .next__grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .next__program { padding: 28px 30px; }
  .endcard { grid-template-columns: 1fr auto; align-items: center; padding: 34px 40px; }
  .aba-info-toc__grid { grid-template-columns: repeat(3, 1fr); }
  .aba-info-grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* Оформление покупки */
.checkout { display: grid; gap: 22px; align-items: start; }
.co-language { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: center; }
.co-order { padding: 20px 18px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.co-order__label { margin: 0 0 6px; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-ink); }
.co-order__name { font-size: 1.45rem; line-height: 1.2; margin: 0 0 10px; }
.co-order__inc { margin-top: 14px; border-top: 1px solid var(--line); }
.co-order__inc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 8px; cursor: pointer; font-size: .9rem; color: var(--muted); }
.co-order__inc summary::-webkit-details-marker { display: none; }
.co-order__inc[open] summary .i { transform: rotate(180deg); }
.co-order__inc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.co-order__inc li { display: flex; gap: 10px; font-size: .92rem; line-height: 1.4; }
.co-order__inc li .i { color: var(--mint-ink); width: 17px; height: 17px; margin-top: 2px; }
.co-order__change { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .86rem; color: var(--muted); text-decoration: none; }
.co-order__change:hover { color: var(--ink); }
.co-form { gap: 22px; }
.co-step { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; min-width: 0; }
.co-step legend { display: flex; align-items: flex-start; gap: 10px; padding: 0; margin-bottom: 12px; font-family: var(--f-head); font-size: 1.25rem; }
.co-step__n { margin-top: 2px; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-blue); color: var(--blue-ink); font-family: var(--f-body); font-size: .85rem; font-weight: 600; }
.field__hint { font-size: .78rem; color: var(--faint); }
.co-choices { display: grid; gap: 8px; }
.co-choice { position: relative; display: block; cursor: pointer; }
.co-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.co-choice__box { position: relative; height: 100%; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 46px 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); transition: border-color .2s, background-color .2s, box-shadow .2s; }
.co-choice__box b { display: block; font-weight: 600; font-size: .98rem; }
.co-choice__box small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; }
.co-choice__icon { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-blue); color: var(--blue-ink); }
.co-choice__icon .i { width: 18px; height: 18px; }
.co-choice:hover .co-choice__box { border-color: var(--blue); }
.co-choice__box::after { content: ""; position: absolute; right: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 1.5px solid var(--line-strong); box-sizing: border-box; transition: border-color .2s, border-width .2s; }
.co-choice input:checked + .co-choice__box { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: var(--tint-blue); }
.co-choice input:checked + .co-choice__box::after { border: 6px solid var(--blue); background: var(--surface); }
.co-choice input:checked + .co-choice__box .co-choice__icon { background: var(--surface); }
.co-choice input:focus-visible + .co-choice__box { outline: 2px solid var(--blue); outline-offset: 2px; }
.co-choice__brand { flex: none; min-width: 112px; padding: 8px 10px; border-radius: 6px; text-align: center; font: 700 .95rem/1 var(--f-body); letter-spacing: .01em; }
.co-choice__brand--mono { background: #111; color: #fff; }
.co-choice__brand--wayforpay { background: #fff; color: #173B57; border: 1px solid var(--line-strong); }
/* Поля оформления: иконка слева, мягкая подсветка при вводе - в одном стиле с карточками выбора */
.co-form .field label { font-size: .86rem; letter-spacing: .02em; color: var(--ink); }
.input-ic { position: relative; display: block; }
.input-ic > .i { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; transition: color .2s; }
.co-form .field input { min-height: 56px; padding-left: 46px; border-radius: var(--r); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.co-form .field input:hover { border-color: var(--blue); }
.co-form .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(var(--blue-rgb) / .22); }
.input-ic:focus-within > .i { color: var(--blue-ink); }
.co-form .field.has-error input { box-shadow: 0 0 0 3px rgba(196, 106, 82, .15); }
.co-note { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .84rem; color: var(--muted); }
.co-note .i { color: var(--blue-ink); width: 18px; height: 18px; }
.co-submit { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.co-total { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.co-total span { color: var(--muted); }
.co-total b { font-family: var(--f-head); font-weight: 400; font-size: 1.8rem; }
.co-total small { color: var(--muted); }
.co-secure { margin: 0; font-size: .78rem; color: var(--faint); text-align: center; }
@media (min-width: 640px) { .co-choices { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .checkout { grid-template-columns: 1fr 380px; gap: 56px; }
  .co-order { order: 2; position: sticky; top: calc(var(--hdr-h) + 24px); padding: 26px 26px; }
  .co-form { order: 1; }
}

/* Шапка без переносов: на средних экранах меню компактнее */
.hdr__nav a, .hdr__cta { white-space: nowrap; }
@media (min-width: 1000px) and (max-width: 1239px) {
  .hdr__in { gap: 14px; }
  .hdr__nav { gap: 16px; }
  .hdr__nav a { font-size: .8rem; letter-spacing: 0; }
  .logo__sub { display: none; }
  .stage__in--v3 > * { min-width: 0; }
  .stage--v3 .t1 { font-size: clamp(2.8rem, 5vw, 3.25rem); }
}

/* =========================================================
   ЦВЕТ (2026-10-07): светлая тема «поживее», но сдержанно — только фирменные
   голубой / мятный / жёлтый, мягкими оттенками. В тёмной теме оттенки прозрачные.
   ========================================================= */
.sec--alt + .sec + .sec--alt, .sec--alt.sec--mint { background: var(--bg-alt-2); }
.kicker::before { opacity: 1; width: 22px; height: 2px; background: var(--yellow); }
.kicker--gold::before { background: currentColor; }
a:not(.btn) { text-decoration-color: color-mix(in srgb, var(--blue-ink) 45%, transparent); }
.arrow-link { border-bottom-color: color-mix(in srgb, var(--blue-ink) 50%, transparent); }
.arrow-link:hover { color: var(--blue-ink); border-color: var(--blue-ink); }
.page-head { background: linear-gradient(180deg, var(--tint-blue), transparent 85%); }
.subnav a.is-active { color: var(--blue-ink); border-color: var(--yellow); }
.faq__item summary .i { color: var(--blue-ink); }
.faq__item[open] summary { color: var(--blue-ink); }
.step__n { color: var(--blue-ink); }
.story:hover .story__title, .entry:hover .entry__title { color: var(--blue-ink); }

/* Иконки в цветных кружках по очереди: голубой, мятный, жёлтый */
.tool-card__icon, .how .tool-card__icon { border: 0; background: var(--tint-blue); color: var(--blue-ink); }
.tool-card:nth-child(3n+2) .tool-card__icon, .how > div:nth-child(3n+2) .tool-card__icon { background: var(--tint-mint); color: var(--mint-ink); }
.tool-card:nth-child(3n) .tool-card__icon, .how > div:nth-child(3n) .tool-card__icon { background: var(--tint-yellow); color: var(--yellow-ink); }
[data-theme="dark"] .tool-card:nth-child(3n) .tool-card__icon, [data-theme="dark"] .how > div:nth-child(3n) .tool-card__icon { color: var(--yellow); }

/* Тарифы */
.plan--featured { border-color: var(--yellow); border-top: 4px solid var(--yellow); background: linear-gradient(180deg, var(--tint-yellow), var(--surface) 38%); }
.plan li .i, .ticks .i { color: var(--mint-ink); }
.quiz-hint { background: var(--tint-blue); border-color: transparent; }

/* Таблица сравнения тарифов */
.compare__scroll { border-top: 0; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); }
.compare thead th { background: var(--tint-blue); padding-block: 16px; }
.compare thead th:first-child { border-top-left-radius: var(--r); }
.compare thead th:last-child { border-top-right-radius: var(--r); }
.compare tbody th { padding-left: 16px; }
.compare th:nth-child(3), .compare td:nth-child(3) { background: var(--tint-yellow); }
.compare thead th:nth-child(3) { background: color-mix(in srgb, var(--yellow) 45%, var(--surface)); color: var(--navy); }
[data-theme="dark"] .compare thead th:nth-child(3) { color: #fff; background: rgb(var(--yellow-rgb) / .22); }
.compare .yes .i { color: var(--mint-ink); stroke-width: 2.4; }
.compare tbody tr:not(.compare__price):hover th, .compare tbody tr:not(.compare__price):hover td { background-color: color-mix(in srgb, var(--blue) 8%, transparent); }
.compare__price td { font-size: 1.35rem; color: var(--ink); border-bottom: 0; padding-block: 18px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
.price__old:empty { display: none; }

/* Страница «Залишити відгук» */
.review-form { gap: 18px; }
.review-done { display: grid; justify-items: center; gap: 18px; padding: 20px 0; }
.check-row.has-error { color: #C46A52; }

/* Бесплатный гайд: страница и блок */
.guide-hero { display: grid; gap: 28px; align-items: start; }
.guide-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.guide-points li { display: flex; gap: 10px; color: rgba(255, 255, 255, .9); font-size: .98rem; line-height: 1.45; }
.guide-points .i { color: var(--yellow); flex: none; margin-top: 3px; }
.guide-meta { margin: 16px 0 0; font-size: .82rem; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.guide-side { display: grid; gap: 18px; justify-items: center; }
.guide-cover { width: min(300px, 70vw); height: auto; border-radius: 4px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6); transform: rotate(-2deg); }
.guide-side .guide-form { width: 100%; max-width: 440px; padding: 20px; background: var(--surface); color: var(--ink); border-radius: var(--r); }
.guide-ok { display: grid; gap: 14px; margin-top: 22px; justify-items: start; }
.guide-ok__note, .guide-ok__next { margin: 0; color: rgba(255, 255, 255, .85); font-size: .95rem; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.guide-ok__next a { color: var(--yellow); }
.guide-form { gap: 12px; }
.guide-box { display: grid; gap: 18px; margin: 40px 0 10px; padding: 22px 20px; border: 1px solid var(--line-strong); border-radius: var(--r); background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 10%, var(--surface)), color-mix(in srgb, var(--mint) 10%, var(--surface))); }
.guide-box__img img { width: 140px; height: auto; border-radius: 3px; box-shadow: 0 16px 30px -16px rgba(10, 22, 33, .5); transform: rotate(-2deg); }
.guide-box__body .t3 { margin: 0 0 6px; }
.guide-box__text { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
@media (min-width: 760px) {
  .guide-box { grid-template-columns: 170px 1fr; padding: 28px; align-items: center; }
  .guide-box__img img { width: 170px; }
  .guide-box .guide-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
  .guide-box .guide-form > .check-row, .guide-box .guide-form > .btn, .guide-box .guide-form > .form__note, .guide-box .guide-form > .form__error, .guide-box .guide-form > p.field__err { grid-column: 1 / -1; }
}
@media (min-width: 1000px) { .guide-hero { grid-template-columns: 1.1fr .9fr; gap: 48px; } }

/* Плавающая кнопка «Безкоштовний гайд» (внизу справа; на телефоне - над нижним меню) */
.gfloat { position: fixed; z-index: 43; right: 12px; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); opacity: 0; transform: translateY(10px); visibility: hidden; transition: opacity .3s ease, transform .3s var(--ease), visibility .3s; }
.gfloat.is-on { opacity: 1; transform: none; visibility: visible; }
.gfloat__link { display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; background: var(--yellow); color: var(--navy); text-decoration: none; border: 1px solid rgb(var(--navy-rgb) / .14); border-radius: var(--r); box-shadow: 0 14px 30px -14px rgba(10, 22, 33, .6); transition: background .2s, transform .2s; }
.gfloat__link:hover { background: color-mix(in srgb, var(--yellow) 78%, #fff); transform: translateY(-2px); }
.gfloat__link img { width: 34px; height: 48px; object-fit: cover; border-radius: 2px; flex: none; box-shadow: 0 2px 6px rgb(var(--navy-rgb) / .3); }
.gfloat__link span { display: grid; line-height: 1.2; }
.gfloat__link b { font-family: var(--f-head); font-weight: 400; font-size: .95rem; }
.gfloat__link small { font-size: .74rem; color: rgb(var(--navy-rgb) / .72); margin-top: 3px; }
.gfloat__x { position: absolute; top: -9px; right: -7px; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); cursor: pointer; }
.gfloat__x svg { width: 12px; height: 12px; }
.gfloat__x:hover { color: var(--ink); border-color: var(--ink); }
@media (min-width: 1000px) { .gfloat { right: 24px; bottom: 24px; } }
@media print { .gfloat { display: none; } }

/* =========================================================
   Акции и промокоды (app/promo.php)
   ========================================================= */
/* Полоса сверху сайта: акция (тёмно-синяя с жёлтым) или промокод посетителя (мятная) */
.pstrip { background: var(--stage); color: #fff; border-bottom: 1px solid rgb(var(--yellow-rgb) / .35); }
.pstrip--code { background: #1F5A4A; }
.pstrip__in { max-width: var(--w); margin: 0 auto; padding: 8px 44px 8px var(--g); position: relative; display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; font-size: .9rem; line-height: 1.35; }
.pstrip__ic { display: none; }
.pstrip__ic svg { width: 18px; height: 18px; color: var(--yellow); }
.pstrip__text { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.pstrip__text > b { font-weight: 600; }
.pstrip__timer { color: rgba(255, 255, 255, .78); font-size: .85rem; }
.pstrip__timer b { color: var(--yellow); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pstrip__cta { display: inline-flex; align-items: center; gap: 6px; color: var(--yellow); font-weight: 600; text-decoration: none; font-size: .88rem; white-space: nowrap; }
.pstrip__cta svg { width: 15px; height: 15px; transition: transform .2s; }
.pstrip__cta:hover svg { transform: translateX(3px); }
.pstrip__x { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: rgba(255, 255, 255, .7); cursor: pointer; }
.pstrip__x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.pstrip__x svg { width: 15px; height: 15px; }
@media (min-width: 760px) {
  .pstrip__in { justify-content: center; padding-block: 9px; }
  .pstrip__ic { display: inline-flex; }
}

/* Таймер под ценой и цена с промокодом */
.price__timer, .price__code { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; font-size: .86rem; color: var(--muted); }
.price__timer svg, .price__code svg { width: 16px; height: 16px; color: #D9826B; flex: none; }
.price__timer b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.price__code svg { color: var(--mint-ink); }
.price__code b { color: var(--mint-ink); font-weight: 600; font-size: .95rem; }
.stage .price__timer, .stage .price__code { color: var(--deep-muted); }
.stage .price__timer b { color: var(--yellow); }
.stage .price__code b, .stage .price__code svg { color: var(--mint); }

/* Промокод на оформлении */
.promo-box { display: grid; gap: 8px; }
.promo-box__toggle { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; border: 0; background: none; color: var(--accent-ink); font: inherit; font-size: .95rem; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 4px; }
.promo-box__toggle svg { width: 18px; height: 18px; }
.promo-box__row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.promo-box__row[hidden] { display: none; }
.promo-box__row input { text-transform: uppercase; letter-spacing: .06em; }
.promo-box__row .btn { white-space: nowrap; }
.promo-box.is-applied .promo-box__row input { border-color: var(--mint); background: color-mix(in srgb, var(--mint) 10%, var(--surface)); }
.promo-box__msg { margin: 0; font-size: .88rem; color: var(--mint-ink); display: flex; align-items: center; gap: 6px; }
.promo-box__msg:empty, .promo-box .field__err:empty { display: none; }
.promo-box__msg svg { width: 16px; height: 16px; }
.co-lines { margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.co-lines div { display: flex; justify-content: space-between; gap: 12px; }
.co-lines dt { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.co-lines dt svg { width: 16px; height: 16px; }
.co-lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.co-lines__cut dt, .co-lines__cut dd { color: var(--mint-ink); }
.co-save { margin: -4px 0 0; font-size: .88rem; color: var(--mint-ink); font-weight: 600; }
.order__cut { color: var(--mint-ink); }
.promo-box__row .btn { min-height: 56px; }
.promo-box__toggle[hidden] { display: none; }

/* «Про Аліну»: Моя історія (слева) и Освіта і досвід (справа) одной ширины */
.about-two { display: grid; gap: 48px; }
.about-two__col { min-width: 0; }
.about-two__col .head { margin-bottom: 24px; }
@media (min-width: 1000px) {
  .about-two { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
}

/* «Про мене пишуть» - публикации в СМИ (media_block / media_strip в blocks.php) */
.media-grid { display: grid; grid-auto-flow: column; grid-auto-columns: min(84%, 340px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--g); padding-bottom: 8px; margin-inline: calc(var(--g) * -1); padding-inline: var(--g); scrollbar-width: thin; }
.media-card { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line-strong); border-top: 3px solid var(--yellow); border-radius: var(--r); overflow: hidden; transition: border-color .2s, transform .2s; }
.media-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.media-card__logo { display: flex; align-items: center; justify-content: flex-start; height: 76px; padding: 20px 20px 0; }
.media-card__logo img { max-width: 150px; max-height: 36px; width: auto; height: auto; display: block; }
/* Тёмная тема: логотипы в своих цветах, только тёмный текст в них - белый (файлы *-dark) */
.media-logo--dark { display: none !important; }
[data-theme="dark"] .media-logo--has-dark { display: none !important; }
[data-theme="dark"] .media-logo--dark { display: block !important; }
.media-logo-text { font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: .08em; color: var(--navy); }
.media-card__body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; }
.media-card__meta { margin: 0; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.media-card__title { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: 1.12rem; line-height: 1.3; }
.media-card__quote { margin: 0; padding-left: 12px; border-left: 2px solid var(--mint); font-size: .92rem; line-height: 1.5; color: var(--muted); font-style: italic; }
.media-card__lead { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--muted); }
.media-card__go { margin-top: auto; padding-top: 6px; }
@media (min-width: 1000px) {
  .media-grid { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: 0; padding-inline: 0; gap: 18px; }
}
.media-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 36px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: transparent; text-decoration: none; color: var(--muted); transition: border-color .2s; }
.media-strip:hover { border-color: var(--blue); }
.media-strip__label { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.media-strip__logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.media-strip__item img { height: 24px; width: auto; display: block; }
.media-strip__item .media-logo-text { font-size: 1rem; color: #6B7F8E; }


/* Логотипы изданий одного «веса»: у «Фокуса» жирные буквы - он меньше, у ITMED мелкий текст - он чуть больше */
.media-strip__item .media-logo--focus { height: 17px; }
.media-strip__item .media-logo--today { height: 22px; }
.media-strip__item .media-logo--marketer { height: 22px; }
.media-strip__item .media-logo--medicina { height: 25px; }
.media-strip__item .media-logo--itmed { height: 30px; }
.media-card__logo .media-logo--focus { max-height: 24px; }
.media-card__logo .media-logo--today, .media-card__logo .media-logo--marketer { max-height: 31px; }
.media-card__logo .media-logo--medicina { max-height: 35px; }
.media-card__logo .media-logo--itmed { max-height: 42px; }
mark.todo { background: color-mix(in srgb, var(--yellow) 45%, transparent); color: inherit; padding: 0 4px; border-radius: 3px; }
.ftr__certs { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink); text-decoration: none; font-size: .95rem; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.ftr__certs .i { width: 18px; height: 18px; color: var(--blue-ink); }
.ftr__certs .i:last-child { width: 15px; height: 15px; transition: transform .2s; }
.ftr__certs:hover { border-color: var(--blue); }
.ftr__certs:hover .i:last-child { transform: translateX(3px); }
[data-theme="dark"] .ftr__certs .i:first-child { color: var(--blue); }

/* =========================================================
   Первый экран v3 (2026-10-08): фото без фона слева и крупнее, текст справа.
   За фигурой - панель с тонкой золотой рамкой (голова выходит за рамку), мягкий свет.
   Откат - _backup/2026-10-08-hero-before/README.md (или удалить этот блок и вернуть home.php).
   ========================================================= */
.stage__cut img { display: block; width: 100%; height: auto; }
@media (min-width: 1000px) {
  .stage--v3 { background:
      radial-gradient(55% 75% at 22% 45%, rgb(var(--blue-rgb) / .22), transparent 70%),
      radial-gradient(40% 50% at 95% 100%, rgb(var(--mint-rgb) / .12), transparent 70%),
      linear-gradient(115deg, var(--stage-0) 0%, var(--stage) 55%, var(--stage-2) 100%); }
  .stage--v3::after { display: none; }
  .stage__in--v3 { grid-template-columns: 1.08fr 1fr; gap: 32px; align-items: end; padding-block: 12px 0; }
  .stage__in--v3 .stage__text { padding-bottom: 200px; align-self: center; }
  .stage__cut { position: relative; align-self: end; margin-bottom: -2px; }
  /* карточка «Почніть з головного» заходит на фото и закрывает руки; рамки заканчиваются ровно над карточкой */
  .stage--v3 + .starter { margin-top: -130px; }
  /* левый край карточки - по краю пиджака на левом плече (считает site.js → --starter-shift) */
  .stage--v3 + .starter .starter__card { margin-left: var(--starter-shift, 0px); }
  /* панель-«рамка» за фигурой: светлее фона, тонкая золотая линия, верх ниже головы */
  .stage__cut::before { content: ""; position: absolute; left: 14%; right: 8%; top: 12%; bottom: 158px;
    background: linear-gradient(180deg, rgb(var(--blue-rgb) / .20), rgb(var(--blue-rgb) / .07));
    border: 1px solid rgb(var(--yellow-rgb) / .55); }
  /* вторая линия - смещённая, как у кадров на сайте */
  .stage__cut::after { content: ""; position: absolute; left: calc(14% + 22px); right: calc(8% - 22px); top: calc(12% - 22px); bottom: 180px;
    border: 1px solid rgb(var(--yellow-rgb) / .22); pointer-events: none; }
  .stage__cut picture { position: relative; z-index: 1; display: block; }
  .stage__cut img { max-height: 760px; width: auto; max-width: 100%; margin-inline: auto;
    -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); mask-image: linear-gradient(to bottom, #000 80%, transparent 99%); }
}
@media (min-width: 1240px) {
  .stage--v3 + .starter { margin-top: -142px; } /* верх карточки - чуть выше кольца (линия пользователя) */

  .stage__cut::before { bottom: 170px; }
  .stage__cut::after { bottom: 192px; }
  .stage__cut { margin-left: -150px; }
  .stage__cut img { max-height: 830px; }
}
@media (min-width: 1440px) {
  .stage__cut { margin-left: -230px; }
}


/* Оформление: доступ на почту + кнопки Apple Pay / Google Pay (2026-10-08) */
.co-access { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; padding: 12px 14px; background: var(--tint-blue); border-radius: var(--r); font-size: .92rem; line-height: 1.45; }
.co-access .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue-ink); }
/* «Оплата в один дотик»: плашка, справа - кнопки-«таблетки» */
.co-xpay-box { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 12px 12px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.co-xpay__label { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; color: var(--ink); }
.co-xpay__label .i { width: 18px; height: 18px; color: var(--blue-ink); }
.co-xpay { display: flex; gap: 8px; }
.xpay { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 140px; height: 50px; padding: 0 16px; border: 0; border-radius: 999px; background: #000; color: #fff; cursor: pointer;
  font: 500 1.25rem/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; letter-spacing: -.01em;
  box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .55); transition: transform .2s var(--ease), box-shadow .2s, opacity .2s; }
.xpay:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -10px rgba(0, 0, 0, .6); }
.xpay:active { transform: translateY(0); opacity: .9; }
.xpay svg { width: 21px; height: 21px; flex: none; }
.xpay--apple svg { margin-top: -3px; }
[data-theme="dark"] .xpay { box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); }
@media (max-width: 479px) {
  .co-xpay-box { border-radius: 18px; padding: 14px; justify-content: center; }
  .co-xpay__label { width: 100%; justify-content: center; }
  .co-xpay { width: 100%; }
  .xpay { flex: 1; width: auto; height: 56px; font-size: 1.4rem; }
  .xpay svg { width: 24px; height: 24px; }
}
.co-xpay__or { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; font-size: .84rem; color: var(--faint); }
.co-xpay__or::before, .co-xpay__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Логотипы платёжных систем (оригиналы monobank / WayForPay, assets/img/pay; pay_logo() в blocks.php) */
.pay-logo { display: inline-block; height: 20px; width: auto; vertical-align: middle; }
.pay-logo--dark { display: none; }
[data-theme="dark"] .pay-logo--light { display: none; }
[data-theme="dark"] .pay-logo--dark { display: inline-block; }
.xpay img { display: block; height: 24px; width: auto; }
.co-choice__brand--mono { background: none; padding: 0; min-width: 112px; }
.co-choice__brand--mono .pay-logo { height: 24px; }
.co-choice__brand--wayforpay { background: #fff; padding: 9px 10px; }
.co-choice__brand--wayforpay .pay-logo { height: 15px; display: block; margin-inline: auto; }
.co-note { flex-wrap: wrap; }
.co-note__cards { display: inline-flex; align-items: center; gap: 8px; margin-left: 4px; }
.co-note__cards .pay-logo { height: 14px; }
.ftr__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; opacity: .85; }
.ftr__pay .pay-logo { height: 18px; }
.ftr__pay .pay-logo--plata { height: 20px; }
@media (max-width: 479px) {
  .xpay img { height: 28px; }
}
/* по просьбе пользователя: логотипы крупнее, подписи мельче */
.co-choice__box small { font-size: .74rem; line-height: 1.3; }
.co-choice__brand--mono { min-width: 140px; }
.co-choice__brand--mono .pay-logo { height: 30px; }
.co-choice__brand--wayforpay { min-width: 140px; padding: 11px 12px; }
.co-choice__brand--wayforpay .pay-logo { height: 19px; }
.co-note { font-size: .74rem; }
.co-note__cards { gap: 10px; margin-left: 6px; }
.co-note__cards .pay-logo { height: 20px; }
.xpay img { height: 28px; }
@media (max-width: 479px) {
  .xpay img { height: 32px; }
  .co-choice__brand--mono, .co-choice__brand--wayforpay { min-width: 124px; }
  .co-choice__brand--mono .pay-logo { height: 27px; }
  .co-choice__brand--wayforpay .pay-logo { height: 17px; }
}
.co-step { min-width: 0; } /* fieldset по умолчанию не сжимается уже содержимого */
.co-choices > .co-choice { min-width: 0; }
/* узкая форма (компьютер ~1000-1200 px) - карточки оплаты одна под другой, чтобы логотипу и тексту хватало места */
.co-form { container-type: inline-size; }
@container (max-width: 559px) { .co-choices { grid-template-columns: 1fr; } }
.ftr__pay .pay-logo--applepay-mark { height: 26px; } /* официальный знак Apple Pay (Apple, 2019): чёрная плашка - одна версия для обеих тем */
.ftr__pay .pay-logo--googlepay-mark { height: 26px; } /* официальный знак Google Pay (Google Pay Acceptance Mark) */

/* =========================================================
   Личный кабинет ученика (views/cabinet, app/cabinet*.php)
   ========================================================= */
.hdr__cab[aria-current] { border-color: var(--blue); color: var(--blue-ink); }
.cab-auth { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 70%); }
.cab-auth__card { max-width: 460px; margin: 0 auto; padding: 28px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.cab-auth__card h1 { margin-bottom: 18px; }
.cab-auth__lead { margin: 0 0 16px; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.cab-form { display: grid; gap: 14px; }
.cab-auth__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; margin-top: 16px; font-size: .9rem; }
.cab-auth__links a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue-ink); }
.cab-auth__links .i { width: 16px; height: 16px; }
.cab-auth__hint { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.cab-auth__hint a { color: var(--blue-ink); }
.cab-code { font-size: 1.6rem !important; letter-spacing: .4em; text-align: center; }
.cab-note { margin: 0 0 14px; padding: 11px 14px; border-radius: var(--r); background: var(--tint-blue); font-size: .9rem; line-height: 1.45; }
.cab-note--err { background: rgba(196, 106, 82, .12); color: var(--ink); border-left: 3px solid #C46A52; }
.cab-note--dev { background: var(--tint-yellow); border-left: 3px solid var(--yellow); }
.cab-note--top { margin-top: 16px; }
.cab-bar { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cab-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; flex-wrap: wrap; }
.cab-bar__home { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-head); font-size: 1.05rem; text-decoration: none; }
.cab-bar__home .i { color: var(--blue-ink); }
.cab-bar__nav { display: flex; align-items: center; gap: 4px 16px; font-size: .9rem; flex-wrap: wrap; }
.cab-bar__nav a, .cab-bar__nav button { color: var(--muted); text-decoration: none; font: inherit; }
.cab-bar__nav a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--yellow); }
.cab-bar__nav form { margin: 0; }
.cab h1 { margin-bottom: 18px; }
.cab-empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: var(--r); display: grid; gap: 14px; justify-items: start; color: var(--muted); }
.cab-courses { display: grid; gap: 14px; }
@media (min-width: 760px) { .cab-courses { grid-template-columns: 1fr 1fr; } }
.cab-course { display: grid; gap: 8px; justify-items: start; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--yellow); border-radius: var(--r); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.cab-course:hover { border-color: var(--blue); transform: translateY(-2px); }
.cab-course .kicker { margin: 0; }
.cab-course__title { font-family: var(--f-head); font-size: 1.4rem; line-height: 1.2; }
.cab-course__sub { color: var(--muted); font-size: .92rem; }
.cab-course__meta { margin: 0; font-size: .82rem; color: var(--muted); }
.cab-course .btn { margin-top: 6px; }
.cab-progress { display: block; width: 100%; height: 6px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.cab-progress > span { display: block; height: 100%; background: var(--blue); border-radius: 6px; }
.cab-progress--lg { height: 8px; max-width: 420px; margin: 14px 0 6px; }
.cab-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.cab-head h1 { margin: 0; }
.cab-extras { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.cab-module { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.cab-module__title { margin: 0; padding: 14px 18px; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
.cab-module__title span { display: block; font-family: var(--f-body); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 2px; }
.cab-lessons { list-style: none; margin: 0; padding: 6px; }
.cab-lessons a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.cab-lessons a:hover { background: var(--surface-2); }
.cab-lessons__mark { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.cab-lessons__mark .i { width: 15px; height: 15px; }
.cab-lessons .is-done .cab-lessons__mark { background: var(--blue); color: #fff; }
.cab-lessons .is-current a { background: var(--tint-blue); }
.cab-lessons--sm a { padding: 7px 8px; font-size: .88rem; }
.cab-lessons--sm .cab-lessons__mark { width: 24px; height: 24px; }
.cab-help { margin: 28px 0 0; font-size: .85rem; color: var(--muted); }
.cab-help a { color: var(--blue-ink); }
.cab-lesson__grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .cab-lesson__grid { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .cab-lesson__side { position: sticky; top: calc(var(--hdr-h) + 16px); } }
.cab-lesson h1 { margin: 0 0 18px; }
.cab-player { position: relative; margin: 0 0 22px; background: #000; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; user-select: none; -webkit-user-select: none; }
.cab-player video { display: block; width: 100%; height: 100%; background: #000; }
.cab-player__err { position: absolute; inset: auto 12px 12px; margin: 0; padding: 10px 12px; background: rgba(0, 0, 0, .75); color: #fff; font-size: .85rem; border-radius: 4px; }
.cab-wm { position: absolute; z-index: 2; pointer-events: none; color: rgba(255, 255, 255, .32); font: 600 13px/1 Arial, sans-serif; text-shadow: 0 0 2px rgba(0, 0, 0, .5); transition: opacity 1s; white-space: nowrap; }
.cab-lesson__body { margin: 0 0 22px; }
.cab-files { display: grid; gap: 8px; margin: 0 0 22px; }
.cab-files h2 { margin-bottom: 4px; }
.cab-file { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: var(--surface); }
.cab-file:hover { border-color: var(--blue); }
.cab-file .i { color: var(--blue-ink); }
.cab-file span { flex: 1; }
.cab-file small { color: var(--faint); }
.cab-lesson__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.cab-lesson__foot form { margin: 0; }
.cab-lesson__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.cab-toc { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 6px 10px 10px; }
.cab-toc summary { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px; cursor: pointer; font-family: var(--f-head); font-size: 1.05rem; list-style: none; }
.cab-toc summary::-webkit-details-marker { display: none; }
.cab-toc[open] summary .i { transform: rotate(180deg); }
.cab-toc__mod { margin: 10px 4px 2px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.cab-panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0 0 16px; justify-items: start; }
.cab-panel .field { width: 100%; }
.cab-devices { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.cab-devices li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.cab-devices li span { flex: 1; }
.cab-devices small { color: var(--faint); }
.order__cab { display: grid; gap: 12px; margin: 18px 0; padding: 18px; border: 1px solid var(--blue); border-radius: var(--r); background: var(--tint-blue); }
.order__cab p { margin: 0; display: flex; gap: 8px; align-items: center; }
.order__cab p .i { color: var(--blue-ink); }
/* поля кабинета - как на оформлении */
.cab-form .field label { font-size: .86rem; letter-spacing: .02em; color: var(--ink); }
.cab-form .field input { min-height: 52px; border-radius: var(--r); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.cab-form .input-ic input { padding-left: 46px; }
.cab-form .field input:hover { border-color: var(--blue); }
.cab-form .field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgb(var(--blue-rgb) / .22); }

/* =========================================================
   ГРУППЫ КУРСОВ (2026-10-09): «Стартові курси» и «Основні курси» на «Програмах»,
   «лестница» на 4 ступени, страница курса «Запуск мови»
   ========================================================= */
.line-head { display: grid; gap: 4px; margin: 0 0 16px; }
.line-head .muted { margin: 0; font-size: .95rem; }
.plans--main { row-gap: 30px; } /* тарифы друг под другом (без переключателя): место для значка «Найпопулярніший» */
.plans--start + .line-head { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
@media (min-width: 1000px) {
  .line-head { grid-template-columns: auto 1fr; align-items: baseline; gap: 24px; }
  .plans.plans--start { grid-template-columns: 1fr 1fr; }
  .plans.plans--main { grid-template-columns: repeat(3, 1fr); }
  .ladder { grid-template-columns: repeat(4, 1fr); }
  .ladder .step { padding-right: 24px; display: flex; flex-direction: column; gap: 6px; }
  .ladder .step__foot { margin-top: auto; padding-top: 14px; }
}
.lesson-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0 !important; font-size: .85rem; color: var(--faint); }
.lesson-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lesson-meta .i { width: 16px; height: 16px; color: var(--accent-ink); }
.offer__note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; }
.offer__note .i { flex: none; margin-top: 3px; color: var(--yellow); }
.offer__note a { white-space: nowrap; }
/* «Програми»: что входит в курс цифрами (plan_facts()) - список с иконками в 2 колонки */
.plan .plan__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); list-style: none; }
.plan .plan__facts li { display: flex; align-items: center; gap: 9px; font-size: .86rem; line-height: 1.3; color: var(--muted); }
.plan .plan__facts li .i { flex: none; width: 17px; height: 17px; margin: 0; color: var(--accent-ink); stroke-width: 1.8; }
.plan .plan__facts b { font-weight: 600; color: var(--ink); }
.plan .plan__plus { margin-top: -6px; padding: 12px 14px; border-radius: var(--r); background: rgb(var(--yellow-rgb) / .12); border: 1px solid rgb(var(--yellow-rgb) / .45); }
.plan .plan__plus p { margin: 0 0 8px; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-ink); }
.plan .plan__plus .plan__facts { grid-template-columns: 1fr; padding: 0; border: 0; gap: 7px; }
.plan .plan__plus .plan__facts li { color: var(--ink); }
/* Страница заказа: оплата WayForPay (app/payment.php) */
.order__pay form { margin: 4px 0 0; }
.order__err, .order__wait { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r); font-size: .92rem; }
.order__err { background: rgb(214 79 79 / .1); border: 1px solid rgb(214 79 79 / .35); }
.order__wait { background: var(--tint-yellow); border: 1px solid var(--line); }
.order__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; margin: 12px 0 0; }
.order__logos .pay-logo { height: 20px; width: auto; }

/* =========================================================
   КАБИНЕТ: меню слева, как в админке (views/cabinet/_bar.php + _end.php)
   ========================================================= */
.cab-top { display: none; }
.cab-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 56px; }
.cab-side { position: sticky; top: calc(var(--hdr-h) + 20px); display: grid; gap: 14px; max-height: calc(100vh - var(--hdr-h) - 40px); overflow-y: auto; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.cab-side__close, .cab-backdrop { display: none; }
.cab-side__me { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cab-side__ava { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); color: var(--navy); font-family: var(--f-head); font-size: 1.1rem; }
.cab-side__who { display: grid; min-width: 0; font-size: .9rem; line-height: 1.3; }
.cab-side__who small { color: var(--muted); font-size: .76rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cab-side__nav { display: grid; gap: 2px; }
.cab-side__nav form { margin: 0; }
.cab-side__group { margin: 12px 0 4px; padding: 0 10px; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.cab-side__link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; font-size: .92rem; text-align: left; text-decoration: none; cursor: pointer; }
.cab-side__link .i { width: 17px; height: 17px; color: var(--muted); }
.cab-side__course { display: grid; gap: 5px; padding: 9px 10px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.cab-side__cp { display: flex; align-items: center; gap: 8px; }
.cab-side__cp .cab-progress { height: 4px; }
.cab-side__cp small { flex: none; font-size: .72rem; color: var(--muted); }
.cab-side__link:hover, .cab-side__course:hover { background: var(--surface-2); }
.cab-side__link[aria-current], .cab-side__course[aria-current] { background: var(--tint-yellow); box-shadow: inset 3px 0 0 var(--yellow); }
.cab-side__help { margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); line-height: 1.5; }
.cab-side__help a { color: var(--blue-ink); }
.cab-main { min-width: 0; }
.cab-main > .cab-note { margin-bottom: 16px; }
.cab-page--narrow { max-width: 640px; }
.cab-courses { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cab-course { padding: 18px; }
.cab-course__title { font-size: 1.2rem; }
.cab-lesson .crumbs a { display: inline-flex; align-items: center; gap: 6px; }
.cab-lesson .crumbs .i { width: 15px; height: 15px; }
@media (min-width: 1000px) { .cab-lesson__grid { grid-template-columns: minmax(0, 1fr); } .cab-lesson__side { position: static; } }
@media (min-width: 1240px) { .cab-lesson__grid { grid-template-columns: minmax(0, 1fr) 280px; } .cab-lesson__side { position: sticky; top: calc(var(--hdr-h) + 20px); } }
@media (max-width: 999px) {
  .cab-top { display: block; position: sticky; top: var(--hdr-h); z-index: 20; background: var(--surface-2); border-bottom: 1px solid var(--line); }
  .cab-top__in { display: flex; align-items: center; gap: 10px; min-height: 50px; }
  .cab-top__menu { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
  .cab-top__title { font-family: var(--f-head); font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cab-shell { display: block; padding-top: 18px; }
  .cab-side { position: fixed; z-index: 120; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); max-height: none; border-radius: 0; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: var(--shadow); }
  .cab-side__close { display: grid; place-items: center; justify-self: end; width: 36px; height: 36px; margin: -6px -6px -10px 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .cab-backdrop { position: fixed; z-index: 110; inset: 0; background: rgb(0 0 0 / .45); }
  .cab-shell.is-open .cab-side { transform: none; }
  .cab-shell.is-open .cab-backdrop { display: block; }
}

/* Подвал в кабинете ученика - одна строка (views/partials/footer.php, route cabinet) */
.ftr--mini { padding: 14px 0; }
.ftr__mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: .8rem; color: var(--faint); }
.ftr__mini .ftr__docs { gap: 6px 18px; }
.ftr__mini .ftr__docs a, .ftr__mini .ftr__cookie { font-size: .8rem; }
.ftr__mini .ftr__langs { margin-left: auto; }
.ftr__mini .ftr__langs a { padding: 3px 10px; font-size: .74rem; }
@media (max-width: 699px) { .ftr__mini .ftr__langs { margin-left: 0; } }

/* Файлы урока в кабинете: тип · название и размер · «Відкрити» / «Завантажити» (views/cabinet/lesson.php) */
.cab-file { flex-wrap: wrap; gap: 10px 14px; }
.cab-file:hover { border-color: var(--line); }
.cab-file__ext { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; font: 700 .7rem/1 system-ui, sans-serif; letter-spacing: .04em; color: var(--navy); background: color-mix(in srgb, var(--blue) 30%, var(--surface)); }
.cab-file .cab-file__name { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.cab-file__name small { color: var(--faint); font-size: .8rem; }
.cab-file__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.cab-file__btns .btn { --h: 40px; padding: 0 14px; }
.cab-file__btns .i { width: 17px; height: 17px; }
@media (max-width: 599px) { .cab-file__btns { width: 100%; } .cab-file__btns .btn { flex: 1; } }
.cab-file__btns { flex: none; flex-wrap: nowrap; }
.cab-file__btns .btn { white-space: nowrap; }
.cab-file__btns .i { color: currentColor; }
.cab-file__ext { color: var(--ink); background: color-mix(in srgb, var(--blue) 26%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent); }
@media (max-width: 599px) { .cab-file__btns { flex: 1 1 100%; } }
.cab-file .cab-file__ext, .cab-file .cab-file__btns { flex: none; }
.cab-file .cab-file__btns .btn > span, .cab-file .cab-file__btns span { flex: none; }
@media (max-width: 599px) { .cab-file .cab-file__btns { flex: 1 1 100%; } }

/* Окно «Особиста консультація - в тарифі Platinum» вместо Telegram Алины (partials/tg-gate.php) */
.tg-gate .modal__panel { max-width: 480px; }
.tg-gate__text { margin: 12px 0 22px; color: var(--ink); line-height: 1.6; }
.tg-gate__btns { display: grid; gap: 10px; }
.tg-gate__support { display: flex; gap: 10px; align-items: flex-start; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.tg-gate__support .i { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.tg-gate__support a { color: var(--ink); }

/* Кабинет: групповой чат для Gold/Platinum и связь с Алиной только для Platinum */
.cab-side__actions { display: grid; gap: 8px; margin: 14px 0 0; }
.cab-side__action { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); color: var(--navy); text-decoration: none; }
.cab-side__action--chat { background: color-mix(in srgb, var(--blue) 58%, var(--surface)); }
.cab-side__action--chat:hover { background: color-mix(in srgb, var(--blue) 72%, var(--surface)); }
.cab-side__action--alina { background: var(--yellow); }
.cab-side__action--alina:hover { background: color-mix(in srgb, var(--yellow) 85%, #fff); }
.cab-side__action .i { flex: none; width: 20px; height: 20px; }
.cab-side__action span { display: flex; flex-direction: column; line-height: 1.25; }
.cab-side__action small { font-size: .78rem; opacity: .8; }
/* Ukrainian Business Award (uba.png, золотой - одна версия для обеих тем) */
.media-strip__item .media-logo--uba { height: 30px; }
.media-card__logo .media-logo--uba { max-height: 44px; }

/* ===== Признание: Ukrainian Business Award (award_badge / award_block в blocks.php) =====
   Фирменные цвета премии: чёрный + золотой градиент как у их логотипа (одинаково в обеих темах). */
:root { --uba-gold: linear-gradient(135deg, #8E6A35 0%, #D8C08E 45%, #B39A6A 70%, #CDB27C 100%); --uba-black: #0D0D0C; }
/* значок на первом экране главной */
.award-badge { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 7px 18px 7px 7px; border-radius: 999px; text-decoration: none; color: #fff;
  border: 1px solid transparent; background: linear-gradient(var(--uba-black), var(--uba-black)) padding-box, var(--uba-gold) border-box;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .7); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.award-badge:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -14px rgba(216, 192, 142, .45); }
.award-badge__medal { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid transparent; background: radial-gradient(circle at 35% 30%, #2A2620, #0D0D0C 70%) padding-box, var(--uba-gold) border-box; }
.award-badge__medal img { width: 24px; height: auto; }
.award-badge__t { display: flex; flex-direction: column; line-height: 1.2; }
.award-badge__t b { font: 600 .74rem/1.2 system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; background: var(--uba-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.award-badge__t small { font-size: .86rem; color: rgba(255, 255, 255, .8); margin-top: 3px; }

/* значок крупнее (2026-10-10: «на главной незаметно») */
.award-badge { gap: 14px; margin-top: 26px; padding: 9px 20px 9px 9px; box-shadow: 0 0 0 4px rgba(216, 192, 142, .08), 0 14px 36px -14px rgba(216, 192, 142, .4); }
.award-badge__medal { width: 54px; height: 54px; border-width: 2px; }
.award-badge__medal img { width: 30px; }
.award-badge__t b { font-size: .86rem; letter-spacing: .16em; }
.award-badge__t small { font-size: 1rem; color: #fff; margin-top: 4px; }
.award-badge__go { display: grid; place-items: center; width: 30px; height: 30px; margin-left: 4px; border-radius: 50%; border: 1px solid rgba(216, 192, 142, .45); color: #D8C08E; }
.award-badge__go .i { width: 15px; height: 15px; transition: transform .2s; }
.award-badge:hover .award-badge__go .i { transform: translateX(2px); }
@media (max-width: 599px) { .award-badge { display: flex; } .award-badge__t { flex: 1; } .award-badge__t small { font-size: .9rem; } }

/* карточка на «Про Аліну»: компактно, в сетке страницы (2026-10-10: «слишком крупно») */
.award-sec { padding: 0 0 calc(var(--sec) * .6); }
.award { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; padding: 20px 22px; border-radius: var(--r); color: #fff;
  border: 1px solid transparent; background: radial-gradient(70% 120% at 0% 50%, rgba(216, 192, 142, .13), transparent 60%) padding-box, linear-gradient(var(--uba-black), var(--uba-black)) padding-box, var(--uba-gold) border-box; }
.award__ring { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; border: 2px solid transparent;
  background: radial-gradient(circle at 35% 30%, #2B2720, #0D0D0C 68%) padding-box, var(--uba-gold) border-box; box-shadow: 0 10px 30px -14px rgba(216, 192, 142, .5); }
.award__ring img { width: 46px; height: auto; }
.award__eyebrow { display: block; margin: 0 0 6px; font: 600 .66rem/1.3 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #D8C08E; }
.award__title { margin: 0; font-family: var(--f-head); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.25; color: #fff; }
.award__lead { margin: 8px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .75); line-height: 1.55; max-width: 70ch; }
.award__lead strong { color: #fff; font-weight: 600; }
.award__link { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; color: #D8C08E; text-decoration: none; font-size: .86rem; }
.award__link .i { width: 15px; height: 15px; transition: transform .2s; }
.award__link:hover span { text-decoration: underline; text-underline-offset: .2em; }
.award__link:hover .i { transform: translateX(3px); }
@media (max-width: 599px) { .award { grid-template-columns: 1fr; text-align: left; } .award__ring { width: 64px; height: 64px; } .award__ring img { width: 36px; } }
@media (min-width: 900px) { .award { grid-template-columns: auto 1fr auto; padding: 22px 28px; } .award__link { grid-column: auto; justify-self: end; white-space: nowrap; } }

/* Отзыв: о каком курсе (views/partials/blocks.php → reviews_rail). Подпись + «металлический» значок тарифа (2026-10-10, без лаванды) */
.rcard__prod { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0 0 10px; text-decoration: none; }
.rcard__prod-l { font: 600 .64rem/1 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.rcard__prod b { display: inline-block; padding: 5px 11px 4px; border-radius: 3px; font: 700 .7rem/1 system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #1A2620;
  background: var(--chip, linear-gradient(135deg, #CFE3D3, #9CC6A5)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 2px rgba(0, 0, 0, .12); transition: filter .2s; }
.rcard__prod:hover b { filter: brightness(1.06); }
.rcard__prod--silver { --chip: linear-gradient(135deg, #EEF1F3 0%, #C3CAD0 45%, #E4E8EB 70%, #A9B2BA 100%); }
.rcard__prod--gold { --chip: linear-gradient(135deg, #F3E2AE 0%, #D6B465 45%, #EED79A 70%, #B8923F 100%); }
.rcard__prod--platinum { --chip: linear-gradient(135deg, #F7F6F2 0%, #D9D6CE 45%, #F1EFEA 70%, #B9B5AB 100%); }
.rcard__prod--express, .rcard__prod--speech { --chip: linear-gradient(135deg, #DCEBDF 0%, #A9CDB0 55%, #82B98C 100%); }

/* Оформление: «або карткою» - WayForPay (monobank убран 2026-10-10) */
.co-card { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--surface); }
.co-card__brand { flex: none; display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 6px; background: #fff; }
.co-card__brand .pay-logo { height: 19px; }
.co-card__t { flex: 1 1 200px; display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); }
.co-card__t .i { width: 16px; height: 16px; flex: none; }
.co-card .co-note__cards { display: inline-flex; align-items: center; gap: 10px; }
.co-xpay:has(> :only-child) .xpay { flex: 1; }

/* ===================== ЛЕНДИНГ ДЛЯ РЕКЛАМЫ META (2026-10-14, /lending/) =====================
   Шапка - короткая (.hdr--lp); нижнее меню на телефоне - как на всём сайте (с 2026-10-14, по просьбе пользователя). */
.hdr--lp .lp-hdr-cta { display: inline-flex; }
@media (max-width: 420px) { .hdr--lp .logo__sub { display: none; } .hdr--lp .lp-hdr-cta { padding-inline: 12px; font-size: .82rem; } }
@media (max-width: 359px) { .hdr--lp .lp-hdr-cta { display: none; } }

/* Первый экран: текст + фото в рамке (с 1000 px - две колонки; на телефоне фото не показываем, есть аватар) */
.lp-hero__in { display: grid; gap: 28px; padding-block: 28px 36px; }
.lp-hero__title { font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.5rem); line-height: 1.1; max-width: 18ch; }
.lp-hero__accent { display: block; color: var(--mint); }
.lp-pricebox { margin-top: 22px; }
.lp-pricebox .btn { flex: 1 1 260px; justify-content: center; }
.lp-hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 16px; }
.lp-hero__links .lp-hero__guide { margin-top: 0; }
.lp-hero__more { --h: 46px; padding: 0 18px; font-size: .95rem; }
.lp-hero__more .i { width: 18px; height: 18px; }
.lp2-hero__more-btn { margin-top: 18px; }
.hdr__lp-more { display: none; margin-right: 6px; font-size: .92rem; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); white-space: nowrap; }
.hdr__lp-more:hover { text-decoration-color: currentColor; }
@media (min-width: 760px) { .hdr__lp-more { display: inline; } }
.lp-hero__guide { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--deep-muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }
.lp-hero__guide:hover { color: #fff; }
.lp-hero__guide .i { color: var(--mint); width: 18px; height: 18px; }
.lp-hero__who { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--deep-line); }
.lp-hero__photo { display: none; }
@media (min-width: 1000px) {
  .lp-hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 64px; align-items: center; padding-block: 56px 64px; }
  .lp-hero__photo { display: block; position: relative; padding: 0 16px 16px 0; }
  .lp-hero__frame { aspect-ratio: 4 / 5; }
  .lp-hero__badge { position: absolute; left: -28px; bottom: 34px; margin: 0; z-index: 2; }
  .lp-hero__badge .award-badge__medal { width: 44px; height: 44px; }
  .lp-hero__badge .award-badge__medal img { width: 26px; }
}

/* Заголовки разделов */
.lp-head { display: grid; gap: 8px; margin-bottom: 24px; }
.lp-head .lead { margin-top: 4px; }
.lp-head--center { text-align: center; justify-items: center; }
.lp-head--center .lead { margin-inline: auto; }

/* «Упізнаєте себе?» */
.lp-pains__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-pains__list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); line-height: 1.5; }
.lp-pains__list .i { width: 22px; height: 22px; margin-top: 2px; color: var(--blue-ink); }
.lp-bridge { display: grid; grid-template-columns: 28px 1fr; gap: 12px; margin: 22px 0 0; padding: 18px 18px; border-left: 3px solid var(--yellow); background: var(--tint-yellow); border-radius: 0 var(--r) var(--r) 0; font-size: 1.06rem; line-height: 1.55; }
.lp-bridge .i { width: 22px; height: 22px; margin-top: 3px; color: var(--yellow-ink); }
@media (min-width: 760px) { .lp-pains__list { grid-template-columns: 1fr 1fr; } .lp-pains__list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* «Як це працює» - 3 шага */
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.lp-steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 2px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); }
.lp-steps__n { grid-row: span 2; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--tint-blue); color: var(--blue-ink); font-family: var(--f-head); font-size: 1.3rem; }
.lp-steps b { font-family: var(--f-head); font-weight: 400; font-size: 1.12rem; line-height: 1.3; }
.lp-steps li > span:last-child { color: var(--muted); font-size: .95rem; line-height: 1.45; }
@media (min-width: 760px) { .lp-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } .lp-steps li { grid-template-columns: 1fr; padding: 22px; } .lp-steps__n { grid-row: auto; margin-bottom: 10px; } }

/* Предложение */
.lp-offer .offer__buy { margin-top: 18px; }
.lp-langnote { margin: 10px 0 0; font-size: .82rem; line-height: 1.45; color: var(--muted); text-align: center; }

/* Об Алине */
.lp-about__in { display: grid; gap: 30px; align-items: center; }
.lp-about__frame { aspect-ratio: 4 / 5; max-width: 340px; width: calc(100% - 16px); }
.lp-quote { margin: 14px 0; padding: 0; font-family: var(--f-head); font-size: clamp(1.1rem, 1rem + .6vw, 1.4rem); line-height: 1.45; }
.lp-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; }
.lp-trust .i { width: 18px; height: 18px; color: var(--blue-ink); }
.lp-media { margin-top: 24px; }
.lp-media:hover { border-color: var(--line); }
@media (min-width: 900px) { .lp-about__in { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 56px; } }

/* Гайд */
.lp-guide__box { margin: 0; }
.lp-guide__cover { display: block; width: 150px; height: auto; border-radius: 4px; box-shadow: var(--shadow); }
.lp-guide__points { list-style: none; margin: 12px 0 16px; padding: 0; display: grid; gap: 8px; }
.lp-guide__points li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .95rem; line-height: 1.45; }
.lp-guide__points .i { width: 18px; height: 18px; margin-top: 3px; color: var(--blue-ink); }
@media (min-width: 760px) { .lp-guide__box { grid-template-columns: 220px 1fr; gap: 32px; padding: 32px; align-items: start; } .lp-guide__cover { width: 100%; } }

/* Тарифы: 3 в ряд с 1000 px (как на «Програмах») */
#plans .lp-head { margin-bottom: 34px; }

/* Кнопка «Більше курсів» под тарифами → «Програми» */
.lp-more { display: flex; justify-content: center; margin: 34px 0 0; }

/* Финальный призыв */
.lp-final__actions { align-items: center; }
.lp-final .price__main { color: #fff; }
.lp-final .price__old { color: rgba(255, 255, 255, .65); }
.lp-final .price__alt { color: rgba(255, 255, 255, .78); }
@media (min-width: 1000px) { .lp-final .final__in { grid-template-columns: 1fr auto; align-items: center; } }

/* Лендинг, вариант 2 (/lending2/): первый экран - гайд. Телефон: заголовок → форма → «что внутри»; компьютер: текст слева, обложка и форма справа */
.lp2-hero__in { display: grid; gap: 22px; padding-block: 26px 36px; }
.lp2-hero__head { position: relative; }
.lp2-hero__cover { display: none; }
.lp2-form { width: 100%; padding: 18px; background: var(--surface); color: var(--ink); border-radius: var(--r); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.lp2-form__title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-family: var(--f-head); font-size: 1.15rem; line-height: 1.3; }
.lp2-form__title { gap: 12px; }
.lp2-form__cover { width: 44px; height: auto; flex: none; border-radius: 2px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .5); transform: rotate(-3deg); }
@media (min-width: 1000px) { .lp2-form__cover { display: none; } }
.lp2-form .guide-form { gap: 12px; }
.lp2-hero__more .guide-meta { margin-top: 0; text-transform: uppercase; }
.lp2-next__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 14px; }
.lp2-next__sub { margin: 26px 0 10px; font-family: var(--f-head); font-size: 1.15rem; }
.lp2-next__sub b { font-weight: 400; }
@media (min-width: 1000px) {
  .lp2-hero__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); grid-template-areas: "head side" "more side"; column-gap: 64px; row-gap: 18px; align-items: start; padding-block: 56px 64px; }
  .lp2-hero__head { grid-area: head; }
  .lp2-hero__side { grid-area: side; display: grid; justify-items: center; gap: 22px; }
  .lp2-hero__more { grid-area: more; }
  .lp2-hero__cover { display: block; width: 180px; }
  .lp2-form { max-width: 460px; padding: 24px; }
}
