/* Альманах возможностей Claude. Вариант B: «Линейка рабочего дня».
   Статика без сборки. Шрифты вшиты в css/fonts.css (исходники в fonts/), внешних ресурсов нет.

   Система формы (одна на всю страницу):
     интерактивное (кнопки, чипы, круглые кнопки)  -> пилюля
     контейнеры (карточки, панели, диалог)        -> 20px
     медиа внутри контейнеров                     -> 12px
     плашки времени                               -> 6px (крупная плашка счётчика в финале: 12px)
     отрезки на линейке                           -> 2px
   Акцент один: «вольт». Им отмечено только время и главное действие.
   Рубрики различаются тонким ключом: точка на чипе и цвет заголовка секции (шесть спокойных оттенков).
   Слои: фильтр 15, шапка 20, нижняя панель 30; диалоги живут в top layer. */

:root {
  --bg: #F1F3EC;
  --surface: #FBFCF7;
  --surface-2: #E4E8DC;
  --ink: #12150F;
  --ink-2: #41463B;
  --ink-3: #5A6053;
  --line: rgba(18, 21, 15, .16);
  --line-strong: #12150F;
  --tick: rgba(18, 21, 15, .45);
  --volt: #C6F135;
  --on-volt: #12150F;
  --shadow-btn: 0 8px 18px -8px rgba(48, 66, 0, .55);
  --shadow-btn-up: 0 12px 22px -8px rgba(48, 66, 0, .6);
  --focus: #12150F;
  --hatch: rgba(18, 21, 15, .5);

  /* цвет рубрики: -m — метка (точка, полоска; не ниже 3:1), -t — текст (не ниже 4,5:1 на фоне и на карточке) */
  --rc0-m: #D2622B; --rc0-t: #9C3F13;
  --rc1-m: #3D7BDB; --rc1-t: #1D4E9E;
  --rc2-m: #8A5FD0; --rc2-t: #6A3AAE;
  --rc3-m: #1A978F; --rc3-t: #0A6761;
  --rc4-m: #D14585; --rc4-t: #A82462;
  --rc5-m: #A77D05; --rc5-t: #6F5200;

  --r-box: 20px;
  --r-media: 12px;
  --r-plate: 6px;
  --r-mark: 2px;
  --r-pill: 999px;

  --pad: 16px;
  --maxw: 1320px;
  --font: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Fira Sans XC", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", "DejaVu Sans Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E110B;
    --surface: #171B13;
    --surface-2: #22271C;
    --ink: #EDF0E6;
    --ink-2: #C3C9B8;
    --ink-3: #9AA18F;
    --line: rgba(237, 240, 230, .18);
    --line-strong: #EDF0E6;
    --tick: rgba(237, 240, 230, .5);
    --shadow-btn: 0 8px 18px -8px rgba(0, 0, 0, .8);
    --shadow-btn-up: 0 12px 22px -8px rgba(0, 0, 0, .85);
    --focus: #C6F135;
    --rc0-m: #E8794A; --rc0-t: #F2976A;
    --rc1-m: #6E9BF0; --rc1-t: #93B6FF;
    --rc2-m: #A98BE6; --rc2-t: #C7A8F5;
    --rc3-m: #3FBDB3; --rc3-t: #5ED3C9;
    --rc4-m: #E56AA0; --rc4-t: #F48CBA;
    --rc5-m: #D6A93A; --rc5-t: #E7C25B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E110B;
  --surface: #171B13;
  --surface-2: #22271C;
  --ink: #EDF0E6;
  --ink-2: #C3C9B8;
  --ink-3: #9AA18F;
  --line: rgba(237, 240, 230, .18);
  --line-strong: #EDF0E6;
  --tick: rgba(237, 240, 230, .5);
  --shadow-btn: 0 8px 18px -8px rgba(0, 0, 0, .8);
  --shadow-btn-up: 0 12px 22px -8px rgba(0, 0, 0, .85);
  --focus: #C6F135;
  --rc0-m: #E8794A; --rc0-t: #F2976A;
  --rc1-m: #6E9BF0; --rc1-t: #93B6FF;
  --rc2-m: #A98BE6; --rc2-t: #C7A8F5;
  --rc3-m: #3FBDB3; --rc3-t: #5ED3C9;
  --rc4-m: #E56AA0; --rc4-t: #F48CBA;
  --rc5-m: #D6A93A; --rc5-t: #E7C25B;
  color-scheme: dark;
}

.rc-0 { --rc: var(--rc0-m); --rct: var(--rc0-t); }
.rc-1 { --rc: var(--rc1-m); --rct: var(--rc1-t); }
.rc-2 { --rc: var(--rc2-m); --rct: var(--rc2-t); }
.rc-3 { --rc: var(--rc3-m); --rct: var(--rc3-t); }
.rc-4 { --rc: var(--rc4-m); --rct: var(--rc4-t); }
.rc-5 { --rc: var(--rc5-m); --rct: var(--rc5-t); }

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  padding-bottom: 84px;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

/* до готовности шрифтов страница скрыта (см. скрипт в head); без скриптов метки нет */
.fonts-wait body { visibility: hidden; }

h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, video, iframe, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.nb { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.ic {
  width: 1.15em;
  height: 1.15em;
  max-width: none;
  flex: 0 0 auto;
  display: block;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font: 700 17px/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s;
  -webkit-tap-highlight-color: transparent;
}
.btn .ic { width: 22px; height: 22px; }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--volt);
  color: var(--on-volt);
  border-color: var(--on-volt);
  box-shadow: var(--shadow-btn);
}
.btn--primary:active { box-shadow: none; }

/* тёмная кнопка на вольтовых панелях: цвет не зависит от темы */
.btn--ink {
  background: #12150F;
  color: #F1F3EC;
  border-color: #12150F;
  box-shadow: 0 8px 18px -8px rgba(18, 21, 15, .55);
}
.btn--ink:active { box-shadow: none; }

/* заметная кнопка на странице работы: инверсия фона, в тёмной теме светлая */
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 8px 18px -8px rgba(18, 21, 15, .5);
}
.btn--solid:active { box-shadow: none; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; gap: 8px; }
.btn--sm .ic { width: 19px; height: 19px; }

@media (hover: hover) {
  .btn--primary:hover, .btn--ink:hover, .btn--solid:hover { transform: translateY(-2px); }
  .btn--primary:hover { box-shadow: var(--shadow-btn-up); }
  .btn--ink:hover { box-shadow: 0 12px 22px -8px rgba(18, 21, 15, .6); }
  .btn--solid:hover { box-shadow: 0 12px 22px -8px rgba(18, 21, 15, .55); }
  .btn--ghost:hover { background: var(--surface-2); }
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color .18s, transform .18s var(--ease);
}
.iconbtn .ic { width: 22px; height: 22px; }
.iconbtn:active { transform: scale(.94); }
.iconbtn--solid { background: var(--ink); color: var(--bg); }
.iconbtn--dark { color: #EDF0E6; }
@media (hover: hover) {
  .iconbtn:hover { background: var(--surface-2); }
  .iconbtn--solid:hover { background: var(--ink-2); }
  .iconbtn--dark:hover { background: rgba(237, 240, 230, .16); }
}

/* кнопка со значком и словом: «Поделиться», «Увеличить» */
.tbtn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tbtn { flex: 0 0 auto; }
.tbtn > [data-icon] { display: flex; flex: 0 0 auto; }
.tbtn .ic { width: 22px; height: 22px; }
.tbtn:active { transform: scale(.96); }
.tbtn--dark { color: #EDF0E6; }
.tbtn--dark.is-on { background: #C6F135; color: #12150F; }
@media (hover: hover) {
  .tbtn:hover { background: var(--surface-2); }
  .tbtn--dark:hover { background: rgba(237, 240, 230, .16); }
  .tbtn--dark.is-on:hover { background: #C6F135; }
}

.cta-wrap { display: grid; gap: 12px; justify-items: start; }
.cta-notes { display: grid; gap: 6px; }
.cta-price { font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.cta-price b { font-weight: 800; }
.cta-alt { font-size: 16px; line-height: 1.4; color: var(--ink-2); max-width: 30em; }

/* ---------- Плашка времени и линейка ---------- */

.time {
  display: inline-block;
  padding: .09em .24em .06em;
  border: 2px solid transparent;
  border-radius: var(--r-plate);
  background: var(--volt);
  color: var(--on-volt);
  font: 800 1em/1.02 var(--display);
  font-variant-numeric: lining-nums;
  letter-spacing: .005em;
  text-wrap: balance;
}
.time--approx {
  background: transparent;
  color: var(--ink);
  border: 2px dashed var(--ink);
}
.time--live {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-2);
}
.kind .ic { width: 17px; height: 17px; }
.kind__approx { font: 800 22px/.8 var(--display); width: 17px; text-align: center; }
.kind--live { color: var(--ink); font-weight: 600; }

.ruler { display: grid; gap: 5px; }
.ruler__day {
  position: relative;
  display: block;
  height: 15px;
  border-bottom: 1.5px solid var(--ink);
}
.ruler__day::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--tick) 1.5px, transparent 1.5px) 0 0 / calc((100% - 1.5px) / 8) 100% repeat-x;
  pointer-events: none;
}
.ruler__day i {
  position: absolute;
  left: 0; bottom: 0;
  height: 10px;
  width: max(4px, calc(var(--f, 0) * 100%));
  background-color: var(--volt);
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--r-mark) var(--r-mark) 0 0;
  transform-origin: left center;
}
.ruler--machine i {
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--hatch) 4px 5.5px);
}
.ruler--approx i {
  background-color: transparent;
  border-style: dashed;
}
.ruler--many .ruler__day { height: 10px; }
.ruler--many .ruler__day i { height: 7px; }

.ruler--live .ruler__day { overflow: hidden; }
.ruler--live i {
  width: 18%;
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--hatch) 4px 5.5px);
}

.ruler--big .ruler__day { height: 22px; }
.ruler--big .ruler__day i { height: 15px; }
.ruler--big.ruler--many .ruler__day { height: 14px; }
.ruler--big.ruler--many .ruler__day i { height: 10px; }

.hours {
  position: relative;
  display: block;
  height: 17px;
  margin-top: 5px;
  font-size: 15px;
  line-height: 1;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.hours span { position: absolute; top: 0; left: calc(var(--i) / 8 * 100%); transform: translateX(-50%); white-space: nowrap; }
.hours span:first-child { transform: none; }
.hours span:last-child { transform: translateX(-100%); }

/* ---------- Шапка ---------- */

.top {
  position: relative;
  z-index: 20;
  background: var(--bg);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}
.brand {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 44px;
  font: 800 clamp(18px, 5.3vw, 21px)/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--ink);
  padding-block: 10px;
  text-wrap: balance;
}
.nav { display: none; }
.top__cta { display: none; }

.clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 11px 4px 7px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}
.clock__ic .ic { width: 22px; height: 22px; }
.clock__txt { display: grid; }
.clock__label { font-size: 12px; line-height: 1.1; color: var(--ink-2); white-space: nowrap; }
.clock__time {
  font: 800 19px/1 var(--display);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  white-space: nowrap;
}

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

.hero { padding-block: 14px 44px; }

.hero__title {
  font: 800 clamp(34px, 11vw, 56px)/.98 var(--display);
  letter-spacing: 0;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title mark {
  background: var(--volt);
  color: var(--on-volt);
  padding: 0 .14em;
  margin-inline: -.06em;
  border-radius: var(--r-plate);
}

.hero__row { display: grid; gap: 20px; margin-top: 18px; }
.cta-wrap--hero { gap: 14px; }
.hero__lead { font-size: 18px; line-height: 1.45; color: var(--ink-2); max-width: 34em; }

/* Линейка рабочего дня: на телефоне вертикальная, на широком экране горизонтальная.
   Рельса, шкала часов и подпись лежат в HTML, отрезки добавляет скрипт: высота блока известна заранее,
   поэтому страница при загрузке не прыгает. Без скриптов каркас скрыт. */
html:not(.js) .day { display: none; }
.day { --hour: 56px; margin-top: 36px; }
.day__body {
  position: relative;
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr);
  column-gap: 8px;
  height: calc(8 * var(--hour));
  margin-top: 18px;
}
.day__hours { grid-column: 1; grid-row: 1; position: relative; }
.day__hours span {
  position: absolute;
  right: 0;
  top: calc(var(--i) * var(--hour));
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.day__rail {
  grid-column: 2; grid-row: 1;
  position: relative;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--tick);
  background: linear-gradient(to bottom, var(--tick) 1.5px, transparent 1.5px) 0 0 / 100% var(--hour) repeat-y;
}
.day__segs {
  grid-column: 2 / 4; grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
}
.seg {
  position: relative;
  flex: 0 0 auto;
  height: calc(var(--m) / 60 * var(--hour));
  min-height: 6px;
}
.seg__bar {
  position: absolute;
  left: 0; top: 0; bottom: 1px;
  width: 30px;
  background-color: var(--volt);
  border: 1.5px solid var(--ink);
  border-radius: var(--r-mark);
  transform-origin: center top;
}
.seg--machine .seg__bar {
  background-image: repeating-linear-gradient(135deg, transparent 0 4px, var(--hatch) 4px 5.5px);
}
.seg--approx .seg__bar { background-color: transparent; border-style: dashed; }

.seg__link {
  position: absolute;
  left: 42px; right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  text-decoration: none;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.seg__thumb {
  width: 60px; height: 45px;
  object-fit: cover;
  border-radius: var(--r-media);
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: block;
}
.seg__txt { display: grid; gap: 3px; justify-items: start; min-width: 0; }
.seg__txt .time { font-size: 22px; }
.seg__title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 600;
  max-width: 100%;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
/* засечка от отрезка к его подписи */
.seg::after {
  content: "";
  position: absolute;
  left: 31px; top: 50%;
  width: 8px;
  border-top: 1.5px solid var(--ink);
}
.day__cap { margin-top: 14px; font-size: 15px; line-height: 1.4; color: var(--ink-2); max-width: 36em; min-height: 42px; }

/* ---------- Каталог ---------- */

.works { padding-bottom: 8px; }

.filter {
  position: sticky;
  top: 0;
  z-index: 15;
  margin-inline: calc(-1 * var(--pad));
  padding-block: 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.filter__scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-inline: var(--pad);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter__scroll::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px 0 11px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font: 600 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s, color .18s, transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip__n { font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip__n { color: inherit; }
/* ключ рубрики: точка; у нажатого чипа вся заливка цвета рубрики */
.chip__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: var(--r-pill); background: var(--rc); }
.chip[class*="rc-"][aria-pressed="true"] { background: var(--rct); border-color: var(--rct); color: var(--bg); }
.chip[aria-pressed="true"] .chip__dot { background: currentColor; }
@media (hover: hover) {
  .chip[aria-pressed="false"]:hover { background: var(--surface-2); }
}

.legend {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 40em;
}

.rubric { padding-top: 36px; display: grid; gap: 14px; }
.rubric__head { display: grid; gap: 4px; }
.rubric__head::before {
  content: "";
  width: 44px; height: 5px;
  margin-bottom: 8px;
  border-radius: var(--r-pill);
  background: var(--rc, var(--ink));
}
.rubric__title { font: 800 clamp(36px, 9.6vw, 52px)/1 var(--display); color: var(--rct, var(--ink)); text-wrap: balance; }
.rubric__note { font-size: 16px; color: var(--ink-2); max-width: 22em; }

.rubric__cards { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--ease), border-color .2s, opacity .5s;
}
.card:active { transform: scale(.985); }
@media (hover: hover) {
  .card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
  .card:hover .card__more .ic { transform: translateX(4px); }
}

/* время, вид замера и линейка вместе */
.card__meter { display: grid; gap: 9px; }
.card__meter .kind { justify-self: start; }
.card__time { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; justify-self: start; }
.card__time .time { font-size: clamp(32px, 9.4vw, 44px); }
.card__unit { font-size: 16px; font-weight: 600; line-height: 1.2; }
.card__thumb { display: none; }

.cover {
  display: block;
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--surface-2);
}
.cover--img { aspect-ratio: 16 / 9; }
.cover--img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

.cover--stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 16px;
  padding: 16px;
}
.stat { display: grid; gap: 2px; align-content: start; }
.stat__v { font: 800 38px/1 var(--display); font-variant-numeric: lining-nums; }
.stat__l { font-size: 15px; line-height: 1.25; color: var(--ink-2); }

.flow { display: grid; gap: 6px; padding: 16px; justify-items: start; }
.flow__from { font-size: 16px; font-weight: 600; line-height: 1.25; color: var(--ink-2); }
.flow .ic { width: 20px; height: 20px; color: var(--ink-3); }
.flow__to { font: 800 28px/1.04 var(--display); letter-spacing: .005em; text-wrap: balance; }

.card__text { display: grid; gap: 6px; flex: 1 1 auto; align-content: start; }
.card__title { font: 700 20px/1.22 var(--font); letter-spacing: -.005em; text-wrap: balance; }
.card__lead { font-size: 16px; line-height: 1.42; color: var(--ink-2); }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 15px;
  font-weight: 700;
}
.card__more .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }

/* телефон: не первые работы рубрики идут компактной строкой: миниатюра, название, время с линейкой */
@media (max-width: 699.98px) {
  .rubric__cards { gap: 10px; }
  .card--compact {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas: "thumb text" "thumb meter";
    grid-template-rows: auto 1fr;
    gap: 6px 12px;
    align-items: start;
    padding: 12px;
  }
  .card--compact.card--nothumb { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "meter"; grid-template-rows: auto; }
  .card--compact .card__thumb {
    grid-area: thumb;
    display: block;
    align-self: start;
    aspect-ratio: 4 / 3;
    border-radius: var(--r-media);
    overflow: hidden;
    background: var(--surface-2);
  }
  .card--compact .card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .card--compact .card__text { grid-area: text; gap: 0; }
  .card--compact .card__title { font-size: 17px; line-height: 1.25; }
  .card--compact .card__lead,
  .card--compact .cover,
  .card--compact .card__more { display: none; }
  .card--compact .card__meter { grid-area: meter; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; align-self: end; }
  .card--compact .card__time { gap: 4px 10px; }
  .card--compact .card__time .time { font-size: 24px; }
  .card--compact .card__unit { font-size: 15px; }
  .card--compact .ruler { flex: 1 1 96px; min-width: 96px; }
}

/* вставка оффера после второй рубрики */
.insert {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  padding: 22px 20px 24px;
  border-radius: var(--r-box);
  background: var(--volt);
  color: var(--on-volt);
}
.insert :focus-visible { outline-color: #12150F; }
.insert__t { font: 800 clamp(34px, 9.6vw, 46px)/1 var(--display); text-wrap: balance; }
.insert__p { margin-top: 8px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.insert__p b { display: block; margin-bottom: 4px; font: 800 clamp(44px, 12vw, 56px)/1 var(--display); white-space: nowrap; }
.insert__btn { justify-self: start; }

/* ---------- Оффер ---------- */

.offer { padding-top: 64px; display: grid; gap: 28px; }
.offer__panel {
  display: grid;
  gap: 22px;
  padding: 28px 20px 30px;
  border-radius: var(--r-box);
  background: var(--volt);
  color: var(--on-volt);
}
.offer__panel :focus-visible { outline-color: #12150F; }
.offer__title { font: 800 clamp(46px, 12.6vw, 92px)/.95 var(--display); text-wrap: balance; }
.offer__lead { font-size: 18px; line-height: 1.42; max-width: 30em; margin-top: 12px; }
.offer__buy { display: grid; gap: 18px; }
.price { display: block; font: 800 clamp(72px, 23.5vw, 150px)/.86 var(--display); white-space: nowrap; letter-spacing: -.005em; }
.price-note { display: block; margin-top: 8px; font-size: 17px; font-weight: 600; }
.offer__panel .cta-alt { color: #2B3112; }

.offer__grid { display: grid; gap: 32px; }
.sub { font: 800 30px/1 var(--display); margin-bottom: 14px; }

.checks { display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; line-height: 1.4; }
.checks .ic { width: 20px; height: 20px; margin-top: 3px; }

.facts { display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; line-height: 1.4; }
.facts .ic { width: 22px; height: 22px; margin-top: 2px; }

.steps { display: grid; gap: 14px; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  line-height: 1.4;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font: 800 19px/1 var(--display);
}
.offer__side { display: grid; gap: 32px; align-content: start; }

/* ---------- Безопасность ---------- */

.safety { padding-top: 64px; }
.safety__box {
  display: grid;
  gap: 22px;
  padding: 26px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-box);
  background: var(--surface);
}
.safety__title { font: 800 clamp(38px, 10vw, 64px)/1 var(--display); text-wrap: balance; }
.safety__lead { margin-top: 12px; max-width: 34em; }
.never { display: grid; gap: 14px; }
.never li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px;
  font-weight: 600;
  line-height: 1.38;
}
.never .ic { width: 24px; height: 24px; margin-top: 1px; }
.safety__how {
  padding: 18px 20px;
  border-radius: var(--r-media);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 19px;
  line-height: 1.45;
  font-weight: 600;
  max-width: 46em;
}

/* ---------- Как считали ---------- */

.method { padding-top: 64px; display: grid; gap: 26px; }
.method__title { font: 800 clamp(38px, 10vw, 64px)/1 var(--display); text-wrap: balance; }
.kinds { display: grid; gap: 18px; }
.kindrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.kindrow__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.kindrow .time { font-size: 30px; }
.kindrow__eg { font-size: 16px; line-height: 1.35; color: var(--ink-2); }
.kindrow .ruler { max-width: 420px; }
@media (hover: hover) { .kindrow:hover .kindrow__eg { text-decoration: underline; text-underline-offset: 3px; } }

.points { display: grid; gap: 16px; }
.points li { padding-left: 16px; border-left: 2px solid var(--ink); line-height: 1.45; max-width: 40em; }

/* ---------- Автор ---------- */

.author { padding-top: 64px; display: grid; gap: 14px; }
.author__label { font-size: 15px; font-weight: 600; color: var(--ink-3); }
.author__name { font: 800 clamp(46px, 12.6vw, 84px)/.96 var(--display); text-wrap: balance; }
.author__text { display: grid; gap: 12px; max-width: 36em; }
.author__line { color: var(--ink-2); }
.author__venue { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; font-weight: 600; line-height: 1.4; }
.author__venue .ic { width: 22px; height: 22px; margin-top: 1px; }

/* ---------- Финал: счётчик на тёмной подложке ----------
   Токены тёмной темы задаются здесь заново, чтобы финал был тёмным и при светлой теме страницы. */

.colophon {
  --bg: #0A0D08;
  --surface: #12160E;
  --surface-2: #1C2216;
  --ink: #EDF0E6;
  --ink-2: #C3C9B8;
  --ink-3: #9AA18F;
  --line: rgba(237, 240, 230, .2);
  --line-strong: #EDF0E6;
  --tick: rgba(237, 240, 230, .5);
  --hatch: rgba(18, 21, 15, .55);
  --shadow-btn: 0 8px 18px -8px rgba(0, 0, 0, .8);
  --shadow-btn-up: 0 12px 22px -8px rgba(0, 0, 0, .85);
  --focus: #C6F135;
  margin-top: 72px;
  padding-block: 56px 60px;
  background: var(--bg);
  color: var(--ink);
  color-scheme: dark;
}
.colophon__in { display: grid; gap: 28px; }
.colophon__title { font: 800 clamp(42px, 11.4vw, 88px)/.96 var(--display); text-wrap: balance; }
.colophon__lead { margin-top: 12px; color: var(--ink-2); max-width: 34em; }

.colophon__count { display: grid; gap: 10px; justify-items: start; }
.count__cap { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.count {
  display: inline-flex;
  align-items: flex-end;
  gap: clamp(14px, 4vw, 44px);
  max-width: 100%;
  color: var(--volt);
}
.count__g { display: grid; justify-items: start; }
.count__g b {
  font: 800 clamp(88px, 27vw, 260px)/.84 var(--display);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  color: var(--volt);
}
.count__g span { font-size: 17px; font-weight: 700; margin-top: 8px; color: var(--ink-2); }
.count--fixed b { font: 800 clamp(56px, 16vw, 150px)/.95 var(--display); }

.count__meta { display: grid; gap: 14px; max-width: 760px; }
.count__label { font-size: 16px; line-height: 1.4; color: var(--ink-2); }

.cfacts { display: grid; grid-template-columns: minmax(0, 1fr); }
.cfacts li { padding-block: 14px; border-top: 1px solid var(--line); line-height: 1.4; max-width: 40em; }
.colophon__cta { margin-top: 4px; }

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

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  padding-block: 22px 26px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}
.foot a { text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.foot span { display: inline-flex; align-items: center; min-height: 28px; }
.foot__brand { font-weight: 700; color: var(--ink); }

/* ---------- Нижняя панель (телефон) ---------- */

.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1.5px solid var(--line-strong);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .32s var(--ease), visibility 0s .32s;
}
.dock.is-on { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
.dock__price { display: grid; min-width: 0; }
.dock__price b { font: 800 30px/1 var(--display); white-space: nowrap; }
.dock__price span { font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.dock__btn { margin-left: auto; flex: 0 0 auto; min-height: 50px; padding-inline: 20px; }

/* ---------- Работа: панель ---------- */

html.is-locked { overflow: hidden; }

.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
}
.sheet[open] { display: flex; flex-direction: column; }
.sheet::backdrop { background: rgba(14, 17, 11, .62); }

.sheet__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.sheet__rubric { flex: 1 1 auto; min-width: 0; font-size: 15px; line-height: 1.25; font-weight: 600; color: var(--ink-2); }
.sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px 16px 32px;
  outline: none;
}

/* закреплённая полоса «цена + кнопка»: видна всё время, пока работа открыта */
.sheet__buy {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1.5px solid var(--line-strong);
}
.sheet__price { display: grid; min-width: 0; }
.sheet__price b { font: 800 30px/1 var(--display); white-space: nowrap; }
.sheet__price span { font-size: 15px; line-height: 1.2; color: var(--ink-2); }
.sheet__btn { margin-left: auto; flex: 0 0 auto; min-height: 50px; padding-inline: 16px; gap: 8px; }

.work { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.work__head { display: grid; gap: 22px; }
.work__title { font: 800 clamp(38px, 10.4vw, 60px)/.98 var(--display); text-wrap: balance; }
.work__title:focus { outline: none; }
.work__lead { margin-top: 10px; font-size: 18px; line-height: 1.42; color: var(--ink-2); max-width: 34em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink-2);
}

.work__time {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-box);
  background: var(--surface);
  align-content: start;
}
.work__timerow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.work__timerow .time { font-size: clamp(46px, 13.4vw, 64px); }
.work__unit { font-size: 17px; font-weight: 700; line-height: 1.2; }
.work__proof { font-size: 16px; line-height: 1.42; color: var(--ink-2); }
.work__scale { font-size: 15px; line-height: 1.35; color: var(--ink-3); }
.work__link .btn { width: 100%; }

.notice {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-box);
}
.notice b { display: flex; align-items: center; gap: 8px; }
.notice span { color: var(--ink-2); font-size: 16px; }

.blk { display: grid; gap: 12px; align-content: start; grid-template-columns: minmax(0, 1fr); }
.blk__h { font: 800 28px/1 var(--display); }
.blk__p { max-width: 40em; }
.blk__muted { color: var(--ink-2); max-width: 40em; }
.cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.stack { display: grid; gap: 22px; align-content: start; grid-template-columns: minmax(0, 1fr); }

/* медиа */
.media { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }

.gal { --gh: 250px; margin-inline: -16px; }
.gal__track {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 0 16px 8px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.gal__item {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: zoom-in;
  scroll-snap-align: center;
  width: min(84vw, calc(var(--gh) * var(--ar)));
  -webkit-tap-highlight-color: transparent;
}
.gal__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  object-fit: cover;
  border-radius: var(--r-media);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.gal__cap { font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.gal__hint { margin: 2px 16px 0; font-size: 16px; color: var(--ink-3); }

.vids { display: grid; gap: 16px; }
.vid { display: grid; gap: 6px; }
.vid video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--ar);
  border-radius: var(--r-media);
  background: #0B0D09;
}
.vid__cap { font-size: 15px; line-height: 1.3; color: var(--ink-2); }
.vids--landscape .vid { max-width: 920px; }
.vids--portrait {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-inline: -16px;
  padding: 0 16px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.vids--portrait .vid { flex: 0 0 auto; width: min(56vw, 236px); scroll-snap-align: center; }

.frame {
  border: 1px solid var(--line);
  border-radius: var(--r-media);
  overflow: hidden;
  background: var(--surface);
}
.frame__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 10px 10px 14px;
  border-bottom: 1px solid var(--line);
}
.frame__title { flex: 1 1 180px; font-size: 16px; font-weight: 700; line-height: 1.25; }
.frame iframe { display: block; width: 100%; height: min(var(--h, 600px), 72vh); border: 0; background: #FFFFFF; }
.frame--ratio iframe { height: auto; }

/* сырой ввод человека: набран моноширинным, чтобы отличаться от текста страницы */
.inp {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-box);
}
.inp__h { font: 700 16px/1.3 var(--font); }
.inp__lines { display: grid; gap: 8px; font: 400 14.5px/1.42 var(--mono); }
.inp__lines li { overflow-wrap: anywhere; }

.aud { display: grid; gap: 8px; }
.aud__cap { font-size: 15px; font-weight: 600; }
.aud audio { width: 100%; height: 48px; }

.checks--res li { font-size: 17px; }

/* ход по минутам */
.tl { display: grid; gap: 14px; }
.tl__ruler { position: relative; height: 26px; border-bottom: 1.5px solid var(--ink); }
.tl__ruler::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 9px;
  background: linear-gradient(to right, var(--tick) 1.5px, transparent 1.5px) 0 0 / calc((100% - 1.5px) / var(--n)) 100% repeat-x;
}
.tl__ruler i {
  position: absolute;
  bottom: 0;
  left: calc(var(--t) / var(--max) * (100% - 6px));
  width: 6px;
  height: 22px;
  background: var(--volt);
  border: 1.5px solid var(--ink);
  border-bottom: 0;
  border-radius: var(--r-mark) var(--r-mark) 0 0;
  z-index: 1;
}
.tl__ends { display: flex; justify-content: space-between; font-size: 15px; color: var(--ink-3); margin-top: -8px; }
.tl__list { display: grid; gap: 8px; }
.tl__list li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; align-items: baseline; line-height: 1.3; }
.tl__t { font: 800 21px/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* цепочка */
.pipe { display: grid; gap: 0; }
.pipe li {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  line-height: 1.35;
}
.pipe li::before {
  content: "";
  width: 14px; height: 14px;
  margin: 5px 2px 0;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-mark);
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.pipe li::after {
  content: "";
  position: absolute;
  left: 8px; top: 12px; bottom: -6px;
  border-left: 1.5px solid var(--ink);
}
.pipe li:last-child { padding-bottom: 0; font-weight: 700; }
.pipe li:last-child::before { background: var(--volt); }
.pipe li:last-child::after { display: none; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.stats .stat__v { font-size: 56px; }
.stats .stat__l { font-size: 15px; }

.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 16px; }
.tbl caption { text-align: left; font-size: 16px; font-weight: 700; padding-bottom: 10px; }
.tbl th { text-align: left; font-weight: 700; font-size: 14px; padding: 8px 10px; border-bottom: 1.5px solid var(--ink); }
.tbl td { padding: 9px 10px; font-variant-numeric: tabular-nums; }
.tbl tbody tr:nth-child(even) td { background: var(--surface-2); }
.tbl .num { text-align: right; }

.next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-box);
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
}
.next__label { grid-column: 1; font-size: 15px; color: var(--ink-3); }
.next__title { grid-column: 1; font-weight: 700; line-height: 1.25; }
.next .time { grid-column: 2; grid-row: 1 / 3; font-size: 28px; }

.toast {
  position: absolute;
  left: 50%; bottom: 96px;
  transform: translate(-50%, 20px);
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Просмотр во весь экран ---------- */

.lb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0B0D09;
  color: #EDF0E6;
  overflow: hidden;
}
.lb[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.lb::backdrop { background: #0B0D09; }
.lb :focus-visible { outline-color: #C6F135; }
.lb__bar { display: flex; align-items: center; gap: 2px; padding: 6px 6px 6px 16px; }
.lb__info { flex: 1 1 auto; min-width: 0; display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.lb__count { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb__cap { color: #C3C9B8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
  overscroll-behavior: contain;
}
.lb__track::-webkit-scrollbar { display: none; }
.lb__track.is-locked { overflow-x: hidden; }
.lb__slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  padding: 4px;
}
.lb__slide img {
  flex: 0 0 auto;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
  -webkit-user-drag: none;
  user-select: none;
}
.lb__slide.is-zoom { overflow: auto; overscroll-behavior: contain; }
.lb__slide.is-zoom img { max-width: none; max-height: none; cursor: zoom-out; }
.lb__nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-top: -4px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(11, 13, 9, .72);
  color: #EDF0E6;
  cursor: pointer;
}
.lb__nav .ic { width: 24px; height: 24px; }
.lb__nav--prev { left: 8px; }
.lb__nav--next { right: 8px; }
.lb__nav[disabled] { opacity: .28; cursor: default; }

.noscript { padding-block: 24px; }

/* ---------- Движение ----------
   Каждое движение что-то сообщает:
   отрезки «отмеряются» слева направо (время измеряют), полоса у собираемых работ бежит (замер идёт),
   панель работы поднимается снизу (смена состояния). Без движения всё видно сразу. */

@media (prefers-reduced-motion: no-preference) {
  .anim .reveal { transition: transform .7s var(--ease), opacity .5s, border-color .2s; }
  .anim .reveal:not(.is-in) { opacity: 0; transform: translateY(16px); }

  .anim .ruler__day i { transition: transform .8s var(--ease) calc(.12s + var(--r, 0) * 90ms); }
  .anim .reveal:not(.is-in) .ruler:not(.ruler--live) .ruler__day i { transform: scaleX(0); }

  .anim .seg__bar { transition: transform .6s var(--ease) calc(.15s + var(--n, 0) * 180ms); }
  .anim .seg__link { transition: opacity .5s calc(.3s + var(--n, 0) * 180ms); }
  .anim .day:not(.is-in) .seg__bar { transform: scaleY(0); }
  .anim .day:not(.is-in) .seg__link { opacity: 0; }

  .ruler--live i { animation: sweep 1.9s ease-in-out infinite alternate; }

  .sheet[open] { animation: sheet-in .34s var(--ease); }
  .sheet[open]::backdrop { animation: fade-in .3s; }
  .lb[open] { animation: fade-in .2s; }
}

@keyframes sweep { from { transform: translateX(0); } to { transform: translateX(455%); } }
@keyframes sheet-in { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 700+: две колонки карточек ---------- */

@media (min-width: 700px) {
  :root { --pad: 32px; }
  .hero { padding-block: 24px 56px; }
  .hero__title { font-size: clamp(44px, calc((100vw - 64px) / 12.8), 72px); }
  .day { max-width: 620px; }

  .rubric__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card { padding: 18px; }
  .card__time .time { font-size: 42px; }

  /* нечётное число работ в рубрике: первая становится широкой, чтобы в сетке не было дыр */
  .rubric__cards.is-odd > .card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    column-gap: 28px;
  }
  .rubric__cards.is-odd > .card:first-child > .card__meter { grid-column: 1; grid-row: 1; }
  .rubric__cards.is-odd > .card:first-child > .card__text { grid-column: 1; grid-row: 2; }
  .rubric__cards.is-odd > .card:first-child > .card__more { grid-column: 1; grid-row: 3; }
  .rubric__cards.is-odd > .card:first-child > .cover { grid-column: 2; grid-row: 1 / 4; align-self: stretch; }
  .rubric__cards.is-odd > .card:first-child > .cover--img { aspect-ratio: 4 / 3; align-self: start; }
  .rubric__cards.is-odd > .card:first-child > .flow { align-content: center; padding: 28px; }
  .rubric__cards.is-odd > .card:first-child .flow__to { font-size: 44px; }
  .rubric__cards.is-odd > .card:first-child .card__time .time { font-size: 60px; }
  .rubric__cards.is-odd > .card:first-child .card__title { font-size: 26px; }
  .rubric__cards.is-odd > .card:first-child:not(:has(> .cover)) { grid-template-columns: minmax(0, 1fr); }

  .insert { margin-top: 48px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px; padding: 28px 32px; }
  .insert__btn { justify-self: end; }
  .offer__panel { padding: 40px 36px 42px; }
  .safety__box { padding: 36px; }
  .cfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tl__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
}

/* ---------- 900+: шапка липкая, работа открывается панелью ---------- */

@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .dock { display: none; }

  html { scroll-padding-top: 84px; }
  .top { position: sticky; top: 0; border-bottom: 1px solid var(--line); }
  .top__in { min-height: 68px; gap: 20px; }
  .brand { flex: 0 0 auto; font-size: 23px; white-space: nowrap; }
  .clock { margin-left: auto; }
  .top__cta { display: inline-flex; }

  .filter { top: 69px; }
  .filter__scroll { flex-wrap: wrap; overflow: visible; }

  .sheet {
    inset: 0;
    width: min(1080px, 94vw);
    height: min(94vh, 1120px);
    margin: auto;
    border: 1px solid var(--line);
    border-radius: var(--r-box);
  }
  .sheet__bar { padding: 10px 14px 10px 28px; }
  .sheet__body { padding: 32px 40px 48px; }
  .work { gap: 36px; }
  .work__head { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: start; }
  .work__time { padding: 20px; }
  .work__timerow .time { font-size: 64px; }

  .gal { --gh: 196px; margin-inline: 0; }
  .gal__track { flex-wrap: wrap; overflow: visible; padding: 0; gap: 16px 12px; }
  .gal__item { width: calc(var(--gh) * var(--ar)); max-width: 100%; }
  .gal__hint { margin-inline: 0; margin-top: 10px; }
  .vids--portrait { margin-inline: 0; padding-inline: 0; overflow: visible; flex-wrap: wrap; }
  .vids--portrait .vid { width: 220px; }
  .frame iframe { height: min(var(--h, 600px), 80vh); }
  .frame--ratio iframe { height: auto; }

  .sheet__buy { padding: 12px 40px; }
  .work__link .btn { width: auto; }

  .offer__panel { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: end; gap: 40px; padding: 48px; }
  .price { font-size: clamp(80px, 9.6vw, 140px); }
  .offer__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; }
  .checks--incl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }

  .safety__box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 48px; padding: 48px; }
  .safety__how { grid-column: 1 / -1; }

  .method { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
  .method__title { grid-column: 1 / -1; }

  .colophon__in { gap: 36px; }
}

/* ---------- 1100+: навигация, горизонтальная линейка дня, рубрика сбоку ---------- */

@media (min-width: 1100px) {
  :root { --pad: 48px; }
  html { scroll-padding-top: 150px; }

  .hero { padding-block: 36px 64px; }
  .hero__title { font-size: clamp(52px, calc((100vw - 96px) / 16.4), 74px); line-height: .96; }
  .hero__row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; margin-top: 24px; }
  .hero__lead { font-size: 20px; max-width: 31em; }
  .hero .cta-wrap { grid-template-columns: auto minmax(0, 18em); align-items: center; gap: 18px; }

  .day { max-width: none; margin-top: 44px; display: flex; flex-direction: column; }
  .day__cap { order: 2; }
  .day__body { display: block; height: auto; padding: 100px 0 122px; margin-top: 0; }
  .day__rail {
    height: 60px;
    border-left: 0;
    border-bottom: 1.5px solid var(--ink);
    background: linear-gradient(to right, var(--tick) 1.5px, transparent 1.5px) 0 0 / calc((100% - 1.5px) / 8) 100% repeat-x;
  }
  .day__hours { position: absolute; left: 0; right: 0; top: calc(100px + 60px + 8px); height: 17px; }
  .day__hours span { top: 0; right: auto; left: calc(var(--i) / 8 * 100%); transform: translateX(-50%); }
  .day__hours span:first-child { transform: none; }
  .day__hours span:last-child { transform: translateX(-100%); }
  .day__segs { position: absolute; left: 0; right: 0; top: 100px; height: 60px; flex-direction: row; }
  .seg { height: 100%; min-height: 0; width: calc(var(--m) / 480 * 100%); min-width: 6px; }
  .seg__bar { inset: 8px 1px 0 0; width: auto; border-bottom: 0; border-radius: var(--r-mark) var(--r-mark) 0 0; transform-origin: left center; }
  .seg__link {
    left: 0; right: auto; top: auto;
    transform: none;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    width: max-content;
    max-width: min(280px, 21vw);
  }
  .seg__thumb { width: 80px; height: 60px; }
  .seg__txt .time { font-size: 30px; }
  .seg__title { font-size: 16px; }
  .seg:nth-child(odd) .seg__link { top: calc(100% + 34px); max-width: 300px; }
  .seg:nth-child(even) .seg__link { bottom: calc(100% + 12px); }
  .seg::after { display: none; }
  .seg__title { -webkit-line-clamp: 4; }
  .seg:nth-child(even)::before {
    content: "";
    position: absolute;
    left: 0; bottom: calc(100% - 8px);
    height: 20px;
    border-left: 1.5px solid var(--ink);
  }
  .anim .day:not(.is-in) .seg__bar { transform: scaleX(0); }
  .day__cap { margin-top: 4px; }

  .rubric { grid-template-columns: 250px minmax(0, 1fr); gap: 40px; padding-top: 56px; }
  .rubric__head { position: sticky; top: 150px; align-self: start; }
  .rubric__title { font-size: 48px; }
  .legend { margin-top: 20px; }

  .offer, .safety, .method, .author { padding-top: 96px; }
  .colophon { margin-top: 104px; padding-block: 88px; }
  .insert { margin-top: 56px; }
}

/* ---------- 1280+: навигация по разделам в шапке (на меньшей ширине не помещается в одну строку) ---------- */

@media (min-width: 1280px) {
  .nav { display: flex; gap: 4px; margin-left: 20px; }
  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: var(--r-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }
  .nav a:hover { background: var(--surface-2); }
}
