/*
 * Промо-сайт «Пенала» — svoyurok.ru.
 *
 * С 27 сентября 2026 — по концепту «modern»: та же палитра холста
 * (бумага, хвоя, ночная хвоя, шалфей, кедр) и те же шрифты, но крупнее
 * типографика, асимметричные скругления и тёмная интерактивная сцена
 * «один день» вместо тёмного раздела о доверии. Решение владельца —
 * сайт казался скучным после первых двух экранов.
 *
 * Что не меняется: без градиентов, стекла, свечений и параллакса;
 * движение сдержанное; при «уменьшить движение» всё сразу.
 */

:root {
  --paper: #F6F2EA;
  --sheet: #FFFDF8;
  --white: #FFFFFF;
  --ink: #1E221F;
  --ink-2: #3F443F;
  --muted: #62665F;          /* 5,2 : 1 на бумаге */
  --pine: #2F5D50;
  --night: #17302A;
  --sage: #DDE6E0;
  --line: #D8D1C5;
  --line-soft: #E3DED5;
  --cedar: #A8672F;
  --planned: #284C72;  --planned-soft: #E8EEF5;
  --done: #2F5D50;     --done-soft: #E5EDE9;

  --serif: Literata, Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --page: min(1248px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.62 var(--sans); -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a, .btn, .tab, .linklike { transition: color .16s var(--ease), background-color .16s var(--ease), border-color .16s var(--ease); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--cedar); outline-offset: 4px; border-radius: 4px; }

.wrap { width: var(--page); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; margin: 0; }
h1 { font-size: clamp(42px, 6.15vw, 84px); line-height: 1.03; max-width: 790px; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.2vw, 31px); line-height: 1.18; }
p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 650px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--pine); }
.micro { font-size: 14px; line-height: 1.45; color: var(--muted); max-width: 320px; }
.num { font-variant-numeric: tabular-nums; }

.btn {
  min-height: 54px; padding: 0 25px; border: 1px solid var(--pine); border-radius: 10px;
  background: var(--pine); color: var(--white); text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--night); border-color: var(--night); color: var(--white); }
.btn-sm { min-height: 44px; padding-inline: 18px; }
.btn-outline { background: transparent; color: var(--pine); }
.btn-outline:hover { background: var(--sage); color: var(--night); border-color: var(--pine); }
.text-link { color: var(--pine); font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.text-link:hover { color: var(--night); }
.linklike {
  border: 0; background: none; padding: 0; min-height: 44px; cursor: pointer; color: inherit;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.linklike:hover { color: var(--pine); }

/* ── Шапка ──────────────────────────────────────────────────────── */

.site-head { height: 76px; position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid transparent; }
.site-head.scrolled { border-bottom-color: var(--line); }
.head-inner { height: 100%; display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 21px; font-weight: 600; text-decoration: none; color: var(--ink); }
.brand svg { color: var(--pine); flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 31px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; color: var(--pine); }
.nav a[aria-current="page"] { color: var(--pine); font-weight: 600; }
.nav .btn { min-height: 44px; padding-inline: 18px; color: var(--white); }
.menu-button { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: transparent; border-radius: 8px; color: var(--ink); cursor: pointer; }

/* ── Первый экран ───────────────────────────────────────────────── */

.hero { padding: 58px 0 92px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(440px, .78fr); gap: 76px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.hero-visual { position: relative; padding-left: 28px; padding-bottom: 60px; }
.hero-photo { width: 100%; height: 650px; object-fit: cover; object-position: 50% 38%; border-radius: 120px 18px 18px 18px; }
/* Карточка ложится на край кадра — на пол, не на лицо */
.hero-note {
  position: absolute; left: 0; right: 38px; bottom: 0;
  background: var(--sheet); border: 1px solid var(--line); padding: 22px; border-radius: 14px;
}
.note-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.note-head span { font-size: 14px; color: var(--muted); }
.lesson { display: flex; align-items: center; gap: 16px; }
.lesson time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.lesson strong { font-weight: 600; }
.lesson small { display: block; color: var(--muted); font-size: 14px; }
.badge { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: var(--done-soft); color: var(--pine); font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge.planned { background: var(--planned-soft); color: var(--planned); }

/* Полоса-журнал: три факта, ритмический разрыв после первого экрана */
.ledger { border-block: 1px solid var(--line); background: var(--sheet); }
.ledger-row { display: grid; grid-template-columns: repeat(3, 1fr); }
.ledger-item { padding: 27px 32px; display: flex; align-items: center; gap: 17px; border-right: 1px solid var(--line); }
.ledger-item:last-child { border-right: 0; }
.ledger-icon { font: 500 29px/1 var(--serif); color: var(--pine); min-width: 40px; text-align: center; }
.ledger-item b { display: block; font-size: 16px; }
.ledger-item span { font-size: 14px; color: var(--muted); }

/* ── Узнавание ──────────────────────────────────────────────────── */

.recognition { padding: 124px 0; }
.recognition-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 88px; align-items: center; }
.desk-photo { width: 100%; height: 590px; object-fit: cover; border-radius: 16px 100px 16px 16px; }
.recognition-copy { display: grid; gap: 28px; max-width: 680px; }
.recognition-copy p { font-size: 20px; line-height: 1.68; color: #454A45; }
.handline { width: 128px; height: 13px; color: var(--cedar); }

/* ── Один день: тёмная интерактивная сцена ──────────────────────── */

.day { background: var(--night); color: var(--paper); padding: 112px 0; }
.day-head { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; align-items: end; margin-bottom: 56px; }
.day h2 { color: var(--paper); }
.day .eyebrow { color: #A8C2B8; margin-bottom: 12px; }
.day .lead { color: #C7D4CE; max-width: 600px; }
.day :focus-visible { outline-color: #E8C9A6; }
.day-stage {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  border: 1px solid #BDC9C3; background: var(--sheet); color: var(--ink); border-radius: 18px; overflow: hidden;
}
.schedule { padding: 34px; border-right: 1px solid var(--line); background: var(--white); }
.stage-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; }
.stage-title span { color: var(--muted); font-size: 14px; }
.slot { display: grid; grid-template-columns: 54px 1fr auto; gap: 14px; align-items: center; padding: 17px 0; border-top: 1px solid var(--line-soft); }
.slot time { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.slot b { font-weight: 600; }
.slot small { display: block; color: var(--muted); font-size: 14px; }
.status { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--planned-soft); color: var(--planned); white-space: nowrap; font-weight: 600; }
.status.done { background: var(--done-soft); color: var(--pine); }
.action-button {
  width: 100%; min-height: 50px; margin-top: 22px; border: 1px solid var(--pine);
  background: var(--pine); color: var(--white); border-radius: 9px; font-weight: 600; cursor: pointer;
}
.action-button:hover { background: var(--night); }
.action-button[disabled] { color: #52645C; background: #E1E8E4; border-color: #C7D2CC; cursor: default; }
.scene-help { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 14px; }
.scene-help .linklike { min-height: 0; color: var(--pine); font-weight: 600; }
.events { padding: 34px 42px; display: grid; grid-template-rows: auto 1fr; background: #F2F5F1; }
.student-card { display: grid; grid-template-columns: 1fr auto; align-items: center; padding-bottom: 28px; border-bottom: 1px solid #CFD8D2; }
/* Только подпись под именем — иначе правило ужимало и цифру остатка */
.student-card > div:first-child span { display: block; color: var(--muted); font-size: 14px; }
.balance { font: 600 56px/1 var(--serif); text-align: right; color: var(--pine); font-variant-numeric: tabular-nums; }
.balance small { display: block; font: 400 12px/1.3 var(--sans); color: var(--muted); margin-top: 8px; }
.event-list { list-style: none; margin: 14px 0 0; padding: 0; }
.event { display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid #D9DFDB; align-items: start; transition: opacity .35s var(--ease); }
.event time { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.event b { font-weight: 600; color: var(--pine); white-space: nowrap; }
.event.later { opacity: .55; }
/* Без JS сцена стоит в конечном виде; JS ставит начальное — события тусклые */
.js .event.pending { opacity: .3; }
.event.revealing { animation: reveal-event .45s var(--ease) both; }
@keyframes reveal-event { from { opacity: .2; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Возможности ────────────────────────────────────────────────── */

.tools { padding: 124px 0; }
.tools-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; margin-bottom: 60px; }
.tools-intro .lead { justify-self: end; }
.tool-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 64px; align-items: start; }
.tabs { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.tab {
  appearance: none; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left;
  padding: 19px 0; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.tab strong { font-weight: 500; font-size: 18px; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--pine); }
.tab[aria-selected="true"] strong { font-weight: 600; }
.tab-mark { opacity: 0; color: var(--cedar); }
.tab[aria-selected="true"] .tab-mark { opacity: 1; }
/* Все панели в одной ячейке сетки: подложка по самой высокой панели —
   без мёртвого низа и без прыжков при переключении */
.panels { display: grid; }
.panel {
  /* align-self: start — подложка по своему содержимому; запас под короткой
     панелью остаётся фоном страницы, а не пустым зелёным полем */
  grid-area: 1 / 1; align-self: start; background: var(--sage); border-radius: 16px 76px 16px 16px; padding: 54px;
  display: grid; align-content: start; gap: 32px;
}
.panel[hidden] { display: grid; visibility: hidden; }
.js .panel.shown { animation: panel-in .48s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.panel-copy { max-width: 680px; font-size: 19px; }
.panel .more { color: var(--pine); font-weight: 600; justify-self: start; display: inline-flex; min-height: 44px; align-items: center; }
.product-card { background: var(--sheet); border: 1px solid #CAD4CD; border-radius: 12px; padding: 25px; }
.card-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 23px; }
.card-head span { color: var(--muted); font-size: 14px; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.daycol > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.pill { display: block; background: var(--planned-soft); color: var(--planned); padding: 8px; border-radius: 7px; font-size: 13px; line-height: 1.28; margin-bottom: 6px; }
.pill.mine { background: var(--done-soft); color: var(--pine); font-weight: 600; }
.log-row { display: grid; grid-template-columns: 78px 1fr auto; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.log-row time { font-size: 13px; color: var(--muted); }
.log-row b { font-weight: 600; font-variant-numeric: tabular-nums; }
.plus { color: var(--pine); }
.zero { color: var(--muted); }

/* ── Перенос ────────────────────────────────────────────────────── */

.migration { background: var(--sheet); padding: 124px 0; }
.migration-head { max-width: 840px; margin-bottom: 60px; }
.migration-head h2 { margin-bottom: 24px; }
.migration-stage { display: grid; grid-template-columns: 1fr 140px 1.15fr; align-items: center; gap: 26px; }
.paper-list {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px 30px;
  transform: rotate(-1deg); box-shadow: 4px 5px 0 #E7DFD3;
}
.paper-list small { font-size: 13px; color: var(--muted); display: block; margin-bottom: 12px; }
.paper-list p { font: 500 24px/1.9 var(--serif); border-bottom: 1px solid #DDD3C4; }
.paper-list p:last-child { border-bottom: 0; }
.pencil-path { color: var(--cedar); width: 140px; height: 70px; }
.student-stack { display: grid; gap: 12px; }
.student-stack > small { font-size: 13px; color: var(--muted); }
.student { display: grid; grid-template-columns: 46px 1fr auto; gap: 15px; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: 17px; border-radius: 10px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--pine); font-weight: 600; }
.student b { font-weight: 600; }
.student small { display: block; color: var(--muted); font-size: 14px; }
.student > span:last-child { color: var(--muted); font-size: 13px; }
.migration-note { margin-top: 38px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.migration-note p { color: var(--muted); max-width: 540px; }

/* ── Границы (доверие) и вопросы ────────────────────────────────── */

.boundaries { padding: 106px 0 0; }
.boundary-grid, .qa-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; align-items: start; }
.boundary-grid h2 { margin-top: 12px; }
.boundary-list, .faq { border-top: 1px solid var(--line); }
.boundary { display: grid; grid-template-columns: 32px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.boundary svg { color: var(--pine); margin-top: 3px; }
.boundary b { display: block; font-weight: 600; margin-bottom: 4px; }
.boundary p { color: var(--muted); font-size: 15px; }
.boundary a { color: var(--pine); }
.qa { padding: 106px 0; }
.q { padding: 23px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.q h3 { font-family: var(--sans); font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: 0; }
.q p { color: var(--muted); font-size: 16px; }

/* ── Финал ──────────────────────────────────────────────────────── */

.final { padding: 0 0 76px; }
.final-box {
  background: var(--sage); border-radius: 16px 100px 16px 16px; padding: 78px;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 52px;
}
.final-copy { display: grid; gap: 22px; }
.final-copy p { max-width: 610px; color: #414741; font-size: 19px; }
.final-side { display: grid; gap: 13px; }
.final-side small { color: var(--ink-2); max-width: 260px; font-size: 14px; line-height: 1.45; }

/* ── Подвал ─────────────────────────────────────────────────────── */

.site-foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: flex; gap: 8px 26px; align-items: center; flex-wrap: wrap; }
.foot .brand { color: var(--ink); margin-right: auto; font-size: 17px; }
.foot a:not(.brand), .foot .linklike { display: inline-flex; align-items: center; min-height: 44px; }
.foot a:hover { color: var(--pine); }
.foot-legal { margin: 14px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }

/* ── Страница продукта ─────────────────────────────────────────── */

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.prod-hero { padding: 40px 0 104px; }
.prod-hero .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 76px; align-items: center; }
.prod-hero .copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.prod-hero h1 { font-size: clamp(40px, 5vw, 68px); }
.frame { background: var(--sage); border-radius: 16px 76px 16px 16px; padding: 48px; }
.payments .r { display: flex; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.payments .who { flex-grow: 1; display: flex; flex-direction: column; min-width: 0; }
.payments .who b { font-weight: 600; }
.payments .who span { font-size: 14px; color: var(--muted); }
.payments .sum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.payments .badge { margin-left: 0; }

.how { background: var(--sheet); padding: 124px 0; }
.section-head { display: flex; flex-direction: column; gap: 18px; max-width: 760px; margin-bottom: 60px; }
.how .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 90px; align-items: start; }
.timeline .s { display: flex; gap: 24px; }
.timeline .rail { display: flex; flex-direction: column; align-items: center; width: 16px; flex-shrink: 0; }
.timeline .rail i { width: 14px; height: 14px; border-radius: 50%; background: var(--pine); margin-top: 12px; flex-shrink: 0; }
.timeline .rail u { width: 2px; flex-grow: 1; background: #C9D6CF; text-decoration: none; }
.timeline .body { display: flex; flex-direction: column; gap: 8px; padding-bottom: 40px; }
.timeline .s:last-child .body { padding-bottom: 0; }
.parent-view { display: flex; flex-direction: column; gap: 14px; }
.parent-view .pv { background: var(--paper); border: 1px solid var(--line); border-radius: 16px 60px 16px 16px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.parent-view .from { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.parent-view .amount { display: flex; flex-direction: column; gap: 6px; }
.parent-view .amount b { font: 500 44px/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.parent-view .req { background: var(--white); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.parent-view .req div { display: flex; justify-content: space-between; gap: 16px; }
.parent-view .req span { color: var(--muted); }
.parent-view .req b { font-weight: 600; }

.split { padding: 124px 0; }
.split .grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 88px; align-items: center; }
.split img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px 100px 16px 16px; }
.split .say { display: grid; gap: 22px; }
.split .say p { font-size: 19px; line-height: 1.62; color: #454A45; }

/* ── Уведомление об аналитике ───────────────────────────────────── */

.cookies {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 20px; margin-inline: auto;
  width: min(780px, calc(100% - 32px));
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 12px 32px rgba(23, 48, 42, .12);
  padding: 14px 16px 14px 20px; display: flex; align-items: flex-start; gap: 20px;
  font-size: 15px; line-height: 22px; color: var(--ink-2);
  animation: rise .48s var(--ease) 1.2s both;
}
.cookies[hidden] { display: none; }
.cookies p { flex-grow: 1; }
.cookies a { color: var(--pine); }
.cookies .choice { display: flex; gap: 8px; flex-shrink: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Появление разделов ─────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .48s var(--ease), transform .48s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .photo { opacity: 0; transform: scale(1.02); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .photo.in { opacity: 1; transform: none; }

/* ── Узкие экраны ───────────────────────────────────────────────── */

@media (max-width: 980px) {
  :root { --page: min(100% - 34px, 760px); }
  .site-head { height: 64px; }
  html { scroll-padding-top: 64px; }
  .nav {
    position: fixed; inset: 64px 0 0; background: var(--paper); padding: 32px 24px;
    display: none; flex-direction: column; align-items: stretch; gap: 8px; font-size: 19px;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { min-height: 48px; display: flex; align-items: center; }
  .nav .btn { margin-top: 8px; min-height: 54px; }
  .menu-button { display: grid; place-items: center; }
  .hero { padding-top: 34px; }
  .hero-grid, .recognition-grid, .day-head, .tools-intro, .boundary-grid, .qa-grid, .prod-hero .grid, .how .grid, .split .grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .hero-visual { padding-left: 0; }
  .hero-photo { height: 540px; }
  .hero-note { left: 14px; right: 14px; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 4px; }
  .ledger-item:last-child { border-bottom: 0; }
  .recognition-grid { gap: 42px; }
  .desk-photo { height: 480px; }
  .day-head { gap: 22px; }
  .day-stage { grid-template-columns: 1fr; }
  .schedule { border-right: 0; border-bottom: 1px solid var(--line); }
  .tool-layout { grid-template-columns: 1fr; gap: 28px; }
  .tabs { flex-direction: row; overflow-x: auto; border-top: 0; scrollbar-width: none; padding-bottom: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; padding: 12px 18px; border: 1px solid var(--line); margin-right: 8px; border-radius: 8px; }
  .tab[aria-selected="true"] { border-color: var(--pine); }
  .tab-mark { display: none; }
  .tools-intro .lead { justify-self: start; }
  .migration-stage { grid-template-columns: 1fr; }
  .pencil-path { width: 110px; transform: rotate(90deg); margin: 10px auto; }
  .boundary-grid, .qa-grid, .how .grid, .split .grid, .prod-hero .grid { gap: 40px; }
  .final-box { grid-template-columns: 1fr; }
  .final-side { justify-items: start; }
}

@media (max-width: 600px) {
  :root { --page: calc(100% - 32px); }
  body { font-size: 16px; }
  .hero { padding: 27px 0 67px; }
  .hero-copy { gap: 20px; }
  .hero-actions { display: grid; width: 100%; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { height: 420px; border-radius: 72px 14px 14px 14px; object-position: 50% 30%; }
  .hero-note { padding: 16px; right: 8px; left: 8px; }
  .note-head { margin-bottom: 10px; }
  .recognition, .tools, .migration, .how, .split { padding: 82px 0; }
  .boundaries { padding-top: 82px; }
  .qa { padding: 82px 0; }
  .desk-photo { height: auto; aspect-ratio: 4 / 5; border-radius: 14px 65px 14px 14px; }
  .recognition-copy p { font-size: 18px; }
  .day { padding: 80px 0; }
  .day-stage { margin-inline: -16px; border-radius: 0; border-inline: 0; }
  /* На телефоне в сцене один ученик — история короче и целиком в экране */
  .schedule .slot ~ .slot { display: none; }
  .schedule, .events { padding: 25px 20px; }
  .event { grid-template-columns: 48px 1fr; }
  .event b { grid-column: 2; }
  .tools-intro { margin-bottom: 38px; }
  .panel { padding: 28px 16px; border-radius: 12px 50px 12px 12px; }
  .week { grid-template-columns: repeat(4, 1fr); }
  .migration-head { margin-bottom: 38px; }
  .paper-list { padding: 20px; }
  .paper-list p { font-size: 21px; }
  .student { grid-template-columns: 42px 1fr; }
  .student > span:last-child { display: none; }
  .final-box { padding: 49px 24px; border-radius: 12px 60px 12px 12px; }
  .final-side, .final-side .btn { width: 100%; }
  .foot .brand { width: 100%; }
  .frame { padding: 16px; border-radius: 12px 50px 12px 12px; }
  .payments .r { flex-wrap: wrap; gap: 6px 16px; }
  .payments .who { flex-basis: 100%; }
  .parent-view .pv { padding: 20px; }
  .cookies { flex-direction: column; align-items: stretch; gap: 12px; bottom: 12px; padding: 16px; }
  .cookies .choice .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .photo { opacity: 1; transform: none; transition: none; }
  .js .panel.shown, .event.revealing, .cookies { animation: none; }
  .event { transition: none; }
}
