/* ============================================================
   ПОЛИТСАРАЙ — бренд-слой поверх oldgeek.css
   Перекраска под редизайн: палитра бордо/золото, Oswald + сериф.
   Грузится последним (см. functions.php), переопределяет базовую тему.
   Структура и данные не меняются — только оформление.
   ============================================================ */

:root {
    --ps-bg: #ebe9e5;
    --ps-paper: #ffffff;
    --ps-ink: #211915;
    --ps-ink-strong: #1c1510;
    --ps-body: #2c241c;
    --ps-gold: #9c7b46;
    --ps-red: #ad0100;
    --ps-red-dark: #8a0000;
    --ps-wine: #8f1c1c;
    --ps-footer: #7a1717;
    --ps-card-border: #e4e1dc;
    --ps-cream: #f7f2ea;
    --ps-sans: 'Oswald', system-ui, sans-serif;
    --ps-serif: 'PT Serif', 'Merriweather', Georgia, 'Times New Roman', serif;
    /* [unified-width] единый стандарт ширины контента для шапки, меню и ленты */
    --ps-content: 900px;
    --ps-gutter: 20px;
}

/* ---------- База ---------- */
body {
    font-family: var(--ps-serif);
    background-color: var(--ps-bg);
    color: var(--ps-ink);
}

.og-page {
    background-color: var(--ps-bg);
}

::selection {
    background: var(--ps-wine);
    color: #f4ece3;
}

::-webkit-scrollbar-track {
    background: var(--ps-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--ps-footer);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ps-gold);
}

/* [unified-width] Ширина контентной колонки = единый стандарт. */
.og-main__inner {
    max-width: var(--ps-content);
    padding: 30px var(--ps-gutter) 50px;
}

/* ============================================================
   ШАПКА
   ============================================================ */
.og-header {
    background: var(--ps-paper);
    border-bottom: 0;
    box-shadow: none;
    /* убираем белый паддинг шапки: снизу он давал белую полосу под серым меню, сверху — лишнюю пустоту */
    padding: 0;
}

@media (min-width: 769px) {
    /* Шапка в две строки: логотип сверху по центру, серая навбар снизу.
       Префикс .og-header / body — чтобы переиграть правила body.oldgk-header-compact из critical.css. */
    body .og-header__inner,
    body.oldgk-header-compact .og-header__inner {
        position: relative;
        display: block;
        max-width: none;
        padding: 0;
        gap: 0;
    }

    /* Белая зона с логотипом по центру */
    body .og-header .og-logo,
    body.oldgk-header-compact .og-header .og-logo {
        display: flex;
        justify-content: center;
        align-items: center;
        /* [unified-width] тот же контейнер, что у ленты */
        max-width: var(--ps-content);
        margin: 0 auto;
        padding: 8px var(--ps-gutter) 18px;
    }

    .og-header .og-logo .og-logo__img {
        display: block;
        height: auto;
        width: 100%;
        max-width: 760px;
    }

    /* Серая навигационная полоса на всю ширину, золотая линия сверху.
       Пункты начинаются от левого края контентной сетки (900), поиск прижат к правому. */
    /* [unified-width] Серая полоса — во всю ширину окна, а её содержимое
       (пункты + лупа) загнано в тот же контейнер, что логотип и лента.
       Левый край «ГЛАВНАЯ» = левый край карточек, лупа = правый край колонки. */
    body .og-header .og-nav,
    body.oldgk-header-compact .og-header .og-nav {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        max-width: none;
        margin-left: 0;
        padding: 0 max(var(--ps-gutter), calc(50% - (var(--ps-content) / 2) + var(--ps-gutter)));
        column-gap: 0;
        transform: none;
        background: #e9e9e9;
        border-top: 3px solid var(--ps-gold);
        box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
    }

    /* [unified-width] Лупа — последний пункт, прижата к правому краю колонки */
    body .og-header .og-nav__item--search {
        align-items: center;
        margin-left: auto;
    }

    .og-header .og-nav__item {
        display: flex;
        align-items: stretch;
        border-bottom: 0;
    }

    .og-header .og-nav__item::after {
        height: 0;
    }

    body .og-header .og-nav__link,
    body.oldgk-header-compact .og-header .og-nav__link {
        font-family: var(--ps-sans);
        font-weight: 400;
        font-size: 19px;
        line-height: 1;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #000;
        height: 50px;
        padding: 0 18px;
        border-bottom: 0;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .og-header .og-nav__link:hover,
    .og-header .og-nav__item:hover .og-nav__link,
    .og-header .og-nav__link:hover:not(.is-active) {
        background: #cdcdcd;
        color: #000;
        border-bottom: 0;
    }

    .og-header .og-nav__link.is-active {
        background: #dcdcdc;
        color: #000;
        border-bottom: 0;
    }

    /* Поиск-лупа — в правом краю серой панели меню (а не отдельно над логотипом).
       Привязка к низу .og-header__inner = к строке навбара, по центру её 50px. */
    body .og-header .og-header__end,
    body.oldgk-header-compact .og-header .og-header__end {
        position: absolute;
        top: auto;
        bottom: 0;
        right: max(20px, calc(50% - 430px));
        height: 50px;
        margin: 0;
        transform: none;
        display: flex;
        align-items: center;
    }

    /* Лупа под высоту серой панели (50px) */
    body .og-header .og-search,
    body .og-header .og-search__btn {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .og-header .og-search__btn,
    .og-header .og-search__btn svg {
        color: #000;
    }

    .og-header .og-search__btn svg {
        width: 20px;
        height: 20px;
    }

    .og-header .og-search__input {
        height: 50px;
        font-family: var(--ps-serif);
        border-radius: 4px;
    }

    body .og-header .og-search:hover .og-search__input,
    body .og-header .og-search:focus-within .og-search__input {
        width: 260px;
        padding: 0 50px 0 14px;
    }

    .og-header .og-search__btn:focus-visible {
        outline-color: var(--ps-wine);
    }

    .og-search:hover .og-search__input:focus,
    .og-search__input:focus {
        border-color: var(--ps-wine);
        box-shadow: 0 4px 18px rgba(143, 28, 28, 0.14);
    }
}

/* ============================================================
   ЛОГОТИП В ШАПКЕ (перенос из assets/logo-lab.html).
   Все размеры в em от одного кегля .ps-logo → масштаб одним числом (clamp).
   1-я и 3-я строки выравниваются по ширине скриптом в header.php.
   ============================================================ */
.og-logo .ps-logo {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    /* базовый кегль = размер слова ПОЛИТСАРАИ */
    font-size: clamp(34px, 7vw, 100px);
    color: #000;
    text-decoration: none;
    max-width: 100%;
}

.ps-logo__emblem {
    display: block;
    width: 1.4286em;        /* 200/140 */
    height: auto;
    flex: 0 0 auto;
}

.ps-logo__divider {
    width: 0.0357em;        /* 5/140 */
    height: 1.7143em;       /* 240/140 */
    margin-left: 0.2143em;  /* 30/140 */
    background: var(--ps-gold);
    flex: 0 0 auto;
}

.ps-logo__text {
    margin-left: 0.2143em;  /* 30/140 */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1786em;          /* 25/140 */
    min-width: 0;
}

.ps-logo__top,
.ps-logo__bottom {
    font-family: 'Oswald', system-ui, sans-serif;
    font-weight: 700;
    font-size: 0.25em;      /* 35/140 */
    line-height: 1;
    color: #9c1111;
    white-space: nowrap;
    /* свободное место распределяется между буквами; ширину задаёт скрипт */
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
}

/* Сдвиги строк (в em от кегля самой строки): было +15px и -10px при кегле 35px */
.ps-logo__top {
    position: relative;
    top: 0.4286em;          /* 15/35 */
}

.ps-logo__bottom {
    position: relative;
    top: -0.2857em;         /* -10/35 */
}

.ps-logo__word {
    position: relative;
    font-family: 'Oswald', system-ui, sans-serif;
    font-weight: 700;
    font-size: 1em;
    line-height: 1;
    color: #000;
    white-space: nowrap;
}

/* Последняя «И» + фирменная фигура сверху вместо галочки шрифта */
.ps-logo__j {
    position: relative;
    display: inline-block;
}

.ps-logo__j::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 0.01em;                          /* было calc(-0.04em + 7px) при кегле 140 */
    width: 0.42em;
    height: calc(0.42em * 27 / 105);      /* пропорции фигуры 105×27 */
    background: url("../img/logo-j-mark.svg") no-repeat center / 100% 100%;
    pointer-events: none;
}

/* Старые мобильные строки-слоганы больше не нужны: слоганы теперь в самом логотипе */
.og-header-mobile-top-tagline,
.og-header-mobile-menu-strip-rule,
.og-header-mobile-extra-rule {
    display: none !important;
}

/* Выпадающие меню стран/тем — акценты в бренд-цвет */
/* Убираем скругление углов: окно и его внутренние элементы в едином «квадратном» стиле */
.og-dropdown,
.og-dropdown__search input,
.og-dropdown__list li a {
    border-radius: 0;
}

.og-dropdown__list li a:hover {
    background-color: rgba(156, 123, 70, 0.12);
    color: var(--ps-wine);
}

.og-dropdown__search svg {
    color: var(--ps-gold);
}

.og-dropdown__search input:focus {
    border-color: var(--ps-gold);
}

/* ============================================================
   ЛЕНТА / КАРТОЧКА (структура из feed-card.php / home-feed.js)
   ============================================================ */
.og-card.ps-card {
    background: #fff;
    border: 1px solid var(--ps-card-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 26px;
    display: flex;
    flex-direction: column;
}

.og-main__inner > .og-card + .og-card {
    margin-top: 0;
}

/* Обложка */
.ps-card__media {
    position: relative;
    display: block;
    width: 100%;
    height: 360px;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
}

.ps-card .og-card__img {
    width: 100%;
    height: 360px;
    max-height: 360px;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    display: block;
}

.ps-card__media.og-card__media--placeholder {
    height: 360px;
    min-height: 360px;
    background: linear-gradient(135deg, #e5e0d5 0%, #f3efe9 55%, #faf8f4 100%);
}

/* Красная плашка категории поверх фото */
.ps-card__cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
    background: var(--ps-red);
    color: #f6e9e3;
    font-family: var(--ps-sans);
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 0;
}

/* Тело карточки */
.ps-card__body {
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

/* Мета-строка: дата · | · Источник: страна */
.ps-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-family: var(--ps-sans);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 15px;
    color: var(--ps-gold);
    margin-bottom: 10px;
}

.ps-card__sep {
    color: #d6d3cd;
}

.ps-card__source {
    color: var(--ps-red);
    font-weight: 600;
}

/* Заголовок */
.ps-card .og-card__title {
    font-family: var(--ps-sans);
    font-weight: 700;
    font-size: clamp(1.7rem, 3.4vw, 2.9rem);
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--ps-ink-strong);
    margin: 0 0 16px;
}

.ps-card .og-card__title-link {
    color: inherit;
    text-decoration: none;
}

.ps-card .og-card__title-link:hover {
    color: var(--ps-wine);
    opacity: 1;
}

/* «От себя замечу» — золотой акцент на кремовом, без аватарки */
.ps-card .ps-note {
    position: relative;
    background: var(--ps-cream);
    border: 0;
    border-left: 4px solid var(--ps-gold);
    border-radius: 0;
    box-shadow: none;
    padding: 10px 16px 12px;
    margin: 0 0 14px;
}

.ps-note__label {
    display: block;
    font-family: var(--ps-sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ps-gold);
    margin-bottom: 4px;
}

.ps-note__text {
    font-family: var(--ps-serif);
    color: #241c16;
    font-size: 19px;
    line-height: 1.6;
}

/* ПРЕВЬЮ (локально, body.ps-preview): фикс высоты блоков — лид 4 строки, «От себя замечу» 12 строк. */
.ps-preview .ps-card .og-card__excerpt {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.ps-preview .ps-note__text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 12;
    line-clamp: 12;
    overflow: hidden;
}

/* Внутренний <p> делаем инлайновым, чтобы -webkit-box корректно считал строки для клампа. */
.ps-preview .ps-note__text p {
    display: inline;
    margin: 0;
}

.ps-note__text p {
    margin: 0 0 8px;
}

.ps-note__text p:last-child {
    margin-bottom: 0;
}

.ps-note__text a {
    color: var(--ps-wine);
    text-decoration: underline;
    text-decoration-color: rgba(143, 28, 28, 0.42);
}

.ps-note__text a:hover {
    color: var(--ps-red-dark);
}

/* Лид */
.ps-card .og-card__excerpt {
    font-family: var(--ps-serif);
    color: var(--ps-body);
    font-size: 19px;
    line-height: 1.8;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

/* Нижняя строка: кнопка слева, действия справа */
.ps-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #e8e5e0;
    padding-top: 14px;
    margin-top: auto;
}

/* «Читать далее» — красная кнопка */
.ps-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--ps-sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--ps-red);
    padding: 9px 18px;
    border-radius: 2px;
    transition: background 0.2s ease;
}

.ps-card__more:hover {
    background: var(--ps-red-dark);
    color: #fff;
}

.ps-card__more svg {
    stroke: #fff;
}

/* Действия справа: комментарии + поделиться */
.ps-card__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--ps-sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a7361;
}

.ps-card__comments {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.ps-card__comments svg {
    stroke: currentColor;
}

/* Кнопка «Поделиться» — текстом, как в макете */
.ps-card .ps-share-btn {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8a7361;
    cursor: pointer;
}

.ps-card .ps-share-btn:hover {
    background: none;
    box-shadow: none;
    color: var(--ps-wine);
}

.ps-card .ps-share-btn svg {
    stroke: currentColor;
}

.ps-card .ps-share-btn .og-share-btn__text {
    font-family: var(--ps-sans);
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: inherit;
}

/* ============================================================
   ДЕТАЛЬНАЯ СТРАНИЦА СТАТЬИ (та же карточка ps-card, но полный текст)
   ============================================================ */
/* Заголовок статьи — как у карточки (Oswald), чуть крупнее под h1 */
.ps-article .og-article__title {
    font-family: var(--ps-sans);
    font-weight: 700;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.12;
    letter-spacing: 0;
    color: var(--ps-ink-strong);
    margin: 0 0 18px;
}

/* Полный текст статьи — типографика как у лида карточки (PT Serif) */
.ps-article .og-article__body {
    font-family: var(--ps-serif);
    color: var(--ps-body);
    font-size: 19px;
    line-height: 1.8;
}

.ps-article .og-article__body p {
    margin: 0 0 18px;
}

.ps-article .og-article__body p:last-child {
    margin-bottom: 0;
}

.ps-article .og-article__body :where(h2, h3, h4, h5, h6) {
    font-family: var(--ps-sans);
    font-weight: 700;
    color: var(--ps-ink-strong);
    line-height: 1.2;
    margin: 28px 0 12px;
}

.ps-article .og-article__body a {
    color: var(--ps-wine);
    text-decoration: underline;
    text-decoration-color: rgba(143, 28, 28, 0.42);
}

.ps-article .og-article__body a:hover {
    color: var(--ps-red-dark);
}

.ps-article .og-article__body img {
    max-width: 100%;
    height: auto;
}

/* Подпись под иллюстрацией внутри текста */
.ps-article .og-article__body .og-article__caption {
    font-size: 15px;
    line-height: 1.5;
    font-style: italic;
    color: #8a847a;
    margin: -6px 0 18px;
}

/* «От себя замечу» на детальной — показываем полностью (без клампа из превью) */
.ps-article .ps-note__text,
.ps-preview .ps-article .ps-note__text {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    max-height: none;
}

.ps-preview .ps-article .ps-note__text p {
    display: block;
    margin: 0 0 8px;
}

/* «Поделиться» в конце статьи — отбивка тонкой линией сверху, кнопка справа (как на главной) */
.ps-article .og-card__share-wrap {
    position: relative;
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e5e0;
}

/* ============================================================
   СТАТИЧНЫЕ СТРАНИЦЫ (Редакция/about, обратная связь и т.п.) —
   белая карточка в тон сайту, типографика политсарай.
   ============================================================ */
.og-page-shell {
    max-width: none;
    margin: 0;
    background: #fff;
    border: 1px solid var(--ps-card-border);
    border-radius: 3px;
    padding: clamp(24px, 4vw, 48px);
}

.og-page-shell__header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 3px solid var(--ps-gold);
}

.og-page-shell__title {
    font-family: var(--ps-sans);
    font-weight: 700;
    letter-spacing: 0;
    color: var(--ps-ink-strong);
}

.og-page-shell__content {
    font-family: var(--ps-serif);
    color: var(--ps-body);
    font-size: 19px;
    line-height: 1.8;
}

.og-page-shell__content :where(h2, h3, h4, h5, h6) {
    font-family: var(--ps-sans);
    font-weight: 700;
    color: var(--ps-ink-strong);
    line-height: 1.2;
    margin: 28px 0 12px;
}

.og-page-shell__content a {
    color: var(--ps-wine);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(143, 28, 28, 0.42);
}

.og-page-shell__content a:hover {
    color: var(--ps-red-dark);
}

/* ============================================================
   ДЕТАЛЬНАЯ: «обвязка» (назад, комментарии, похожие, подсказки) —
   перекраска oldgeek-бирюзы #385556 в палитру политсарай + квадратные углы.
   ============================================================ */

/* Назад к новостям */
.og-article__back {
    font-family: var(--ps-sans);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ps-wine);
}

/* ---- Панель комментариев ---- */
.og-comments-panel {
    background: #fff;
    border: 0;
    border-radius: 0;
    margin-top: 0;
    padding: 2px clamp(20px, 3vw, 32px) clamp(20px, 3vw, 32px);
}

/* Панель «Твоё мнение» вплотную к карточке статьи: убираем зазор и подгоняем
   нижний отступ карточки, чтобы «Поделиться → Твоё мнение» = «полоска → Поделиться» */
#ogArticleStream > .og-card.ps-article {
    margin-bottom: 0;
}

.ps-article .ps-card__body {
    padding-bottom: 16px;
}

.og-comments-panel__heading {
    font-family: var(--ps-sans);
    color: var(--ps-ink-strong);
    letter-spacing: 0;
}

.og-comments-panel__subhead,
.og-comments-panel__form-title,
.og-comments-panel__label {
    color: var(--ps-gold);
}

.og-comments-panel__comment {
    background: var(--ps-cream);
    border: 1px solid rgba(156, 123, 70, 0.30);
    border-radius: 3px;
}

.og-comments-panel__comment--depth {
    border-left-color: var(--ps-gold);
}

.og-comments-panel__replies {
    border-left-color: rgba(156, 123, 70, 0.35);
}

.og-comments-panel__avatar {
    background: var(--ps-wine);
}

.og-comments-panel__author {
    color: var(--ps-wine);
}

.og-comments-panel__show-replies,
.og-comments-panel__reply-btn {
    color: var(--ps-wine);
    background: rgba(143, 28, 28, 0.06);
    border: 1px solid rgba(143, 28, 28, 0.24);
    border-radius: 2px;
}

.og-comments-panel__show-replies:hover:not(:disabled),
.og-comments-panel__reply-btn:hover {
    background: rgba(143, 28, 28, 0.12);
}

.og-comments-panel__input,
.og-comments-panel__textarea {
    border: 1px solid rgba(156, 123, 70, 0.40);
    border-radius: 2px;
}

.og-comments-panel__input:focus,
.og-comments-panel__textarea:focus {
    border-color: var(--ps-wine);
    outline: none;
    box-shadow: 0 0 0 2px rgba(143, 28, 28, 0.12);
}

.og-comments-panel__submit {
    background: var(--ps-red);
    border-radius: 2px;
}

.og-comments-panel__submit:hover {
    background: var(--ps-red-dark);
}

/* Форма комментария — ровная сетка, поля не разъезжаются */
.og-comments-panel__form {
    margin-top: 16px;
}

.og-comments-panel__identity-row {
    gap: 14px;
    margin-bottom: 14px;
    align-items: stretch;
}

.og-comments-panel__label {
    margin-bottom: 0;
}

.og-comments-panel__label--comment {
    display: block;
    margin: 0 0 14px;
}

.og-comments-panel__input,
.og-comments-panel__textarea {
    margin-top: 0;
}

.og-comments-panel__more {
    color: var(--ps-wine);
    background: var(--ps-cream);
    border: 2px solid rgba(156, 123, 70, 0.40);
    border-radius: 3px;
}

.og-comments-panel__more:hover {
    border-color: var(--ps-wine);
    background-color: #fff;
}

.og-comments-panel__more:focus-visible,
.og-infinite-hint__box--action:focus-visible {
    outline-color: var(--ps-wine);
}

.og-comments-panel__reply-meta {
    background: rgba(156, 123, 70, 0.10);
    border: 1px solid rgba(156, 123, 70, 0.30);
    border-radius: 2px;
}

/* ---- Похожие новости ---- */
.og-article__related :where(h2, h3) {
    font-family: var(--ps-sans);
    color: var(--ps-ink-strong);
}

.og-article-card__thumb {
    border-radius: 3px;
}

.og-article-card:hover .og-article-card__title {
    color: var(--ps-wine);
}

/* ---- Подсказки загрузки/конца (общие с лентой главной) ---- */
.og-infinite-hint__box {
    background: var(--ps-cream);
    border: 1px solid rgba(156, 123, 70, 0.30);
    border-radius: 3px;
    box-shadow: none;
}

.og-infinite-hint__box--action:hover {
    border-color: rgba(156, 123, 70, 0.55);
    background: #fff;
}

.og-infinite-hint__icon {
    color: var(--ps-wine);
}

.og-spinner {
    border: 4px solid rgba(143, 28, 28, 0.25);
    border-top-color: var(--ps-wine);
}

.og-infinite-hint__title {
    font-family: var(--ps-sans);
    color: var(--ps-wine);
}

.og-infinite-hint__underline {
    background: linear-gradient(90deg, var(--ps-gold) 0%, transparent 100%);
}

/* ---- Меню «Поделиться» (попап) ---- */
.og-share-popover {
    border-radius: 3px;
}

.og-share-popover__action:hover,
.og-share-popover__action:focus-visible {
    background: rgba(143, 28, 28, 0.07);
    color: var(--ps-wine);
}

.og-share-popover__icon--neutral {
    background: rgba(143, 28, 28, 0.08);
    color: var(--ps-wine);
}

/* ============================================================
   ЛЕНТА: служебные подсказки (загрузка/конец)
   ============================================================ */
.og-infinite-hint__title {
    font-family: var(--ps-sans);
}

.og-spinner {
    border-top-color: var(--ps-gold);
}

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.og-footer {
    background: var(--ps-footer);
    color: #e7c9c2;
    margin-top: 10px;
}

.og-footer__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 34px 20px 26px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.og-footer__brand-name {
    font-family: var(--ps-sans);
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 8px;
}

.og-footer__tagline {
    margin: 0;
    font-family: var(--ps-serif);
    font-size: 14px;
    line-height: 1.55;
    max-width: 320px;
    color: #e7c9c2;
}

.og-footer__col-title {
    font-family: var(--ps-sans);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    font-weight: 600;
    color: #f0d0c8;
    margin-bottom: 12px;
}

.og-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: var(--ps-sans);
    font-size: 13.5px;
    letter-spacing: 0.02em;
}

.og-footer__list a {
    color: #e7c9c2;
    text-decoration: none;
    transition: color 0.15s ease;
}

.og-footer__list a:hover {
    color: #fff;
}

.og-footer__bar {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.og-footer__bar-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 14px 20px;
    font-family: var(--ps-sans);
    font-size: 12px;
    letter-spacing: 0.03em;
    color: #d6a59d;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 600px) {
    .og-footer__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================================
   [mobile] МОБИЛЬНАЯ ВЕРСИЯ — контент на всю ширину экрана
   ============================================================ */
@media (max-width: 768px) {
    /* Шапка: логотип строго по центру, бургер абсолютом справа (не толкает лого).
       Снизу — увеличенный белый отступ, чтобы логотип не падал на контент. */
    /* Сетка 1fr auto 1fr: логотип строго по центру, бургер — по центру правой
       колонки, т.е. ровно посередине между логотипом и краем экрана.
       minmax(0,1fr) — чтобы ширина бургера не ломала симметрию колонок. */
    body .og-header__inner {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        padding: 14px 16px 28px;
        gap: 0;
    }

    body .og-header .og-logo {
        grid-column: 2;
        display: flex;
        margin: 0;
        padding: 0;
        justify-content: center;
    }

    /* Логотип на мобиле крупнее на 20% (база 34/7vw/100 → 41/8.4vw/120) */
    body .og-header .og-logo .ps-logo {
        font-size: clamp(41px, 8.4vw, 120px);
    }

    /* Бургер — правая колонка, по центру по горизонтали и вертикали.
       translateX(5px) — лёгкий сдвиг вправо по просьбе. */
    body .og-header .og-header__end {
        grid-column: 3;
        justify-self: center;
        min-width: 0;
        position: static;
        transform: translateX(5px);
        margin: 0;
    }

    /* Цвет бургера — красный категории (как плашка темы новости) */
    body .og-header .og-nav-toggle__bar {
        background: var(--ps-red);
    }

    /* Колонка ленты — без боковых полей, во всю ширину.
       padding-top:0 — убираем серую полоску (фон страницы) под шапкой. */
    .og-main__inner {
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        padding-top: 0;
        padding-bottom: 40px;
    }

    /* Карточка от края до края: убираем боковые рамки и скругление */
    .og-card.ps-card {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        margin-bottom: 14px;
    }

    /* Текст карточки оставляем с внутренним отступом для читабельности */
    .ps-card__body {
        padding: 18px 16px;
    }

    /* Фото — на всю ширину, чуть ниже ростом под телефон */
    .ps-card__media,
    .ps-card .og-card__img,
    .ps-card__media.og-card__media--placeholder {
        height: clamp(220px, 56vw, 320px);
    }

    .ps-card .og-card__img {
        max-height: none;
    }

    /* Карточка статьи во всю ширину, но «Назад к новостям» с отступом от края */
    .og-article__back-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}
