/* ==========================================================================
   LightCA.News — шаблон портала.
   Самостоятельная таблица стилей: прежняя тема госсайта на этих страницах не
   подключается. Акцент (--brand) и основной цвет (--brand-deep) печатает
   <head> из настроек «Дизайна»; здесь — только их запасные значения.
   ========================================================================== */

:root {
    --brand: #005650;
    --brand-deep: #0b4b42;
    --ground: #ffffff;
    --surface: #ffffff;
    --paper: #f4f7f6;
    --band: #eef2f1;
    --ink: #121717;
    --ink-2: #35403e;
    --ink-3: #4f5c59;
    --rule: #d3dbdb;
    --link: var(--brand);
    --brand-soft: color-mix(in srgb, var(--brand) 13%, var(--surface));
    /* Сигнальный цвет: текущая рубрика, полоса над подвалом, метки на тёмном.
       Для текста на белом не годится (2.6:1). */
    --signal: #2fb36f;
    --signal-on-dark: #8be8bd;
    --live: #d7262f;
    --dark-band: color-mix(in srgb, var(--brand-deep) 88%, #000);
    --foot-bg: color-mix(in srgb, var(--brand-deep) 18%, #070b0b);
    --sans: 'Medeo Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
    --wrap: 1440px;
    --gap: 24px;
    --r: 2px;
    --hdr-row1: 72px;
    --hdr-row2: 53px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root[data-theme="auto"] {
        --ground: #0d1514; --surface: #142120; --paper: #182725; --band: #111c1b;
        --ink: #e8efee; --ink-2: #b8c7c4; --ink-3: #9cb0ad; --rule: #23403c;
        --link: color-mix(in srgb, var(--brand) 45%, #ffffff);
        --brand-soft: color-mix(in srgb, var(--brand) 30%, #0d1514);
        --live: #ff7b82;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --ground: #0d1514; --surface: #142120; --paper: #182725; --band: #111c1b;
    --ink: #e8efee; --ink-2: #b8c7c4; --ink-3: #9cb0ad; --rule: #23403c;
    --link: color-mix(in srgb, var(--brand) 45%, #ffffff);
    --brand-soft: color-mix(in srgb, var(--brand) 30%, #0d1514);
    --live: #ff7b82;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16.5px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (max-width: 1080px) { html { font-size: 16px; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body.pt { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.55; -webkit-font-smoothing: antialiased; }
:where(.pt) a { color: inherit; text-decoration: none; }
.pt img { display: block; max-width: 100%; height: auto; }
.pt button { font-family: inherit; }
.pt :focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.pt h1, .pt h2, .pt h3 { margin: 0; }

/* Спрайт иконок встраивается сразу после <body>: строчный svg 0×0 всё равно
   занимает строку текста и сдвигал шапку вниз. */
.tabler-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.pt-skip { position: absolute; left: -9999px; top: 8px; z-index: 999; padding: 10px 14px; background: var(--brand-deep); color: #fff; font-weight: 700; }
.pt-skip:focus { left: 16px; }
.csrf-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pt-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.pt-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 2.5vw, 24px); }
.pt-hl { font-weight: 750; text-wrap: pretty; }
.pt a:hover .pt-hl, .pt a:focus-visible .pt-hl { color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.pt-meta { color: var(--ink-3); font-size: .85rem; font-variant-numeric: tabular-nums; }
.pt-empty { color: var(--ink-3); }

/* --- Кнопки ---------------------------------------------------------------- */
.pt-btn { height: 34px; padding-inline: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: .78rem; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s; }
.pt-btn:hover { border-color: var(--link); color: var(--link); }
.pt-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.pt-btn--icon { width: 34px; padding: 0; }
.pt-btn--search { background: var(--paper); color: var(--ink-2); }
.pt-btn--brand { height: 40px; padding-inline: 16px; background: var(--brand); border-color: var(--brand); color: #fff; font-size: .9rem; }
.pt-btn--brand:hover { color: #fff; opacity: .92; }
.pt-btn--wide { width: 100%; height: 40px; }
:root[data-theme="dark"] .pt-moon { display: none; }
:root:not([data-theme="dark"]) .pt-sun { display: none; }

/* --- Шапка ----------------------------------------------------------------- */
.pt-mast {
    position: sticky; top: 0; z-index: 50;
    background: linear-gradient(var(--surface) 0 calc(4px + var(--hdr-row1)), var(--rule) calc(4px + var(--hdr-row1)) calc(5px + var(--hdr-row1)), var(--band) calc(5px + var(--hdr-row1)) 100%);
    box-shadow: 0 1px 0 var(--rule);
}
.pt-mast__hem { height: 4px; background: var(--brand-deep); }
.pt-mast__row { display: grid; grid-template-columns: 174px minmax(0, 1fr); grid-template-rows: var(--hdr-row1) var(--hdr-row2); gap: 0 26px; align-items: center; }
.pt-logo {
    grid-column: 1; grid-row: 1 / span 2; align-self: start;
    width: 174px; height: calc(var(--hdr-row1) + var(--hdr-row2) + 10px); margin-bottom: -10px;
    padding: 14px 16px 12px; display: flex; flex-direction: column; justify-content: center; gap: 7px;
    background: var(--logo-plate, var(--brand-deep)); color: #fff; border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(7, 47, 43, .16), 0 1px 3px rgba(7, 47, 43, .1);
    position: relative; z-index: 6;
}
.pt-logo__word { font-size: 2.2rem; font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.pt-logo__word::after { content: ""; display: block; width: 44px; height: 1px; margin-top: 6px; background: rgba(190, 217, 204, .7); }
.pt-logo__desc { font-size: .75rem; line-height: 1.25; color: #e0ede6; }
/* Знак картинкой (конструктор шапки → «Знак в плашке»): вписывается в плашку. */
.pt .pt-logo__img { display: block; width: 100%; height: auto; max-height: 64px; object-fit: contain; object-position: left center; }
/* «Онлайн» — ссылка на трансляцию, красная, как в прототипе; CTA — акцентом. */
.pt-btn--live { color: color-mix(in srgb, var(--live) 85%, #000); border-color: color-mix(in srgb, var(--live) 35%, var(--rule)); background: color-mix(in srgb, var(--live) 7%, var(--surface)); }
.pt-btn--live:hover { color: color-mix(in srgb, var(--live) 85%, #000); border-color: var(--live); }
.pt-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); }
.pt-btn--cta { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-btn--cta:hover { color: #fff; opacity: .92; }
.pt-mast__bar { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--hdr-row1); min-width: 0; }
.pt-nav { display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
.pt-nav::-webkit-scrollbar { display: none; }
.pt-nav a { position: relative; padding: 14px; font-size: .9375rem; font-weight: 700; color: var(--ink); border-bottom: 3px solid transparent; transition: color .15s, background .15s; }
.pt-nav a + a::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 15px; background: var(--rule); }
.pt-nav a:hover { color: var(--link); background: var(--paper); border-bottom-color: var(--rule); }
.pt-nav a[aria-current] { color: var(--link); border-bottom-color: var(--signal); }
.pt-tools { display: flex; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--rule); flex-shrink: 0; }
.pt-lang { position: relative; }
.pt-lang summary { list-style: none; }
.pt-lang summary::-webkit-details-marker { display: none; }
.pt-lang summary::after { content: "▾"; font-size: .68rem; color: var(--ink-3); }
.pt-lang__menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 60; min-width: 120px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 12px 30px rgba(12, 19, 18, .16); }
.pt-lang__menu a { display: block; padding: 7px 10px; font-size: .85rem; font-weight: 700; }
.pt-lang__menu a:hover, .pt-lang__menu a[aria-current] { background: var(--brand-soft); color: var(--link); }

.pt-countries { grid-column: 2; grid-row: 2; display: flex; align-items: center; gap: 8px; height: var(--hdr-row2); overflow-x: auto; scrollbar-width: none; white-space: nowrap; min-width: 0; }
.pt-countries::-webkit-scrollbar { display: none; }
.pt-countries__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); font-weight: 800; padding-right: 10px; border-right: 1px solid var(--rule); margin-right: 2px; }
.pt-countries > a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); font-size: .8125rem; font-weight: 600; }
.pt-countries > a b { font-size: .68rem; background: var(--brand-soft); color: var(--link); padding: 2px 5px; border-radius: 1px; }
.pt-countries > a:hover, .pt-countries > a[aria-current] { border-color: var(--link); background: var(--brand-soft); }
/* Дата и погода стоят у правого края и не уезжают вместе с прокруткой стран:
   в конце прокручиваемой полосы их обрезал край («18 ноября, Ч»). */
.pt-countries__meta { margin-left: auto; flex-shrink: 0; position: sticky; right: 0; display: inline-flex; align-items: center; align-self: stretch; padding-left: 10px; background: var(--band); }
.pt-countries__date { padding-left: 14px; border-left: 1px solid var(--rule); font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pt-countries__weather { display: inline-flex; align-items: center; gap: 5px; padding-left: 14px; font-size: .8rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pt-countries__weather--solo { border-left: 1px solid var(--rule); }
.pt-countries__weather b { color: var(--ink); font-weight: 800; }
.pt-countries__wicon { color: var(--link); }
@media (max-width: 1120px) { .pt-countries__meta { display: none; } }

.pt-search { border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: var(--r); background: var(--surface); color: var(--ink); max-width: 640px; width: calc(100% - 32px); padding: 0; margin: 72px auto auto; box-shadow: 0 24px 60px rgba(12, 19, 18, .28); }
.pt-search::backdrop { background: rgba(12, 19, 18, .55); }
.pt-search__box { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.pt-search__box svg { width: 18px; height: 18px; fill: none; stroke: var(--link); stroke-width: 2; flex-shrink: 0; }
.pt-search__box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1rem; }
.pt-search__close { height: 28px; padding-inline: 8px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); color: var(--ink-3); font-size: .72rem; font-weight: 700; cursor: pointer; }

/* --- Метки и кадры ----------------------------------------------------------- */
.pt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; }
.pt-code { display: inline-flex; padding: 2px 7px; border: 1px solid var(--rule); border-radius: var(--r); font-size: .74rem; font-weight: 800; color: var(--ink-2); }
.pt-rubric { color: var(--link); font-weight: 700; }
.pt-badge { display: inline-flex; padding: 2px 8px; border-radius: var(--r); background: #d7262f; color: #fff; font-size: .74rem; font-weight: 800; }
.pt-more { color: var(--link); font-size: .85rem; font-weight: 700; white-space: nowrap; }
.pt-more:hover { text-decoration: underline; text-underline-offset: 3px; }

.pt-ph { position: relative; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); background: var(--paper); }
.pt-ph--16x9 { aspect-ratio: 16 / 9; }
.pt-ph--4x3 { aspect-ratio: 4 / 3; }
.pt-ph picture, .pt-ph img { width: 100%; height: 100%; }
.pt-ph img { object-fit: cover; }
.pt-ph[data-empty] { background: linear-gradient(135deg, var(--brand-soft), var(--paper)); }
@media (prefers-reduced-motion: no-preference) {
    .pt-ph img { transition: transform .3s ease; }
    .pt a:hover .pt-ph img { transform: scale(1.02); }
}

/* --- Заголовки секций ---------------------------------------------------------- */
.pt-sec { padding-block: 38px; }
.pt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 24px; }
.pt-sec-head h2 { font-size: 1.45rem; font-weight: 800; line-height: 1.15; border-left: 4px solid var(--brand); padding-left: 12px; }
.pt-sec-head--sm { align-items: center; min-height: 40px; padding-bottom: 10px; margin-bottom: 18px; }
.pt-sec-head--sm h2 { font-size: 1.2rem; }

/* --- Первый экран: главное + лента ------------------------------------------- */
.pt-home-top { display: grid; grid-template-columns: minmax(0, 1fr) var(--pt-feed-w, minmax(0, .5fr)); gap: var(--gap); padding-block: 24px 32px; }
.pt-lead-ed { min-width: 0; }
.pt-feed { min-width: 0; border-left: 1px solid var(--rule); padding-left: 24px; display: flex; flex-direction: column; gap: 16px; }
.pt-pkg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.pt-pkg__text { display: grid; gap: 10px; align-content: start; }
.pt-pkg__title { font-size: clamp(1.55rem, 2.3vw, 2.15rem); line-height: 1.12; }
.pt-pkg__lead { margin: 0; font-family: var(--serif); font-size: 1.1rem; line-height: 1.58; color: var(--ink-2); }
.pt-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.pt-ncard { display: flex; flex-direction: column; gap: 8px; }
.pt-ncard .pt-hl { font-size: 1.04rem; line-height: 1.34; }
.pt-also { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); }
.pt-also__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.pt-also__item { display: grid; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.pt-also__item .pt-hl { font-size: .96rem; font-weight: 600; line-height: 1.35; }

.pt-feed .pt-sec-head { margin-bottom: 0; }
/* «Главное» и «Лента» отдельными блоками: каждая во всю колонку сайта. */
.pt-home-main, .pt-feed-solo { padding-block: 24px 32px; }
.pt-feed-solo .pt-feed { border-left: 0; padding-left: 0; }
/* Во всю ширину партнёрский материал встаёт колонкой справа от ленты:
   кадр 16:9 на 1200px занял бы экран целиком. */
@media (min-width: 901px) {
    .pt-feed-solo .pt-feed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; column-gap: var(--gap); align-content: start; }
    .pt-feed-solo .pt-feed > :not(.pt-partner) { grid-column: 1; }
    .pt-feed-solo .pt-feed > .pt-partner { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; align-self: start; }
}
.pt-feed__list { list-style: none; margin: 0; padding: 0; }
.pt-feed__list li { border-bottom: 1px solid var(--rule); }
.pt-feed__list a { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding-block: 11px; }
.pt-feed__list time { font-size: .84rem; font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; line-height: 1.38; }
.pt-feed__list .pt-hl { display: block; font-size: .96rem; font-weight: 500; line-height: 1.38; }
.pt-feed__rubric { display: block; font-size: .75rem; color: var(--ink-3); margin-bottom: 2px; }

/* --- Курсы ------------------------------------------------------------------- */
.pt-fx { background: var(--band); border-block: 1px solid var(--rule); padding-block: 14px; }
.pt-fx__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.pt-fx__label { margin: 0; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--link); }
.pt-fx__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.pt-fx__item { display: grid; gap: 2px; padding: 8px 12px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); font-variant-numeric: tabular-nums; }
.pt-fx__item dt { font-size: .73rem; font-weight: 700; color: var(--ink-3); }
.pt-fx__item dd { margin: 0; font-size: 1.08rem; font-weight: 800; }

/* --- Выбор редакции ------------------------------------------------------------- */
.pt-picks { background: var(--dark-band); color: #fff; padding-block: 42px; }
.pt-picks .pt-sec-head { border-bottom-color: rgba(255, 255, 255, .22); }
.pt-picks .pt-sec-head h2 { border-left-color: var(--signal-on-dark); }
.pt-picks__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: pick; }
.pt-pcard { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); background: rgba(255, 255, 255, .04); overflow: hidden; transition: border-color .18s, background .18s; }
.pt-pcard:hover { border-color: var(--signal-on-dark); background: rgba(255, 255, 255, .08); }
.pt-pcard .pt-ph { border-radius: 0; background: rgba(255, 255, 255, .06); }
.pt-pcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pt-pcard__meta { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--signal-on-dark); }
.pt-pcard__meta span:last-child { color: #cbe0dc; font-weight: 600; text-transform: none; letter-spacing: 0; }
.pt-pcard .pt-hl { font-size: 1.03rem; line-height: 1.32; color: #fff; }
.pt .pt-pcard:hover .pt-hl { color: var(--signal-on-dark); }
.pt-pcard__text { color: #cbe0dc; font-size: .85rem; line-height: 1.45; }

/* --- Нити региона ------------------------------------------------------------ */
.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pt-filters button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); padding: 7px 12px; border-radius: var(--r); font-size: .84rem; font-weight: 700; cursor: pointer; }
.pt-filters button b { font-size: .68rem; padding: 1px 5px; border-radius: var(--r); background: var(--brand-soft); color: var(--link); }
.pt-filters button:hover { border-color: var(--link); color: var(--ink); }
.pt-filters button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-filters button[aria-pressed="true"] b { background: rgba(255, 255, 255, .2); color: #fff; }
.pt-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pt-region { border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: var(--r); background: var(--surface); display: flex; flex-direction: column; overflow: hidden; }
.pt-region__hero { position: relative; display: block; }
.pt-region__hero .pt-ph { border-radius: 0; }
.pt-region__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 30, 27, .05) 30%, rgba(11, 30, 27, .86) 100%); }
.pt-region__id { position: absolute; left: 14px; bottom: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 1.08rem; font-weight: 800; }
.pt-region__id b { background: var(--signal-on-dark); color: #0b2e28; font-size: .72rem; padding: 3px 7px; border-radius: var(--r); letter-spacing: .05em; }
.pt-region__body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pt-region__lead { font-size: 1.06rem; line-height: 1.3; }
.pt-region ul { list-style: none; margin: 6px 0 0; padding: 0; }
.pt-region li { border-top: 1px solid var(--rule); padding-block: 10px; }
.pt-region li a { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; line-height: 1.38; color: var(--ink-2); }
.pt-region li a:hover { color: var(--link); }
.pt-region li .pt-meta { font-size: .78rem; }
.pt-region__foot { margin-top: auto; padding: 11px 18px; background: var(--paper); border-top: 1px solid var(--rule); font-size: .8rem; font-weight: 800; color: var(--link); }
.pt-region__foot:hover { background: var(--brand-soft); }
.pt-regions.is-filtered { grid-template-columns: minmax(0, 960px); }

/* --- Точка зрения ---------------------------------------------------------- */
.pt-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pt-opinion { border: 1px solid var(--rule); border-top: 3px solid var(--brand); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); transition: border-color .18s; }
.pt-opinion:hover { border-color: var(--brand); }
.pt-opinion__badge { align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: var(--r); background: var(--brand-soft); color: var(--link); }
.pt-opinion .pt-hl { font-family: var(--serif); font-size: 1.18rem; line-height: 1.36; font-weight: 700; margin-bottom: auto; }
.pt-opinion__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .8rem; }

/* --- Подписка ----------------------------------------------------------------- */
.pt-subscribe { background: var(--brand-soft); padding-block: 44px; border-top: 1px solid var(--rule); }
.pt-subscribe__row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.pt-subscribe__intro h2 { font-size: 1.55rem; line-height: 1.15; }
.pt-subscribe__intro p { margin: 10px 0 0; color: var(--ink-2); font-size: .95rem; max-width: 60ch; }
.pt-sub-card { background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--brand); padding: 20px; border-radius: var(--r); display: grid; gap: 12px; }
.pt-sub-card__head { font-weight: 800; }
.pt-sub-card__row { display: flex; gap: 8px; }
.pt-sub-card__row input { flex: 1; min-width: 0; height: 40px; padding-inline: 12px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--ground); color: var(--ink); font: inherit; }
.pt-sub-card__consent { font-size: .78rem; color: var(--ink-3); }

/* --- Подвал ------------------------------------------------------------------- */
.pt-foot { background: var(--foot-bg); color: #dbe4e2; padding-block: 48px 28px; border-top: 3px solid var(--signal); }
.pt-foot__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.pt-foot__brand { margin: 0 0 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.pt-foot__brand span { color: var(--signal-on-dark); }
.pt-foot__about { color: #a8bebb; font-size: .875rem; line-height: 1.5; max-width: 36ch; }
.pt-foot__about p { margin: 0; }
.pt-foot__head { margin: 0 0 14px; font-size: .78rem; color: var(--signal-on-dark); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.pt-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .875rem; }
.pt-foot a:hover { color: var(--signal-on-dark); text-decoration: underline; text-underline-offset: 3px; }
.pt-foot__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pt-foot__social a { padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--r); font-size: .78rem; font-weight: 700; color: #e8efee; }
.pt-foot__grid--c1 { grid-template-columns: minmax(0, 1fr); }
.pt-foot__grid--c2 { grid-template-columns: 1.6fr 1fr; }
.pt-foot__grid--c3 { grid-template-columns: 1.6fr 1fr 1fr; }
.pt-foot__grid > * > * + * { margin-top: 14px; }
.pt-foot__grid > * > .pt-foot__head + * { margin-top: 0; }
.pt-foot__links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.pt-foot__subscribe { display: flex; gap: 8px; max-width: 360px; }
.pt-foot__subscribe input[type="email"] { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .22); border-radius: var(--r); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: .875rem; }
.pt-foot__subscribe button { padding: 8px 14px; border: 0; border-radius: var(--r); background: var(--signal-on-dark); color: #0c1413; font: inherit; font-size: .82rem; font-weight: 800; cursor: pointer; }
.pt-foot__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 18px; font-size: .8rem; color: #9ab0ad; }

/* --- Адаптив ------------------------------------------------------------------- */
@media (max-width: 1080px) {
    .pt-home-top { grid-template-columns: minmax(0, 1fr); }
    .pt-feed { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 20px; }
    .pt-picks__row, .pt-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pt-subscribe__row, .pt-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
    /* Как в прототипе: рубрики уходят второй строкой под инструменты и
       прокручиваются вбок — меню-бургер для семи рубрик не нужен. */
    :root { --hdr-row1: 93px; --hdr-row2: 47px; }
    .pt-mast__row { grid-template-columns: 118px minmax(0, 1fr); gap: 0 12px; }
    .pt-logo { grid-row: 1; width: 118px; height: calc(var(--hdr-row1) + 4px); margin-bottom: -4px; padding: 8px 10px; gap: 5px; }
    .pt-logo__word { font-size: 1.6rem; }
    .pt-logo__desc { font-size: .59rem; }
    .pt-mast__bar { flex-wrap: wrap; justify-content: flex-end; gap: 4px 8px; padding-block: 6px; }
    .pt-nav { order: 2; width: 100%; }
    .pt-nav a { padding: 6px 8px; font-size: .82rem; }
    .pt-nav a:first-child { padding-left: 0; }
    .pt-tools { border-left: 0; padding-left: 0; }
    .pt-countries { grid-row: 2; grid-column: 1 / -1; }
    .pt-countries__label { display: none; }
}
@media (max-width: 720px) {
    .pt-pkg, .pt-grid3, .pt-also__grid, .pt-picks__row, .pt-regions, .pt-row3, .pt-subscribe__row, .pt-foot__grid { grid-template-columns: minmax(0, 1fr); }
    .pt-pkg .pt-ph { order: -1; }
    .pt-btn--search span { display: none; }
    .pt-tools { gap: 6px; }
}
@media print {
    .pt-mast, .pt-foot, .pt-search, .pt-subscribe { display: none; }
}

/* --- Лента рубрики и страны -------------------------------------------------- */
.pt-sec-head--page h1 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; line-height: 1.15; border-left: 4px solid var(--brand); padding-left: 12px; display: flex; align-items: center; gap: 10px; }
.pt-code--lg { font-size: .8rem; padding: 3px 8px; }
/* Флаг вместо кода: чип не нужен, флагу хватает тонкой обводки. */
.pt-flag { display: inline-block; width: 1.35em; height: .9em; vertical-align: -.12em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(12, 19, 18, .14); flex: none; }
.pt-flag--globe { width: 1.05em; height: 1.05em; vertical-align: -.18em; box-shadow: none; }
/* Чипы кодов (шапка, фильтры, подпись на фото) задают фон, отступ и тёмный
   цвет — у флага их нет, а глобус берёт цвет окружающего текста. */
.pt-code:has(> .pt-flag), .pt b:has(> .pt-flag), .pt-countries > a b:has(> .pt-flag), .pt-filters button b:has(> .pt-flag), .pt-region__id b:has(> .pt-flag) { background: none; border: 0; padding: 0; color: inherit; display: inline-flex; }
.pt-countries > a:has(.pt-flag) { padding-left: 8px; }
.pt-code--lg .pt-flag { font-size: 1.4rem; }
.pt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-3); margin-bottom: 14px; }
.pt-crumbs a { color: var(--ink-2); font-weight: 600; }
.pt-crumbs a:hover { color: var(--link); }
.pt-listing { padding-top: 22px; }
.pt-listing__lead { margin: -8px 0 20px; color: var(--ink-2); max-width: 70ch; }
.pt-filters--links a { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); padding: 7px 12px; border-radius: var(--r); font-size: .84rem; font-weight: 700; }
.pt-filters--links a b { font-size: .68rem; padding: 1px 5px; border-radius: var(--r); background: var(--brand-soft); color: var(--link); }
.pt-filters--links a:hover { border-color: var(--link); color: var(--ink); }
.pt-filters--links a[aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-filters--links a[aria-current] b { background: rgba(255, 255, 255, .2); color: #fff; }
.pt-listing__lead-card { margin-bottom: 4px; }
.pt-listing__grid { margin-top: 24px; row-gap: 32px; }
.pt-ncard__text { color: var(--ink-2); font-size: .9rem; line-height: 1.45; }
.pt-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.pt-pager a, .pt-pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding-inline: 10px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); font-weight: 700; font-size: .9rem; }
.pt-pager a:hover { border-color: var(--link); color: var(--link); }
.pt-pager [aria-current] { background: var(--brand); border-color: var(--brand); color: #fff; }
.pt-pager .pt-pager__gap { border: 0; background: none; min-width: 20px; }

/* --- Статья ------------------------------------------------------------------ */
.pt-art { display: grid; grid-template-columns: 210px minmax(0, 740px) 320px; justify-content: space-between; gap: 36px; padding-block: 24px 64px; align-items: start; }
.pt-art__rail, .pt-art__side { position: sticky; top: calc(4px + var(--hdr-row1) + var(--hdr-row2) + 20px); display: grid; gap: 18px; align-content: start; }
.pt-art__box { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r); padding: 14px; display: grid; gap: 10px; font-size: .84rem; }
.pt-art__box-title { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); border-bottom: 1px solid var(--rule); padding-bottom: 6px; }
.pt-toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--rule); }
.pt-toc a { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px; padding: 6px 8px 6px 10px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .81rem; line-height: 1.32; }
.pt-toc__num { font-size: .7rem; font-weight: 800; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.pt-toc a:hover { color: var(--link); background: var(--paper); }
.pt-toc a.is-active { border-left-color: var(--brand); background: var(--brand-soft); color: var(--link); font-weight: 700; }
.pt-toc a.is-active .pt-toc__num { color: var(--link); }
.pt-progress { height: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; }
.pt-progress__fill { height: 100%; width: 0; background: var(--brand); }
.pt-progress__label { display: flex; justify-content: space-between; font-size: .76rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.pt-art__main .pt-crumbs { margin-bottom: 12px; }
.pt-art__tags { margin-bottom: 4px; }
.pt-art__badge { display: inline-flex; padding: 2px 8px; border-radius: var(--r); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; background: var(--brand-soft); color: var(--link); }
.pt-art__title { font-size: clamp(1.85rem, 3vw, 2.55rem); line-height: 1.14; margin: 12px 0; font-weight: 800; text-wrap: pretty; }
.pt-art__lead { font-family: var(--serif); font-size: 1.24rem; line-height: 1.54; color: var(--ink-2); margin: 0 0 18px; }
.pt-art__lead p { margin: 0; }
.pt-art__byline { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-block: 12px; border-block: 1px solid var(--rule); margin-bottom: 20px; }
.pt-art__figure { margin: 0 0 22px; }
.pt-art__figure .pt-ph { border: 1px solid var(--rule); }
.pt-art__figure figcaption { margin-top: 8px; font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.pt-art__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pt-impact { background: var(--brand-soft); border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 18px 20px; margin-block: 22px; }
.pt-impact__head { margin: 0 0 10px; font-size: .95rem; font-weight: 800; color: var(--link); text-transform: uppercase; letter-spacing: .05em; }
.pt-impact__list { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .95rem; line-height: 1.5; }
.pt-art__body { max-width: none; }
.pt-art__body h2, .pt-art__body h3 { scroll-margin-top: calc(var(--hdr-row1) + var(--hdr-row2) + 28px); }
.pt-art__body--dropcap > p:first-of-type::first-letter { float: left; font-size: 3.1rem; line-height: .85; padding: 4px 10px 0 0; font-weight: 700; color: var(--link); }
.pt-art__docs { margin-top: 24px; padding: 16px 18px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.pt-art__docs-title { margin: 0 0 8px; font-size: 1rem; font-weight: 800; }
.pt-art__docs ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.pt-art__docs a { color: var(--link); font-weight: 700; }
.pt-art__hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
.pt-art__tag { padding: 4px 10px; border: 1px solid var(--rule); background: var(--paper); border-radius: var(--r); font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.pt-art__tag:hover { border-color: var(--link); color: var(--link); background: var(--brand-soft); }
.pt-art__next { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; margin-top: 24px; padding: 14px; border: 1px solid var(--rule); border-left: 4px solid var(--brand); background: var(--surface); border-radius: var(--r); }
.pt-art__next:hover { background: var(--paper); }
.pt-art__next-kicker { display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--link); }
.pt-art__next-title { display: block; margin-top: 4px; font-size: 1.02rem; line-height: 1.3; }

.pt-side-card { border: 1px solid var(--rule); background: var(--surface); border-radius: var(--r); padding: 16px; }
.pt-side-card__head { border-bottom: 1px solid var(--rule); padding-bottom: 8px; margin-bottom: 12px; font-size: .85rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pt-side-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.pt-side-item { display: grid; gap: 3px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
.pt-side-list > :last-child .pt-side-item, .pt-side-list > .pt-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pt-side-item__meta { font-size: .74rem; font-weight: 700; color: var(--link); text-transform: uppercase; letter-spacing: .04em; }
.pt-side-item__title { font-size: .9rem; font-weight: 700; line-height: 1.32; }
.pt-side-item:hover .pt-side-item__title { color: var(--link); }
.pt-side-list--ranked { counter-reset: rank; }
.pt-side-list--ranked li { display: grid; grid-template-columns: 26px minmax(0, 1fr); counter-increment: rank; }
.pt-side-list--ranked li::before { content: counter(rank); font-size: 1.2rem; font-weight: 800; color: var(--rule); line-height: 1.1; }

@media (max-width: 1200px) {
    .pt-art { grid-template-columns: minmax(0, 1fr) 300px; }
    .pt-art__rail { display: none; }
}
@media (max-width: 1080px) {
    .pt-art { grid-template-columns: minmax(0, 1fr); }
    .pt-art__side { position: static; }
}
@media (max-width: 720px) {
    .pt-art__next { grid-template-columns: minmax(0, 1fr); }
}
@media print {
    .pt-art { display: block; }
    .pt-art__rail, .pt-art__side, .pt-art__next { display: none; }
}

/* --- Текст материала (статья и блок «Текст») ------------------------------- */
.rich-content { font-family: var(--serif); font-size: 1.12rem; line-height: 1.72; color: var(--ink); max-width: var(--editorial-reading); }
.rich-content > :first-child { margin-top: 0; }
.rich-content p, .rich-content ul, .rich-content ol { margin: 0 0 16px; }
.rich-content h2, .rich-content h3, .rich-content h4 { font-family: var(--sans); font-weight: 800; line-height: 1.25; margin: 28px 0 10px; }
.rich-content h2 { font-size: 1.32rem; }
.rich-content h3 { font-size: 1.15rem; }
.rich-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.rich-content blockquote { margin: 24px 0; padding: 18px 22px 18px 24px; border-left: 4px solid var(--signal); background: var(--paper); font-style: italic; font-size: 1.15rem; }
.rich-content blockquote p:last-child { margin-bottom: 0; }
.rich-content img { border-radius: var(--r); }
.rich-content table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: .92rem; }
.rich-content th, .rich-content td { border-bottom: 1px solid var(--rule); padding: 8px 10px; text-align: left; }

/* Поиск, альбомы, «перевода нет» */
.pt-search-page__form { display: flex; gap: 10px; max-width: 720px; margin: 8px 0 18px; }
.pt-search-page__form input { flex: 1; min-width: 0; height: 40px; padding-inline: 14px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); color: var(--ink); font: inherit; }
.pt-search-page__form input:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }
.pt-search-page__count { color: var(--ink-2); margin-bottom: 12px; }
.pt-results { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.pt-results li { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--rule); }
.pt-results li .pt-rubric { font-size: .75rem; }
.pt-results li .pt-hl { font-size: 1.08rem; color: var(--ink); }
.pt-results li .pt-hl:hover { color: var(--link); }
.pt-results li p { color: var(--ink-2); font-size: .92rem; }
.pt-link { color: var(--link); font-weight: 700; }
.pt-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pt-album figure { margin: 0; }
.pt-album img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); display: block; }
.pt-caption { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.pt-caption span { display: block; }
.pt-notice { max-width: 720px; padding-block: 56px; }
.pt-notice__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; margin: 6px 0 12px; }
.pt-notice > p:not(.pt-rubric) { color: var(--ink-2); }
.pt-notice__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pt-notice__actions .pt-btn { height: 40px; padding-inline: 16px; font-size: .9rem; }
.pt-listing__lead-card .pt-ph { aspect-ratio: 16 / 10; align-self: start; }

/* Рекламные зоны. Подпись «Реклама» обязательна и стоит над зоной; высота
   задана заранее, чтобы зона не сдвигала страницу при загрузке. */
.pt-ad-mark { font-size: 10px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
/* Метка партнёрского материала у новости: рамкой, чтобы не спутать с рубрикой. */
.pt-sponsored { display: inline-flex; align-items: center; font-size: 11px; padding: 2px 6px; border: 1px solid var(--rule); border-radius: var(--r); }
.pt-ad-band { background: var(--paper); border-bottom: 1px solid var(--rule); padding-block: 14px 10px; }
.pt-ad--mid { padding-block: 22px; }
.pt-ad__meta { margin: 0 0 5px; display: flex; justify-content: flex-end; }
.pt-ad__box { min-height: 90px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 14px 22px; border-radius: var(--r); color: #fff; background: linear-gradient(105deg, var(--brand-deep) 0%, color-mix(in srgb, var(--brand-deep) 70%, #000) 100%); }
.pt-ad__brand { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--r); color: var(--signal-on-dark); white-space: nowrap; }
.pt-ad__copy strong { display: block; font-size: 1.05rem; line-height: 1.25; }
.pt-ad__copy span { display: block; font-size: .8125rem; margin-top: 3px; color: rgba(255, 255, 255, .82); }
.pt-ad__cta { display: inline-flex; align-items: center; height: 38px; padding-inline: 18px; border-radius: var(--r); background: var(--signal); color: #0c1312; font-weight: 800; font-size: .85rem; white-space: nowrap; }
.pt-ad__box:hover .pt-ad__cta { background: color-mix(in srgb, var(--signal) 82%, #fff); }
.pt-ad--mid .pt-ad__box { min-height: 108px; color: var(--ink); background: linear-gradient(100deg, var(--surface) 0%, var(--brand-soft) 100%); border: 1px solid var(--rule); }
.pt-ad--mid .pt-ad__brand { color: var(--link); border-color: var(--link); }
.pt-ad--mid .pt-ad__copy span { color: var(--ink-2); }
.pt-ad--mid .pt-ad__cta { background: var(--brand); color: #fff; }
.pt-ad--article { margin-bottom: 18px; }
.pt-ad--article .pt-ad__box { min-height: 250px; grid-template-columns: minmax(0, 1fr); align-content: space-between; justify-items: start; padding: 20px; }
@media (max-width: 720px) {
    .pt-ad__box { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; padding: 14px 16px; min-height: 100px; }
}
.pt-feed__list li.pt-feed__ad { border-bottom: 0; padding-block: 10px; }
.pt-feed__list a.pt-feed-ad { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--signal); border-radius: var(--r); }
.pt-feed__list a.pt-feed-ad:hover { border-color: var(--link); }
.pt-feed-ad picture, .pt-feed-ad__img { width: 96px; height: 64px; display: block; }
.pt-feed-ad__img { object-fit: cover; border-radius: var(--r); }
.pt-feed-ad__top { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--ink-3); margin-bottom: 3px; }
.pt-feed-ad__title { display: block; font-size: .88rem; font-weight: 800; line-height: 1.3; color: var(--ink); }
/* Креативы зоны: виден один, остальные ждут своей очереди (portal.js). */
[data-ad][hidden] { display: none; }
.pt-partner { margin-top: 18px; background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--brand); padding: 18px; border-radius: var(--r); display: grid; gap: 12px; }
.pt-partner__mark { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.pt-partner__mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.pt-partner__link { display: grid; gap: 10px; }
.pt-partner__title { font-size: 1.08rem; line-height: 1.28; }
.pt-partner__text { color: var(--ink-2); font-size: .88rem; line-height: 1.4; }
.pt-partner__cta { color: var(--link); font-weight: 700; font-size: .84rem; }

/* Лента: время и дата столбиком */
.pt-feed__list a { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
.pt-feed__stamp { display: grid; gap: 2px; align-content: start; padding-right: 12px; border-right: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.pt-feed__date { font-size: .72rem; font-weight: 600; color: var(--ink-3); }

/* Подписка: баннер канала в Telegram */
.pt-tg { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: var(--r); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.pt-tg__body { display: grid; gap: 8px; max-width: 68ch; }
.pt-tg__body h2 { margin: 0; font-size: 1.5rem; line-height: 1.28; }
.pt-tg__body p { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.pt-tg__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pt-tg__kicker { font-size: .78rem; font-weight: 800; color: var(--link); }
.pt-tg__pill { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--ink); }
.pt-tg__cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 720px) { .pt-tg { flex-direction: column; align-items: flex-start; padding: 20px; } }

/* Статья: аудио, ролик-файл, источник, хронология, мероприятие, опрос */
.pt-audio { margin: 0 0 22px; padding: 14px 16px; border: 1px solid var(--rule); border-left: 4px solid var(--brand); border-radius: var(--r); background: var(--paper); display: grid; gap: 10px; }
.pt-audio__head { margin: 0; font-weight: 700; }
.pt-audio__badge { font-size: .72rem; font-weight: 800; color: var(--link); margin-right: 6px; }
.pt-audio audio { width: 100%; }
.pt-art__video-file { width: 100%; display: block; border-radius: var(--r); background: #000; aspect-ratio: 16 / 9; }
.pt-art__source { margin: 18px 0 0; font-size: .85rem; color: var(--ink-3); }
.pt-timeline { margin-top: 28px; }
.pt-timeline ol { list-style: none; margin: 12px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--rule); display: grid; gap: 16px; }
.pt-timeline li { position: relative; display: grid; gap: 3px; }
.pt-timeline li::before { content: ""; position: absolute; left: -24px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.pt-timeline__date { font-size: .78rem; font-weight: 800; color: var(--link); }
.pt-timeline__title { font-weight: 700; }
.pt-timeline__text { color: var(--ink-2); font-size: .92rem; }
.pt-event { margin: 0; display: grid; gap: 10px; font-size: .88rem; }
.pt-event dt { font-weight: 700; }
.pt-event dd { margin: 0; color: var(--ink-2); }
.pt-poll__q { margin: 0 0 10px; font-weight: 700; line-height: 1.35; }
.pt-poll__form { display: grid; gap: 8px; }
.pt-poll__opt { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; padding: 8px 10px; border: 1px solid var(--rule); border-radius: var(--r); cursor: pointer; }
.pt-poll__opt:hover { border-color: var(--link); }
.pt-poll__results { display: grid; gap: 10px; }
.pt-poll__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: .86rem; }
.pt-poll__row progress { grid-column: 1 / -1; width: 100%; height: 6px; accent-color: var(--brand); }

/* Галерея статьи: крупный кадр со стрелками и полоса миниатюр */
.pt-gal { margin: 0 0 22px; }
.pt-gal__stage { position: relative; }
.pt-gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); }
.pt-gal__track::-webkit-scrollbar { display: none; }
.pt-gal__track:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.pt-gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.pt-gal__frame { display: block; aspect-ratio: 16 / 9; cursor: zoom-in; background: var(--ink); }
.pt-gal__frame picture, .pt-gal__frame img { width: 100%; height: 100%; display: block; }
.pt-gal__frame img { object-fit: contain; }
.pt-gal__slide figcaption { padding: 8px 12px 10px; font-size: .78rem; color: var(--ink-3); line-height: 1.4; }
.pt-gal__nav { position: absolute; top: calc(50% - 40px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.pt-gal__nav--prev { left: 10px; }
.pt-gal__nav--next { right: 10px; }
.pt-gal__nav:disabled { opacity: .3; cursor: default; }
.pt-gal__nav:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.pt-gal__count { position: absolute; top: 10px; right: 10px; padding: 3px 8px; border-radius: var(--r); background: rgba(0, 0, 0, .6); color: #fff; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.pt-gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pt-gal__thumb { flex: 0 0 96px; height: 60px; border: 2px solid transparent; border-radius: var(--r); overflow: hidden; opacity: .6; transition: opacity .15s, border-color .15s; }
.pt-gal__thumb picture, .pt-gal__thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pt-gal__thumb:hover, .pt-gal__thumb.is-active { opacity: 1; }
.pt-gal__thumb.is-active { border-color: var(--brand); }
.pt-zoom { max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; padding: 48px 16px 16px; border: 0; background: rgba(0, 0, 0, .92); color: #fff; }
.pt-zoom[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.pt-zoom::backdrop { background: rgba(0, 0, 0, .6); }
.pt-zoom img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; }
.pt-zoom__cap { margin: 0; font-size: .85rem; color: rgba(255, 255, 255, .85); text-align: center; }
.pt-zoom__close { position: absolute; top: 10px; right: 14px; width: 44px; height: 44px; border: 0; background: none; color: #fff; font-size: 2rem; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .pt-gal__track { scroll-behavior: auto; } }

/* --- Главная из конструктора ------------------------------------------------- */
/* Секции портала несут свою ширину и отступы (pt-wrap), обычные блоки между ними
   получают колонку сайта. */
.pt-home-blocks > .cms-block--portal_section { padding: 0; }
.pt-home-blocks > .cms-block:not(.cms-block--portal_section) { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 2.5vw, 24px); }


/* ==========================================================================
   Элементы прототипа главной: ключевые цифры, вкладки, номера подборки,
   факт страны, автор колонки, «Видео и подкасты».
   ========================================================================== */
.pt-kpis { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: var(--paper); border: 1px solid var(--rule); padding: 14px 16px; border-radius: var(--r); }
.pt-kpi { margin: 0; border-left: 3px solid var(--brand); padding-left: 12px; }
.pt-kpi strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--link); line-height: 1.1; }
.pt-kpi span { display: block; margin-top: 4px; font-size: .82rem; line-height: 1.35; color: var(--ink-2); }

.pt-tabs { display: inline-flex; flex-shrink: 0; border: 1px solid var(--rule); border-radius: var(--r); }
.pt-tabs button { border: 0; background: none; color: var(--ink-2); padding: 5px 10px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.pt-tabs button[aria-selected="true"], .pt-tabs button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.pt-feed .pt-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pt-feed__list li.is-hot { background: var(--brand-soft); border-left: 3px solid var(--brand); }
.pt-feed__list li.is-hot > a { padding-left: 12px; padding-right: 12px; }

.pt-pcard__media { position: relative; display: block; }
.pt-pcard__num { position: absolute; left: 10px; top: 10px; z-index: 1; background: rgba(11, 30, 27, .85); color: var(--signal-on-dark); font-size: .74rem; font-weight: 800; padding: 2px 7px; border-radius: var(--r); font-variant-numeric: tabular-nums; }

.pt-region__fact { position: absolute; right: 14px; bottom: 12px; z-index: 2; max-width: 55%; font-size: .72rem; font-weight: 700; color: #f1f7f5; background: rgba(11, 75, 66, .88); border: 1px solid rgba(139, 232, 189, .4); padding: 3px 8px; border-radius: var(--r); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pt-opinion__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pt-opinion__author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pt-opinion__author picture, .pt-opinion__avatar { width: 40px; height: 40px; flex: 0 0 40px; display: block; border-radius: 50%; object-fit: cover; }
.pt-opinion__author strong { display: block; font-size: .9rem; line-height: 1.2; color: var(--link); }
.pt-opinion__author .pt-meta { display: block; font-size: .76rem; }
.pt-opinion__top .pt-opinion__badge { flex-shrink: 0; }

.pt-media { background: radial-gradient(ellipse at 18% 15%, color-mix(in srgb, var(--brand-deep) 42%, transparent) 0%, #0d1312 65%); color: #f1f4f4; padding-block: 48px; }
.pt-media .pt-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom-color: rgba(255, 255, 255, .18); }
.pt-media .pt-sec-head h2 { color: #fff; border-left-color: var(--signal-on-dark); }
.pt-media__kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--signal-on-dark); }
.pt-media__head-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pt-tabs--dark { border-color: rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); }
.pt-tabs--dark button { color: #b7c8c5; padding: 6px 13px; font-size: .8rem; }
.pt-tabs--dark button[aria-pressed="true"] { background: var(--signal-on-dark); color: #0c1413; }
.pt-media__all { font-size: .84rem; font-weight: 700; color: var(--signal-on-dark); white-space: nowrap; }
.pt-media__all:hover { text-decoration: underline; text-underline-offset: 3px; }
.pt-media__grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; align-items: start; }
.pt-media__main { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r); background: #131c1a; color: #fff; }
.pt-media__main picture, .pt .pt-media__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pt-media__img { object-fit: cover; }
.pt-media__main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 19, 18, .18) 0%, rgba(13, 19, 18, .5) 45%, rgba(13, 19, 18, .95) 100%); }
.pt-media__top { position: absolute; left: 18px; right: 18px; top: 16px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pt-media__tag { background: rgba(13, 19, 18, .78); border: 1px solid rgba(139, 232, 189, .45); color: var(--signal-on-dark); font-size: .74rem; font-weight: 800; padding: 4px 10px; border-radius: var(--r); text-transform: uppercase; letter-spacing: .04em; }
.pt-media__dur-pill { background: rgba(13, 19, 18, .82); color: #fff; font-size: .78rem; font-weight: 700; padding: 4px 9px; border-radius: var(--r); font-variant-numeric: tabular-nums; }
.pt-media__bot { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 16px; align-items: center; }
.pt-media__play { width: 52px; height: 52px; border-radius: 50%; background: var(--signal-on-dark); color: #0c1413; display: grid; place-items: center; font-size: 1.1rem; font-weight: 800; box-shadow: 0 0 0 6px rgba(139, 232, 189, .22); }
.pt-media__title { font-size: 1.38rem; font-weight: 800; line-height: 1.24; color: #fff; }
.pt-media__main:hover .pt-media__title { color: var(--signal-on-dark); }
.pt-media__side { display: grid; gap: 12px; }
.pt-media__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-media__list a { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); color: #fff; }
.pt-media__list a:hover { border-color: var(--signal-on-dark); background: rgba(255, 255, 255, .08); }
.pt-media__list .pt-ph { position: relative; border-radius: var(--r); background: rgba(255, 255, 255, .06); }
.pt-media__list .pt-hl { display: block; font-size: .96rem; line-height: 1.32; color: #fff; }
.pt .pt-media__list a:hover .pt-hl { color: var(--signal-on-dark); }
.pt-media__label { display: block; margin-bottom: 3px; font-size: .74rem; font-weight: 800; text-transform: uppercase; color: var(--signal-on-dark); }
.pt-media__dur { position: absolute; right: 6px; bottom: 6px; background: rgba(13, 19, 18, .88); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: var(--r); font-variant-numeric: tabular-nums; }
.pt-media__wave { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: var(--r); background: linear-gradient(135deg, #102a25 0%, #0b1c19 100%); border: 1px solid rgba(139, 232, 189, .3); color: var(--signal-on-dark); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.pt-media__cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r); border: 1px solid rgba(139, 232, 189, .25); background: color-mix(in srgb, var(--brand-deep) 28%, transparent); }
.pt-media__cta strong { display: block; font-size: .88rem; color: #fff; }
.pt-media__cta span span { font-size: .78rem; color: #a7bab7; }
.pt-media__cta-btn { flex-shrink: 0; padding: 6px 12px; border-radius: var(--r); background: var(--signal-on-dark); color: #0c1413; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pt-media [data-kind][hidden] { display: none; }
@media (max-width: 900px) {
    .pt-media__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .pt-kpis { grid-template-columns: minmax(0, 1fr); }
    .pt-media__title { font-size: 1.1rem; }
    .pt-media__list a { grid-template-columns: 104px minmax(0, 1fr); }
}

/* «Партнёрские материалы» на светлом фоне: рядом с «Выбором редакции» две
   тёмные полосы подряд слились бы в одну. */
.pt-picks--partners { background: var(--band); color: var(--ink); }
.pt-picks--partners .pt-sec-head { border-bottom-color: var(--rule); }
.pt-picks--partners .pt-sec-head h2 { color: var(--ink); border-left-color: var(--brand); }
.pt-picks--partners .pt-pcard { background: var(--surface); border-color: var(--rule); }
.pt-picks--partners .pt-pcard:hover { border-color: var(--brand); background: var(--surface); }
.pt-picks--partners .pt-pcard .pt-hl { color: var(--ink); }
.pt .pt-picks--partners .pt-pcard:hover .pt-hl { color: var(--link); }
.pt-picks--partners .pt-pcard__text { color: var(--ink-2); }
/* Стрелка у пунктов страны — как в прототипе: строка целиком ведёт в новость. */
.pt-region__body li a { position: relative; padding-right: 22px; }
.pt-region__body li a::after { content: "→"; position: absolute; right: 0; top: .1em; color: var(--ink-3); }
.pt-region__body li a:hover::after { color: var(--link); }
.pt-picks--partners .pt-pcard__meta, .pt-picks--partners .pt-pcard__meta span.pt-sponsored { color: var(--ink-3); font-weight: 600; }

/* «Instagram — ролики»: полоса вертикальных карточек 9:16, как Reels.
   Листается обычной прокруткой с привязкой — скрипт не нужен. */
.pt-reels { padding-block: 40px; background: var(--band); }
.pt-reels .pt-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pt-reels__row { list-style: none; margin: 0; padding: 4px 0 12px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 16vw, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; }
.pt-reels__row:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.pt-reels__row > li { scroll-snap-align: start; }
.pt-reel { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 10px; background: var(--dark-band); color: #fff; }
.pt-reel picture, .pt .pt-reel__img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pt-reel__img { object-fit: cover; }
.pt-reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .82) 100%); }
.pt-reel__play { position: absolute; top: 10px; right: 10px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); font-size: .78rem; }
.pt-reel__title { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; font-size: .86rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pt-reel:hover .pt-reel__title { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
    .pt-reels__row { grid-auto-columns: 44vw; }
}

/* Котировки сырья в полосе курсов */
.pt-fx__unit { font-size: .73rem; font-weight: 700; color: var(--ink-3); }
.pt-fx__chg { display: block; font-size: .73rem; font-weight: 700; color: var(--ink-3); }
.pt-fx__src { flex-basis: 100%; margin: 0; font-size: .73rem; color: var(--ink-3); }
