/* ============================================================================
   Дизайн-система контентной ветки collageberry.ru
   Статьи, хабы, посадочные. Подключается ТОЛЬКО новыми страницами (article.php,
   hub.php) — тема Canvas главной страницы здесь не участвует вовсе.

   Почему отдельный файл, а не тема главной: тема вклеена в главную инлайном и весит
   ~560 КБ CSS. Статья с пятью интерактивными компонентами обязана уложиться в LCP
   < 2.5 с (план Ф12), поэтому у неё своя лёгкая вёрстка.

   Все свои классы — с префиксом cb-, чтобы ничего не пересекалось с легаси,
   bootstrap-модалкой #myModal и виджетом обратного звонка (cb-cbk-).
   ========================================================================== */

:root {
    --cb-ink:        #1c1d22;
    --cb-ink-soft:   #454954;
    --cb-muted:      #6b7079;
    --cb-paper:      #ffffff;
    --cb-tint:       #f7f4ef;
    --cb-tint-warm:  #fbf6ee;
    --cb-line:       #e4ded4;
    --cb-accent:     #c02942;
    --cb-accent-ink: #94202f;
    --cb-dark:       #16181f;
    --cb-dark-soft:  #262a33;

    --cb-measure:    43rem;   /* ширина колонки текста */
    --cb-wide:       72rem;   /* ширина широких блоков */
    --cb-radius:     10px;
    --cb-shadow:     0 1px 2px rgba(22, 24, 31, .06), 0 8px 24px rgba(22, 24, 31, .07);
}

/* --- основа ------------------------------------------------------------- */

.cb-page * { box-sizing: border-box; }

.cb-page {
    margin: 0;
    background: var(--cb-paper);
    color: var(--cb-ink);
    font: 400 17px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
    -webkit-text-size-adjust: 100%;
    /* 07.10.2026: длинная ссылка без пробелов (списки источников P2) распирала страницу на телефоне до 429 px —
       браузер уменьшал всю статью, текст ужимался в узкую полосу. Перенос внутри слова — только если не влезает. */
    overflow-wrap: break-word;
}

.cb-page img { max-width: 100%; height: auto; }

.cb-page a { color: var(--cb-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.cb-page a:hover { color: var(--cb-accent); }

.cb-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--cb-accent);
    color: #fff;
    padding: 10px 16px;
    z-index: 100;
}
.cb-skip:focus { left: 0; }

/* --- шапка --------------------------------------------------------------- */

.cb-header {
    background: var(--cb-dark);
    color: #f2f0ec;
}
.cb-header__inner {
    max-width: var(--cb-wide);
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cb-header__logo { display: inline-flex; margin-right: auto; }
.cb-header__logo img { display: block; width: 150px; height: auto; }

.cb-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: none;
    border: 0;
    cursor: pointer;
}
.cb-header__burger span {
    display: block;
    height: 2px;
    background: #f2f0ec;
    border-radius: 2px;
}

.cb-header__nav { display: none; width: 100%; }
.cb-header__nav.is-open { display: block; }
.cb-header__nav ul {
    list-style: none;
    margin: 8px 0 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.cb-header__nav a {
    display: block;
    padding: 10px 4px;
    color: #f2f0ec;
    text-decoration: none;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.cb-header__nav a:hover,
.cb-header__nav a[aria-current="page"] { color: #fff; }
.cb-header__nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cb-accent); padding-left: 12px; }
/* 07.10.2026: выпадающий пункт меню (хаб-черновик с несколькими живыми страницами). Телефон — вложенным списком. */
.cb-header__sub { list-style: none; margin: 0; padding: 0 0 0 14px; }
.cb-header__sub a { font-size: 15px; color: rgba(242, 240, 236, .8); }
.cb-header__caret { display: none; }
@media (min-width: 860px) {
    .cb-header__drop { position: relative; }
    .cb-header__caret { display: inline-block; width: 7px; height: 7px; margin: 0 0 3px 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .7; }
    .cb-header__sub {
        position: absolute; top: 100%; left: -16px; z-index: 50; min-width: 230px; padding: 8px 0;
        background: var(--cb-dark); border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
        opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
    }
    /* правило шапки `.cb-header__nav ul { flex-direction: row }` клало пункты подменю В СТРОКУ (527 px) —
       на 860–1000 px оно торчало за правый край окна на 120 px. Подменю — столбцом. */
    .cb-header__nav .cb-header__sub { flex-direction: column; align-items: stretch; gap: 0; }
    .cb-header__drop:hover .cb-header__sub,
    .cb-header__drop:focus-within .cb-header__sub { opacity: 1; visibility: visible; transform: none; }
    .cb-header__nav .cb-header__sub a { display: block; padding: 9px 16px; white-space: nowrap; }
    .cb-header__nav .cb-header__sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
}

/* 07.10.2026, вариант A: телефон + кнопка-«пилюля» отдельной группой, видны всегда (на телефоне — круглая трубка) */
.cb-header__nav { order: 4; }
.cb-header__actions { display: flex; align-items: center; gap: 8px; }
.cb-header a.cb-header__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
}
.cb-header__phone svg { flex: none; }
.cb-header__phone-num { display: none; }
.cb-header a.cb-header__cta {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--cb-accent);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(192, 41, 66, .35);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.cb-header a.cb-header__cta:hover,
.cb-header a.cb-header__cta:focus-visible { background: #d23a53; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(192, 41, 66, .45); }
.cb-header a.cb-header__cta:active { transform: none; box-shadow: 0 3px 10px rgba(192, 41, 66, .35); }
.cb-header .cb-header__logo img { width: 128px; }
.cb-header__cta-more { display: none; }
@media (max-width: 859px) { .cb-header__inner { padding: 8px 16px; gap: 8px; } }
@media (max-width: 374px) { .cb-header a.cb-header__phone { display: none; } }

@media (min-width: 860px) {
    .cb-header__inner { min-height: 64px; padding: 10px 20px; flex-wrap: nowrap; }
    .cb-header .cb-header__logo img { width: 150px; }
    .cb-header__burger { display: none; }
    .cb-header__nav { display: block; width: auto; order: 0; }
    .cb-header__nav ul { flex-direction: row; align-items: center; gap: 26px; margin: 0; }
    .cb-header__nav a { padding: 6px 0; border-bottom: 0; font-weight: 500; font-size: 15px; line-height: 1.2; color: rgba(242, 240, 236, .78); }
    .cb-header__nav a:hover { color: #fff; }
    .cb-header__nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--cb-accent); padding-left: 0; color: #fff; }
    .cb-header__actions { gap: 18px; margin-left: 8px; padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
    .cb-header a.cb-header__phone { width: auto; height: auto; border-radius: 0; background: none; }
    .cb-header__phone svg { width: 14px; height: 14px; color: rgba(255, 255, 255, .55); }
    .cb-header__phone-num { display: inline; }
    .cb-header__cta-more { display: inline; margin-left: .3em; }
    .cb-header a.cb-header__cta { height: 40px; padding: 0 20px; font-size: 15px; }
}
@media (min-width: 860px) and (max-width: 1080px) {
    .cb-header__nav ul { gap: 16px; }
    .cb-header__phone-num { display: none; }
}

/* --- каркас страницы ----------------------------------------------------- */

.cb-main { display: block; }

.cb-wrap {
    max-width: var(--cb-measure);
    margin: 0 auto;
    padding: 0 20px;
}
.cb-wrap--wide { max-width: var(--cb-wide); }

.cb-crumbs {
    max-width: var(--cb-wide);
    margin: 0 auto;
    padding: 14px 20px 0;
    font-size: 14px;
    color: var(--cb-muted);
}
.cb-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.cb-crumbs li::after { content: "›"; margin-left: 6px; color: var(--cb-line); }
.cb-crumbs li:last-child::after { content: ""; }
.cb-crumbs a { color: var(--cb-muted); text-decoration: none; }
.cb-crumbs a:hover { color: var(--cb-accent); text-decoration: underline; }

/* --- заголовок статьи ---------------------------------------------------- */

.cb-title {
    margin: 22px 0 10px;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -.01em;
}
@media (min-width: 760px) { .cb-title { font-size: 40px; margin-top: 30px; } }

.cb-meta {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--cb-muted);
}
.cb-meta span + span::before { content: " · "; }

.cb-lead {
    margin: 0 0 26px;
    font-size: 20px;
    line-height: 1.6;
    color: var(--cb-ink-soft);
}

/* --- тело ---------------------------------------------------------------- */

.cb-body h2 {
    margin: 42px 0 12px;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
    scroll-margin-top: 20px;
}
.cb-body h3 {
    margin: 30px 0 8px;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
}
.cb-body p { margin: 0 0 18px; }
.cb-body ul, .cb-body ol { margin: 0 0 20px; padding-left: 22px; }
.cb-body li { margin-bottom: 8px; }
.cb-body blockquote {
    margin: 26px 0;
    padding: 4px 0 4px 18px;
    border-left: 3px solid var(--cb-accent);
    color: var(--cb-ink-soft);
    font-style: italic;
}
.cb-body figure { margin: 26px 0; }
.cb-body figcaption { margin-top: 8px; font-size: 14px; color: var(--cb-muted); }
.cb-body img { border-radius: var(--cb-radius); }

/* таблицы всегда прокручиваются внутри себя — страница не едет по горизонтали */
.cb-table-scroll { overflow-x: auto; margin: 0 0 22px; -webkit-overflow-scrolling: touch; }
.cb-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.cb-body th, .cb-body td { padding: 10px 12px; border-bottom: 1px solid var(--cb-line); text-align: left; }
.cb-body th { background: var(--cb-tint); font-weight: 600; vertical-align: bottom; }

/* Таблица из 4+ колонок в колонку текста не влезает (прокрутка вбок, срезанные заголовки —
   владелец 30.09.2026): на широком экране она выходит до 72rem, как картинки. */
.cb-body > .cb-table-scroll:has(th:nth-child(4)) {
    width: min(var(--cb-wide), calc(100vw - 32px));
    margin-left: calc(50% - min(var(--cb-wide), calc(100vw - 32px)) / 2);
}

/* На телефоне строка таблицы — карточка: заголовок колонки подписью над значением
   (data-label ставит assets/js/article.js). Без JS остаётся обычная таблица с прокруткой. */
@media (max-width: 699px) {
    .cb-body table.cb-table--labeled thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .cb-body table.cb-table--labeled,
    .cb-body table.cb-table--labeled tbody,
    .cb-body table.cb-table--labeled tr,
    .cb-body table.cb-table--labeled td { display: block; width: 100%; }
    .cb-body table.cb-table--labeled tr {
        margin: 0 0 12px;
        padding: 10px 14px;
        background: var(--cb-tint);
        border-radius: var(--cb-radius);
    }
    .cb-body table.cb-table--labeled td { padding: 4px 0; border: 0; }
    .cb-body table.cb-table--labeled td:first-child { font-weight: 700; padding-top: 2px; }
    .cb-body table.cb-table--labeled td[data-label]:not(:first-child)::before {
        content: attr(data-label);
        display: block;
        font-size: 12px;
        color: var(--cb-muted);
        text-transform: uppercase;
        letter-spacing: .03em;
    }
}

/* --- оглавление ---------------------------------------------------------- */

.cb-toc {
    margin: 0 0 30px;
    padding: 16px 18px;
    background: var(--cb-tint);
    border-radius: var(--cb-radius);
    font-size: 16px;
}
.cb-toc h2 { margin: 0 0 8px; font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--cb-muted); }
.cb-toc ol { margin: 0; padding-left: 20px; }
.cb-toc li { margin-bottom: 6px; }
.cb-toc a { color: var(--cb-ink); text-decoration: none; }
.cb-toc a:hover { color: var(--cb-accent); text-decoration: underline; }

/* --- типовые секции ------------------------------------------------------ */

.cb-section { margin: 40px 0; }
.cb-section > h2 { margin: 0 0 14px; font-size: 25px; line-height: 1.25; }

.cb-note {
    margin: 26px 0;
    padding: 16px 18px;
    background: var(--cb-tint-warm);
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
}
.cb-note p:last-child { margin-bottom: 0; }

/* сроки «успеть к дате» */
.cb-deadline {
    margin: 36px 0;
    padding: 20px;
    background: var(--cb-tint-warm);
    border: 1px solid var(--cb-line);
    border-left: 4px solid var(--cb-accent);
    border-radius: var(--cb-radius);
}
.cb-deadline h2 { margin: 0 0 10px; font-size: 20px; }

/* блоки для организаций */
.cb-org, .cb-privacy {
    margin: 36px 0;
    padding: 20px;
    background: var(--cb-tint);
    border-radius: var(--cb-radius);
}
.cb-org h2, .cb-privacy h2 { margin: 0 0 10px; font-size: 20px; }
.cb-org ul, .cb-privacy ul { margin: 0; padding-left: 20px; }

/* ценовой якорь */
.cb-price {
    margin: 36px 0;
    padding: 20px;
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    background: var(--cb-paper);
    box-shadow: var(--cb-shadow);
}
.cb-price__from { font-size: 26px; font-weight: 700; display: block; margin-bottom: 4px; }
.cb-price__note { margin: 0; font-size: 14px; color: var(--cb-muted); }

/* --- FAQ ----------------------------------------------------------------- */

.cb-faq { margin: 40px 0; }
.cb-faq h2 { margin: 0 0 14px; }
.cb-faq details {
    border-bottom: 1px solid var(--cb-line);
    padding: 4px 0;
}
.cb-faq summary {
    cursor: pointer;
    padding: 14px 32px 14px 0;
    font-weight: 600;
    list-style: none;
    position: relative;
}
.cb-faq summary::-webkit-details-marker { display: none; }
.cb-faq summary::after {
    content: "+";
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 400;
    font-size: 22px;
    color: var(--cb-accent);
}
.cb-faq details[open] summary::after { content: "–"; }
.cb-faq details { scroll-margin-top: 90px; }   /* переход по якорю вопроса: не прятать его под липкой шапкой */
.cb-faq details.is-target { animation: cb-faq-flash 2.4s ease; }
@keyframes cb-faq-flash { 0%, 40% { background: #fff4d6; } 100% { background: transparent; } }
.cb-faq__answer { padding: 0 0 16px; color: var(--cb-ink-soft); }
.cb-faq__answer p:last-child { margin-bottom: 0; }

/* --- двери: CTA ---------------------------------------------------------- */

/* 30.09.2026: был тёмный блок с одинаковыми серыми кнопками — владелец: «мрачновато».
   Теперь светлая подложка и у каждого канала свой фирменный цвет и иконка — как кнопки
   на главной collageberry.ru (index_not_loginned.php): человек узнаёт свой мессенджер глазами.
   Иконки — глифы Font Awesome 4.7, который уже лежит на сайте; подключаем только шрифт,
   без его CSS (~30 КБ), по атрибуту data-cb-channel, который печатает cb_block_cta_manager(). */
@font-face {
    font-family: "FontAwesome";
    src: url("/font-awesome-4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),
         url("/font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.cb-cta {
    margin: 46px 0;
    padding: 24px 20px;
    background: var(--cb-tint-warm);
    border: 1px solid var(--cb-line);
    color: var(--cb-ink);
    border-radius: var(--cb-radius);
}
.cb-cta h2 { margin: 0 0 6px; font-size: 24px; color: var(--cb-ink); }
.cb-cta p { margin: 0 0 16px; color: var(--cb-ink-soft); }
.cb-cta__channels { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 620px) { .cb-cta__channels { grid-template-columns: 1fr 1fr; } }
.cb-page .cb-cta__channels a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 12px 16px 12px 54px;
    background: #5b6270;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: left;
    min-height: 52px;
    box-shadow: 0 1px 2px rgba(22, 24, 31, .12);
    transition: filter .15s ease, transform .15s ease;
}
.cb-page .cb-cta__channels a:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.cb-cta__channels a::before {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 26px;
    height: 26px;
    margin-top: -13px;
    font: normal normal normal 24px/26px FontAwesome;
    text-align: center;
    -webkit-font-smoothing: antialiased;
}
.cb-cta__channels a[data-cb-channel="phone"]    { background: var(--cb-accent); }
.cb-cta__channels a[data-cb-channel="phone"]::before    { content: "\f095"; }
.cb-cta__channels a[data-cb-channel="max"]      { background: #1832a7; }
.cb-cta__channels a[data-cb-channel="max"]::before {
    content: "";
    background: url("/MAX.png") center / contain no-repeat;
}
.cb-cta__channels a[data-cb-channel="telegram"] { background: #2aabee; }
.cb-cta__channels a[data-cb-channel="telegram"]::before { content: "\f2c6"; }
.cb-cta__channels a[data-cb-channel="whatsapp"] { background: #1da851; }   /* #25D366 темнее: белый текст читался плохо */
.cb-cta__channels a[data-cb-channel="whatsapp"]::before { content: "\f232"; }
.cb-cta__channels a[data-cb-channel="vk"]       { background: #4c75a3; }
.cb-cta__channels a[data-cb-channel="vk"]::before       { content: "\f189"; }
.cb-cta__channels a[data-cb-channel="email"]    { background: #5b6270; }
.cb-cta__channels a[data-cb-channel="email"]::before    { content: "\f0e0"; }
.cb-cta__channels small { display: block; font-weight: 400; font-size: 13px; opacity: .9; }
.cb-page .cb-cta__channels a.is-copied { background: #1f9d6b; }
.cb-cta__channels a.is-copied::before { content: "\f00c"; }
/* 08.10.2026: Telegram-канал (t.me/collageberry) — не чат, поэтому кнопка-контур, а не заливка. */
.cb-cta__tgchannel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--cb-line); text-align: center; }
.cb-cta .cb-cta__tgchannel p { margin: 0 0 10px; font-size: 15px; }
.cb-page .cb-cta__tgchannel a {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-width: 260px; max-width: 100%; box-sizing: border-box;
    padding: 11px 18px;
    color: #229ed9; background: #fff; border: 2px solid #2aabee; border-radius: 8px;
    font-weight: 600; text-decoration: none;
    transition: background .15s ease, color .15s ease;
}
.cb-page .cb-cta__tgchannel a:hover { background: #2aabee; color: #fff; }
.cb-cta__tgchannel a::before { content: "\f0a1"; font: normal normal normal 18px/1 FontAwesome; -webkit-font-smoothing: antialiased; }
.cb-cta__legal { margin: 14px 0 0; font-size: 12px; line-height: 1.45; color: var(--cb-muted); }

.cb-cta--self { background: var(--cb-tint); color: var(--cb-ink); }
.cb-cta--self h2 { color: var(--cb-ink); }
.cb-cta--self p { color: var(--cb-ink-soft); }

/* --- списки страниц: «читайте также», дети хаба, соседние семейства ------- */

.cb-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .cb-cards { grid-template-columns: 1fr 1fr; } }
.cb-cards li {
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
    padding: 16px 18px;
    background: var(--cb-paper);
}
.cb-cards a { font-weight: 600; text-decoration: none; }
.cb-cards a:hover { text-decoration: underline; }
.cb-cards p { margin: 6px 0 0; font-size: 15px; color: var(--cb-muted); line-height: 1.55; }

.cb-family { margin: 40px 0; padding: 20px; background: var(--cb-tint); border-radius: var(--cb-radius); }
.cb-family h2 { margin: 0 0 6px; font-size: 20px; }
.cb-family p { margin: 0 0 10px; color: var(--cb-ink-soft); }
.cb-family ul { margin: 0; padding-left: 20px; }

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

.cb-footer {
    margin-top: 60px;
    background: var(--cb-dark);
    color: #b9bec7;
    font-size: 15px;
}
.cb-footer__inner {
    max-width: var(--cb-wide);
    margin: 0 auto;
    padding: 34px 20px 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}
@media (min-width: 760px) {
    .cb-footer__inner { grid-template-columns: 1fr 1fr 1.4fr; gap: 34px; }
    /* колонки «Полезное» нет (на бою ни одной опубликованной страницы) — две колонки, а не пустая третья */
    .cb-footer__inner--two { grid-template-columns: 1fr 1.6fr; }
}
.cb-footer h2 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .07em; color: #8b919b; }
.cb-footer a { color: #d7dbe1; text-decoration: none; }
.cb-footer a:hover { color: #fff; text-decoration: underline; }
.cb-footer ul { list-style: none; margin: 0; padding: 0; }
.cb-footer li { margin-bottom: 7px; }
.cb-footer p { margin: 0 0 10px; }
/* ссылки строкой с отступом, без разделителя «·»: при переносе строка не начинается с точки */
.cb-footer__links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.cb-footer__links a { text-decoration: underline; }
.cb-footer__age { color: #8b919b; }
.cb-footer__copy { color: #8b919b; }

/* --- служебная плашка чернового статуса (только стенд и noindex-черновики) -- */

.cb-draft {
    background: #ffe9c7;
    color: #6b4a00;
    text-align: center;
    padding: 8px 16px;
    font-size: 14px;
}

/* ============================================================================
   Интерактивные компоненты статьи (Ф7): «до / после», увеличилка, галерея.
   Грузятся только там, где компонент есть на странице.
   ========================================================================== */

/* --- «до / после» -------------------------------------------------------- */

.cb-ba { margin: 34px 0; }
.cb-ba__frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--cb-radius);
    background: var(--cb-tint);
    user-select: none;
    touch-action: pan-y;          /* прокрутка страницы пальцем по картинке жива */
}
.cb-ba__frame img {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}
.cb-ba__clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
}
.cb-ba__handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 44px;
    margin-left: -22px;
    padding: 0;
    border: 0;
    background: none;
    cursor: ew-resize;
    touch-action: none;           /* 🔴 только на ручке, не на контейнере */
    z-index: 2;
}
.cb-ba__handle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .2);
}
.cb-ba__handle::after {
    content: "◀ ▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--cb-accent);
    font-size: 13px;
    line-height: 56px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .28);
}
.cb-ba__handle:focus-visible::after { outline: 3px solid var(--cb-accent); }
.cb-ba__label {
    position: absolute;
    bottom: 12px;
    padding: 5px 11px;
    background: rgba(22, 24, 31, .78);
    color: #fff;
    font-size: 13px;
    border-radius: 5px;
    z-index: 1;
}
.cb-ba__label--before { left: 12px; }
.cb-ba__label--after  { right: 12px; }
.cb-ba figcaption { margin-top: 10px; font-size: 14px; color: var(--cb-muted); }

/* --- увеличилка ---------------------------------------------------------- */

.cb-zoom-fig { margin: 30px 0; }
.cb-zoom { display: block; width: 100%; height: auto; border-radius: var(--cb-radius); cursor: zoom-in; }
.cb-zoom-fig figcaption { margin-top: 10px; font-size: 14px; color: var(--cb-muted); }

/* --- галерея примеров ---------------------------------------------------- */

.cb-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 26px 0;
}
@media (min-width: 620px) { .cb-gallery { grid-template-columns: repeat(3, 1fr); } }
.cb-gallery a { display: block; border-radius: 8px; overflow: hidden; line-height: 0; }
.cb-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
/* Число колонок по числу кадров (05.10.2026, владелец: две картинки прижимались влево в сетке на три):
   2 и 4 кадра — две колонки, 1 — одна по центру. Подписи под кадрами — модификатор --captions. */
@media (min-width: 620px) {
    .cb-gallery--n2, .cb-gallery--n4 { grid-template-columns: repeat(2, 1fr); }
    .cb-gallery--n1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
}
/* Три кадра на телефоне — столбиком, а не 2+1 (08.10.2026, «три характера» T36: третий кадр висел один под парой). */
@media (max-width: 619.98px) { .cb-gallery--n3 { grid-template-columns: 1fr; } }
/* --hero (06.10.2026, владелец): на десктопе первый кадр — вся картина по ширине, под ним два фрагмента. */
@media (min-width: 620px) {
    .cb-gallery--hero { grid-template-columns: repeat(2, 1fr); }
    .cb-gallery--hero > :first-child { grid-column: 1 / -1; }
    .cb-gallery--hero > :first-child img { aspect-ratio: 3 / 2; }
}
/* --ratio (06.10.2026): кадры разной формы в один ряд одной высоты, без обрезки (вертикальные фото кафе).
   Доля ширины каждого кадра = его пропорция, она приходит из PHP в --r. На телефоне — по два в ряд. */
.cb-gallery--ratio { display: flex; flex-wrap: wrap; }
.cb-gallery--ratio > * { flex: var(--r, 1) 1 0; min-width: 0; }
.cb-gallery--ratio img { aspect-ratio: auto; height: auto; }
@media (max-width: 619px) { .cb-gallery--ratio > * { flex-basis: 40%; } }
.cb-gallery--captions figure { margin: 0; }
.cb-gallery--captions figcaption { margin-top: 6px; font-size: 13px; line-height: 1.35; color: var(--cb-muted); text-align: center; }

/* --- одиночная картинка/схема в теле ------------------------------------- */
.cb-figure { margin: 26px 0; text-align: center; }
.cb-figure img, .cb-figure svg { display: block; max-width: 100%; height: auto; margin: 0 auto; border-radius: 8px; }
.cb-figure figcaption { margin-top: 10px; font-size: 14px; color: var(--cb-muted); }

/* --- зум-вьюер мозаики (OpenSeadragon) -----------------------------------
   🔴 Размеры, расположение и поведение кнопок перенесены из эталона PetStoryMosaic
   (assets/site.css §1328-1403 и assets/petmosaic.css §106-136, 201-210):
   ГОРИЗОНТАЛЬНЫЙ ряд в правом нижнем углу сцены, 42 px на мыши и 56 px на телефоне,
   зазор 10 и 14 px, круглые, с размытием фона. В полном экране — в правый ВЕРХНИЙ угол
   с отступом от безопасной зоны: низ экрана на телефоне всегда занят браузером. */

.cb-osd { margin: 34px 0; }
.cb-osd__frame {
    position: relative;
    border-radius: var(--cb-radius);
    overflow: hidden;
    background: #15180f;
}
.cb-osd__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #15180f;
    outline: none;
}
.cb-osd figcaption { margin-top: 10px; font-size: 14px; color: var(--cb-muted); }

/* рамка подсвечивается, когда холст «взял» палец — видно, почему страница встала */
.cb-osd__stage.is-live { box-shadow: inset 0 0 0 2px rgba(192, 41, 66, .55); }

.cb-osd__controls {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 6;
    display: flex;
    gap: 10px;
    align-items: center;
}
.cb-osd__controls button {
    width: 42px;
    height: 42px;
    flex: none;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(251, 246, 236, .22);
    border-radius: 50%;
    background: rgba(42, 33, 25, .62);
    color: #fbf6ec;
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    backdrop-filter: blur(12px) saturate(1.2);
    box-shadow: 0 12px 26px -16px rgba(0, 0, 0, .7);
    transition: background-color .2s, transform .2s, border-color .2s;
    -webkit-tap-highlight-color: transparent;
}
.cb-osd__controls button:hover {
    background: var(--cb-accent);
    border-color: var(--cb-accent);
    transform: translateY(-2px);
}
.cb-osd__controls button:active { transform: translateY(0); }
.cb-osd__controls button:focus-visible { outline: 2px solid var(--cb-accent); outline-offset: 2px; }
.cb-osd__controls svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* в полном экране — в правый верхний угол, от безопасной зоны */
.cb-osd__controls.is-fullpage {
    top: calc(14px + env(safe-area-inset-top, 0px));
    right: calc(14px + env(safe-area-inset-right, 0px));
    bottom: auto;
}

@media (max-width: 720px) {
    .cb-osd__controls { gap: 14px; right: 12px; bottom: 12px; }
    .cb-osd__controls button { width: 56px; height: 56px; }
    .cb-osd__controls svg { width: 26px; height: 26px; }
}

/* вход в режим просмотра и выход из него (телефон) */
.cb-osd__enter,
.cb-osd__done {
    position: absolute;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: .45em;
    background: rgba(43, 32, 24, .82);
    color: #fbf6ec;
    border: 1px solid rgba(251, 246, 236, .35);
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
.cb-osd__enter {
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    padding: .7em 1.4em;
    font-size: .95rem;
}
.cb-osd__done {
    top: .8rem;
    right: .8rem;
    padding: .5em .95em;
    font-size: .85rem;
}
.cb-osd__done svg {
    width: 15px;
    height: 15px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
}

/* 🔴 Без этого правила атрибут hidden не работает: заданный выше `display: inline-flex`
   перебивает `[hidden] { display: none }` из стилей браузера, и кнопки режима просмотра
   видны там, где их быть не должно (поймано скриншотом 15.09.2026 — на десктопе висели
   обе). Та же ловушка у любого нашего элемента, которому задан display. */
.cb-osd__enter[hidden],
.cb-osd__done[hidden],
.cb-osd__controls[hidden] { display: none !important; }

/*
 * Заглушка «здесь нужна картинка» (cb_image_stub в article-blocks.php).
 * Печатается ТОЛЬКО на стенде (cb_is_dev()) — на бою этой разметки в HTML нет вовсе,
 * прятать через display:none не требуется. Оформление нарочно «техническое»: не должно
 * быть похоже на реальный элемент статьи, чтобы никто не принял заглушку за готовый блок.
 */
.cb-img-stub {
    margin: 1.5em 0;
    padding: 1.1em 1.3em;
    border: 2px dashed var(--cb-accent-ink);
    border-radius: var(--cb-radius);
    background: repeating-linear-gradient(
        135deg,
        rgba(192, 41, 66, .06),
        rgba(192, 41, 66, .06) 10px,
        rgba(192, 41, 66, .12) 10px,
        rgba(192, 41, 66, .12) 20px
    );
    font-size: .95rem;
    line-height: 1.5;
}
.cb-img-stub__badge {
    display: inline-block;
    margin-bottom: .6em;
    padding: .2em .7em;
    border-radius: 999px;
    background: var(--cb-accent-ink);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.cb-img-stub__row { margin: .25em 0; color: var(--cb-ink-soft); }
.cb-img-stub__row b { color: var(--cb-ink); }

/* Место под ИНТЕРАКТИВНЫЙ компонент отличается от места под картинку цветом полосы:
   собирать под них надо разное — кадр против мозаики, пары кадров или ролика. */
.cb-img-stub--component {
    border-color: #2f6f4f;
    background: repeating-linear-gradient(
        135deg,
        rgba(47, 111, 79, .06),
        rgba(47, 111, 79, .06) 10px,
        rgba(47, 111, 79, .12) 10px,
        rgba(47, 111, 79, .12) 20px
    );
}
.cb-img-stub--component .cb-img-stub__badge { background: #2f6f4f; }
.cb-img-stub__warn { color: var(--cb-accent-ink); font-weight: 600; }
.cb-img-stub__warn code { background: rgba(0,0,0,.06); padding: 0 .3em; border-radius: 3px; }

/* --- медиа шире колонки текста (владелец 30.09.2026) ---------------------- *
 * Текст остаётся 43rem (~82 знака в строке — верхняя граница нормы), а картинки, видео,
 * вьюер, лупа и слайдеры «до / после» выходят до 72rem. Сделано отрицательным отступом, а не
 * transform: jQuery Magnify и OpenSeadragon считают координаты мыши, transform их сбивал бы.
 * На узком экране ширина = экран минус 16px с каждой стороны, горизонтальной прокрутки нет. */
.cb-body > .cb-hero-fig,
.cb-body > .cb-gallery,
.cb-body > .cb-zoom-fig,
.cb-body > .cb-osd,
.cb-body > .cb-video,
.cb-body > .cb-ba {
    width: min(var(--cb-wide), calc(100vw - 32px));
    max-width: none;
    margin-left: calc(50% - min(var(--cb-wide), calc(100vw - 32px)) / 2);
}
.cb-body > .cb-zoom-fig img,
.cb-body > .cb-ba img { width: 100%; }
/* широкий вьюер 3:2 на 72rem выше экрана ноутбука — ограничиваем по высоте окна */
.cb-body > .cb-osd .cb-osd__stage { max-height: 80vh; }

/* --- эпиграф к статье: мысль владельца с подписью, справа под H1 ---------- */

.cb-epigraph {
    margin: 4px 0 28px auto;
    max-width: 30rem;
    text-align: right;
}
.cb-epigraph blockquote {
    margin: 0;
    padding: 0;
    border: none;
    font-style: italic;
    font-size: 17px;
    line-height: 1.6;
    color: var(--cb-ink-soft);
}
.cb-epigraph figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: var(--cb-muted);
}
.cb-epigraph figcaption::before { content: "— "; }
@media (max-width: 599px) {
    /* на телефоне эпиграф не должен уводить картинку за первый экран */
    .cb-epigraph { max-width: none; margin: 0 0 18px 12%; }
    .cb-epigraph blockquote { font-size: 15px; line-height: 1.5; }
    .cb-epigraph figcaption { font-size: 13px; margin-top: 4px; }
}
/* две копии: под H1 на широком экране, после лида и картинки на телефоне (cb_epigraph в article-blocks.php) */
.cb-epigraph--mob { display: none; }
@media (max-width: 599px) {
    .cb-epigraph--desk { display: none; }
    .cb-epigraph--mob { display: block; margin: 16px 0 22px 12%; }
}

/* --- блок автора (фото + текст) ------------------------------------------ */

.cb-author {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin: 30px 0;
    padding: 18px;
    background: var(--cb-tint);
    border-radius: var(--cb-radius);
}
.cb-author__photo { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }
.cb-author .cb-img-stub { flex: 0 0 160px; margin: 0; font-size: 12px; }
.cb-author__text p { margin: 0; }
@media (max-width: 599px) {
    .cb-author { flex-direction: column; }
    .cb-author .cb-img-stub { flex-basis: auto; }
}

/* --- ролик сборки в теле статьи ------------------------------------------ */

.cb-body .cb-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--cb-dark);
    border-radius: var(--cb-radius);
}

/* --- hero-кадр в теле статьи (первый экран) ------------------------------- */

.cb-body .cb-hero-fig { margin-top: 22px; margin-bottom: 30px; }
.cb-body .cb-hero-fig img { display: block; width: 100%; box-shadow: var(--cb-shadow); }

/*
 * Блок «Сколько у вас времени» — карточки по числу дней до вручения (статьи-поводы, T31 первой).
 * Заменил 30.09.2026 схему-полосы обратного отсчёта: владелец счёл её хаотичной, а разбор
 * показал, что человек с горящей датой ищет одну строку «про меня», а не считает отрезки.
 * Порядок сверху вниз — от самого срочного к спокойному; первая карточка выделена.
 * Вёрстка, а не картинка: числа меняются вместе с правилами производства и доставки.
 */
.cb-time { margin: 28px 0; }
.cb-body .cb-time__record {
    margin: 0 0 12px;
    font-weight: 700;
    color: var(--cb-accent-ink);
}
.cb-time__cards { display: grid; gap: 10px; }
.cb-time__card {
    display: grid;
    grid-template-columns: 170px 1fr;
    grid-template-rows: auto 1fr;   /* подпись «для кого» прижата к заголовку, лишняя высота уходит вниз */
    column-gap: 18px;
    padding: 14px 16px;
    background: var(--cb-tint);
    border: 1px solid var(--cb-line);
    border-radius: var(--cb-radius);
}
.cb-time__card--hot {
    background: var(--cb-tint-warm);
    border: 2px solid var(--cb-accent);
}
.cb-body .cb-time__h { grid-column: 1; margin: 0; font-size: 20px; font-weight: 700; line-height: 1.25; }
.cb-body .cb-time__who { grid-column: 1; align-self: start; margin: 4px 0 0; font-size: 14px; color: var(--cb-muted); }
.cb-body .cb-time__card ul { grid-column: 2; grid-row: 1 / span 2; margin: 0; padding-left: 18px; font-size: 15px; }
.cb-body .cb-time__card li { margin-bottom: 4px; }
.cb-body .cb-time__do {
    grid-column: 2;
    margin: 6px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--cb-accent-ink);
}
.cb-body .cb-time__far {
    margin: 12px 0 0;
    padding: 12px 16px;
    border-left: 3px solid var(--cb-dark-soft);
    background: var(--cb-tint);
    border-radius: 0 var(--cb-radius) var(--cb-radius) 0;
    font-size: 15px;
}

@media (max-width: 599px) {
    .cb-time__card { grid-template-columns: 1fr; }
    .cb-body .cb-time__card ul,
    .cb-body .cb-time__do { grid-column: 1; grid-row: auto; }
    .cb-body .cb-time__card ul { margin-top: 8px; }
}

/* --- страница «Видеоролик сборки» (/video/rolik-sborki-fotomozaiki/, 01.10.2026) -----------------
 * Ролик первого экрана стоит в секции компонента (hero_video), а не в .cb-body, поэтому правило
 * «.cb-body .cb-video video» на него не действует: без этого блока ролик шириной 1920 давал горизонтальную
 * прокрутку на телефоне (замер 01.10: scrollWidth 1980 при экране 390). */
.cb-component--hero_video { max-width: min(72rem, calc(100vw - 32px)); margin: 0 auto 24px; }
.cb-component--hero_video .cb-video video,
.cb-clip .cb-video video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--cb-dark);
    border-radius: var(--cb-radius);
}
.cb-clip { margin: 28px 0; }
.cb-clip figure.cb-video { margin: 0; }
.cb-clip figure.cb-video figcaption { margin-top: 8px; font-size: 15px; color: var(--cb-muted, #666); }
.cb-clip h3 { margin-bottom: 10px; }
.cb-clip-nav { font-size: 15px; line-height: 1.7; }
.cb-clip-dl { font-size: 15px; margin-top: 8px; }
.cb-fig img { max-width: 100%; height: auto; }
/* вертикальные кадры (фото на телефон) не растягиваем на всю колонку */
.cb-figure--narrow img { max-width: min(480px, 100%); }   /* 07.10.2026: голые 480px распирали страницу на телефоне до 500 px — текст ужимался в полосу */
/* наш путь в ленте времени */
.cb-row-ours td { background: rgba(200, 30, 40, .05); }

/* --- схема «Из чего собирается картина» (cb_scheme, 07.10.2026) ---------- */
.cb-scheme { margin: 28px 0; }
.cb-scheme__title { margin: 0 0 16px; font-size: 24px; line-height: 1.25; font-weight: 700; }
.cb-scheme__row { display: flex; flex-direction: column; gap: 6px; }
.cb-scheme__card {
    margin: 0;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 14px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--cb-line);
    border-radius: 14px;
    padding: 10px;
    box-shadow: var(--cb-shadow);
}
.cb-scheme__card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.cb-scheme__card--result img { aspect-ratio: 3 / 2; }
.cb-scheme__card a { display: block; line-height: 0; }
.cb-scheme__card figcaption { display: flex; flex-direction: column; gap: 4px; }
.cb-scheme__card strong { font-size: 17px; line-height: 1.25; font-weight: 700; color: var(--cb-ink); }
.cb-scheme__card span { font-size: 14px; line-height: 1.5; color: var(--cb-muted); }
.cb-scheme__sign { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* 07.10: владелец — «стрелочка тоненькая совсем некрасивая»: знаки — SVG с толстой линией в залитом круге */
.cb-scheme__sign span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--cb-accent); color: #fff;
    box-shadow: 0 6px 16px rgba(192, 41, 66, .3);
}
.cb-scheme__sign svg { display: block; }
.cb-scheme__sign--arrow span { transform: rotate(90deg); }
.cb-scheme__sign small { font-size: 12px; line-height: 1.35; color: var(--cb-muted); text-align: center; }
@media (min-width: 760px) {
    .cb-scheme__title { font-size: 28px; }
    .cb-scheme__row { display: grid; grid-template-columns: 1fr 56px 1fr 104px 1.25fr; align-items: center; gap: 12px; }
    .cb-scheme__card { display: block; padding: 14px; }
    .cb-scheme__card figcaption { margin-top: 10px; }
    .cb-scheme__sign span { width: 52px; height: 52px; }
    .cb-scheme__sign svg { width: 26px; height: 26px; }
    .cb-scheme__sign--arrow span { transform: none; }
}

/* --- крестик окон просмотра Magnific (07.10.2026) -------------------------
   Родной .mfp-close сидит внутри картинки и при увеличении пальцами уезжает за край экрана.
   Свой — fixed в правом верхнем углу; при увеличении article.js держит его в углу видимой области. */
.cb-mfp .mfp-close { display: none !important; }
.cb-vv-close {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1100;   /* выше окна Magnific (1043–1046) */
    width: 52px;
    height: 52px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 38px/1 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #16181f;
    background: #fff;
    border: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, .55), 0 6px 20px rgba(0, 0, 0, .55);
    cursor: pointer;
}
.cb-vv-close span { margin-top: -4px; }

/* Ссылка-кнопка «к блоку связи» внутри текста статьи: <p class="cb-jump-row"><a class="cb-jump" href="#cb-cta">…</a></p>.
   Заведено для /portret-iz-fotografiy/ (T50, 08.10.2026), годится любой статье. */
.cb-page p.cb-jump-row { margin: 18px 0 22px; }
.cb-page a.cb-jump {
    display: inline-block;
    padding: 12px 20px;
    background: var(--cb-accent);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.3;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(22, 24, 31, .12);
    transition: filter .15s ease, transform .15s ease;
}
.cb-page a.cb-jump:hover { color: #fff; filter: brightness(1.08); transform: translateY(-1px); }
.cb-page .cb-jump-note { display: block; margin-top: 8px; font-size: 14px; color: var(--cb-ink-soft); }

/* Вертикальная мозаика (портрет 2:3): <div class="cb-vert"> вокруг cb_osd()/cb_magnify().
   Без обёртки вьюер 3:2 открывает вертикальную картинку уже приближенной, а лупа растягивается
   на всю ширину и становится выше двух экранов (T50, 08.10.2026). */
.cb-body > .cb-vert { width: min(520px, 100%); margin: 30px auto; }
.cb-vert .cb-osd, .cb-vert .cb-zoom-fig { margin: 0; }
.cb-vert .cb-osd__stage { aspect-ratio: 2 / 3; max-height: 85vh; }
.cb-vert .cb-zoom-fig img { width: 100%; height: auto; }
