/*!
 * Strenos, светлое направление (утверждено 08.11.2026, прототип v3).
 * Тёплая светлая нейтраль, настоящие фото атлетов, интерфейс белыми
 * карточками, гротеск Onest в обычном регистре везде, метки тоже Onest,
 * спокойное движение только сдвигом. Лайм Strenos только заливкой главного
 * действия и плюс-подхода. Правила в DESIGN.md.
 */
:root {
  color-scheme: light;
  --bg: #EEEDEA; --bg-2: #E5E3DF; --card: #FFFFFF; --card-2: #F7F6F3;
  --ink: #0E0E0F; --ink-2: #4D4B47; --muted: #6E6B66; --line: rgba(14, 14, 15, .08); --line-2: rgba(14, 14, 15, .14);
  --lime: #CCFF00; --lime-2: #D9FF40;
  --font: "Onest", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: var(--font);
  --r-xl: 32px; --r-lg: 24px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(14, 14, 15, .04), 0 16px 48px -16px rgba(14, 14, 15, .16);
  --shadow-lift: 0 2px 4px rgba(14, 14, 15, .05), 0 30px 70px -20px rgba(14, 14, 15, .28);
  --ease: cubic-bezier(.16, .84, .24, 1);
  --g: 24px;
  /* Единственный отступ между блоками страницы. Внутри блока свои мелкие шаги, между блоками только он. */
  --section: clamp(64px, 7vw, 112px);
  --edge: max(20px, env(safe-area-inset-left, 0px)); --edge-r: max(20px, env(safe-area-inset-right, 0px));
}
/* Устройство всегда целиком в окне: высота окна минус липкая шапка (12 + 64) и воздух
   сверху и снизу. Ширина каждого телефона и часов ограничена этой высотой. */
:root { --fit-h: calc(100vh - 128px); }
@supports (height: 100svh) { :root { --fit-h: calc(100svh - 128px); } }
:root {
  --fit-w: calc(var(--fit-h) * .4844);   /* iPhone 872×1800 во всю высоту */
  --fit-pw: calc(var(--fit-h) * .455);   /* телефон в группе с часами, которые свисают ниже */
  --fit-ww: calc(var(--fit-h) * .607);   /* часы Ultra 607×1000 */
}
@media (min-width: 768px) { :root { --edge: max(32px, env(safe-area-inset-left, 0px)); --edge-r: max(32px, env(safe-area-inset-right, 0px)); } }
@media (min-width: 1280px) { :root { --edge: 48px; --edge-r: 48px; } }
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.wrap { max-width: 1360px; margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge-r); }
.label { font: 500 13px/1.2 var(--font); color: var(--muted); }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 16px; }

/* ── Кнопки: две высоты, одна форма ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 600 16px/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .25s cubic-bezier(.2, .8, .2, 1), background-color .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.l { height: 56px; padding: 0 28px; font-size: 17px; }
.btn.lime { background: var(--lime); color: var(--ink); }
.btn.lime:hover { background: var(--lime-2); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ── Шапка: плавающая капсула ── */
/* Липкая полоса прозрачна для кликов, ловит их только сама капсула. */
.top-bar { position: sticky; top: 0; z-index: 50; padding-top: max(12px, env(safe-area-inset-top, 0px)); pointer-events: none; }
.nav-in { pointer-events: auto; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 8px 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 8px 30px -12px rgba(14, 14, 15, .18); }
.logo { font: 700 22px/1 var(--font); letter-spacing: -.04em; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo img { width: 34px; height: 34px; }
.links { margin-right: auto; }
.links-list { display: flex; gap: 28px; margin: 0; padding: 0; list-style: none; font-size: 15px; color: var(--ink-2); }
.links-list a { text-decoration: none; } .links-list a:hover, .links-list a[aria-current] { color: var(--ink); }
.links-list a[aria-current] { font-weight: 600; }
/* Группы меню: панель со страницами группы по наведению и фокусу. */
.links-list > li.has-sub { position: relative; }
.links-list > li.has-sub > a { display: inline-flex; align-items: center; gap: 6px; }
.links-list > li.has-sub > a::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); opacity: .6; transition: transform .25s var(--ease); }
.links-list > li.has-sub:hover > a::after, .links-list > li.has-sub:focus-within > a::after { transform: translateY(1px) rotate(225deg); }
.links-list .sub { position: absolute; left: -22px; top: 100%; z-index: 20; padding-top: 22px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s; }
.links-list > li.has-sub:hover .sub, .links-list > li.has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
.sub-in { width: 360px; margin: 0; padding: 8px; list-style: none; display: grid; gap: 2px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-lift); }
.sub-in a { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); transition: background-color .15s; }
.sub-in a:hover, .sub-in a:focus-visible { background: var(--card-2); outline: none; }
.sub-in a[aria-current] { background: var(--bg-2); }
.sub-in b { font: 600 15px/1.2 var(--font); letter-spacing: -.01em; }
.sub-in span { font-size: 13.5px; line-height: 1.35; color: var(--muted); }
.sub-in .sub-all { margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.sub-in .sub-all a { font-weight: 600; font-size: 14px; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .links-list .sub, .links-list > li.has-sub > a::after { transition: none; } }
.seg { display: inline-flex; height: 40px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.seg a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font: 600 13px var(--font); text-decoration: none; }
.seg a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 14, 15, .12); }
@media (max-width: 900px) { .links { display: none; } .nav-in { gap: 10px; padding-left: 16px; } .logo { margin-right: auto; } .nav .nav-cta { height: 44px; padding: 0 16px; font-size: 15px; } }
@media (max-width: 480px) { .nav .nav-cta { display: none; } }

/* Меню на узком экране: круглая кнопка в капсуле, панель под капсулой. */
.nav-in { position: relative; }
.mnav { display: none; }
@media (max-width: 900px) { .mnav { display: block; } }
.mnav-btn { list-style: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-content: center; gap: 6px; cursor: pointer; background: var(--ink); }
.mnav-btn::-webkit-details-marker { display: none; }
.mnav-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s var(--ease); }
.mnav[open] .mnav-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.mnav[open] .mnav-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mnav-panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: grid; gap: 20px; padding: 8px 20px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lift); }
.mnav-list { list-style: none; margin: 0; padding: 0; }
.mnav-list a { display: flex; align-items: center; justify-content: space-between; min-height: 60px; border-bottom: 1px solid var(--line); color: var(--ink); font: 600 24px/1.2 var(--font); letter-spacing: -.025em; text-decoration: none; }
.mnav-list a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted); transform: rotate(45deg); margin-right: 6px; }
.mnav-list a[aria-current]::after { border-color: var(--ink); }
/* Калькуляторы вложенным списком под пунктом, мельче и без стрелок. */
.mnav-sub { list-style: none; margin: 0; padding: 4px 0 10px 14px; border-bottom: 1px solid var(--line); }
.mnav-list .mnav-sub a { min-height: 44px; border-bottom: 0; font: 500 17px/1.25 var(--font); letter-spacing: -.01em; color: var(--ink-2); }
.mnav-list .mnav-sub a::after { display: none; }
.mnav-list .mnav-sub a[aria-current] { color: var(--ink); font-weight: 600; }
.mnav-list li.has-sub > a { border-bottom: 0; }
.mnav-h { display: flex; align-items: center; min-height: 60px; color: var(--ink); font: 600 24px/1.2 var(--font); letter-spacing: -.025em; }
.mnav-panel .btn { width: 100%; }
.mnav-panel { max-height: calc(100svh - 96px); overflow-y: auto; overscroll-behavior: contain; }
@media (prefers-reduced-motion: no-preference) { .mnav[open] .mnav-panel { animation: st-menu .35s var(--ease) both; } }
@keyframes st-menu { from { transform: translateY(-8px); opacity: 0; } }

/* ── Первый экран ── */
/* Снизу первого экрана ровно столько, сколько часы свисают под фото: дальше общий отступ блока. */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--g); align-items: center; padding-top: 40px; padding-bottom: 28px; }
.h-copy { grid-column: 1 / 7; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-content: center; min-width: 0; }
/* Над заголовком хлебные крошки простым текстом: путь, а не украшение. */
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; } .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink-2); }
h1 { margin: 0; font: 600 clamp(48px, 6.1vw, 94px)/.98 var(--font); letter-spacing: -.048em; text-wrap: balance; }
.lead { margin: 0; font-size: clamp(18px, 1.45vw, 21px); line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.hero-input:empty { display: none; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .25; margin-right: 8px; vertical-align: middle; }

.h-media { grid-column: 7 / -1; position: relative; }
.photo { position: relative; margin: 0; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); background: var(--bg-2); }
.photo .ph-in { position: absolute; left: 0; right: 0; top: 0; height: 115%; will-change: transform; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 15, 0) 55%, rgba(14, 14, 15, .28)); pointer-events: none; }
.hero-photo img { object-position: 30% 40%; }
@media (min-width: 1024px) { .hero-photo { aspect-ratio: auto; height: clamp(540px, calc(100svh - 168px), 760px); } }
.float { position: absolute; right: 24px; top: 24px; z-index: 3; width: 290px; }
.float:empty { display: none; }
/* Карточка внизу слева, когда сверху на фото лицо атлета. */
.h-media.is-float-bl .float { top: auto; right: auto; left: 24px; bottom: 24px; width: min(290px, 60%); }
/* Часы в натуральную величину: экран читается без зума. */
.hwatch { position: absolute; right: -20px; bottom: -28px; z-index: 2; width: min(34%, 216px); pointer-events: none; will-change: transform; }
.hwatch img { display: none; width: 100%; filter: drop-shadow(0 28px 36px rgba(14, 14, 15, .3)); }
/* Часы показывают топ-сет в тех же единицах, что выбраны в калькуляторе.
   До скрипта действует язык страницы (data-u), потом выбор атлета. */
.hwatch[data-u="kg"] .w-kg, .hwatch[data-u="lb"] .w-lb { display: block; }
.hwatch:not([data-u]) img { display: block; }
html[data-stc-units="kg"] .hwatch .w-kg, html[data-stc-units="lb"] .hwatch .w-lb { display: block; }
html[data-stc-units="kg"] .hwatch .w-lb, html[data-stc-units="lb"] .hwatch .w-kg { display: none; }
@media (max-width: 1279px) { .hwatch { right: 16px; } }
@media (max-width: 1023px) {
  .hero { padding-top: 32px; padding-bottom: 40px; }
  .h-copy, .h-media { grid-column: 1 / -1; }
  .h-media { margin-top: 48px; }
  .float { right: 16px; top: 16px; width: 260px; }
  .h-media.is-float-bl .float { left: 16px; bottom: 16px; top: auto; right: auto; }
  .hwatch { bottom: -40px; }
}
@media (min-width: 561px) and (max-width: 1023px) { .hero-photo { aspect-ratio: 1 / 1; } .hwatch { width: 28%; } }
@media (max-width: 560px) {
  .hero-photo { aspect-ratio: 4 / 5.2; }
  /* На телефоне карточка под фото, чтобы не закрывать атлета. */
  .float { position: relative; right: auto; top: auto; width: auto; margin: -72px 16px 0; }
  .h-media.is-float-bl .float { left: auto; bottom: auto; width: auto; }
  .hwatch { display: none; }
  .hero { padding-bottom: 0; }
}

/* ── Разделы ── */
section.block { padding-top: var(--section); }
#cycle { scroll-margin-top: 96px; }

/* Разбор: фото атлета держится рядом, пока читают текст. */
.why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--g); align-items: start; }
.why-photo { grid-column: 1 / 6; aspect-ratio: 4 / 5; position: sticky; top: 104px; }
.why-photo img { object-position: 50% 25%; }
.why .prose { grid-column: 7 / -1; }
@media (max-width: 1023px) { .why-photo, .why .prose { grid-column: 1 / -1; } .why-photo { position: relative; top: auto; aspect-ratio: 4 / 3; } }
@media (max-width: 560px) { .why-photo { aspect-ratio: 1 / 1; } }

/* ── Перед стартом: кому подходит, чего ждать, как вести (группа guide) ── */
/* WordPress оборачивает содержимое группы во внутренний контейнер: делаем его прозрачным для сетки. */
.guide .wp-block-group__inner-container { display: contents; }
.guide { display: grid; gap: 56px; }
.guide > * { margin: 0; }
.guide .g-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--g); align-items: end; }
.guide .g-head h2 { grid-column: 1 / 8; margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.guide .g-head p { grid-column: 8 / -1; margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.5; max-width: 46ch; }
.guide h3 { margin: 0 0 16px; font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
/* Подойдёт ли: фото атлета и две карточки в один ряд. */
.guide .g-fit { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 4fr) minmax(0, 4fr); gap: var(--g); }
.guide .g-fit::before { content: ""; border-radius: var(--r-lg); min-height: 360px; background: var(--bg-2) url(../img/guide-gzclp-break-1000.jpg) 55% 40% / cover no-repeat; box-shadow: var(--shadow); }
/* Свои фото блока «Подойдёт» у калькуляторов 1ПМ. */
.guide.g-pic-bench .g-fit::before { background-image: url(../img/bench-1000.jpg); background-position: 50% 40%; }
.guide.g-pic-pull .g-fit::before { background-image: url(../img/guide-pullup-hero-800.jpg); background-position: 50% 30%; }
.guide.g-pic-rpe .g-fit::before { background-image: url(../img/guide-nsuns-hero-800.jpg); background-position: 55% 40%; }
.guide.g-pic-plates .g-fit::before { background-image: url(../img/land-hub-800.jpg); background-position: 50% 50%; }
.guide .g-fit .wp-block-column { padding: 28px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.guide .g-fit .wp-block-column + .wp-block-column { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.guide ul, .guide ol { list-style: none; margin: 0; padding: 0; }
.guide .g-fit li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 17px; line-height: 1.5; }
.guide strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
/* Чего ждать: линия с отметками, как путь по циклам. Последняя отметка пустая: откат. */
.guide .expect { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); padding-top: 32px; }
.guide .expect::before { content: ""; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: var(--line-2); }
.guide .expect li { position: relative; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.guide .expect li::before { content: ""; position: absolute; left: 0; top: -32px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--bg); }
.guide .expect li:last-child::before { background: var(--bg); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px var(--bg); }
/* Классическая неделя: четыре плитки дней. */
.guide .g-week p { margin: -6px 0 20px; max-width: 64ch; color: var(--ink-2); font-size: 16px; }
.guide .week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.guide .week li { display: grid; gap: 28px; align-content: space-between; min-height: 132px; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); color: var(--ink); font: 600 clamp(20px, 1.8vw, 24px)/1.15 var(--font); letter-spacing: -.02em; }
.guide .week li strong { margin: 0; font: 500 13px/1.2 var(--font); color: var(--muted); }
/* Правила: карточки с крупным номером. */
.guide .rules { counter-reset: rule; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.guide .rules li { counter-increment: rule; padding: 22px; border-radius: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.guide .rules li::before { content: counter(rule, decimal-leading-zero); display: block; margin-bottom: 18px; font: 500 13.5px var(--font); color: var(--muted); }
@media (max-width: 1100px) { .guide .expect { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } .guide .expect::before { display: none; } .guide .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1023px) { .guide .g-head h2, .guide .g-head p { grid-column: 1 / -1; } .guide .g-fit { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide .g-fit::before { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 9; } .guide .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .guide { gap: 40px; } .guide .g-fit, .guide .expect, .guide .rules { grid-template-columns: 1fr; } .guide .g-fit::before { aspect-ratio: 4 / 3; } .guide .g-fit .wp-block-column { padding: 20px; } .guide .week li { min-height: 104px; } }

/* ── Текст статьи из редактора ── */
.prose { min-width: 0; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin: 56px 0 16px; color: var(--ink); font: 600 clamp(30px, 2.8vw, 44px)/1.05 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.prose h3 { margin: 32px 0 12px; color: var(--ink); font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; max-width: 64ch; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose figure { margin: 28px 0; }
.prose .wp-block-table { padding: 8px 20px 4px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); overflow-x: auto; }
/* Рамки и толстую линию шапки из стилей блока WordPress снимаем: одна тонкая линия между строками. */
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; border: 0; }
.prose .wp-block-table thead { border: 0; }
.prose .wp-block-table th { padding: 14px 12px 10px 0; border: 0; text-align: left; font: 500 13px/1.2 var(--font); color: var(--muted); }
.prose .wp-block-table td { padding: 12px 12px 12px 0; border: 0; border-top: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.prose td:first-child { color: var(--ink-2); }
/* Телефон: таблица целиком в карточке, первая колонка переносится. */
@media (max-width: 560px) {
  .prose .wp-block-table { padding: 4px 14px 2px; }
  .prose .wp-block-table th, .prose .wp-block-table td { padding-right: 8px; font-size: 14px; }
  .prose .wp-block-table th { font-size: 11px; letter-spacing: .04em; }
  .prose .wp-block-table td:first-child { white-space: normal; }
}
.prose td.is-plus { font-weight: 600; }
.prose td.is-plus span { display: inline-block; padding: 3px 8px; border-radius: 999px; background: var(--lime); }
.prose .wp-block-table figcaption, .prose figcaption { margin: 4px 0 12px; text-align: left; font-size: 14px; color: var(--muted); }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--lime); color: var(--ink); }

/* ── «Читать дальше» в конце разбора на странице калькулятора ── */
.prose .read-next { margin-top: 48px; }
.prose .read-next h2.label { margin: 0 0 16px; font: 500 13px/1.2 var(--font); color: var(--muted); }
.rn-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .rn-cards { grid-template-columns: 1fr; } }

/* ── Разбор: первый экран, оглавление, врезки ── */
/* У статьи нет часов под фото: запас снизу первого экрана не нужен. */
.hero.ghero { padding-bottom: 0; }
.ghero h1 { font-size: clamp(40px, 5vw, 76px); line-height: 1; }
.checked { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; color: var(--muted); }
.checked img { width: 22px; height: 22px; }
/* Карточка ключевых цифр поверх фото: то, ради чего открывают статью. */
.keycard { position: absolute; left: 24px; bottom: 24px; z-index: 3; width: 320px; padding: 22px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: var(--shadow-lift); display: grid; gap: 4px; }
.keycard .label { margin-bottom: 6px; }
.kc-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.kc-row b { font: 600 40px/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kc-row.is-long b { font-size: 22px; letter-spacing: -.02em; }
.kc-row span { font-size: 14px; color: var(--ink-2); }
@media (min-width: 1024px) { .ghero .hero-photo { height: clamp(520px, calc(100svh - 200px), 680px); } }
@media (max-width: 1023px) { .keycard { left: 16px; bottom: 16px; } }
@media (max-width: 560px) { .keycard { position: relative; left: auto; bottom: auto; width: auto; margin: -64px 16px 0; } }

.gbody { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--g); align-items: start; }
.toc-col { grid-column: 1 / 4; position: sticky; top: 104px; }
.gprose { grid-column: 5 / -1; max-width: 760px; }
.toc .label { display: block; margin-bottom: 14px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: grid; grid-template-columns: 28px 1fr; gap: 4px; padding: 7px 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; text-decoration: none; transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font: 500 13px/1.6 var(--font); color: var(--muted); }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
.toc a[aria-current="true"]::before { color: var(--ink); }
.toc-bar { height: 2px; margin-top: 16px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.toc-bar i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 1023px) { .toc-col { display: none; } .gprose { grid-column: 1 / -1; } }

/* Текст разбора: номер над каждым разделом, вводный абзац крупнее. */
.gprose { counter-reset: sec; }
.gprose > p:first-child { font-size: 21px; line-height: 1.55; color: var(--ink); }
.gprose h2 { counter-increment: sec; scroll-margin-top: 96px; }
.gprose h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 10px; font: 500 13.5px var(--font); color: var(--muted); }
/* Абзацы-определения с жирным началом: карточки рядом. */
.prose .defs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.prose .defs .wp-block-group__inner-container { display: contents; }
.prose .defs p { max-width: none; margin: 0; padding: 22px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); font-size: 16px; line-height: 1.55; }
.prose .defs strong, .prose .points strong { display: block; margin-bottom: 8px; font-size: 19px; letter-spacing: -.01em; }
.prose .defs .inline-term strong, .prose .points .inline-term strong { display: inline; margin: 0; font-size: inherit; letter-spacing: 0; }
/* Пункты с жирным началом: сетка карточек. */
.prose ul.points { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: none; margin: 24px 0; }
.prose ul.points li { margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.5; }
/* Нумерованные шаги: кружок с номером и линия между шагами. */
.prose ol.steps { list-style: none; padding: 0; margin: 24px 0; counter-reset: step; }
.prose ol.steps li { counter-increment: step; position: relative; margin: 0; padding: 4px 0 22px 52px; }
.prose ol.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font: 600 14px/1 var(--font); }
.prose ol.steps li:not(:last-child)::after { content: ""; position: absolute; left: 15.5px; top: 38px; bottom: 4px; width: 1px; background: var(--line-2); }
@media (max-width: 700px) { .prose .defs, .prose ul.points { grid-template-columns: 1fr; } }

/* Врезка «Коротко»: фото и главная мысль статьи. */
.prose .gbreak { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: center; margin: 48px 0; }
.gb-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.gb-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose .gbreak blockquote { margin: 0; padding: 0; border: 0; }
.prose .gbreak blockquote p { margin: 12px 0 0; max-width: none; font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--font); letter-spacing: -.025em; color: var(--ink); }
@media (max-width: 700px) { .prose .gbreak { grid-template-columns: 1fr; gap: 20px; } .gb-photo { aspect-ratio: 3 / 2; } }

/* Призыв в конце статьи: текст и часы с тем же, о чём статья. */
.prose .gcta { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; margin: 56px 0 0; padding: 32px 32px 32px 36px; border-radius: var(--r-xl); background: radial-gradient(90% 120% at 100% 0%, #fff, var(--card-2) 70%); box-shadow: var(--shadow); overflow: hidden; }
.gc-txt p { margin: 0 0 20px; max-width: 40ch; font-size: 20px; line-height: 1.45; color: var(--ink); font-weight: 500; }
.gc-txt .acts .btn { text-decoration: none; }
.gc-watch { width: 150px; margin: -12px -4px -60px 0; filter: drop-shadow(0 24px 30px rgba(14, 14, 15, .28)); }
.gc-icon { width: 104px; height: 104px; filter: drop-shadow(0 12px 22px rgba(14, 14, 15, .22)); }
@media (max-width: 700px) { .prose .gcta { grid-template-columns: 1fr; padding: 24px; } .gc-watch { width: 120px; margin: 0; justify-self: end; } .gc-icon { width: 80px; height: 80px; } }

/* Плитки разборов с фото: «Читать дальше», «Ещё разборы», раздел «Разборы». */
.tile { display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.tile-ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.tile-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.tile:hover .tile-ph img { transform: scale(1.04); }
.tile-body { display: grid; gap: 8px; align-content: start; padding: 20px 22px 24px; }
.tile-body b { font: 600 20px/1.25 var(--font); letter-spacing: -.02em; }
.tile-text { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.prose a.tile { text-decoration: none; color: var(--ink); }
.rn-title { margin: 0 0 40px; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; }
.rn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
@media (max-width: 1023px) { .rn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rn-grid { grid-template-columns: 1fr; } }
.hub-head { padding-bottom: 0; }
/* Раздел разборов: крупные плитки по две в ряд, четыре статьи встают ровно. */
.hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hub-grid .tile-ph { aspect-ratio: 16 / 9; }
.hub-grid .tile-body b { font-size: clamp(22px, 2vw, 28px); }
@media (max-width: 600px) { .hub-grid { grid-template-columns: 1fr; } }

/* ── Приложение: иконка, текст, устройства ── */
.app { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: stretch; }
.app .txt { grid-column: 1 / 6; display: grid; gap: 24px; align-content: center; }
.appcard { display: flex; align-items: center; gap: 16px; }
.appcard img { width: 72px; height: 72px; flex: 0 0 72px; filter: drop-shadow(0 10px 18px rgba(14, 14, 15, .22)); }
.appcard b { display: block; font: 600 20px/1.2 var(--font); letter-spacing: -.02em; }
.appcard span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.app h2 { margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.app p { margin: 0; color: var(--ink-2); font-size: 18px; max-width: 42ch; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feat li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.feat li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--lime) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M6.5 11.5l3 3 6-7' fill='none' stroke='%230E0E0F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 22px no-repeat; flex: 0 0 22px; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
/* QR только там, где он нужен: большой экран и мышь, то есть компьютер. */
.qr { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .qr { display: flex; align-items: center; gap: 16px; justify-self: start; max-width: 420px; padding: 12px 20px 12px 12px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
  .qr img { width: 88px; height: 88px; padding: 6px; flex: none; }
  .qr p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
}
/* Продуктовая группа: телефон опорой справа, часы перед ним слева и ниже,
   заходят только на рамку телефона (12% своей ширины), цифры не закрывают.
   Получается устойчивый треугольник: тяжесть внизу, вершина у телефона.
   Общая тень на «полке» связывает оба устройства в один предмет. */
/* Без своих полей: низ блока это низ часов, которые свисают под телефон (margin у .devs). */
.stagebox { grid-column: 6 / -1; display: flex; align-items: center; justify-content: center; perspective: 1400px; }
.devs { --pw: min(clamp(220px, 21vw, 300px), var(--fit-pw)); --ww: min(clamp(150px, 15.5vw, 220px), var(--fit-pw) * .73); position: relative; display: flex; align-items: flex-end; margin-bottom: calc(var(--ww) * .18); transform-style: preserve-3d; will-change: transform; }
.devs::after { content: ""; position: absolute; z-index: 0; left: 4%; right: 2%; bottom: calc(var(--ww) * -.26); height: 36px; background: radial-gradient(closest-side, rgba(14, 14, 15, .2), rgba(14, 14, 15, 0)); pointer-events: none; }
.dev { position: relative; flex: none; will-change: transform; }
.dev img { display: block; width: 100%; height: auto; }
.dev-phone { width: var(--pw); z-index: 1; }
.dev-phone img { filter: drop-shadow(0 30px 40px rgba(14, 14, 15, .22)); }
.dev-watch { width: var(--ww); z-index: 2; margin-right: calc(var(--ww) * -.12); margin-bottom: calc(var(--ww) * -.18); }
.dev-watch img { filter: drop-shadow(0 18px 22px rgba(14, 14, 15, .26)) drop-shadow(0 40px 50px rgba(14, 14, 15, .2)); }
@media (max-width: 1023px) { .app .txt, .stagebox { grid-column: 1 / -1; } .devs { --pw: min(clamp(190px, 36vw, 300px), var(--fit-pw)); --ww: min(clamp(118px, 27vw, 220px), var(--fit-pw) * .73); } }
@media (max-width: 560px) { .devs { --pw: min(54vw, var(--fit-pw) * 1.15); --ww: min(33vw, var(--fit-pw) * .7); } }

/* ── Вопросы: блоки «Детали» из редактора ── */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px var(--g); }
.faq h2 { grid-column: 1 / 5; margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; }
.qs { grid-column: 6 / -1; }
.qs details { border-top: 1px solid var(--line-2); }
.qs details:last-child { border-bottom: 1px solid var(--line-2); }
.qs summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 16px; align-items: center; min-height: 72px; padding: 12px 0; font: 600 19px/1.3 var(--font); letter-spacing: -.01em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow); font: 400 22px/1 var(--font); transition: transform .3s, background-color .3s; }
.qs details[open] summary::after { transform: rotate(45deg); background: var(--lime); }
.qs details p { margin: 0 0 24px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 1023px) { .faq h2, .qs { grid-column: 1 / -1; } }

/* ── Финальный баннер ── */
.end { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 560px; display: grid; align-items: end; color: #fff; background: #1a1a1b; }
.end-ph { position: absolute; left: 0; right: 0; top: 0; height: 120%; will-change: transform; }
.end-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 35%; }
.end::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 11, .62) 0%, rgba(10, 10, 11, .25) 55%, rgba(10, 10, 11, 0) 80%), linear-gradient(0deg, rgba(10, 10, 11, .45), transparent 50%); z-index: 1; }
.end .in { position: relative; z-index: 2; padding: clamp(28px, 4vw, 56px); display: grid; gap: 20px; max-width: 640px; }
.end-icon { width: 56px; height: 56px; }
.end h2 { margin: 0; font: 600 clamp(40px, 5vw, 76px)/.98 var(--font); letter-spacing: -.045em; }
.end p { margin: 0; font-size: 18px; color: rgba(255, 255, 255, .85); }
.end .fine { color: rgba(255, 255, 255, .7); }

/* ── Подвал: знак и три колонки, ниже строка с языком ── */
.foot { padding-block: 72px max(32px, env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot .logo { font-size: 20px; }
.foot-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--g); padding-bottom: 48px; border-bottom: 1px solid var(--line-2); }
.foot-brand { grid-column: 1 / 5; display: grid; gap: 14px; align-content: start; justify-items: start; }
.foot-brand p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.foot-cols { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.foot-col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.foot-col a { color: var(--ink-2); font-size: 15px; line-height: 1.35; text-decoration: none; } .foot-col a:hover, .foot-col a[aria-current] { color: var(--ink); }
.foot-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; }
.foot-fine { margin: 0; }
@media (max-width: 900px) { .foot-brand, .foot-cols { grid-column: 1 / -1; } }
@media (max-width: 560px) { .foot { padding-top: 56px; } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; } }

/* ── Обычная страница ── */
.plain-head { display: grid; gap: 24px; padding: 40px 0 0; margin-bottom: 48px; max-width: 900px; }
.plain-body { max-width: 760px; }
.page-plain .end { margin-top: 0; }


/* ══ Главная ══════════════════════════════════════════════════════════ */

/* Заголовок раздела: слева крупно, справа пояснение. Общий для главной и лендингов. */
.sec-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px var(--g); align-items: end; margin-bottom: 48px; }
.sec-head h2 { grid-column: 1 / 8; margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.sec-head p { grid-column: 8 / -1; margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.5; max-width: 46ch; }
@media (max-width: 1279px) { .sec-head h2, .sec-head p { grid-column: 1 / -1; } }
@media (max-width: 1023px) { .sec-head { margin-bottom: 32px; } }

/* ── Первый экран ── */
/* Фото справа сверху, телефон и часы стоят у его левого нижнего угла, наполовину
   на фото, наполовину на светлом фоне. Под кнопками знак App Store с QR. */
.hero.hhero { padding-bottom: 0; }
.hhero h1 { font-size: clamp(44px, 5.4vw, 84px); line-height: 1; }
.lockup { display: flex; align-items: center; gap: 16px; }
.lk-icon { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 8px 16px rgba(14, 14, 15, .22)); }
.lk-txt { display: grid; gap: 2px; }
.lk-txt b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.lk-txt span { font-size: 14px; color: var(--muted); }
.lk-qr { display: none; }
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .lk-qr { display: flex; align-items: center; gap: 12px; margin-left: 8px; padding-left: 24px; border-left: 1px solid var(--line-2); }
  .lk-qr img { width: 64px; height: 64px; padding: 4px; border-radius: 8px; background: #fff; box-shadow: var(--shadow); }
  .lk-qr span { max-width: 15ch; font-size: 13px; line-height: 1.35; color: var(--ink-2); }
}
.hm { position: relative; }
.hm-photo img { object-position: 60% 40%; }
.hm-devs { position: absolute; left: 0; bottom: 0; z-index: 3; perspective: 1400px; }
.hm .devs { --pw: min(clamp(196px, 18.5vw, 272px), var(--fit-pw)); --ww: min(clamp(124px, 11.5vw, 170px), var(--fit-pw) * .625); }
.devs.is-mirror .dev-watch { margin-right: 0; margin-left: calc(var(--ww) * -.12); }
@media (min-width: 1024px) {
  .hm { height: clamp(560px, calc(100svh - 176px), 760px); }
  .hm-photo { position: absolute; right: 0; top: 0; width: 80%; height: 86%; aspect-ratio: auto; }
}
@media (max-width: 1023px) {
  .hm { margin-top: 40px; padding-bottom: 88px; }
  .hm-photo { width: 80%; margin-left: auto; aspect-ratio: 1 / 1; }
  .hm .devs { --pw: min(clamp(150px, 33vw, 260px), var(--fit-pw)); --ww: min(clamp(92px, 20vw, 160px), var(--fit-pw) * .615); }
}
@media (max-width: 560px) { .hm { padding-bottom: 72px; } .hm-photo { width: 84%; aspect-ratio: 4 / 5; } .hm .devs { --pw: min(52vw, var(--fit-pw) * 1.15); --ww: min(32vw, var(--fit-pw) * .7); } .lockup { gap: 12px; } }

/* ── Три двери: высокие фото-карточки, человек узнаёт себя и идёт дальше ── */
.door-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.door { position: relative; isolation: isolate; display: grid; align-content: end; min-height: clamp(480px, 42vw, 600px); border-radius: var(--r-xl); overflow: hidden; background: #1a1a1b; box-shadow: var(--shadow); color: #fff; text-decoration: none; }
.door-ph { position: absolute; inset: 0; z-index: -2; }
.door-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.door:nth-child(1) .door-ph img { object-position: 64% 50%; }
.door:nth-child(2) .door-ph img { object-position: 50% 28%; }
.door:nth-child(3) .door-ph img { object-position: 55% 40%; }
.door::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 10, 11, .22) 0%, rgba(10, 10, 11, 0) 16%, rgba(10, 10, 11, 0) 28%, rgba(10, 10, 11, .74) 54%, rgba(10, 10, 11, .94) 100%); }
.door-n { position: absolute; top: 24px; left: 24px; font: 500 13px/1 var(--font); color: rgba(255, 255, 255, .8); }
.door-in { display: grid; gap: 12px; align-content: start; min-height: 336px; padding: 24px 24px 96px; }
.door b { font: 600 clamp(28px, 2.4vw, 36px)/1.04 var(--font); letter-spacing: -.035em; }
.door-t { font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .88); max-width: 38ch; }
.door-f { display: flex; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, .7); }
.door-f span + span::before { content: "·"; margin: 0 8px; }
.door-go { position: absolute; left: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 20px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 15px/1 var(--font); transition: background-color .3s, color .3s; }
.door-go svg { width: 32px; height: 32px; padding: 8px; border-radius: 50%; background: var(--ink); color: #fff; transition: transform .35s var(--ease); }
a.door:hover .door-ph img { transform: scale(1.04); }
a.door:hover .door-go svg { transform: translateX(3px); }
@media (max-width: 1023px) { .door-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .door:last-child { grid-column: 1 / -1; min-height: 460px; } }
@media (max-width: 600px) { .door-grid { grid-template-columns: 1fr; } .door, .door:last-child { min-height: 480px; } .door-in { min-height: 0; } }

/* ── Пять программ: ведомость, рядом телефон и часы с nSuns, под ними полоса калькулятора ── */
.progs-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); align-items: start; }
.ledger { grid-column: 1 / 8; padding: 8px 32px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
/* Устройства идут рядом со списком: прижаты к верху и липнут под шапкой, дыры над ними нет. */
.progs .stagebox { grid-column: 8 / -1; position: sticky; top: 104px; padding-top: 8px; }
.lg-row { display: grid; grid-template-columns: 28px minmax(0, 200px) minmax(0, 1fr); gap: 6px 24px; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); }
.lg-row:first-child { border-top: 0; }
.lg-n { font: 500 13px/1 var(--font); color: var(--muted); }
.lg-name b { display: block; font: 600 24px/1.1 var(--font); letter-spacing: -.03em; }
.lg-name span { display: block; margin-top: 8px; font: 500 12.5px/1.4 var(--font); color: var(--muted); }
.lg-rule { display: grid; gap: 6px; }
.lg-rule p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); }
.lg-tag { font: 500 12.5px/1.35 var(--font); color: var(--muted); }
.lg-foot { margin: 0; padding: 18px 0 22px; border-top: 1px solid var(--line-2); font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.calcband { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 320px; margin-top: 48px; border-radius: var(--r-xl); overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.cb-ph { position: relative; overflow: hidden; }
.cb-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transition: transform .9s var(--ease); }
.cb-in { display: grid; gap: 16px; align-content: center; justify-items: start; padding: 48px; }
.cb-in .label { color: rgba(255, 255, 255, .6); }
.cb-in b { font: 600 clamp(28px, 3vw, 44px)/1.05 var(--font); letter-spacing: -.035em; max-width: 17ch; }
.cb-in .btn { margin-top: 8px; }
.calcband:hover .cb-ph img { transform: scale(1.04); }
@media (max-width: 1279px) and (min-width: 1024px) { .ledger { padding: 4px 24px; } .lg-row { grid-template-columns: 24px minmax(0, 132px) minmax(0, 1fr); gap: 6px 16px; } .lg-name b { font-size: 21px; } .lg-rule p { font-size: 15px; } }
@media (max-width: 1023px) { .ledger, .progs .stagebox { grid-column: 1 / -1; } .progs .stagebox { position: static; padding-top: 0; margin-top: 40px; } }
@media (max-width: 760px) { .calcband { grid-template-columns: minmax(0, 1fr); } .cb-ph { aspect-ratio: 16 / 10; } .cb-in { padding: 24px; } .cb-in .btn { max-width: 100%; height: auto; min-height: 48px; padding: 13px 22px; white-space: normal; text-align: center; line-height: 1.2; } }
@media (max-width: 640px) { .ledger { padding: 4px 20px; } .lg-row { grid-template-columns: 24px minmax(0, 1fr); padding: 20px 0; } .lg-rule { grid-column: 2; } }

/* ── Досье: два метода переключателем, телефон меняет экран ── */
.ds-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--g); align-items: center; }
.ds-copy { grid-column: 1 / 7; display: grid; gap: 24px; align-content: center; justify-items: start; min-width: 0; }
.ds-copy h2 { margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.ds-lead { margin: 0; max-width: 54ch; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
.ds-seg { display: inline-flex; height: 48px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.ds-seg button { height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 15px var(--font); cursor: pointer; white-space: nowrap; transition: background-color .25s, color .25s; }
.ds-seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 14, 15, .12); }
.ds-cap { margin: -8px 0 0; max-width: 46ch; font-size: 16px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.ds-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--g); width: 100%; margin: 8px 0 0; }
.ds-facts div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.ds-facts dt { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.ds-facts dd { margin: 8px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.ds-phone { grid-column: 8 / -1; justify-self: center; display: grid; width: min(100%, 380px, var(--fit-w)); }
.ds-shot { grid-area: 1 / 1; transition: transform .6s var(--ease); }
.ds-shot:not(.is-on) { visibility: hidden; transform: translateY(16px); }
.ds-shot img { filter: drop-shadow(0 30px 40px rgba(14, 14, 15, .22)); }
@media (max-width: 1023px) { .ds-copy, .ds-phone { grid-column: 1 / -1; } .ds-phone { order: -1; width: min(78vw, 360px, var(--fit-w)); } }
@media (max-width: 600px) { .ds-facts { grid-template-columns: 1fr; } .ds-seg button { padding: 0 14px; font-size: 14px; } }

/* ── Часы на тёмном: разные экраны в ряд, под ними три умения ── */
.dark { border-radius: var(--r-xl); background: var(--ink); color: #fff; padding: clamp(32px, 5vw, 72px); overflow: hidden; }
.dark .sec-head p { color: rgba(255, 255, 255, .72); }
.lineup { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 32px 16px; align-items: start; margin: 40px 0 56px; }
.lu { margin: 0; display: grid; justify-items: center; gap: 12px; }
.lu img { width: min(100%, 200px, var(--fit-ww)); -webkit-mask-image: linear-gradient(to bottom, transparent 5%, #000 17%, #000 84%, transparent 95%); mask-image: linear-gradient(to bottom, transparent 5%, #000 17%, #000 84%, transparent 95%); margin: -9% 0 -11%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.lu figcaption { display: grid; justify-items: center; gap: 6px; max-width: 18ch; color: #fff; font-size: 14px; font-weight: 500; line-height: 1.35; text-align: center; text-wrap: balance; }
.dark .label { color: rgba(255, 255, 255, .5); }
.wfacts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.wfacts li { display: grid; gap: 8px; align-content: start; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); }
.wfacts b { font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
.wfacts li > span { color: rgba(255, 255, 255, .72); font-size: 16px; line-height: 1.5; }
.dark .fine { margin-top: 32px; color: rgba(255, 255, 255, .5); }
/* Телефон: часы лентой со сдвигом пальцем, каждые крупно, а не втроём мелко. */
@media (max-width: 960px) { .lineup { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--g); max-width: 640px; margin-left: auto; margin-right: auto; } }
@media (max-width: 760px) {
  .lineup { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 32px calc(clamp(32px, 5vw, 72px) * -1) 40px; padding: 0 clamp(32px, 5vw, 72px) 8px; scrollbar-width: none; }
  .lineup::-webkit-scrollbar { display: none; }
  .lu { flex: 0 0 46%; scroll-snap-align: center; }
  .lu img { width: min(100%, 200px, var(--fit-ww)); }
  .wfacts { grid-template-columns: 1fr; }
}

/* ── Обзор: шаги листаются, телефон стоит и меняет экран ── */
.tour-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 var(--g); }
.tour-steps { grid-column: 1 / 7; list-style: none; margin: 0; padding: 0; }
.ts { display: grid; align-content: center; gap: 16px; min-height: 52vh; padding: 32px 0; border-top: 1px solid var(--line-2); }
.ts:first-child { border-top: 0; min-height: 44vh; align-content: start; padding-top: 0; }
.ts h3 { margin: 0; font: 600 clamp(28px, 3vw, 44px)/1.05 var(--font); letter-spacing: -.035em; max-width: 18ch; text-wrap: balance; }
.ts p { margin: 0; max-width: 46ch; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.ts-shot { display: none; }
/* Что считается в шаге: тонкие метки, как список полей в приложении. */
.ts-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; max-width: 560px; }
.ts-tags li { padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 14px; line-height: 1.2; color: var(--ink-2); }
/* Объём аналитики: четыре числа на одной линии под заголовком. */
.an-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); margin: 0 0 56px; padding: 28px 0 0; border-top: 1px solid var(--ink); }
.an-stats div { display: grid; gap: 10px; align-content: start; }
.an-stats dt { font: 600 clamp(44px, 4.6vw, 72px)/.9 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.an-stats dd { margin: 0; max-width: 22ch; font-size: 16px; line-height: 1.4; color: var(--ink-2); }
@media (max-width: 760px) { .an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px var(--g); margin-bottom: 40px; } }
.tour-in.is-js .ts { transition: opacity .45s; }
.tour-in.is-js .ts:not(.is-on) { opacity: .32; }
.tour-side { grid-column: 8 / -1; }
.tour-phone { --tpw: min(360px, 25vw, var(--fit-w)); position: sticky; top: max(96px, calc(var(--fit-h) / 2 + 102px - var(--tpw) * 1.032)); display: grid; width: var(--tpw); margin: 0 auto; }
.tp { grid-area: 1 / 1; transition: transform .6s var(--ease); }
.tp:not(.is-on) { visibility: hidden; transform: translateY(24px); }
.tp img { filter: drop-shadow(0 30px 40px rgba(14, 14, 15, .22)); }
@media (max-width: 1023px) {
  .tour-steps { grid-column: 1 / -1; }
  .tour-side { display: none; }
  .ts, .ts:first-child { min-height: 0; padding: 40px 0; align-content: start; }
  .ts:first-child { padding-top: 0; }
  .ts:last-child { padding-bottom: 0; }
  .tour-in.is-js .ts:not(.is-on) { opacity: 1; }
  .ts-shot { display: block; width: min(72vw, 340px, var(--fit-w)); margin: 16px auto 0; }
  .ts-shot img { filter: drop-shadow(0 24px 32px rgba(14, 14, 15, .2)); }
}

/* ── Готовность: экран телефона, шкала зон и факторы с теми же значениями ── */
.ready { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px var(--g); align-items: start; }
/* Телефон у верха и идёт рядом с текстом, а не висит посередине высокой колонки. */
.rd-phone { grid-column: 1 / 5; justify-self: center; width: min(100%, 340px, var(--fit-w)); position: sticky; top: 104px; }
.rd-phone img { filter: drop-shadow(0 30px 40px rgba(14, 14, 15, .22)); }
.rd-in { grid-column: 6 / -1; display: grid; gap: 32px; min-width: 0; }
.rd-in h2 { margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.rd-lead { margin: -8px 0 0; max-width: 56ch; color: var(--ink-2); font-size: 18px; line-height: 1.5; }
/* Прибор готовности: белая карточка, балл крупно, шкала с делениями. Залита только
   сегодняшняя зона, стрелка стоит на балле. Пороги зон подписаны на самой шкале. */
.gauge { container: gauge / inline-size; display: grid; gap: 36px; padding: 28px 32px 32px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.g-read { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.g-num { display: flex; align-items: baseline; font: 600 clamp(72px, 6.4vw, 104px)/.8 var(--font); letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.g-num small { margin-left: 10px; font: 500 14px/1 var(--font); letter-spacing: 0; color: var(--muted); }
.g-verdict { display: grid; gap: 10px; justify-items: end; text-align: right; }
.g-verdict b { font: 600 clamp(22px, 2vw, 30px)/1 var(--font); letter-spacing: -.03em; }
.g-scale { display: flex; gap: 3px; }
.g-z { position: relative; display: grid; grid-template-rows: 18px 8px auto auto; min-width: 0; }
.g-t { position: relative; }
.g-t s { position: absolute; bottom: 6px; width: 1px; height: 5px; background: var(--line-2); text-decoration: none; }
.g-t s.is-major { height: 11px; background: var(--muted); }
.g-t s.is-end { left: auto; right: 0; }
.g-b { border-radius: 2px; background: var(--bg-2); }
.g-z:first-child .g-b { border-radius: 4px 2px 2px 4px; } .g-z:last-child .g-b { border-radius: 2px 4px 4px 2px; }
.g-z.is-on .g-b { background: var(--ink); }
.g-z i { grid-row: 3; grid-column: 1; justify-self: start; margin-top: 10px; font: 500 12.5px/1 var(--font); font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-z i.is-end { justify-self: end; }
.g-z.is-on i:not(.is-end) { color: var(--ink); }
.g-z b { grid-row: 4; margin-top: 12px; padding-right: 8px; font-size: 15px; font-weight: 500; line-height: 1.25; color: var(--muted); text-wrap: balance; }
.g-z.is-on b { color: var(--ink); font-weight: 600; }
.g-needle { position: absolute; top: -14px; height: 29px; width: 2px; border-radius: 1px; background: var(--ink); transform: translateX(-50%); }
.g-needle::before { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px #fff; transform: translateX(-50%); }
.g-legend { display: none; }
/* Узкая карточка: подписи под сегментами рвались бы на слоги, уходят списком под шкалу. */
@container gauge (max-width: 600px) {
  .g-z { grid-template-rows: 18px 8px auto; }
  .g-z b { display: none; }
  .g-legend { display: grid; list-style: none; margin: -8px 0 0; padding: 0; }
  .g-legend li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); color: var(--muted); }
  .g-legend span { font: 500 13px/1 var(--font); font-variant-numeric: tabular-nums; }
  .g-legend b { font-size: 16px; font-weight: 500; }
  .g-legend li.is-on { color: var(--ink); } .g-legend li.is-on b { font-weight: 600; }
  .g-legend li:last-child { padding-bottom: 0; }
}
.factors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.factors li { display: grid; gap: 8px; align-content: start; padding: 16px 20px 20px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow); }
.f-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.f-top b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.f-meter { display: flex; align-items: center; gap: 12px; }
.f-meter i { position: relative; flex: 1; height: 6px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.f-meter i::after { content: ""; position: absolute; inset: 0; border-radius: 6px; background: var(--ink); transform-origin: left; transform: scaleX(var(--v, 0)); }
.f-meter em { min-width: 24px; text-align: right; font: 500 13.5px/1 var(--font); font-style: normal; font-variant-numeric: tabular-nums; }
.f-d { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.factors li.is-note { display: flex; align-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.factors li.is-note span { font-size: 15px; line-height: 1.45; color: var(--muted); }
@media (max-width: 1023px) { .rd-phone, .rd-in { grid-column: 1 / -1; } .rd-phone { position: static; width: min(64%, 320px, var(--fit-w)); } }
@media (max-width: 600px) {
  .factors { grid-template-columns: 1fr; }
  .gauge { gap: 28px; padding: 20px 20px 24px; }
  .g-num { font-size: 72px; }
  .g-verdict b { font-size: 22px; }
}

/* ── Твои данные: лист характеристик, линии между ячейками ── */
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; padding: 1px; border-radius: var(--r-xl); background: var(--line-2); overflow: hidden; }
.specs div { display: grid; gap: 12px; align-content: start; min-height: 152px; padding: 24px; background: var(--bg); }
.specs dt { font: 500 13px/1.2 var(--font); color: var(--muted); }
.specs dd { margin: 0; font: 600 clamp(19px, 1.6vw, 22px)/1.25 var(--font); letter-spacing: -.02em; text-wrap: balance; }
@media (max-width: 1023px) { .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .specs div { min-height: 128px; } }
@media (max-width: 480px) { .specs div { padding: 20px 16px; } .specs dd { font-size: 17px; } }

/* ── Бесплатно и Plus: таблица по группам и тёмная карточка Plus во всю высоту ── */
.plan-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--g); align-items: stretch; }
.ptable { padding: 8px 32px 16px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); min-width: 0; }
.ptable table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ptable thead th { padding: 20px 12px 16px 0; text-align: left; font: 500 13px/1.2 var(--font); color: var(--muted); }
.ptable thead th.is-plus { color: var(--ink); }
.ptable .pt-group th { padding: 28px 0 8px; text-align: left; border-top: 1px solid var(--ink); font: 600 13px/1.2 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.ptable tbody th[scope="row"] { padding: 12px 16px 12px 0; border-top: 1px solid var(--line); text-align: left; font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ink); }
.ptable td { width: 22%; padding: 12px 12px 12px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.ptable td.is-plus { color: var(--ink); font-weight: 600; }
.pt-yes { display: inline-block; width: 22px; height: 22px; border-radius: 50%; vertical-align: middle; background: var(--ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'><path d='M6.5 11.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 22px no-repeat; }
td:not(.is-plus) .pt-yes { background-color: var(--muted); }
.pt-no { color: var(--muted); }
.ptable tbody:first-of-type .pt-group th { padding-top: 16px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: var(--r-xl); overflow: hidden; min-width: 0; }
.plan.is-plus { background: var(--ink); color: #fff; }
.plan h3 { margin: 0; font: 600 clamp(28px, 2.6vw, 38px)/1.05 var(--font); letter-spacing: -.035em; text-wrap: balance; }
.is-plus .label { color: rgba(255, 255, 255, .55); }
.pl-note { margin: 0; font-size: 17px; line-height: 1.5; color: #fff; }
.pl-risk { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, .68); }
.is-plus .btn { align-self: flex-start; margin-top: 8px; }
.plan-phone { width: min(100%, 264px, var(--fit-w)); margin: auto auto 0; padding-top: 24px; }
.plan-phone img { width: 100%; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5)); }
@media (max-width: 1023px) { .plan-grid { grid-template-columns: 1fr; } .plan-phone { width: min(62%, 300px, var(--fit-w)); } }
@media (max-width: 640px) {
  .ptable { padding: 4px 16px 8px; }
  .ptable thead th { padding: 16px 8px 8px 0; font-size: 10px; letter-spacing: .04em; }
  .ptable tbody th[scope="row"] { padding: 12px 8px 12px 0; font-size: 14px; }
  .ptable td { width: 27%; padding: 12px 8px 12px 0; font-size: 13px; }
  .pt-yes { width: 20px; height: 20px; background-size: 20px; }
  .plan { padding: 24px; } .plan-phone { width: min(72%, 280px, var(--fit-w)); }
}

/* Разборы на главной: заголовок и ссылка на раздел в одну строку. */
.rn-headrow { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 40px; }
.rn-headrow .rn-title { margin: 0; }

/* ── Телефон: короткая кнопка App Store внизу экрана ── */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 20px; background: rgba(14, 14, 15, .94); color: #fff; box-shadow: 0 16px 40px -12px rgba(14, 14, 15, .55); transform: translateY(160%); transition: transform .5s var(--ease); }
.sticky-cta.is-on { transform: none; }
.sticky-cta img { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.sticky-cta > span { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.sticky-cta b { font-size: 15px; font-weight: 600; }
.sticky-cta em { font-size: 13px; font-style: normal; color: rgba(255, 255, 255, .65); }
.sticky-cta .btn { height: 44px; padding: 0 16px; }
.sticky-cta { gap: 10px; }
.sticky-cta b, .sticky-cta em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-x { flex: none; display: grid; place-items: center; width: 32px; height: 44px; margin-left: -6px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .55); cursor: pointer; }
.sc-x:hover, .sc-x:focus-visible { color: #fff; }
@media (min-width: 761px) { .sticky-cta { display: none !important; } }

/* ── Движение: только сдвиг, страница полна и без скриптов ── */
.rv { transform: translateY(var(--rv, 0)); transition: transform .9s var(--ease); }
.rv.pre { --rv: 32px; }
@media (prefers-reduced-motion: no-preference) {
  .hero .h-copy > * { animation: st-rise .9s var(--ease) both; }
  .hero .h-copy > :nth-child(2) { animation-delay: .07s; } .hero .h-copy > :nth-child(3) { animation-delay: .14s; }
  .hero .h-copy > :nth-child(4) { animation-delay: .21s; } .hero .h-copy > :nth-child(5) { animation-delay: .28s; }
  .hero-photo img { animation: st-zoom 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .float .stc-float { animation: st-card 1.1s .35s var(--ease) both; }
  .hwatch img { animation: st-watch 1.3s .25s var(--ease) both; }
}
@media (prefers-reduced-motion: no-preference) {
  .hm-photo img { animation: st-zoom 1.6s cubic-bezier(.2, .7, .2, 1) both; }
  .hm .dev-phone img { animation: st-phone 1.2s .15s var(--ease) both; }
  .hm .dev-watch img { animation: st-watch2 1.3s .3s var(--ease) both; }
}
@keyframes st-rise { from { transform: translateY(28px); } }
@keyframes st-phone { from { transform: translateY(70px); } }
@keyframes st-watch2 { from { transform: translateY(90px) rotate(-6deg); } }
@keyframes st-zoom { from { transform: scale(1.08); } }
@keyframes st-card { from { transform: translateY(40px) rotate(-3deg); } }
@keyframes st-watch { from { transform: translateY(90px) rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv, .btn, .qs summary::after { transition: none; } .rv.pre { --rv: 0; }
}

/* ══ Лендинги, раздел калькуляторов, поддержка (templates/landing.php) ══
   Те же компоненты, что на главной, плюс шесть своих разделов ниже.
   Один акцент: лайм только у главной кнопки. */
.lhero .crumbs { margin-bottom: 4px; }
.hm.no-devs .hm-photo { width: 100%; }
@media (max-width: 1023px) { .hm.no-devs { padding-bottom: 0; } }
@media (min-width: 1024px) { .hm.no-devs .hm-photo { height: 100%; } }
.ledger.is-wide { grid-column: 1 / -1; }
.ledger.is-wide .lg-row { grid-template-columns: 32px minmax(0, 260px) minmax(0, 1fr); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Было и стало: таблица в белой карточке, правая колонка наша. */
.vs { position: relative; padding: 0 0 0 clamp(20px, 3vw, 40px); border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
/* Колонка Strenos: одна тёмная панель под всеми её ячейками, чуть выше и ниже
   карточки. Мягкое лаймовое свечение сверху, тонкий блик по краю. */
.vs-in { position: relative; }
.vs-in::before { content: ""; position: absolute; z-index: 0; top: -16px; bottom: -16px; left: 60%; right: 12px; border-radius: 28px; background: radial-gradient(58% 120px at 50% 0%, rgba(204, 255, 0, .1), transparent 100%), linear-gradient(180deg, #1D1E20, #0E0F10 64%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 44px 80px -36px rgba(14, 14, 15, .6), 0 18px 40px -20px rgba(14, 14, 15, .3); }
/* Светящаяся кромка по верху панели: лайм гаснет к углам. */
.vs-in::after { content: ""; position: absolute; z-index: 0; top: -16px; left: calc(60% + 28px); right: 40px; height: 1px; background: linear-gradient(90deg, transparent, rgba(204, 255, 0, .9), transparent); box-shadow: 0 0 18px 1px rgba(204, 255, 0, .35); pointer-events: none; }
.vs table { position: relative; z-index: 1; width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.vs thead th { width: 34%; padding: 32px 28px 24px 0; text-align: left; vertical-align: bottom; font-weight: 500; }
.vs thead th:first-child { width: 26%; }
.vs thead th.is-us { width: 40%; padding: 30px 40px 24px 32px; }
.vs-h { display: inline-flex; align-items: center; gap: 10px; font: 600 14px/1.2 var(--font); letter-spacing: -.005em; color: var(--ink-2); }
.vs-h svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.vs-us { display: flex; align-items: center; gap: 14px; }
.vs-us img { flex: none; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 10px 24px -10px rgba(0, 0, 0, .7); }
.vs-us b { display: block; font: 700 19px/1.1 var(--font); letter-spacing: -.025em; color: #fff; }
.vs-us small { display: block; margin-top: 5px; font: 500 13px/1.2 var(--font); color: rgba(255, 255, 255, .56); }
.vs tbody th { padding: 24px 28px 24px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; font: 600 16px/1.4 var(--font); letter-spacing: -.01em; color: var(--ink); }
.vs td { padding: 24px 28px 24px 0; border-top: 1px solid var(--line); vertical-align: top; }
.vs td.is-us { padding: 24px 40px 24px 32px; border-top-color: rgba(255, 255, 255, .08); }
.vs-c { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.vs-i { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 999px; font-style: normal; }
.vs-i svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }
.vs-i.is-no { background: var(--bg-2); color: var(--muted); }
.vs-i.is-ok { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 4px rgba(204, 255, 0, .1); }
.vs-c > span { font: 400 15px/1.5 var(--font); color: var(--muted); transition: color .2s; }
.vs td.is-us .vs-c > span { font: 500 16px/1.45 var(--font); letter-spacing: -.005em; color: #fff; }
.vs tbody tr:hover td:not(.is-us) .vs-c > span { color: var(--ink-2); }
@media (max-width: 1023px) {
  .vs thead th:first-child { width: 24%; }
  .vs thead th.is-us { padding: 26px 28px 20px 24px; }
  .vs td.is-us { padding: 22px 28px 22px 24px; }
  .vs thead th, .vs tbody th, .vs td { padding-right: 20px; }
}
/* Телефон: строка карточкой, ответ Strenos своей тёмной плашкой. */
@media (max-width: 760px) {
  .vs { padding: 4px 18px 8px; }
  .vs-in::before, .vs-in::after { display: none; }
  .vs table, .vs tbody, .vs tr, .vs tbody th, .vs td { display: block; width: auto; }
  /* Шапка таблицы становится легендой: один раз, а не подписью в каждой строке. */
  .vs thead, .vs thead tr { display: block; }
  .vs thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
  .vs thead th, .vs thead th:first-child, .vs thead th.is-us { width: auto; padding: 0; }
  .vs thead th:first-child { display: none; }
  .vs thead th.is-us { padding: 6px 12px 6px 6px; border-radius: 999px; background: linear-gradient(180deg, #1D1E20, #0E0F10); }
  .vs-us { gap: 8px; }
  .vs-us img { width: 24px; height: 24px; border-radius: 7px; }
  .vs-us b { font-size: 14px; }
  .vs-us small { display: none; }
  .vs tbody tr { padding: 22px 0; border-top: 1px solid var(--line); }
  .vs tbody tr:first-child { border-top: 0; }
  .vs tbody th, .vs td, .vs td.is-us { padding: 0; border: 0; }
  .vs tbody th { margin-bottom: 14px; font-size: 17px; }
  .vs td + td { margin-top: 10px; }
  .vs td.is-us { padding: 16px 18px; border-radius: 18px; background: radial-gradient(70% 90px at 50% 0%, rgba(204, 255, 0, .09), transparent 100%), linear-gradient(180deg, #1D1E20, #0E0F10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
  .vs td.is-us .vs-c > span { font-size: 15.5px; }
}

/* Разбор на числах: исходные слева, полосы «сколько от максимума» справа. */

/* ── Разбор на одном атлете: шаги, два расчёта с повторами, экран приложения, вывод ── */
.bx { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
/* Шаги и экран своей сеткой: липкий экран держится только рядом с шагами
   и не заезжает на вывод под ними. */
.bx-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 16px 40px; align-items: start; }
.bx-steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.bx-step { display: grid; gap: 18px; padding: 28px 32px 32px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.bx-h { display: flex; align-items: baseline; gap: 14px; }
.bx-h h3 { margin: 0; font: 600 clamp(20px, 1.9vw, 25px)/1.2 var(--font); letter-spacing: -.02em; }
.bx-step > p { margin: 0; max-width: 60ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.bx-eq { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.bx-eq > div { flex: 1 1 0; min-width: 0; display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: 18px; background: var(--card-2); }
.bx-eq b { font: 600 clamp(26px, 2.6vw, 36px)/1 var(--font); letter-spacing: -.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bx-eq span { font-size: 14px; line-height: 1.3; color: var(--muted); }
.bx-eq > i { align-self: center; font: 500 26px/1 var(--font); font-style: normal; color: var(--muted); }
.bx-eq > .is-sum { background: var(--ink); color: #fff; }
.bx-eq > .is-sum span { color: rgba(255, 255, 255, .7); }
.bx-dots { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bx-dots i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 2px currentColor; opacity: .35; }
.bx-dots i.on { background: currentColor; opacity: 1; }
.bx-dots i.half { background: linear-gradient(90deg, currentColor 50%, transparent 50%); opacity: 1; }
.bx-want { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.bx-want b { font: 600 18px/1.2 var(--font); letter-spacing: -.01em; }
.bx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bx-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 22px; background: var(--card-2); color: var(--ink); }
.bx-card p { margin: 0; }
.bx-f { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.bx-load { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bx-load b { font: 600 clamp(36px, 3.6vw, 50px)/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.bx-load span { font-size: 15px; color: var(--muted); }
.bx-sum { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.bx-reps { display: grid; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.bx-reps b { font: 600 18px/1.2 var(--font); letter-spacing: -.01em; }
.bx-v { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.bx-card.is-us { background: var(--ink); color: #fff; }
.bx-card.is-us .label, .bx-card.is-us .bx-load span { color: rgba(255, 255, 255, .6); }
.bx-card.is-us .bx-f, .bx-card.is-us .bx-sum, .bx-card.is-us .bx-v { color: rgba(255, 255, 255, .78); }
.bx-card.is-us .bx-reps { border-top-color: rgba(255, 255, 255, .16); }
.bx-shot { position: sticky; top: 104px; display: grid; gap: 16px; margin: 0; }
.bx-shot img { display: block; width: 100%; height: auto; filter: drop-shadow(0 28px 36px rgba(14, 14, 15, .22)); }
.bx-shot figcaption { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.bx-shot figcaption .label { display: block; margin-bottom: 6px; }
.bx-take { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 30px 32px; border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.bx-take p { margin: 0; max-width: 52ch; font: 600 clamp(19px, 1.9vw, 24px)/1.35 var(--font); letter-spacing: -.02em; }
.bx-note { grid-column: 1 / -1; margin: 0; max-width: 72ch; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 1023px) {
  .bx-main { grid-template-columns: 1fr; }
  .bx-shot { position: static; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: center; gap: 24px; }
}
@media (max-width: 640px) {
  .bx-step { padding: 22px 20px 24px; }
  .bx-two { grid-template-columns: 1fr; }
  .bx-eq > div { flex-basis: 100%; }
  .bx-eq > i { width: 100%; text-align: center; font-size: 22px; line-height: .6; }
  .bx-shot { grid-template-columns: 1fr; justify-items: center; }
  .bx-shot img { max-width: 320px; }
  .bx-take { padding: 24px 20px; }
  .bx-take .btn { width: 100%; }
}

/* Шаги в ряд: крупный номер, заголовок, одна мысль. */
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px var(--g); }
.steps-row li { display: grid; gap: 14px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.st-n { font: 500 13px/1 var(--font); color: var(--muted); }
.steps-row .st-n { font: 600 clamp(44px, 4vw, 64px)/.85 var(--font); letter-spacing: -.05em; color: var(--ink); margin-bottom: 8px; }
.steps-row h3 { margin: 0; font: 600 clamp(22px, 2vw, 28px)/1.15 var(--font); letter-spacing: -.03em; }
.steps-row p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* Экран и текст: телефон у верха и идёт рядом с текстом. */
.media { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--g); align-items: start; }
.md-phone { grid-column: 1 / 5; justify-self: center; width: min(100%, 340px, var(--fit-w)); position: sticky; top: 104px; }
.md-phone img { filter: drop-shadow(0 30px 40px rgba(14, 14, 15, .22)); }
.md-copy { grid-column: 6 / -1; display: grid; gap: 24px; align-content: start; min-width: 0; }
.media.is-flip .md-phone { grid-column: 9 / -1; grid-row: 1; }
.media.is-flip .md-copy { grid-column: 1 / 8; grid-row: 1; }
.md-copy h2 { margin: 0; font: 600 clamp(36px, 4.2vw, 64px)/1 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.md-lead { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 18px; line-height: 1.55; }
.md-facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--g); }
.md-facts div { display: grid; gap: 6px; align-content: start; padding: 18px 0; border-top: 1px solid var(--line-2); }
.md-facts dt { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.md-facts dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.md-copy .btn { justify-self: start; }
@media (max-width: 1023px) {
  .md-phone, .md-copy, .media.is-flip .md-phone, .media.is-flip .md-copy { grid-column: 1 / -1; grid-row: auto; }
  .md-phone { position: static; width: min(64%, 320px, var(--fit-w)); }
}
@media (max-width: 600px) { .md-facts { grid-template-columns: 1fr; } }

/* Карточка калькулятора: превью слева, суть и кнопка справа. */

/* Поддержка: тёмная карточка с адресом и список «что прислать». */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--g); align-items: start; }
.ct-card { grid-column: 1 / 7; display: grid; gap: 20px; justify-items: start; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.ct-card .label { color: rgba(255, 255, 255, .55); }
.ct-mail { font: 600 clamp(24px, 2.3vw, 34px)/1.1 var(--font); letter-spacing: -.03em; color: #fff; text-decoration: none; }
.ct-mail:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.ct-card p { margin: 0; max-width: 44ch; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .72); }
.ct-what { grid-column: 8 / -1; display: grid; gap: 8px; }
.ct-what h2 { margin: 0 0 8px; font: 600 clamp(26px, 2.4vw, 34px)/1.1 var(--font); letter-spacing: -.03em; }
.ct-what ol { list-style: none; margin: 0; padding: 0; }
.ct-what li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.ct-what li .st-n { padding-top: 4px; }
.ct-what b { font-size: 17px; font-weight: 600; }
.ct-what p { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1023px) { .ct-card, .ct-what { grid-column: 1 / -1; } }
.cb-t { max-width: 40ch; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
/* Три часов в ряд на лендингах: та же величина, ряд по центру. */
.lineup.lu-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 680px; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) { .lineup.lu-3 { display: flex; max-width: none; margin-left: calc(clamp(32px, 5vw, 72px) * -1); margin-right: calc(clamp(32px, 5vw, 72px) * -1); } }

/* ══ Аналитика на главной: восемь приборов (parts/bento.php) ══
   Белые карточки, тонкие сетки, чернила для «сейчас», тёплый серый для
   прошлого, пунктир для прогноза и среднего. Без лайма и без иконок. */
.bento { --hair: #ECEAE6; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); margin-bottom: 16px; }
.bc { display: grid; gap: 16px; align-content: start; min-width: 0; padding: 24px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow); }
.bc header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.bc header .label { color: var(--ink-2); }
.bc-chip { padding: 4px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font: 500 12.5px/1.2 var(--font); color: var(--muted); white-space: nowrap; }
.bc-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.bc-big b { font: 600 clamp(36px, 3.2vw, 52px)/.9 var(--font); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.bc-big span { font-size: 15px; line-height: 1.35; color: var(--ink-2); }
.bc-cap { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.bc-cap b { color: var(--ink); font-weight: 600; }
.bc-svg { display: block; width: 100%; height: auto; overflow: visible; }
.bc-svg .g { stroke: var(--hair); stroke-width: 1; }
.bc-svg .t { font: 500 12.5px var(--font); fill: var(--muted); }
.bc-svg .area { fill: rgba(14, 14, 15, .035); }
.bc-svg .band { fill: #E9E6E0; }
.bc-svg .ln { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.bc-svg .pr { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.bc-svg .pt { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.bc-svg .pt.now { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.bc-svg .pt.pend { stroke-dasharray: 3 3; }
.bc-svg .v { font: 600 14px var(--font); fill: var(--ink); }
.bc-svg .v.p { font-weight: 500; fill: var(--ink-2); }
.bc-svg .bar { fill: #E5E2DC; }
.bc-svg .bar.now { fill: var(--ink); }
.bc-svg .avg { stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bc-svg .base { stroke: var(--line-2); stroke-width: 1; }
.bc-svg .stem { stroke: #DCD9D3; stroke-width: 2; }
.bc-svg .stem.hot { stroke: var(--ink); }
.bc-svg .dot { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.bc-svg .dot.hot { fill: var(--ink); }
/* Индекс формы: дуга 0–100, число в центре, уровни подписью ниже. */
.bc-arc { position: relative; width: min(100%, 300px); margin: 0 auto; }
.bc-arc svg { display: block; width: 100%; height: auto; overflow: visible; }
.bc-arc .trk { fill: none; stroke: var(--hair); stroke-width: 14; stroke-linecap: round; }
.bc-arc .val { fill: none; stroke: var(--ink); stroke-width: 14; stroke-linecap: round; }
.bc-arc .tk { stroke: var(--muted); stroke-width: 1.5; }
.bc-arc-n { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 4px; }
.bc-arc-n b { font: 600 clamp(44px, 4vw, 60px)/.85 var(--font); letter-spacing: -.05em; }
.bc-arc-n span { font-size: 14px; color: var(--ink-2); }
.bc-lv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; }
.bc-lv span { padding-top: 8px; border-top: 2px solid var(--hair); font: 500 12.5px/1.2 var(--font); color: var(--muted); }
.bc-lv span.on { border-top-color: var(--ink); color: var(--ink); font-weight: 600; }
/* Шкалы с зонами: ACWR и талия к росту. */
.bc-zones { padding-top: 10px; }
.bc-zones .zt { position: relative; height: 10px; }
.bc-zones .zt i { position: absolute; top: 0; bottom: 0; border-right: 3px solid #fff; border-radius: 3px; background: var(--hair); }
.bc-zones .zt i.on { background: var(--ink); }
.bc-zones .needle { position: absolute; top: -9px; width: 2px; height: 28px; border-radius: 1px; background: var(--ink); transform: translateX(-50%); box-shadow: 0 0 0 2px #fff; }
.bc-zones .zl { position: relative; height: 14px; margin-top: 12px; }
.bc-zones .zl s { position: absolute; top: 0; transform: translateX(-50%); font: 500 12.5px/1 var(--font); color: var(--muted); text-decoration: none; }
/* Баланс мышц: одна полоса на три части и легенда. */
.bc-stack { display: flex; gap: 3px; height: 14px; }
.bc-stack i { border-radius: 4px; }
.bc .m0 { background: var(--ink); } .bc .m1 { background: #8C887F; } .bc .m2 { background: #DCD9D3; }
.bc-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bc-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-2); }
.bc-legend li i { width: 10px; height: 10px; border-radius: 3px; }
.bc-legend b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Карта активности: 100 дней клетками, сегодня в рамке. */
.act-in { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.bc-heat { display: grid; grid-template-rows: repeat(7, 18px); grid-auto-flow: column; grid-auto-columns: 18px; gap: 5px; }
.bc-heat i, .heat-key i { border-radius: 4px; background: var(--hair); }
.bc-heat .pad { background: transparent; }
.bc .h1 { background: #C9C5BE; } .bc .h2 { background: #8C887F; } .bc .h3 { background: var(--ink); }
.bc-heat .today { box-shadow: inset 0 0 0 1.5px var(--ink); }
.act-side { display: grid; gap: 14px; justify-items: start; }
.act-side .bc-big { flex-direction: column; gap: 6px; }
.heat-key { display: flex; align-items: center; gap: 5px; font: 500 12.5px/1 var(--font); color: var(--muted); }
.heat-key i { width: 14px; height: 14px; }
.heat-key span:first-child { margin-right: 4px; } .heat-key span:last-child { margin-left: 4px; }
@media (max-width: 640px) { .bc-heat { grid-template-rows: repeat(7, 14px); grid-auto-columns: 14px; gap: 4px; } }
.bc-rows { margin: 0; display: grid; }
.bc-rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.bc-rows dt { font-size: 14.5px; color: var(--ink-2); }
.bc-rows dd { margin: 0; font-size: 14.5px; font-weight: 600; text-align: right; }
.bento-note { margin: 0 0 56px; font-size: 13px; color: var(--muted); }
/* Раскладка: большой график слева во две строки, рядом индекс и баланс,
   ниже три узких прибора, внизу карта активности и тело. */
.bc-wm { grid-column: 1 / 8; grid-row: 1 / 3; }
.bc-fi { grid-column: 8 / -1; grid-row: 1; }
.bc-ac { grid-column: 8 / -1; grid-row: 2; }
.bc-ton { grid-column: 1 / 5; }
.bc-rpe { grid-column: 5 / 9; }
.bc-mus { grid-column: 9 / -1; }
.bc-act { grid-column: 1 / 8; }
.bc-body { grid-column: 8 / -1; }
.bc-wm .bc-svg { margin-top: 8px; }
@media (max-width: 1023px) {
  .bc-wm, .bc-act { grid-column: 1 / -1; grid-row: auto; }
  .bc-fi, .bc-ac, .bc-ton, .bc-rpe, .bc-mus, .bc-body { grid-column: span 6; grid-row: auto; }
  .bc-act { order: 9; }
}
/* Телефон: приборы лентой со сдвигом пальцем, следующий виден краем. */
@media (max-width: 640px) {
  .bento { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--edge-r) * -1) 12px calc(var(--edge) * -1); padding: 4px var(--edge-r) 16px var(--edge); scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .bc { flex: 0 0 86%; scroll-snap-align: center; padding: 20px; }
  .bc-wm .bc-svg .t { font-size: 20px; }
  .bc-wm .bc-svg .v { font-size: 26px; }
  .bento-note { margin-bottom: 40px; }
}
/* На лендингах полоса калькулятора стоит отдельным блоком: отступ даёт только --section. */
.page-landing .calcband { margin-top: 0; }

/* ══ Студия форматов (parts/formats.php) ══
   Тёмная сцена, вкладки с полосой автопрокрутки, схема формата разметкой,
   короткие продвинутые настройки и живой экран приложения. Цвета схем как
   в приложении: разминка голубая, дропсет янтарный, суперсет фиолетовый. */
.fmt { --hl: rgba(255, 255, 255, .1); --cell: #222228; padding: clamp(24px, 4vw, 56px); border-radius: var(--r-xl); background: var(--ink); color: #fff; }
.fmt-tabs { display: flex; margin: 0 0 clamp(28px, 3.4vw, 48px); border-bottom: 1px solid var(--hl); overflow-x: auto; scrollbar-width: none; }
.fmt-tabs::-webkit-scrollbar { display: none; }
.ft { position: relative; flex: none; display: inline-flex; align-items: baseline; gap: 10px; margin-right: clamp(18px, 2.6vw, 40px); padding: 4px 0 18px; border: 0; background: none; color: rgba(255, 255, 255, .62); font: 600 clamp(18px, 1.7vw, 24px)/1 var(--font); letter-spacing: -.02em; white-space: nowrap; cursor: pointer; transition: color .25s; }
.ft:hover { color: rgba(255, 255, 255, .75); }
.ft[aria-selected="true"] { color: #fff; }
.ft:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.fmt .ft-n { font: 500 12.5px/1 var(--font); color: rgba(255, 255, 255, .62); }
.ft-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.ft[aria-selected="true"] .ft-bar { background: rgba(255, 255, 255, .16); }
.ft[aria-selected="true"] .ft-bar::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; }
.fp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(24px, 4vw, 64px); align-items: start; align-content: start; }
/* Все панели в одной ячейке: блок держит высоту самой длинной, и при смене
   вкладки страница под ним не прыгает. Скрытая панель невидима и вне доступности. */
.fmt { display: grid; grid-template-columns: minmax(0, 1fr); }
.fp, .fp[hidden] { grid-area: 2 / 1; }
/* Высота блока по открытой вкладке: без пустого чёрного поля под короткими форматами. */
.fp[hidden] { display: none; }
.fp.is-on .fp-copy, .fp.is-on .fp-phone { animation: fp-in .7s var(--ease) both; }
.fp.is-on .fp-phone { animation-delay: .06s; }
@keyframes fp-in { from { opacity: 0; transform: translateY(16px); } }
.fp-copy { display: grid; gap: 18px; align-content: start; min-width: 0; }
.fp-k { font: 500 13px/1 var(--font); color: rgba(255, 255, 255, .5); }
.fp-copy h3 { margin: -4px 0 0; max-width: 18ch; font: 600 clamp(30px, 3.2vw, 48px)/1.02 var(--font); letter-spacing: -.04em; text-wrap: balance; }
.fp-line { margin: 0; font-size: 18px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
/* Три главные цифры формата: крупное число и короткая подпись под ним. */
.fp-hl { margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(16px, 2vw, 28px); }
.fp-hl div { display: grid; gap: 8px; align-content: start; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.fp-hl dt { font: 600 clamp(28px, 2.6vw, 38px)/1 var(--font); letter-spacing: -.04em; color: #fff; white-space: nowrap; }
.fp-hl dd { margin: 0; font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .62); }
.fp-dia { margin-top: 8px; padding: clamp(18px, 2vw, 28px); border-radius: var(--r-lg); background: #151518; box-shadow: inset 0 0 0 1px var(--hl); overflow: hidden; }
.fp-caps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--g); }
.fp-caps li { padding: 14px 0; border-top: 1px solid var(--hl); font-size: 15.5px; line-height: 1.4; color: rgba(255, 255, 255, .88); }
.fp-phone { justify-self: center; width: min(100%, 330px, var(--fit-w)); }
.fp-phone img { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .65)); }
.dg-ss-k, .dg-set-k { font: 500 12.5px/1.2 var(--font); color: rgba(255, 255, 255, .62); }
.dg-axis { display: flex; justify-content: space-between; margin-top: 12px; font: 500 12.5px/1 var(--font); color: rgba(255, 255, 255, .62); }
/* Силовая: столбец = вес подхода. */
.dg-bars { display: flex; align-items: flex-end; gap: clamp(6px, 1vw, 14px); height: 186px; }
.dg-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.dg-col b { font: 500 13.5px/1 var(--font); font-variant-numeric: tabular-nums; }
.dg-col i { width: min(100%, 46px); border-radius: 6px 6px 3px 3px; background: #FAFAFA; }
.dg-col span { margin-top: 2px; font: 600 13px/1 var(--font); }
.dg-col em { font: 500 12.5px/1 var(--font); font-style: normal; color: rgba(255, 255, 255, .62); }
.dg-col.is-warmup b, .dg-col.is-warmup span { color: #4FC3F7; } .dg-col.is-warmup i { background: #4FC3F7; }
.dg-col.is-drop b, .dg-col.is-drop span { color: #FBBF24; } .dg-col.is-drop i { background: #FBBF24; }
.dg-ss { display: flex; align-items: center; gap: 20px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hl); }
.dg-ss ul { list-style: none; margin: 0; padding: 2px 0 2px 14px; display: grid; gap: 8px; border-left: 2px solid #A78BFA; }
.dg-ss li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
/* EMOM: лента интервалов, ширина = длительность, курсор бежит по времени. */
.dg-rib { position: relative; display: flex; gap: 4px; }
.dg-iv { min-width: 0; display: grid; gap: 10px; align-content: start; padding: 12px; border-radius: 10px; background: var(--cell); }
.dg-iv-h { display: flex; gap: 8px; align-items: baseline; font: 500 13px/1 var(--font); color: rgba(255, 255, 255, .65); }
.dg-iv ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dg-iv li { font-size: 13.5px; line-height: 1.25; overflow-wrap: anywhere; }
/* Время идёт по шкале под лентой, а не поверх движений: текст остаётся читаемым. */
.dg-emom .dg-axis { margin-top: 22px; }
.dg-rib::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .12); }
.dg-head { position: absolute; z-index: 1; left: 0; bottom: -11px; height: 2px; width: 0; border-radius: 1px; background: #fff; animation: dg-sweep 11s linear infinite; }
.dg-head::after { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
@keyframes dg-sweep { from { width: 0; } to { width: 100%; } }
/* AMRAP: кольцо времени, круг движений, время раундов. */
.dg-amrap { display: grid; grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); gap: 28px; align-items: center; }
.dg-ring { position: relative; }
.dg-ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.dg-ring circle { fill: none; stroke-width: 8; }
.dg-ring .trk { stroke: #2A2A32; } .dg-ring .val { stroke: #fff; stroke-dasharray: 62 100; stroke-linecap: round; }
.dg-ring > div { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; }
.dg-ring b { font: 600 26px/1 var(--font); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dg-ring span { font: 500 12px/1 var(--font); color: rgba(255, 255, 255, .62); }
.dg-loop { display: grid; gap: 12px; }
.dg-loop ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: mv; }
.dg-loop li { counter-increment: mv; display: flex; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .62); }
.dg-loop li::before { content: counter(mv); font: 500 12.5px/1.6 var(--font); color: rgba(255, 255, 255, .62); }
.dg-loop li.on { color: #fff; font-weight: 600; }
.dg-splits { margin: 6px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 14px; border-top: 1px solid var(--hl); }
.dg-splits dt { font: 500 12px/1 var(--font); color: rgba(255, 255, 255, .45); }
.dg-splits dd { margin: 6px 0 0; font: 600 18px/1 var(--font); font-variant-numeric: tabular-nums; }
/* Табата: два сета по 8 раундов, работа выше отдыха. */
.dg-set { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: end; }
.dg-rounds { display: flex; align-items: flex-end; gap: 3px; height: 58px; padding-bottom: 18px; box-sizing: content-box; }
.dg-rounds i { position: relative; border-radius: 4px; }
.dg-rounds .w { flex: 2; height: 100%; background: #FAFAFA; }
.dg-rounds .w::after { content: attr(data-m); position: absolute; left: 50%; bottom: -17px; transform: translateX(-50%); font: 500 11.5px/1 var(--font); color: rgba(255, 255, 255, .5); }
.dg-rounds .r { flex: 1; height: 38%; background: #3F3F46; }
.dg-setrest { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px 76px; font: 500 12.5px/1 var(--font); color: rgba(255, 255, 255, .5); }
.dg-setrest::before, .dg-setrest::after { content: ""; flex: 1; border-top: 1px dashed rgba(255, 255, 255, .2); }
.dg-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.dg-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dg-legend i { width: 12px; height: 12px; border-radius: 3px; } .dg-legend .w { background: #FAFAFA; } .dg-legend .r { background: #3F3F46; }
/* Круговая: три круга станций, отдых между ними. */
.dg-lap { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; }
.dg-lap ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dg-lap li { padding: 8px 10px; border-radius: 8px; background: var(--cell); font-size: 13px; line-height: 1.2; }
.dg-circ .dg-setrest { margin: 10px 0 10px 76px; }
/* Гибрид: блоки подряд, ширина = время блока. */
/* Гибрид: лента сессии. Доли времени одной полосой, блоки списком; знак
   формата повторяет схему вкладки, цвет у всех блоков один. */
.dg-hyb { display: grid; gap: 22px; }
.hb-strip { display: grid; gap: 10px; }
.hb-strip .dg-axis { margin: 0; }
.hb-bar { display: flex; gap: 3px; height: 6px; }
.hb-bar i { min-width: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.hb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hb { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.hb-g { align-self: start; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--cell); color: #fff; }
/* Связка блоков: от низа знака до верха следующей строки, какой бы высоты ни была строка. */
.hb:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 38px; bottom: -10px; width: 1px; background: rgba(255, 255, 255, .16); }
.hb-g svg { width: 20px; height: 20px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hb-g svg .f { fill: currentColor; stroke: none; }
.hb-g svg .o { opacity: .35; }
.hb-t { display: grid; gap: 3px; min-width: 0; }
.hb-t b { font: 600 15px/1.2 var(--font); letter-spacing: -.01em; }
.hb-t em { font-style: normal; font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .55); }
.hb-d { font: 500 13px/1 var(--font); color: rgba(255, 255, 255, .65); white-space: nowrap; }
.hb.add .hb-g { background: transparent; box-shadow: none; border: 1.5px dashed rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .7); }
.hb.add .hb-t b { font-weight: 500; color: rgba(255, 255, 255, .7); }
@media (max-width: 1023px) {
  /* Узкий экран: заголовок, схема, живой экран, возможности. Экран между
     схемой и списком, чтобы панель не начиналась с телефона во весь экран. */
  .fp { grid-template-columns: 1fr; gap: 18px; }
  .fp-copy { display: contents; }
  .fp.is-on > .fp-copy > * { animation: fp-in .7s var(--ease) both; }
  .fp-k { order: 0; } .fp-copy h3 { order: 1; } .fp-line { order: 2; } .fp-hl { order: 3; } .fp-dia { order: 4; } .fp-phone { order: 5; } .fp-caps { order: 6; }
  .fp-phone { width: min(64%, 280px, var(--fit-w)); margin: 22px 0 14px; }
}
@media (max-width: 640px) {
  .fp-caps { grid-template-columns: 1fr; }
  .fp-hl { grid-template-columns: 1fr; }
  .fp-hl div { grid-template-columns: 108px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 14px 0 0; margin-top: 14px; }
  .fp-hl div:first-child { margin-top: 0; }
  .fp-hl dt { font-size: 28px; }
  .dg-rib { flex-direction: column; }
  .dg-iv { flex: none !important; grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .dg-head, .dg-rib::after { display: none; }
  .dg-emom .dg-axis { margin-top: 12px; }
  .dg-amrap { grid-template-columns: 1fr; justify-items: center; }
  .dg-ring { width: 150px; }
  .dg-loop { width: 100%; }
  .dg-set, .dg-lap { grid-template-columns: 1fr; gap: 8px; }
  .dg-setrest, .dg-circ .dg-setrest { margin-left: 0; }
  .dg-bars { height: 160px; }
  .dg-ss { flex-direction: column; align-items: flex-start; gap: 12px; }
  .fmt-tabs { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
  .fmt-tabs.at-end { -webkit-mask-image: none; mask-image: none; }
  /* Гибрид на телефоне: название и время в одну строку, суть под ними на всю ширину. */
  .hb { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 3px; align-items: baseline; }
  .hb-t { display: contents; }
  .hb-g { grid-row: 1 / span 2; }
  .hb-t b { grid-column: 2; grid-row: 1; }
  .hb-d { grid-column: 3; grid-row: 1; }
  .hb-t em { grid-column: 2 / 4; grid-row: 2; }
  .hb.add .hb-t b { grid-row: 1 / span 2; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .dg-head { animation: none; display: none; } .fp.is-on .fp-copy, .fp.is-on .fp-phone, .fp.is-on > .fp-copy > * { animation: none; } }

/* ── Часы каруселью: центр крупно, соседи тише, лента тянется пальцем ──
   Класс is-car ставит скрипт; без него остаётся обычный ряд выше. Все часы в
   одной ячейке, место и размер каждым кадром задаёт скрипт. */
.lineup.is-car { --lw: min(clamp(176px, 19vw, 248px), var(--fit-ww) * 1.15); display: grid; grid-template-columns: minmax(0, 1fr); max-width: none; gap: 0; overflow: visible; padding: 0; margin: 48px calc(clamp(32px, 5vw, 72px) * -1) 0; scroll-snap-type: none; touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.lineup.is-car.is-drag { cursor: grabbing; }
.lineup.is-car .lu { grid-area: 1 / 1; justify-self: center; width: var(--lw); flex: none; transform-origin: 50% 42%; will-change: transform, opacity; }
.lineup.is-car .lu img { width: 100%; pointer-events: none; -webkit-user-drag: none; }
.lineup.is-car .lu figcaption { opacity: var(--c, 0); max-width: 22ch; }
.lu-nav { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 28px 0 56px; }
.lu-arr { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: border-color .2s, background-color .2s; }
.lu-arr:hover { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); }
.lu-arr:focus-visible, .lu-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lu-arr svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lu-dots { display: flex; }
.lu-dot { position: relative; width: 28px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.lu-dot::before { content: ""; position: absolute; left: 4px; right: 4px; top: 21px; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .22); transition: background-color .3s; }
.lu-dot[aria-current="true"]::before { background: #fff; }
@media (max-width: 760px) { .lu-nav { margin: 20px 0 40px; } }

/* ── Указатель калькуляторов: строки слева, липкая сцена с живым прибором справа ── */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tix-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
.tix-filter { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 999px; background: var(--bg-2); }
.tix-filter button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 600 14px/1 var(--font); cursor: pointer; transition: background-color .2s, color .2s; }
.tix-filter button i { font: 500 12.5px/1 var(--font); font-style: normal; color: var(--muted); }
.tix-filter button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(14, 14, 15, .12); }
.tix-rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.tix-row { border-bottom: 1px solid var(--line-2); }
.tix-row[hidden] { display: none; }
.tix-a { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 16px; padding: 18px 14px; border-radius: 18px; color: var(--ink); text-decoration: none; transition: background-color .2s; }
.tix-n { font: 500 13.5px/1 var(--font); color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.tix-t { display: grid; gap: 6px; min-width: 0; }
.tix-t > b { font: 600 clamp(19px, 1.6vw, 22px)/1.2 var(--font); letter-spacing: -.02em; }
.tix-t > span:not(.tix-ic) { font-size: 15px; line-height: 1.4; color: var(--ink-2); }
.tix-ic { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tix-i { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 8px; background: var(--card-2); color: var(--ink-2); font-size: 13px; line-height: 1; white-space: nowrap; }
.tix-i .tix-svg { width: 16px; height: 16px; }
.tix-svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tix-mini { display: none; }
.tix-go { display: grid; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.tix-row.is-on .tix-a, .tix-a:hover, .tix-a:focus-visible { background: #fff; outline: none; }
.tix-row.is-on .tix-n, .tix-row.is-on .tix-go { transform: translateX(4px); color: var(--ink); }
.tix-stage { position: sticky; top: 104px; }
.tix-card { display: none; gap: 18px; padding: 28px; border-radius: var(--r-xl); background: #fff; box-shadow: var(--shadow); }
.tix-card.is-on { display: grid; animation: tix-in .35s var(--ease) both; }
@keyframes tix-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.tix-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tix-tag { padding: 6px 10px; border-radius: 999px; background: var(--bg-2); font: 500 12.5px/1 var(--font); color: var(--muted); }
.tix-tag.is-you { background: var(--ink); color: #fff; }
.tix-name { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--font); letter-spacing: -.025em; }
.tix-instr { min-height: 270px; padding: 22px; border-radius: 20px; background: var(--card-2); }
.tix-gets { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.tix-gets li { display: inline-flex; align-items: center; gap: 7px; }
.tix-open { justify-self: start; }
/* Приборы: моно, крупная цифра, без радуги (цвета только у блинов, как на помосте). */
.tix-svg-i { display: block; width: 100%; height: 100%; }
.tix-svg-i .is-ink { fill: var(--ink); }
.tix-svg-i .is-soft { fill: var(--line-2); }
.tix-svg-i .is-heat { fill: #C2410C; }
.tix-svg-i .is-line { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.tix-svg-i .is-plate { stroke: rgba(14, 14, 15, .2); stroke-width: .8; }
.tx-cap { margin: 0 0 14px; font: 500 13px/1.2 var(--font); color: var(--muted); }
.tx-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; height: 200px; }
.tx-col { display: grid; justify-items: center; align-content: end; gap: 8px; }
.tx-col b { font: 600 17px/1 var(--font); font-variant-numeric: tabular-nums; }
.tx-col i { width: 100%; max-width: 58px; height: var(--h); border-radius: 10px; background: var(--ink); transform-origin: bottom; animation: tx-grow .6s var(--ease) both; }
.tx-col:nth-child(2) i { animation-delay: .05s; } .tx-col:nth-child(3) i { animation-delay: .1s; } .tx-col:nth-child(4) i { animation-delay: .15s; }
.tx-col.is-soft i { background: var(--line-2); }
.tx-col span { font-size: 12px; color: var(--muted); white-space: nowrap; }
@keyframes tx-grow { from { transform: scaleY(.15); } }
.tx-big { margin: 0; font: 600 54px/1 var(--font); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.tx-big small { font-size: 18px; letter-spacing: 0; color: var(--muted); }
.tx-sub { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); }
.tx-sub b { font-size: 16px; color: var(--ink); }
.tx-bars { display: grid; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
.tx-bars li { display: grid; grid-template-columns: 72px minmax(0, 1fr) 64px; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.tx-bars i { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tx-bars i::before { content: ""; display: block; width: var(--w); height: 100%; border-radius: 4px; background: var(--ink); transform-origin: left; animation: tx-fill .6s var(--ease) both; }
@keyframes tx-fill { from { transform: scaleX(.2); } }
.tx-bars b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.tx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tx-two > div { display: grid; gap: 10px; align-content: start; padding: 16px; border-radius: 16px; background: #fff; }
.tx-two > .is-us { background: var(--ink); color: #fff; }
.tx-two span { font: 500 12.5px/1.2 var(--font); color: var(--muted); }
.tx-two .is-us span { color: rgba(255, 255, 255, .6); }
.tx-two b { font: 600 34px/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.tx-two em { font-size: 14px; font-style: normal; font-weight: 600; }
.tx-two .bx-dots { gap: 5px; }
.tx-two .bx-dots i { width: 12px; height: 12px; }
.tx-rpe { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.tx-rpe th { padding: 4px 2px 6px; font: 500 12.5px/1.2 var(--font); color: var(--muted); text-align: center; white-space: nowrap; }
.tx-rpe thead th:first-child, .tx-rpe tbody th { width: 46px; padding-left: 6px; text-align: left; }
.tx-rpe tbody th { font: 600 14px/1 var(--font); letter-spacing: 0; color: var(--ink-2); }
.tx-rpe th.is-col, .tx-rpe th.is-row { color: var(--ink); }
/* Один тёплый тон: от белого к жжёному оранжевому, чем тяжелее вес, тем темнее клетка. */
.tx-rpe td { height: 34px; border-radius: 8px; text-align: center; font: 600 14px/1 var(--font); color: var(--ink); background: linear-gradient(rgba(194, 65, 12, calc(var(--h) * .92)), rgba(194, 65, 12, calc(var(--h) * .92))), #fff; }
.tx-rpe td.is-dark { color: #fff; }
.tx-rpe td.is-on { background: var(--ink); color: #fff; box-shadow: 0 0 0 2px var(--card-2), 0 0 0 4px var(--ink); }
.tx-bar { position: relative; display: flex; align-items: center; gap: 3px; height: 170px; padding-left: 36px; }
.tx-bar s { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: #A3A6AD; text-decoration: none; }
.tx-bar u { position: relative; width: 10px; height: 36px; margin-right: 4px; border-radius: 3px; background: var(--ink); }
.tx-bar i { position: relative; width: 24px; height: var(--h); border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(14, 14, 15, .14); animation: tx-plate .45s var(--ease) both; }
.tx-bar i:nth-of-type(2) { animation-delay: .06s; } .tx-bar i:nth-of-type(3) { animation-delay: .12s; } .tx-bar i:nth-of-type(4) { animation-delay: .18s; } .tx-bar i:nth-of-type(5) { animation-delay: .24s; } .tx-bar i:nth-of-type(6) { animation-delay: .3s; }
@keyframes tx-plate { from { opacity: 0; transform: translateX(18px); } }
@media (prefers-reduced-motion: reduce) { .tix-card.is-on, .tx-col i, .tx-bars i::before, .tx-bar i { animation: none; } .tix-n, .tix-go, .tix-a, .tix-filter button { transition: none; } }
@media (max-width: 900px) {
  .tix-in { grid-template-columns: minmax(0, 1fr); }
  .tix-stage { display: none; }
  .tix-a { grid-template-columns: minmax(0, 1fr) 72px; gap: 14px; padding: 16px 6px; }
  .tix-n, .tix-go { display: none; }
  .tix-mini { display: block; width: 72px; height: 48px; }
  .tix-row.is-on .tix-a { background: transparent; }
  .tix-filter { display: flex; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .tix-filter::-webkit-scrollbar { display: none; }
  .tix-filter button { flex: none; height: 38px; padding: 0 14px; }
  .tix-ic { display: none; }
}

/* Гарантии под кнопками первого экрана: одна спокойная строка, без значков. */
.h-trust { margin: 16px 0 0; max-width: 46ch; font-size: 14px; line-height: 1.5; color: var(--ink-2); }


/* ── Сторона Strenos в любых сравнениях: логотип и лайм (решение владельца 2026-11-08) ── */
.us-brand { display: inline-flex; align-items: center; gap: 8px; font: 700 15px/1 var(--font); letter-spacing: -.02em; text-transform: none; color: #fff; }
.us-brand::before { content: ""; flex: none; width: 24px; height: 24px; background: url(../img/mark-light.png) center / contain no-repeat; }
.bx-card.is-us { background: radial-gradient(120% 90% at 100% 0%, rgba(204, 255, 0, .16), transparent 55%), var(--ink); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .3); }
.bx-card.is-us .bx-load b { color: var(--lime); }
.bx-card.is-us .bx-dots { color: var(--lime); }
.bx-card.is-us .bx-reps b { color: #fff; }
.tx-two > .is-us { background: radial-gradient(120% 90% at 100% 0%, rgba(204, 255, 0, .18), transparent 60%), var(--ink); box-shadow: inset 0 0 0 1px rgba(204, 255, 0, .3); }
.tx-two > .is-us b { color: var(--lime); }
.tx-two > .is-us .bx-dots { color: var(--lime); }
.tx-two .us-brand { font-size: 13px; color: #fff; letter-spacing: -.01em; }
.tx-two .us-brand::before { width: 18px; height: 18px; }

/* Калькуляторы в меню двумя колонками: программы и инструменты. */
/* Широкая панель встаёт от своего пункта, как обычная: по центру пункта она
   уезжала за левый край окна на 1024–1280. */
.links-list .sub.is-wide { left: -22px; transform: translateY(6px); }
.links-list > li.has-sub:hover .sub.is-wide, .links-list > li.has-sub:focus-within .sub.is-wide { transform: none; }
.sub-in.sub-cols { max-width: calc(100vw - 48px); }
.sub-in.sub-cols { width: 660px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
.sub-col { display: grid; gap: 2px; align-content: start; margin: 0; padding: 0; list-style: none; }
.sub-h { padding: 10px 14px 6px; font: 500 12.5px/1.2 var(--font); color: var(--muted); }
.sub-col.sub-foot { grid-column: 1 / -1; }
.mnav-list .mnav-h2 { padding: 10px 0 2px; font: 500 12.5px/1.2 var(--font); color: var(--muted); }
.tx-cols.is-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 6px; height: 190px; }
.tx-cols.is-9 b { font-size: 13px; }
.tx-cols.is-9 span { font-size: 12px; }
.tx-cols.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Строка программы ведёт на её калькулятор: имя ссылкой и подпись со стрелкой. */
.lg-name a { color: inherit; text-decoration: none; }
.lg-name a:hover b, .lg-name a:focus-visible b { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.lg-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.lg-go { display: inline-flex; align-items: center; gap: 6px; font: 600 13px/1.3 var(--font); color: var(--ink); text-decoration: none; }
.lg-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.lg-go:hover svg { transform: translateX(3px); }
/* Галочка у чужой стороны нейтральная (лайм только у Strenos), крестик у
   своей приглушённый на тёмной панели. */
.vs td:not(.is-us) .vs-i.is-ok { background: var(--ink); color: #fff; box-shadow: none; }
.vs td.is-us .vs-i.is-no { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .6); }
/* Таблица со словами в разборе: ячейки переносятся, первая колонка держится одной строкой. */
.prose .wp-block-table.is-text td { white-space: normal; min-width: 104px; line-height: 1.4; font-size: 15px; vertical-align: top; }
.prose .wp-block-table.is-text td:first-child { white-space: nowrap; min-width: 0; font-weight: 600; }
@media (max-width: 760px) { .prose .wp-block-table.is-text td { min-width: 120px; font-size: 14px; } }

/* Первый экран на телефоне: фото во всю ширину, лицо открыто сверху, телефон с
   часами одной группой по центру заходят на низ фото и свисают под него. */
@media (max-width: 560px) {
  .hm { padding-bottom: 46vw; }
  .hm-photo { width: 100%; aspect-ratio: 4 / 5; }
  .hm-photo img { object-position: 50% 30%; }
  .hm .devs { --pw: min(46vw, var(--fit-pw) * 1.1); --ww: min(29vw, var(--fit-pw) * .66); }
  .hm-devs { left: 50%; bottom: 0; transform: translateX(-50%); }
}

/* Телефон: без 3D-сцены. Safari рисует drop-shadow внутри preserve-3d и perspective
   серым прямоугольником по рамке картинки; анимации здесь всё равно выключены. */
@media (max-width: 760px) {
  .stagebox, .hm-devs { perspective: none; }
  .devs { transform: none !important; transform-style: flat; will-change: auto; }
}

/* Телефон: гладкость важнее эффектов.
   1. drop-shadow на картинках Safari на iPhone рисует серым прямоугольником по рамке
      картинки и пересчитывает на каждом кадре прокрутки. Тени остаются только мягким
      пятном под группой устройств (.devs::after).
   2. Блоки не выезжают при прокрутке и первый экран не «въезжает» при загрузке.
   3. Размытие под меню и нижней плашкой заменено плотным фоном: blur на iOS дорогой. */
@media (max-width: 760px) {
  main img, footer img { filter: none !important; }
  .rv, .rv.pre { transform: none !important; transition: none !important; }
  .hero .h-copy > *, .hero-photo img, .hm-photo img, .hm .dev-phone img, .hm .dev-watch img,
  .float .stc-float, .hwatch img { animation: none !important; }
  .nav-in { background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .keycard { background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Переход между страницами: короткое растворение вместо белой вспышки
   (Safari 18.2+, Chrome 126+; остальные браузеры просто открывают страницу). */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* Горизонтальные полосы вкладок: палец ведёт только вбок, страница под ним не едет. */
.fmt-tabs, .tix-filter { overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x; }
.lineup, .bento { overscroll-behavior-x: contain; }

/* Прибор «Нормативы»: лестница порогов, свой уровень лаймом. */
.tx-rk li.is-hit span { font-weight: 600; color: var(--ink); }
.tx-rk li.is-hit i::before { background: var(--lime); }
.tx-rk li.is-hit b { padding: 2px 8px; border-radius: 999px; background: var(--lime); }
