/* =====================================================================
   «Апогей» — концепция «Отчёт миссии / технический мануал»
   Светлая швейцарская инженерная документация: модульная сетка, тонкие чёрные
   линейки, оранжевые маркеры, моноширинные служебные метки, тёмные «космические»
   иллюстрации с метками обреза. Все классы темы — с префиксом ap-.
   ===================================================================== */

.site.theme-apogey {
  --wrap: 1280px;
  --ap-paper: #F2F2EE;
  --ap-paper-2: #E7E7E1;
  --ap-sheet: #FBFBF8;
  --ap-ink: #0B0D12;
  --ap-ink-2: #2B2F3A;
  --ap-muted: #5C6170;
  --ap-line: rgba(11, 13, 18, .14);
  --ap-line-2: rgba(11, 13, 18, .3);
  --ap-orange: #FF4F1A;
  --ap-orange-ink: #C2400F; /* оранжевый для мелкого текста: контраст 4.6:1 на бумаге */
  --ap-cobalt: #1B3A8C;
  --ap-space: #0E1220;
  --ap-display: var(--f-jost), 'Futura', 'Century Gothic', system-ui, sans-serif;
  --ap-body: var(--f-inter), system-ui, -apple-system, sans-serif;
  --ap-mono: var(--f-jetbrains), ui-monospace, SFMono-Regular, Menlo, monospace;
  --ap-hdr-top: 124px; /* служебная строка 32 + титульный блок 92: при прокрутке остаётся только строка разделов */
  background: var(--ap-paper);
  color: var(--ap-ink);
  font-family: var(--ap-body);
}
.theme-apogey ::selection { background: var(--ap-orange); color: var(--ap-ink); }
.theme-apogey :focus-visible { outline: 2px solid var(--ap-cobalt); outline-offset: 3px; border-radius: 0; }
.theme-apogey h1, .theme-apogey h2, .theme-apogey h3 { font-family: var(--ap-display); font-weight: 600; letter-spacing: -.012em; }
.theme-apogey .kicker { font-family: var(--ap-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: var(--ap-ink); display: inline-flex; align-items: center; gap: 8px; }
.theme-apogey .kicker::before { content: ""; width: 8px; height: 8px; background: var(--ap-orange); flex: none; }
.theme-apogey .meta { font-family: var(--ap-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ap-muted); gap: 8px; }
.theme-apogey .meta .dot { width: 5px; height: 1px; border-radius: 0; background: var(--ap-ink); opacity: .5; }
.theme-apogey .avatar { border-radius: 0; }
.theme-apogey .progress { height: 3px; background: var(--ap-orange); }

/* ---------- обложки: тёмный космос, координатная сетка ---------- */
.theme-apogey .cover { border-radius: 0; background: var(--ap-space); }
.theme-apogey .cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(242, 242, 238, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 242, 238, .07) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
}
.ap-fig { position: relative; display: block; }
.ap-marks {
  --c: var(--ap-ink); --l: 14px;
  position: absolute; inset: -7px; pointer-events: none;
  background:
    linear-gradient(var(--c) 0 0) top left / var(--l) 1px no-repeat,
    linear-gradient(var(--c) 0 0) top left / 1px var(--l) no-repeat,
    linear-gradient(var(--c) 0 0) top right / var(--l) 1px no-repeat,
    linear-gradient(var(--c) 0 0) top right / 1px var(--l) no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / var(--l) 1px no-repeat,
    linear-gradient(var(--c) 0 0) bottom left / 1px var(--l) no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / var(--l) 1px no-repeat,
    linear-gradient(var(--c) 0 0) bottom right / 1px var(--l) no-repeat;
}
.ap-fig-label {
  position: absolute; left: 0; bottom: 0; z-index: 1; display: flex; gap: 14px; align-items: center;
  padding: 7px 12px 6px; background: rgba(11, 13, 18, .78); color: #E9EAEE;
  font: 500 10.5px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase;
}
.ap-fig-label span:first-child { color: var(--ap-orange); font-weight: 600; }

/* ---------- общие элементы ---------- */
.ap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font: 500 10.5px/1.3 var(--ap-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ap-muted); }
.ap-meta-cat { color: var(--ap-ink); font-weight: 600; }
.ap-kick { display: inline-flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-ink); }
.ap-kick::before { content: ""; width: 10px; height: 10px; background: var(--ap-orange); flex: none; }
.theme-apogey .ap-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; cursor: pointer;
  background: var(--ap-ink); color: var(--ap-paper); border: 1px solid var(--ap-ink);
  font: 600 11.5px/1 var(--ap-mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.theme-apogey .ap-btn:hover { background: var(--ap-orange); border-color: var(--ap-orange); color: var(--ap-ink); }
.theme-apogey .ap-btn.ghost { background: transparent; color: var(--ap-ink); }
.theme-apogey .ap-btn.ghost:hover { background: var(--ap-ink); border-color: var(--ap-ink); color: var(--ap-paper); }
.ap-cap { margin: 0 0 4px; font: 500 10.5px/1 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-empty { margin: 64px 0; padding: 28px; border: 1px solid var(--ap-ink); background: var(--ap-sheet); font-size: 18px; display: flex; gap: 18px; align-items: baseline; }
.ap-empty span { font: 600 11px var(--ap-mono); letter-spacing: .14em; color: var(--ap-orange-ink); }

/* подчёркивание заголовков при наведении — оранжевая линейка */
.theme-apogey :is(.ap-hero-grid, .ap-log-row, .ap-pop-row, .ap-talk-cell, .ap-clause, .ap-spec-lead, .list-row, .related-card):hover :is(h2, h3) {
  text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; text-underline-offset: .16em;
}

/* шапка раздела: «■ A  Журнал миссии  MISSION LOG ········ служебное» */
.ap-sh { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 12px 0 14px; border-top: 3px solid var(--ap-ink); border-bottom: 1px solid var(--ap-ink); }
.ap-sh-code { display: inline-flex; align-items: center; gap: 9px; font: 600 12px/1 var(--ap-mono); letter-spacing: .1em; color: var(--ap-ink); align-self: center; }
.ap-sh-code i { width: 10px; height: 10px; background: var(--ap-orange); }
.ap-sh h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.1; letter-spacing: -.015em; }
.ap-sh h2 a:hover { text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; }
.ap-sh-en { font: 500 11px/1 var(--ap-mono); letter-spacing: .18em; color: var(--ap-muted); }
.ap-sh-meta { margin-left: auto; font: 500 10.5px/1 var(--ap-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); }

/* таблица данных (dl) — главный материал и шапка статьи */
.ap-spec-table { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ap-ink); }
.ap-spec-table > div { padding: 10px 14px 12px 0; min-width: 0; }
.ap-spec-table > div + div { padding-left: 14px; border-left: 1px solid var(--ap-line); }
.ap-spec-table dt { font: 500 9.5px/1.2 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-spec-table dd { margin: 6px 0 0; font: 500 14px/1.3 var(--ap-mono); color: var(--ap-ink); font-variant-numeric: tabular-nums; }
.ap-spec-table dd small { display: block; margin-top: 2px; font: 400 12px/1.3 var(--ap-body); color: var(--ap-muted); }
.ap-spec-table .ap-wide { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--ap-line); }
.ap-spec-table .ap-wide dd { font-family: var(--ap-body); font-weight: 600; font-size: 14.5px; }

/* =====================================================================
   Шапка — титульный блок
   ===================================================================== */
.ap-hdr { position: sticky; top: calc(-1 * var(--ap-hdr-top)); z-index: 40; background: var(--ap-paper); }
.ap-strip { background: var(--ap-ink); color: #B9BDC8; font: 500 10.5px/1 var(--ap-mono); letter-spacing: .1em; text-transform: uppercase; }
.ap-strip-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 32px; }
.ap-strip-doc { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ap-strip-code { color: #fff; font-weight: 600; }
.ap-strip-sep { color: var(--ap-orange); }
.ap-strip-links { display: flex; align-items: center; gap: 22px; }
.ap-strip-links a { display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.ap-strip-links a:hover, .ap-strip-links a.on { color: var(--ap-orange); }

.ap-mast { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 32px; height: 92px; }
.ap-logo { display: inline-flex; align-items: center; gap: 16px; color: var(--ap-ink); }
.ap-mark { flex: none; display: block; overflow: visible; }
.ap-mark-dot { fill: var(--ap-orange); }
.ap-logo-word { font: 600 34px/1 var(--ap-display); letter-spacing: .16em; text-transform: uppercase; padding-top: 2px; }
.ap-logo:hover .ap-mark-dot { fill: var(--ap-cobalt); }
.ap-tagline { margin: 0; display: flex; flex-direction: column; gap: 6px; padding-left: 24px; border-left: 1px solid var(--ap-line-2); font-size: 14px; line-height: 1.35; color: var(--ap-ink-2); max-width: 340px; }
.ap-tagline-k { font: 500 9.5px/1 var(--ap-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ap-muted); }
.ap-search { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px; border: 1px solid var(--ap-ink); font: 600 11.5px/1 var(--ap-mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .15s, color .15s; }
.ap-search:hover, .ap-search.on { background: var(--ap-ink); color: var(--ap-paper); }

.ap-nav { border-top: 1px solid var(--ap-ink); border-bottom: 3px solid var(--ap-ink); background: var(--ap-paper); }
.ap-nav-list { list-style: none; margin: 0; padding: 0; display: flex; border-left: 1px solid var(--ap-line-2); border-right: 1px solid var(--ap-line-2); }
.ap-nav-list li { flex: 1 1 auto; min-width: 0; }
.ap-nav-list li + li { border-left: 1px solid var(--ap-line-2); }
.ap-nav-list a { display: flex; align-items: baseline; gap: 9px; height: 100%; padding: 13px 14px 12px; font: 500 14.5px/1.2 var(--ap-body); white-space: nowrap; transition: background-color .15s, color .15s; }
.ap-nav-no { font: 500 10.5px/1 var(--ap-mono); color: var(--ap-muted); letter-spacing: .04em; }
.ap-nav-list a:hover { background: var(--ap-paper-2); }
.ap-nav-list a.on { background: var(--ap-ink); color: #fff; }
.ap-nav-list a.on .ap-nav-no { color: var(--ap-orange); }

/* =====================================================================
   Главная
   ===================================================================== */
.ap-home { padding-bottom: 24px; }

/* ----- 00 / Главный материал: сплит ----- */
.ap-hero { padding-top: 26px; }
.ap-hero-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding-bottom: 12px; border-bottom: 1px solid var(--ap-ink); font: 500 10.5px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); }
.ap-hero-code { display: inline-flex; align-items: center; gap: 10px; color: var(--ap-ink); font-weight: 600; }
.ap-hero-code i { width: 10px; height: 10px; background: var(--ap-orange); }
.ap-hero-stats { margin-left: auto; display: flex; gap: 22px; }
.ap-hero-stats b { color: var(--ap-ink); font-weight: 600; }

.ap-hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "text fig" "spec fig"; grid-template-rows: 1fr auto;
  border-bottom: 1px solid var(--ap-ink);
}
.ap-hero-text { grid-area: text; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding: 36px 40px 30px 0; border-right: 1px solid var(--ap-ink); }
.theme-apogey .ap-hero-text h2 { font-weight: 500; line-height: 1.02; letter-spacing: -.028em; text-wrap: balance; }
.ap-t-s .ap-hero-text h2 { font-size: clamp(40px, 5.4vw, 78px); }
.ap-t-m .ap-hero-text h2 { font-size: clamp(36px, 4.5vw, 64px); }
.ap-t-l .ap-hero-text h2 { font-size: clamp(32px, 3.8vw, 54px); }
.ap-t-xl .ap-hero-text h2 { font-size: clamp(28px, 3.1vw, 44px); line-height: 1.06; }
.ap-hero-lead { font-size: 17.5px; line-height: 1.55; color: var(--ap-ink-2); max-width: 46ch; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ap-hero-cta { margin-top: auto; display: inline-flex; gap: 10px; padding-bottom: 4px; border-bottom: 2px solid var(--ap-orange); font: 600 11.5px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; }
.ap-hero-grid:hover .ap-hero-cta span { transform: translateX(4px); }
.ap-hero-cta span { transition: transform .2s ease; }
.ap-hero-fig { grid-area: fig; margin: 30px 0 30px 40px; align-self: stretch; min-height: 440px; }
.ap-hero-fig .cover { aspect-ratio: auto !important; height: 100%; }
.ap-hero-spec { grid-area: spec; border-right: 1px solid var(--ap-ink); margin-right: 0; }
.ap-hero-spec > div:last-child:not(.ap-wide) { padding-right: 14px; }

/* ----- рабочий стол: журнал + таблицы ----- */
.ap-desk { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 0 48px; margin-top: 64px; align-items: start; }

/* A / Журнал миссии */
.ap-log { --ap-tcol: 70px; --ap-rail: 40px; min-width: 0; }
.ap-log-body { position: relative; }
.ap-log-body::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--ap-tcol) + var(--ap-rail) / 2); width: 1px; background: var(--ap-ink); }
.ap-log-day { position: relative; margin: 0; padding: 22px 0 6px calc(var(--ap-tcol) + var(--ap-rail)); font: 500 10.5px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); }
.ap-log-day::before { content: ""; position: absolute; left: calc(var(--ap-tcol) + var(--ap-rail) / 2 - 6px); top: 23px; width: 13px; height: 1px; background: var(--ap-ink); }
.ap-log-day time { display: inline-flex; align-items: center; gap: 10px; }
.ap-log-day b { background: var(--ap-ink); color: var(--ap-paper); padding: 4px 7px 3px; font-weight: 600; }
.ap-log-list { list-style: none; margin: 0; padding: 0; }
.ap-log-row {
  display: grid; grid-template-columns: var(--ap-tcol) var(--ap-rail) minmax(0, 1fr) 168px; align-items: start;
  padding: 18px 0 20px;
  background: linear-gradient(var(--ap-line), var(--ap-line)) right bottom / calc(100% - var(--ap-tcol) - var(--ap-rail)) 1px no-repeat;
}
.ap-log-list li:last-child .ap-log-row { background: none; }
.ap-log-t { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 1px; font-family: var(--ap-mono); font-variant-numeric: tabular-nums; }
.ap-log-t time { font-size: 15px; font-weight: 600; line-height: 1; color: var(--ap-ink); }
.ap-log-t small { font-size: 10.5px; letter-spacing: .06em; color: var(--ap-muted); }
.ap-log-node { justify-self: center; position: relative; z-index: 1; width: 11px; height: 11px; margin-top: 3px; background: var(--ap-paper); border: 1.5px solid var(--ap-ink); transform: rotate(45deg); }
.is-fresh .ap-log-node { background: var(--ap-orange); border-color: var(--ap-orange); }
.is-fresh .ap-log-node::after { content: ""; position: absolute; inset: -5px; border: 1px solid var(--ap-orange); opacity: 0; animation: ap-ping 2.8s ease-out infinite; }
@keyframes ap-ping { 0% { transform: scale(.6); opacity: .9; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.ap-log-row:hover .ap-log-node { background: var(--ap-ink); }
.is-fresh .ap-log-row:hover .ap-log-node { background: var(--ap-orange); }
.ap-log-main { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.ap-log-n { color: var(--ap-ink); font-weight: 600; }
.ap-meta-ref { color: var(--ap-muted); opacity: .8; }
.ap-log-main h3 { font-size: 22px; line-height: 1.18; letter-spacing: -.012em; }
.ap-log-lead { font-size: 15px; line-height: 1.5; color: var(--ap-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-log-fig { margin: 4px 0 0 28px; }
.ap-log-fig .ap-marks { --l: 9px; inset: -5px; }
.ap-log-fig .cover::after { background-size: 24px 24px; }
.ap-log-foot { display: flex; justify-content: space-between; align-items: center; margin-left: calc(var(--ap-tcol) + var(--ap-rail)); padding: 14px 0; border-top: 1px solid var(--ap-ink); border-bottom: 1px solid var(--ap-ink); font: 600 11px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; transition: color .15s; }
.ap-log-foot:hover { color: var(--ap-orange-ink); }

/* Табл. 1, Табл. 2 — правая колонка */
.ap-side { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.ap-pop, .ap-sum { border-top: 3px solid var(--ap-ink); padding-top: 12px; }
.theme-apogey .ap-side-h { font-size: 24px; line-height: 1.1; margin-bottom: 14px; }
.ap-pop-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; padding: 0 0 7px; border-bottom: 1px solid var(--ap-ink); font: 500 9.5px/1 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-pop-list { list-style: none; margin: 0; padding: 0; }
.ap-pop-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--ap-line); }
.ap-pop-n { font: 600 12px/1 var(--ap-mono); color: var(--ap-orange-ink); }
.ap-pop-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.theme-apogey .ap-pop-main h3 { font-size: 16.5px; font-weight: 500; line-height: 1.28; letter-spacing: -.005em; }
.ap-pop-cat { font: 500 9.5px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); }
.ap-pop-v { font: 500 12.5px/1 var(--ap-mono); font-variant-numeric: tabular-nums; color: var(--ap-ink); white-space: nowrap; }

.ap-idx { border-top: 3px solid var(--ap-ink); padding-top: 12px; }
.ap-idx-list { list-style: none; margin: 0; padding: 0; }
.ap-idx-row { display: flex; align-items: baseline; gap: 12px; padding: 11px 0 10px; border-bottom: 1px solid var(--ap-line); }
.ap-idx-row .ap-pop-n { width: 30px; flex: none; }
.ap-idx-name { font-size: 15.5px; font-weight: 500; }
.ap-idx-row time, .ap-idx-none { flex: none; font: 500 12px/1 var(--ap-mono); font-variant-numeric: tabular-nums; color: var(--ap-ink); }
.ap-idx-none { color: var(--ap-muted); }
.ap-idx-row:hover .ap-idx-name { text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.ap-sum-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ap-ink); border-bottom: 1px solid var(--ap-ink); }
.ap-sum-grid > div { padding: 10px 12px 12px 0; }
.ap-sum-grid > div + div { padding-left: 12px; border-left: 1px solid var(--ap-line); }
.ap-sum-grid dt { font: 500 9.5px/1 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-sum-grid dd { margin: 8px 0 0; font: 300 40px/1 var(--ap-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ap-sum-sub { margin-top: 16px; padding: 18px; background: var(--ap-sheet); border: 1px solid var(--ap-ink); }
.ap-sum-sub p { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; color: var(--ap-ink-2); }
.ap-sum-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* B / Обсуждают */
.ap-talk { margin-top: 72px; }
.ap-talk-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ap-talk-grid li { border-bottom: 1px solid var(--ap-line); min-width: 0; }
.ap-talk-grid li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--ap-line); }
.ap-talk-cell { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 20px 24px 22px; }
.ap-talk-grid li:nth-child(3n + 1) .ap-talk-cell { padding-left: 0; }
.ap-talk-n { display: flex; align-items: baseline; gap: 10px; }
.ap-talk-n b { font: 300 52px/0.9 var(--ap-display); letter-spacing: -.04em; }
.ap-talk-n span { font: 500 10px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); }
.ap-talk-cell h3 { font-size: 19px; line-height: 1.22; }
.ap-talk-cell .ap-meta { margin-top: auto; }

/* ----- Разделы спецификации ----- */
.ap-specs { margin-top: 88px; }
.ap-specs-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid var(--ap-ink); }
.theme-apogey .ap-specs-k { margin: 0; display: inline-flex; align-items: center; gap: 18px; font: 500 clamp(44px, 6.4vw, 96px)/.86 var(--ap-display); letter-spacing: -.04em; }
.ap-specs-k i { width: clamp(14px, 1.4vw, 20px); height: clamp(14px, 1.4vw, 20px); background: var(--ap-orange); align-self: flex-start; margin-top: .06em; }
.ap-specs-title p:last-child { margin: 0; font: 500 10.5px/1.4 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); text-align: right; }

.ap-spec { padding: 34px 0 40px; border-bottom: 1px solid var(--ap-ink); min-width: 0; }
.ap-spec-wide { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr) minmax(0, 5fr); gap: 0 40px; }
.ap-spec-wide.is-solo { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
.ap-spec-h { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.ap-spec-no { position: relative; font: 300 120px/.78 var(--ap-display); letter-spacing: -.05em; color: var(--ap-ink); font-variant-numeric: tabular-nums; }
.ap-spec-no::after { content: ""; position: absolute; top: 0; right: -18px; width: 10px; height: 10px; background: var(--ap-orange); }
.ap-spec-code { margin-top: 14px; font: 500 10px/1.3 var(--ap-mono); letter-spacing: .16em; color: var(--ap-muted); }
.ap-spec-h h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.04; letter-spacing: -.02em; }
.ap-spec-h h2 a:hover { text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; text-underline-offset: .14em; }
.ap-spec-more { margin-top: auto; display: inline-flex; gap: 8px; padding: 18px 0 3px; border-bottom: 1px solid var(--ap-ink); font: 600 11px/1 var(--ap-mono); letter-spacing: .1em; text-transform: uppercase; transition: color .15s, border-color .15s; }
.ap-spec-more:hover { color: var(--ap-orange-ink); border-color: var(--ap-orange); }

.ap-spec-lead { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ap-spec-lead-body { display: flex; flex-direction: column; gap: 10px; }
.ap-spec-lead h3 { font-size: 23px; line-height: 1.16; letter-spacing: -.014em; }
.ap-spec-lead-text { font-size: 15px; line-height: 1.5; color: var(--ap-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ap-spec-wide.is-solo .ap-spec-lead { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 32px; align-items: start; }
.ap-spec-wide.is-solo .ap-spec-lead h3 { font-size: clamp(24px, 2.4vw, 32px); }
.ap-clause-no { font: 600 12px/1 var(--ap-mono); color: var(--ap-orange-ink); letter-spacing: .02em; font-variant-numeric: tabular-nums; }

.ap-spec-rows { min-width: 0; }
.ap-clauses-head { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ap-ink); font: 500 9.5px/1 var(--ap-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ap-muted); }
.ap-clauses { list-style: none; margin: 0; padding: 0; }
/* пункт: номер | заголовок + отточие до даты (отточие идёт за последней строкой заголовка) */
.ap-clause { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; align-items: last baseline; padding: 14px 0 13px; border-bottom: 1px solid var(--ap-line); }
.ap-clause .ap-clause-no { align-self: baseline; align-self: first baseline; }
.theme-apogey .ap-clause h3 { min-width: 0; overflow: hidden; font-size: 17px; font-weight: 500; line-height: 1.3; letter-spacing: -.006em; text-wrap: balance; }
.ap-clause h3 > span { background: var(--ap-paper); padding-right: 6px; }
.ap-clause h3::after {
  float: left; width: 0; white-space: nowrap; color: rgba(11, 13, 18, .42); font: 500 12px/1 var(--ap-mono); letter-spacing: 2px; transform: translateY(-.1em);
  content: ". . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .";
}
.ap-clause-dots { flex: 1 1 20px; min-width: 20px; height: 1px; border-bottom: 2px dotted var(--ap-line-2); transform: translateY(-3px); }
.ap-clause-d { display: flex; gap: 10px; font: 500 11px/1 var(--ap-mono); color: var(--ap-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ap-clause-d time { color: var(--ap-ink); }

.ap-spec-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--ap-ink); }
.ap-spec-pair .ap-spec { border-bottom: 0; }
.ap-spec-pair .ap-spec:first-child { padding-right: 40px; }
.ap-spec-pair .ap-spec + .ap-spec { padding-left: 40px; border-left: 1px solid var(--ap-ink); }
.ap-spec-compact .ap-spec-h {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no code more" "no title more";
  align-items: end; gap: 6px 22px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--ap-line-2);
}
.ap-spec-compact .ap-spec-no { grid-area: no; font-size: 76px; }
.ap-spec-compact .ap-spec-no::after { right: -14px; width: 8px; height: 8px; }
.ap-spec-compact .ap-spec-code { grid-area: code; margin: 0; }
.ap-spec-compact .ap-spec-h h2 { grid-area: title; font-size: clamp(24px, 2.2vw, 30px); }
.ap-spec-compact .ap-spec-more { grid-area: more; margin: 0; padding-top: 0; align-self: end; }
.ap-spec-compact .ap-spec-lead { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 12px; }
.ap-spec-compact .ap-spec-lead h3 { font-size: 20px; }
.ap-spec-compact .ap-spec-lead-text { -webkit-line-clamp: 3; font-size: 14.5px; }
.ap-spec-compact .ap-marks { --l: 11px; inset: -6px; }
.ap-spec-compact .cover::after { background-size: 32px 32px; }

/* =====================================================================
   Подвал — лист спецификации
   ===================================================================== */
.ap-ftr { margin-top: clamp(72px, 9vw, 120px); padding-bottom: 28px; }
.ap-sheet { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.3fr); background: var(--ap-sheet); border: 2px solid var(--ap-ink); }
.ap-cell { position: relative; min-width: 0; padding: 18px 22px 26px; border-right: 1px solid var(--ap-ink); }
.ap-sheet > .ap-cell:nth-last-child(2) { border-right: 0; }
.theme-apogey .ap-cell-k { display: block; margin: 0 0 18px; font: 500 9.5px/1 var(--ap-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ap-muted); }
.ap-ftr-logo { display: inline-flex; align-items: center; gap: 16px; font: 600 38px/1 var(--ap-display); letter-spacing: .14em; text-transform: uppercase; }
.ap-ftr-logo:hover .ap-mark-dot { fill: var(--ap-cobalt); }
.ap-sheet-brand p { margin: 18px 0 20px; max-width: 42ch; font-size: 14px; line-height: 1.55; color: var(--ap-ink-2); }
.ap-ftr-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-ftr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ap-ftr-list a { display: flex; align-items: baseline; gap: 12px; padding: 5px 0; font-size: 15px; font-weight: 500; transition: color .15s; }
.ap-ftr-list a span { font: 500 10.5px/1 var(--ap-mono); color: var(--ap-muted); min-width: 18px; }
.ap-ftr-list a:hover { color: var(--ap-orange-ink); }
.ap-ftr-net { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 18px; font-size: 13.5px; }
.ap-ftr-net li { break-inside: avoid; padding: 3px 0; }
.theme-apogey .ap-ftr-net a { color: var(--ap-ink-2); }
.theme-apogey .ap-ftr-net a:hover { color: var(--ap-orange-ink); text-decoration: underline; text-underline-offset: 3px; }
.ap-stamp { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 2.6fr) minmax(0, .9fr) minmax(0, .5fr) minmax(0, .6fr); margin: 0; border-top: 2px solid var(--ap-ink); }
.ap-stamp > div { min-width: 0; padding: 10px 16px 12px; border-right: 1px solid var(--ap-ink); }
.ap-stamp > div:last-child { border-right: 0; }
.ap-stamp dt { font: 500 9px/1 var(--ap-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ap-muted); }
.ap-stamp dd { margin: 6px 0 0; font: 500 13px/1.3 var(--ap-mono); color: var(--ap-ink); }
.ap-stamp-name dd { font: 600 17px/1.2 var(--ap-display); letter-spacing: .02em; }
.ap-stamp-tag dd { font-family: var(--ap-body); font-size: 13.5px; }
.ap-ftr-bottom { display: flex; justify-content: space-between; gap: 16px; padding-top: 14px; font: 500 10.5px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); }
.ap-ftr-bottom span:last-child { display: inline-flex; align-items: center; gap: 10px; }
.ap-ftr-bottom i { width: 8px; height: 8px; background: var(--ap-orange); }

/* =====================================================================
   Статья
   ===================================================================== */
.theme-apogey .breadcrumbs { font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); padding-top: 22px; gap: 10px; }
.theme-apogey .breadcrumbs a:hover { color: var(--ap-orange-ink); }
.theme-apogey .article > .breadcrumbs { max-width: 1040px; }

.ap-ah { max-width: 1040px; margin: 0 auto; padding: 16px var(--gap) 0; }
.ap-ah-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 22px; padding-top: 12px; border-top: 3px solid var(--ap-ink); font: 500 11px/1 var(--ap-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ap-muted); }
.ap-ah-sec { display: inline-flex; align-items: center; gap: 10px; color: var(--ap-ink); font-weight: 600; }
.ap-ah-sec i { width: 10px; height: 10px; background: var(--ap-orange); }
.ap-ah-no { color: var(--ap-muted); font-weight: 500; }
.ap-ah-sec a:hover { text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ap-ah-rel { margin-left: auto; }
.theme-apogey .ap-ah h1 { margin: 30px 0 24px; font-size: clamp(34px, 5.6vw, 70px); line-height: 1.02; letter-spacing: -.03em; font-weight: 500; }
.theme-apogey .ap-ah h1.is-long { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.06; }
.ap-ah-lead { margin: 0 0 30px; max-width: 780px; font-size: clamp(18px, 1.55vw, 21.5px); line-height: 1.5; color: var(--ap-ink-2); }
.ap-ah-spec { grid-template-columns: minmax(0, 2.2fr) repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--ap-ink); }
.ap-ah-author dd { display: flex; align-items: center; gap: 10px; font-family: var(--ap-body); }
.ap-ah-author dd b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.ap-ah-author .avatar { font-size: 11px !important; }
.ap-ah-recipe { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ap-ink); border-top: 0; }
.ap-ah-fig { max-width: 1140px; margin: 40px auto clamp(32px, 4vw, 52px); padding: 0 var(--gap); }
.ap-ah-fig figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 9px; border-top: 1px solid var(--ap-ink); font: 500 10.5px/1.3 var(--ap-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); }

/* текст: разделы с номерами, как в мануале */
.theme-apogey .article-body { counter-reset: ap-h2; }
.theme-apogey .prose { font-size: clamp(17px, 1.2vw, 18.5px); line-height: 1.74; color: #1B1E26; }
.theme-apogey .prose:not(.prose-cont) > p:first-child { font-size: 1.1em; line-height: 1.65; color: var(--ap-ink); }
.theme-apogey .prose:not(.prose-cont) > p:first-child::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .55em; background: var(--ap-orange); vertical-align: .08em; }
.theme-apogey .prose > h2 { counter-increment: ap-h2; margin-top: 1.9em; padding-top: 14px; border-top: 1px solid var(--ap-ink); font-size: clamp(24px, 2.2vw, 31px); line-height: 1.12; letter-spacing: -.018em; }
.theme-apogey .prose > h2::before { content: counter(ap-h2, decimal-leading-zero) " /"; display: block; margin-bottom: 12px; font: 600 11px/1 var(--ap-mono); letter-spacing: .14em; color: var(--ap-orange-ink); }
.theme-apogey .prose > h2:first-child { margin-top: 0; }
.theme-apogey .prose > h3 { font-size: 21px; line-height: 1.2; margin-top: 1.6em; }
.theme-apogey .prose ul { list-style: square; }
.theme-apogey .prose li::marker { color: var(--ap-orange); }
.theme-apogey .prose ol > li::marker { font-family: var(--ap-mono); font-size: .82em; font-weight: 600; color: var(--ap-orange-ink); }
.theme-apogey .prose a { color: var(--ap-cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.theme-apogey .prose a:hover { text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; }
.theme-apogey .prose > blockquote { position: relative; margin: 2em 0; padding: 30px 0 4px 28px; border-left: 4px solid var(--ap-orange); font-family: var(--ap-display); font-weight: 500; font-size: 1.32em; line-height: 1.35; letter-spacing: -.01em; }
.theme-apogey .prose > blockquote::before { content: "Цитата"; position: absolute; top: 4px; left: 28px; font: 500 10px/1 var(--ap-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ap-muted); }
.theme-apogey .prose hr { background: var(--ap-ink); height: 1px; }
.theme-apogey .prose code { font-family: var(--ap-mono); font-size: .86em; background: var(--ap-paper-2); padding: 1px 5px; }
.theme-apogey .prose table { display: block; overflow-x: auto; font-family: var(--ap-mono); font-size: 13.5px; border-top: 2px solid var(--ap-ink); font-variant-numeric: tabular-nums; }
.theme-apogey .prose th { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-muted); font-weight: 500; border-bottom: 1px solid var(--ap-ink); }
.theme-apogey .prose td { border-bottom-color: var(--ap-line); }

.theme-apogey .inline-read { margin: 2.2em 0; padding: 16px 20px 18px; background: var(--ap-sheet); border: 1px solid var(--ap-ink); border-left: 6px solid var(--ap-orange); border-radius: 0; gap: 8px; }
.theme-apogey .inline-read-label { font-family: var(--ap-mono); font-size: 10px; font-weight: 600; letter-spacing: .16em; color: var(--ap-muted); }
.theme-apogey .inline-read a { font-family: var(--ap-display); font-weight: 600; font-size: 1.12em; }
.theme-apogey .inline-read a:hover { color: inherit; text-decoration: underline; text-decoration-color: var(--ap-orange); text-decoration-thickness: 2px; }

.theme-apogey .source-note { font-family: var(--ap-mono); font-size: 12px; letter-spacing: .04em; padding-top: 12px; border-top: 1px solid var(--ap-line); }
.theme-apogey .tags { gap: 6px; }
.theme-apogey .tag { border-radius: 0; background: transparent; border: 1px solid var(--ap-line-2); font-family: var(--ap-mono); font-size: 11.5px; padding: 6px 10px; letter-spacing: .02em; }
.theme-apogey .tag:hover { background: var(--ap-ink); border-color: var(--ap-ink); color: var(--ap-paper); }
.theme-apogey .share { font-family: var(--ap-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; gap: 6px; }
.theme-apogey .share > span { margin-right: 8px; }
.theme-apogey .share a, .theme-apogey .share button { border-radius: 0; width: 38px; height: 38px; background: transparent; border: 1px solid var(--ap-ink); font-family: var(--ap-mono); font-size: 11px; letter-spacing: .04em; }
.theme-apogey .share a:hover, .theme-apogey .share button:hover { background: var(--ap-ink); color: var(--ap-paper); }

.theme-apogey .btn { border-radius: 0; background: var(--ap-ink); color: var(--ap-paper); border: 1px solid var(--ap-ink); font-family: var(--ap-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 13px 18px; }
.theme-apogey .btn:hover { transform: none; opacity: 1; background: var(--ap-orange); border-color: var(--ap-orange); color: var(--ap-ink); }
.theme-apogey .btn.ghost { background: transparent; color: var(--ap-ink); box-shadow: none; border-color: var(--ap-ink); }
.theme-apogey .btn.ghost:hover { background: var(--ap-ink); color: var(--ap-paper); }
.theme-apogey .btn:disabled { opacity: .5; cursor: progress; }

.theme-apogey .inline-cta { position: relative; border-radius: 0; background: var(--ap-sheet); box-shadow: none; border: 1px solid var(--ap-ink); padding: 30px 22px 20px; font-family: var(--ap-body); }
.theme-apogey .inline-cta::before { content: "Подписка"; position: absolute; top: 10px; left: 22px; font: 500 9.5px/1 var(--ap-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ap-muted); }
.theme-apogey .inline-cta b { font-family: var(--ap-display); font-size: 19px; font-weight: 600; }

/* рецепт (если появится) */
.theme-apogey .recipe-card { border-radius: 0; background: var(--ap-sheet); border: 1px solid var(--ap-ink); box-shadow: none; }
.theme-apogey .recipe-cols h3 { font-family: var(--ap-mono); font-size: 10.5px; color: var(--ap-muted); }
.theme-apogey .ingredients { font-family: var(--ap-body); }
.theme-apogey .ingredients li { border-bottom: 1px solid var(--ap-line); }
.theme-apogey .steps li::before { border-radius: 0; background: var(--ap-ink); color: var(--ap-paper); font-family: var(--ap-mono); font-size: 13px; }

/* комментарии — как бланк */
.theme-apogey .comments { border-top: 3px solid var(--ap-ink); padding-top: 18px; font-family: var(--ap-body); }
.theme-apogey .comments h2 { font-size: 28px; }
.theme-apogey .comments h2 small { font-family: var(--ap-mono); font-size: 13px; font-weight: 500; }
.theme-apogey .c-form { border-radius: 0; background: var(--ap-sheet); box-shadow: none; border: 1px solid var(--ap-ink); }
.theme-apogey .c-form input, .theme-apogey .c-form textarea { border-radius: 0; background: #fff; border: 1px solid var(--ap-line-2); }
.theme-apogey .c-form input:focus, .theme-apogey .c-form textarea:focus { outline: none; border-color: var(--ap-ink); box-shadow: inset 0 -2px 0 var(--ap-orange); }
.theme-apogey .c-note { font-size: 13px; }
.theme-apogey .c-item .c-head time { font-family: var(--ap-mono); font-size: 11px; }
.theme-apogey .c-badge { border-radius: 0; background: var(--ap-orange); color: var(--ap-ink); font-family: var(--ap-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.theme-apogey .c-actions { font-family: var(--ap-mono); font-size: 11.5px; }
.theme-apogey .c-actions button:hover, .theme-apogey .c-actions button.liked { color: var(--ap-orange-ink); }
.theme-apogey .c-replies { border-left: 1px solid var(--ap-ink); }

/* читайте также */
.theme-apogey .related { padding-top: clamp(48px, 6vw, 80px); }
.theme-apogey .related .section-head { border-top: 3px solid var(--ap-ink); padding-top: 12px; margin-bottom: 26px; flex-wrap: wrap; }
.theme-apogey .related .section-head h2 { font-size: clamp(24px, 2.4vw, 32px); }
.theme-apogey .related .section-head a { font-family: var(--ap-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ap-ink); border-bottom: 1px solid var(--ap-ink); }
.theme-apogey .related .section-head a:hover { color: var(--ap-orange-ink); border-color: var(--ap-orange); }
.theme-apogey .related-grid { counter-reset: ap-rel; gap: 32px; }
.theme-apogey .related-card { counter-increment: ap-rel; gap: 12px; }
.theme-apogey .related-card .cover { border-radius: 0; box-shadow: 0 0 0 1px var(--ap-ink); }
.theme-apogey .related-card::before { content: "FIG. R." counter(ap-rel); font: 600 10px/1 var(--ap-mono); letter-spacing: .14em; color: var(--ap-orange-ink); padding-bottom: 10px; border-bottom: 1px solid var(--ap-ink); }
.theme-apogey .related-card .kicker { font-size: 10px; }
.theme-apogey .related-card h3 { font-size: 19px; line-height: 1.22; }
.theme-apogey .related-card:hover h3 { color: inherit; }

/* =====================================================================
   Рубрика, поиск, «О проекте»
   ===================================================================== */
.theme-apogey .listing { counter-reset: ap-row; }
.theme-apogey .page-head { border-bottom: 3px solid var(--ap-ink); padding: clamp(28px, 4vw, 48px) 0 20px; margin-bottom: 8px; }
.theme-apogey .page-head h1 { font-size: clamp(44px, 7.4vw, 104px); line-height: .92; letter-spacing: -.04em; font-weight: 600; margin-top: 18px; }
.theme-apogey .page-head p { font-family: var(--ap-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; margin-top: 18px; }
.theme-apogey .listing[data-page="search"] .page-head h1 { margin-top: 0; }
.theme-apogey .search-form { max-width: 720px; gap: 0; }
.theme-apogey .search-form input { border-radius: 0; border: 1px solid var(--ap-ink); border-right: 0; background: var(--ap-sheet); font-family: var(--ap-body); font-size: 17px; padding: 13px 16px; }
.theme-apogey .search-form input:focus { outline: none; box-shadow: inset 0 -3px 0 var(--ap-orange); }

.theme-apogey .list-row { counter-increment: ap-row; grid-template-columns: 52px 300px minmax(0, 1fr); gap: 0 28px; padding: 26px 0; border-bottom: 1px solid var(--ap-line-2); }
.theme-apogey .list-row::before { content: counter(ap-row, decimal-leading-zero); padding-top: 9px; border-top: 3px solid var(--ap-ink); font: 600 13px/1 var(--ap-mono); color: var(--ap-ink); font-variant-numeric: tabular-nums; }
.theme-apogey .list-row:hover::before { border-top-color: var(--ap-orange); }
.theme-apogey .list-row .cover { border-radius: 0; }
.theme-apogey .list-row h2 { font-size: clamp(21px, 2vw, 28px); line-height: 1.15; margin: 12px 0 10px; letter-spacing: -.015em; }
.theme-apogey .list-row:hover h2 { color: inherit; }
.theme-apogey .list-row p { font-size: 15.5px; line-height: 1.55; max-width: 64ch; }
.theme-apogey .pager { align-items: center; gap: 16px; font-family: var(--ap-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }

.theme-apogey .about-authors .author { padding: 14px 0; border-top: 1px solid var(--ap-line-2); }

/* =====================================================================
   Адаптив
   ===================================================================== */
@media (max-width: 1180px) {
  .ap-tagline { max-width: 260px; }
  .ap-nav-list a { padding-left: 11px; padding-right: 11px; font-size: 14px; gap: 7px; }
  .ap-desk { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 0 36px; }
  .ap-log-row { grid-template-columns: var(--ap-tcol) var(--ap-rail) minmax(0, 1fr) 136px; }
  .ap-spec-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 36px; }
  .ap-spec-wide .ap-spec-h { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "no code more" "no title more"; align-items: end; gap: 6px 26px; padding-bottom: 20px; margin-bottom: 26px; border-bottom: 1px solid var(--ap-line-2); }
  .ap-spec-wide .ap-spec-no { grid-area: no; font-size: 84px; }
  .ap-spec-wide .ap-spec-code { grid-area: code; margin: 0; }
  .ap-spec-wide .ap-spec-h h2 { grid-area: title; }
  .ap-spec-wide .ap-spec-more { grid-area: more; margin: 0; padding-top: 0; }
  .ap-spec-wide.is-solo { grid-template-columns: minmax(0, 1fr); }
  .ap-sheet { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr); }
  .ap-sheet-net { grid-column: 1 / -1; border-top: 1px solid var(--ap-ink); border-right: 0; }
  .ap-sheet > .ap-cell:nth-child(3) { border-right: 0; }
  .ap-ftr-net { columns: 4; }
}

@media (max-width: 960px) {
  .ap-nav .wrap { padding: 0; }
  .ap-nav-list { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; border-left: 0; border-right: 0; }
  .ap-nav-list::-webkit-scrollbar { display: none; }
  .ap-nav-list li { flex: none; scroll-snap-align: start; }
  .ap-nav-list li:first-child a { padding-left: var(--gap); }
  .ap-nav-list li:last-child { border-right: 1px solid var(--ap-line-2); }
}

@media (max-width: 860px) {
  .site.theme-apogey { --ap-hdr-top: 100px; }
  .ap-strip-code, .ap-strip-sep { display: none; }
  .ap-mast { height: 68px; gap: 16px; grid-template-columns: auto minmax(0, 1fr) auto; }
  .ap-logo { gap: 12px; }
  .ap-logo .ap-mark { width: 40px; height: 25px; }
  .ap-logo-word { font-size: 25px; letter-spacing: .14em; }
  .ap-tagline { visibility: hidden; }
  .ap-search { height: 38px; padding: 0 12px; }
  .ap-search span { display: none; }

  .ap-hero { padding-top: 18px; }
  .ap-hero-ref { display: none; }
  .ap-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "fig" "spec"; grid-template-rows: auto; }
  .ap-hero-text { padding: 24px 0 26px; border-right: 0; gap: 18px; }
  .ap-hero-cta { margin-top: 4px; }
  .ap-hero-fig { margin: 0 0 28px; min-height: 0; }
  .ap-hero-fig .cover { aspect-ratio: 4 / 3 !important; height: auto; }
  .ap-hero-spec { border-right: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-hero-spec > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .ap-hero-spec > div:nth-child(n + 3) { border-top: 1px solid var(--ap-line); }

  .ap-desk { grid-template-columns: minmax(0, 1fr); margin-top: 48px; gap: 0; }
  .ap-side { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 32px; }
  .ap-side > :last-child:nth-child(odd) { grid-column: 1 / -1; }

  .ap-talk-grid { grid-template-columns: minmax(0, 1fr); }
  .ap-talk-grid li:not(:nth-child(3n + 1)) { border-left: 0; }
  .ap-talk-cell, .ap-talk-grid li:nth-child(3n + 1) .ap-talk-cell { padding: 18px 0; }

  .ap-specs { margin-top: 64px; }
  .ap-spec-wide { grid-template-columns: minmax(0, 1fr); }
  .ap-spec-wide .ap-spec-lead { margin-bottom: 18px; }
  .ap-spec-wide.is-solo .ap-spec-lead { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ap-spec-pair { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .ap-spec-pair .ap-spec { border-bottom: 1px solid var(--ap-ink); }
  .ap-spec-pair .ap-spec:first-child { padding-right: 0; }
  .ap-spec-pair .ap-spec + .ap-spec { padding-left: 0; border-left: 0; }

  .ap-sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ap-sheet-brand { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--ap-ink); }
  .ap-sheet > .ap-cell:nth-child(2) { border-right: 1px solid var(--ap-ink); }
  .ap-sheet > .ap-cell:nth-child(3) { border-right: 0; }
  .ap-ftr-net { columns: 3; }
  .ap-stamp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); }
  .ap-stamp-name, .ap-stamp-tag { grid-column: span 3; border-right: 0 !important; border-bottom: 1px solid var(--ap-ink); }

  .ap-ah-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-ah-spec .ap-ah-author { grid-column: 1 / -1; padding-right: 0; }
  .ap-ah-spec > div { border-top: 1px solid var(--ap-line); }
  .ap-ah-spec > div:first-child { border-top: 0; }
  .ap-ah-spec > div:nth-child(2), .ap-ah-spec > div:nth-child(4) { border-left: 0; padding-left: 0; }

  .theme-apogey .list-row { grid-template-columns: 120px minmax(0, 1fr); gap: 0 16px; padding: 20px 0; }
  .theme-apogey .list-row::before { display: none; }
  .theme-apogey .list-row h2 { margin-top: 8px; font-size: 19px; }
}

@media (max-width: 560px) {
  .ap-strip-links { gap: 16px; }
  .ap-hero-stats { margin-left: 0; width: 100%; gap: 18px; }
  .ap-hero-bar { gap: 10px 18px; }
  .ap-hero-lead { font-size: 16.5px; -webkit-line-clamp: 6; }
  .ap-t-s .ap-hero-text h2 { font-size: 42px; }
  .ap-t-m .ap-hero-text h2 { font-size: 36px; }
  .ap-t-l .ap-hero-text h2 { font-size: 32px; }
  .ap-t-xl .ap-hero-text h2 { font-size: 28px; }
  .ap-fig-label { font-size: 9.5px; padding: 6px 9px 5px; gap: 10px; }

  .ap-sh { gap: 6px 12px; }
  .ap-sh-en { display: none; }
  .ap-sh-meta { margin-left: 0; width: 100%; }
  .ap-log { --ap-tcol: 46px; --ap-rail: 28px; }
  .ap-log-row { grid-template-columns: var(--ap-tcol) var(--ap-rail) minmax(0, 1fr); padding: 16px 0 18px; }
  .ap-log-fig { display: none; }
  .ap-log-t time { font-size: 13.5px; }
  .ap-log-t small { font-size: 9.5px; }
  .ap-log-main { gap: 7px; }
  .ap-log-main h3 { font-size: 19px; }
  .ap-log-lead { font-size: 14.5px; }
  .ap-meta-ref { display: none; }
  .ap-log-foot { margin-left: 0; }

  .ap-side { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ap-sum-grid dd { font-size: 34px; }

  .ap-specs-title { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ap-specs-title p:last-child { text-align: left; }
  .ap-spec { padding: 26px 0 30px; }
  .ap-spec-wide .ap-spec-h, .ap-spec-compact .ap-spec-h { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "no code" "no title" "more more"; gap: 6px 30px; padding-bottom: 16px; margin-bottom: 22px; }
  .ap-spec-wide .ap-spec-no, .ap-spec-compact .ap-spec-no { font-size: 64px; }
  .ap-spec-wide .ap-spec-more, .ap-spec-compact .ap-spec-more { justify-self: start; margin-top: 10px; }
  .ap-spec-compact .ap-spec-lead { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; }
  .ap-spec-compact .ap-spec-lead h3 { font-size: 17.5px; }
  .ap-spec-compact .ap-spec-lead-text, .ap-spec-compact .ap-fig-label { display: none; }
  .ap-spec-compact .ap-marks { --l: 8px; inset: -5px; }
  .ap-clauses-head { display: none; }
  .ap-clause { grid-template-columns: 32px minmax(0, 1fr); row-gap: 8px; align-items: baseline; }
  .theme-apogey .ap-clause h3 { font-size: 16.5px; }
  .ap-clause h3::after { content: none; }
  .ap-clause-d { grid-column: 2; }

  .ap-sheet { grid-template-columns: minmax(0, 1fr); }
  .ap-sheet > .ap-cell { border-right: 0 !important; border-bottom: 1px solid var(--ap-ink); }
  .ap-sheet-net { border-top: 0; }
  .ap-ftr-logo { font-size: 30px; }
  .ap-ftr-logo .ap-mark { width: 48px; height: 30px; }
  .ap-ftr-net { columns: 2; }
  .ap-ftr-list { grid-template-columns: 1fr 1fr; column-gap: 12px; }

  .ap-ah-top { gap: 8px 16px; }
  .ap-ah-ref { display: none; }
  .theme-apogey .ap-ah h1 { margin: 22px 0 18px; font-weight: 600; letter-spacing: -.022em; }
  .theme-apogey .ap-hero-text h2 { font-weight: 600; letter-spacing: -.022em; }
  .ap-ah-fig { margin-top: 28px; padding: 0; }
  .ap-ah-fig .ap-marks { display: none; }
  .ap-ah-fig figcaption { padding-left: var(--gap); padding-right: var(--gap); flex-direction: column; gap: 4px; border-top: 0; }

  .theme-apogey .list-row { grid-template-columns: 104px minmax(0, 1fr); gap: 0 14px; }
  .theme-apogey .list-row h2 { font-size: 17px; }
  .theme-apogey .listing .meta { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .theme-apogey *, .theme-apogey *::before, .theme-apogey *::after { animation: none !important; transition: none !important; }
  .theme-apogey a:hover .cover img { transform: none; }
}
.theme-apogey .author { font-family: var(--ap-body); }
