/* ============================================================
   OldGeek — шапка и стили главной (под перенос в WordPress)
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Merriweather', serif;
    background-color: #F6F0E7;
    color: #1E1E1A;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F6F0E7; border-radius: 10px; }
::-webkit-scrollbar-thumb { background: #385556; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4d6869; }

/* ---------- Utils ---------- */
.og-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Первая страница ленты без JS (дублирует SSR-ссылки из noscript) */
.og-feed-noscript-nav {
    margin: 16px 0 24px;
    padding: 16px 18px;
    background: rgba(56, 85, 86, 0.06);
    border: 1px solid rgba(56, 85, 86, 0.14);
    border-radius: 12px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 15px;
}

.og-feed-noscript-nav__lead {
    margin-bottom: 10px;
    color: #385556;
    font-weight: 600;
}

.og-feed-crawl-nav__title {
    margin: 0;
    font-size: inherit;
}

.og-feed-crawl-nav__list,
.og-feed-noscript-nav .og-feed-crawl-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.og-feed-crawl-nav__item {
    margin: 6px 0;
}

.og-feed-crawl-nav__item a {
    color: #385556;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.og-feed-crawl-nav__item a:hover {
    color: #2a4142;
}

.og-page {
    min-height: 100vh;
    background-color: #F6F0E7;
    display: flex;
    flex-direction: column;
}

.og-main {
    flex: 1 0 auto;
}

/* ---------- Статические страницы WP (Контакты и др.) ---------- */
.og-page-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 8px 0 56px;
}

.og-page-shell__header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e5e0d5;
}

.og-page-shell__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1e1e1a;
}

.og-page-shell__content {
    font-family: 'Merriweather', serif;
    color: #4a4641;
    line-height: 1.8;
    font-size: 19px;
}

.og-page-shell__content p {
    margin-bottom: 1.1em;
}

.og-page-shell__content p:last-child {
    margin-bottom: 0;
}

.og-page-shell__content a {
    color: #385556;
    font-weight: 600;
}

.og-page-shell__content ul,
.og-page-shell__content ol {
    margin: 0 0 1.1em 1.25em;
}

/* ---------- Форма «Контакты» (в духе карточек и врезки OldGeek) ---------- */
.og-contact-form {
    position: relative;
    margin-top: 2rem;
    padding: 22px 22px 24px;
    border-radius: 16px;
    border: 1px solid rgba(56, 85, 86, 0.14);
    border-left: 3px solid #385556;
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.06) 0%, rgba(246, 240, 231, 0.85) 42%, #f6f0e7 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset, 0 4px 18px rgba(30, 30, 26, 0.05);
}

.og-contact-form__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #1e1e1a;
    margin: 0 0 8px;
}

.og-contact-form__lead {
    font-family: 'Merriweather', serif;
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.65;
    color: #5c574f;
    margin: 0 0 1.35rem;
}

.og-contact-form__noscript {
    padding: 12px 14px;
    background: #fff4e5;
    border: 1px solid #e8c48a;
    border-radius: 12px;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    margin-bottom: 1rem;
}

.og-contact-form__alert {
    padding: 12px 14px;
    margin-bottom: 1rem;
    background: #fdecea;
    border: 1px solid #f0c2bd;
    border-radius: 12px;
    color: #6b2d28;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    line-height: 1.5;
}

.og-contact-form__form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    max-width: 100%;
}

.og-contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
    align-items: start;
}

@media (max-width: 560px) {
    .og-contact-form__row {
        grid-template-columns: 1fr;
    }
}

.og-contact-form__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.og-contact-form__field {
    min-width: 0;
}

.og-contact-form__field label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #385556;
    margin-bottom: 8px;
}

.og-contact-form__req {
    color: #b45309;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 700;
}

.og-contact-form__field input,
.og-contact-form__field textarea {
    width: 100%;
    max-width: none;
    padding: 12px 14px;
    font-family: 'Merriweather', serif;
    font-size: 17px;
    line-height: 1.5;
    color: #1e1e1a;
    background: rgba(255, 254, 251, 0.95);
    border: 2px solid #e5e0d5;
    border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.og-contact-form__field input:focus,
.og-contact-form__field textarea:focus {
    outline: none;
    border-color: #385556;
    box-shadow: 0 0 0 3px rgba(56, 85, 86, 0.2);
}

.og-contact-form__field--message textarea {
    resize: vertical;
    min-height: 160px;
}

.og-contact-form__counter {
    display: block;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #8a847c;
    letter-spacing: 0.02em;
}

.og-contact-form__submit {
    align-self: flex-start;
    margin-top: 0.15rem;
    padding: 13px 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.02em;
    color: #fff;
    background: #385556;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.08s ease;
}

.og-contact-form__submit:hover:not(:disabled) {
    background: #2f4748;
}

.og-contact-form__submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(56, 85, 86, 0.35);
}

.og-contact-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.og-contact-form__thanks {
    margin-top: 0.75rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.08) 0%, #eef6f4 55%);
    border: 1px solid rgba(56, 85, 86, 0.22);
    border-radius: 14px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.og-contact-form__thanks-text {
    font-family: 'Merriweather', serif;
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.65;
    color: #2d4a47;
    margin: 0;
}

/* ---------- Мини-подвал ---------- */
.og-footer-mini {
    flex-shrink: 0;
    border-top: 2px solid #E5E0D5;
    background-color: #fafafa;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
}

.og-footer-mini__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 14px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.og-footer-mini__brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #385556;
}

.og-footer-mini__top {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #E5E0D5;
    background: #FFFFFF;
    color: #385556;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    padding: 0;
    font: inherit;
}

.og-footer-mini__top:hover {
    background-color: rgba(56, 85, 86, 0.08);
    border-color: rgba(56, 85, 86, 0.35);
    color: #3d5f61;
}

.og-footer-mini__top:focus-visible {
    outline: 2px solid #385556;
    outline-offset: 2px;
}

.og-footer-mini__top svg {
    width: 22px;
    height: 22px;
}

/* ---------- Header ---------- */
/* Дубль первого экрана: assets/css/oldgeek-critical.css — правки вёрстки шапки держать в синхроне. */
.og-header {
    background-color: #fafafa;
    border-bottom: 2px solid #E5E0D5;
    padding: 16px 0 18px;
    /* Десктоп: шапка уезжает при прокрутке (не sticky). Мобилка — @media max-width 768px */
    position: relative;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Вторая линия под шапкой — только мобилка (см. @media max-width 768px) */
.og-header-mobile-extra-rule {
    display: none;
}

/* Верхний слоган и линия над рядом лого+меню — только мобилка */
.og-header-mobile-top-tagline {
    display: none;
    margin: 0;
}

/* Линия над рядом лого+меню на мобилке — см. @media max-width 768px */
.og-header-mobile-menu-strip-rule {
    display: none;
}

.og-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    justify-items: stretch;
    /* Вертикальное центрирование строки шапки; меню — по центру средней колонки */
    gap: clamp(22px, 3.2vw, 44px);
}

/* Правая колонка: поиск + гамбургер (на десктопе гамбургер скрыт) */
.og-header__end {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(4px, 0.8vw, 10px);
    grid-column: 3;
    justify-self: end;
    min-width: 0;
    margin-inline-start: clamp(2px, 0.5vw, 8px);
}

.og-nav-toggle {
    display: none;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #385556;
    cursor: pointer;
    flex-shrink: 0;
}

.og-nav-toggle:focus-visible {
    outline: 2px solid #385556;
    outline-offset: 2px;
}

.og-nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 22px;
}

.og-nav-toggle__bar {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 1px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.og-header--menu-open .og-nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.og-header--menu-open .og-nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.og-header--menu-open .og-nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.og-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 510;
    background: rgba(30, 30, 26, 0.42);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.og-header--menu-open .og-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.og-menu-open {
    overflow: hidden;
}

/* ---------- Logo ---------- */
.og-logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
    grid-column: 1;
    justify-self: start;
}
.og-logo__img {
    display: block;
    /* Базовый размер +40% */
    height: clamp(123px, 17.8vw, 171px);
    width: auto;
    max-width: min(100%, 1135px);
}

/* ---------- Шапка: HTML-бренд (марка + wordmark, см. OLDGK_NEWS_HEADER_BRAND_HTML) ---------- */
@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/IBMPlexSans-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.og-logo--brand {
    line-height: normal;
    max-width: min(100%, 960px);
    /* Единое −20% для всего блока (марка + подписи + PNG): zoom масштабирует и вёрстку, и шрифты пропорционально */
    --header-brand-zoom: 0.8;
    /* Не сжимать слот логотипа между nav и поиском — иначе @container / flex давали «узкую колонку» */
    flex-shrink: 0;
    min-width: 0;
    /* Ссылка в шапке: без «серого» цвета ссылок WP / темы */
    color: #000000;
}

.og-logo--brand:hover,
.og-logo--brand:focus,
.og-logo--brand:active,
.og-logo--brand:visited {
    color: #000000;
}

/* Десктоп: только HTML-бренд; мобильный логотип скрыт (показ ≤768px в медиазапросе ниже) */
.og-logo--brand .og-logo__mob-wrap,
.og-logo--brand > img.og-logo__mob {
    display: none;
}

/* Вёрстка как в tmp/logo/logo.html; селекторы с префиксом .og-logo--brand, чтобы не задеть остальной сайт */
.og-logo--brand .oldgeek-brand {
    zoom: var(--header-brand-zoom);
    --wordmark-intrinsic-width: 646px;
    --logo-width: var(--wordmark-intrinsic-width);
    /* Круговая марка (logofoto); подписи + PNG — масштаб от высоты марки */
    --mark-height: clamp(152px, 18.8vw, 200px);
    --text-stack-natural: 228px;
    --brand-text-scale: min(0.72, calc(var(--mark-height) / var(--text-stack-natural)));
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(12px, 2vw, 26px);
    max-width: 100%;
    min-width: 0;
}

.og-logo--brand .oldgeek-mark {
    height: var(--mark-height);
    width: auto;
    max-width: min(52vw, calc(var(--mark-height) * 1.18));
    object-fit: contain;
    flex: 0 0 auto;
    display: block;
}

.og-logo--brand .oldgeek-text-scaler {
    flex: 1 1 0;
    /* Пол ширины для подписей и wordmark; flex-basis 0 + min-width даёт корректный % у дочернего стека */
    min-width: min(300px, 40vw);
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.og-logo--brand .oldgeek-text-scaler .oldgeek-text-logo {
    transform: scale(var(--brand-text-scale));
    transform-origin: left center;
}

.og-logo--brand .oldgeek-text-logo {
    --tagline-bottom-size: calc(24px * 1.1);
    --tagline-top-size: calc(24px * 1.1 * 1.1);
    --logo-row-gap: 6px;
    /* Одна колонка: верх, wordmark, низ — одна и та же ширина «рельсы», как у блока картинки */
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-content: start;
    width: min(var(--wordmark-intrinsic-width), 100%);
    max-width: 100%;
    min-width: 0;
    gap: var(--logo-row-gap);
    line-height: 1;
}

.og-logo--brand .oldgeek-line {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    inline-size: 100%;
    margin: 0;
    padding: 0;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-character;
    hyphens: none;
    line-height: 1.05;
}

/* Рельса на всю ширину wordmark: justify по-русски часто не тянет строку — слова в span + space-between */
.og-logo--brand .oldgeek-line.oldgeek-line--spread {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    box-sizing: border-box;
    text-align: left;
    text-align-last: auto;
    text-justify: auto;
    min-width: 0;
    /* Схлопываем пробельные текстовые узлы между span — иначе они становятся лишними flex-элементами */
    font-size: 0;
}

.og-logo--brand .oldgeek-line.oldgeek-line--spread::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.og-logo--brand .oldgeek-line--spread .oldgeek-line__w {
    flex: 0 0 auto;
    white-space: nowrap;
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.05;
}

.og-logo--brand .oldgeek-top.oldgeek-line--spread .oldgeek-line__w {
    font-size: var(--tagline-top-size);
    letter-spacing: -0.045em;
}

.og-logo--brand .oldgeek-bottom.oldgeek-line--spread .oldgeek-line__w {
    font-size: var(--tagline-bottom-size);
    letter-spacing: -0.052em;
}

@media (max-width: 640px) {
    .og-logo--brand .oldgeek-line.oldgeek-line--spread {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 0.14em;
        column-gap: 0.32em;
    }

    .og-logo--brand .oldgeek-line--spread .oldgeek-line__w {
        white-space: normal;
    }
}

/* Перебить глобальные стили WP (цвет ссылок / layout flow для p) */
.og-logo.og-logo--brand .oldgeek-text-logo > .oldgeek-line,
.og-logo.og-logo--brand .oldgeek-text-logo .oldgeek-line__w {
    color: #000000 !important;
    -webkit-text-fill-color: #000000 !important;
    opacity: 1 !important;
}

.og-logo--brand .oldgeek-line::after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    vertical-align: top;
}

.og-logo--brand .oldgeek-top {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: calc(var(--tagline-top-size) * -0.32);
    transform: translateY(calc(var(--tagline-top-size) * 0.108));
    /* без псевдо-bold тени — легче, цвет как у остальных строк */
    text-shadow: none;
}

.og-logo--brand .oldgeek-wordmark-wrap {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    line-height: 0;
    /* Зазор от верхней подписи: сильный отрицательный margin у .oldgeek-top тянет блок вверх — компенсируем */
    margin-top: calc(var(--tagline-top-size) * 0.28 + 6px);
}

.og-logo--brand .oldgeek-wordmark {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0;
    padding: 0;
}

.og-logo--brand .oldgeek-bottom {
    font-family: "IBM Plex Sans", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    margin-top: 0;
}

@media (max-width: 480px) {
    .og-logo--brand {
        flex-shrink: 1;
        max-width: 100%;
    }

    .og-logo--brand .oldgeek-brand {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: center;
        --mark-height: clamp(120px, 34vw, 188px);
        --text-stack-natural: 228px;
    }

    .og-logo--brand .oldgeek-text-scaler {
        justify-content: center;
        min-width: 0;
        width: 100%;
        max-width: min(100%, var(--wordmark-intrinsic-width));
    }

    .og-logo--brand .oldgeek-text-scaler .oldgeek-text-logo {
        transform-origin: center top;
        transform: scale(var(--brand-text-scale));
    }
}

/* ---------- Navigation ----------
   ЭТАЛОН шапки (≥0.2.140): верхнее меню — Главная … Где я, почта в nav, лупа в отдельной колонке grid.
   Не менять легкомысленно; описание: docs/oldgeek-wordpress-design.md § «Эталон: верхнее меню». */
.og-nav {
    display: flex;
    column-gap: clamp(18px, 2.2vw, 34px);
    row-gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    grid-column: 2;
    justify-self: stretch;
    box-sizing: border-box;
    /* Воздух до колонки с лупой — иначе почта и кнопка поиска визуально слипаются */
    padding-inline: clamp(4px, 0.8vw, 12px);
    padding-inline-end: clamp(14px, 2.2vw, 28px);
    /* max-content делал блок меню шире средней колонки grid → наезд на поиск */
    width: 100%;
    max-width: 100%;
    justify-content: center;
    min-width: 0;
}

.og-nav__item {
    position: relative;
    flex-shrink: 0;
}

/* Шапка выезжающей панели (крестик) — только мобилка; на десктопе скрыта */
.og-nav__panel-head {
    display: none;
}

.og-nav__close {
    display: none;
}

.og-nav__link {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    /* Только верхнее меню шапки; дропдауны — .og-dropdown__list li a */
    font-size: clamp(16px, 1.08vw, 21px);
    line-height: 1.15;
    color: #1E1E1A;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    cursor: pointer;
    transition: color 0.2s ease;
    border-bottom: 3px solid transparent;
    /* Иначе при сжатии flex (логотип + поиск) «Где я» ломается на две строки */
    white-space: nowrap;
}
.og-nav__link:hover,
.og-nav__link.is-active {
    color: #385556;
}
.og-nav__link:hover:not(.is-active) {
    border-bottom-color: rgba(56, 85, 86, 0.22);
}
.og-nav__link.is-active {
    border-bottom-color: rgba(56, 85, 86, 0.55);
}
.og-nav__chev {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}
/* Иконка почты: компактнее hit-area, чтобы не наезжала на «Где я» и лупу */
.og-nav__link--icon {
    justify-content: center;
    box-sizing: border-box;
    min-width: max(2.5em, 40px);
    min-height: max(2.5em, 40px);
    padding: 0.28em 0.42em;
    margin-inline: 2px;
    border-radius: 10px;
    border-bottom: none;
}
.og-nav__mail-icon {
    width: 1.56em;
    height: 1.56em;
    display: block;
    flex-shrink: 0;
}
.og-nav__link--icon:hover:not(.is-active) {
    border-bottom-color: transparent;
    background: rgba(56, 85, 86, 0.08);
}
.og-nav__link--icon.is-active {
    border-bottom-color: transparent;
    background: rgba(56, 85, 86, 0.13);
}
.og-nav__item:hover .og-nav__chev {
    transform: rotate(180deg);
}

/* ---------- Dropdown ---------- */
.og-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 320px;
    background: #FFFFFF;
    border: 1px solid #E5E0D5;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 200;
}

/* Невидимый «мостик», чтобы курсор не терял hover между ссылкой и панелью */
.og-nav__item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.og-nav__item:hover .og-dropdown,
.og-nav__item:focus-within .og-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.og-dropdown__search {
    position: relative;
    margin-bottom: 12px;
}
.og-dropdown__search svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #385556;
    pointer-events: none;
}
.og-dropdown__search input {
    width: 100%;
    font-family: 'Merriweather', serif;
    font-size: 15px;
    padding: 12px 12px 12px 40px;
    border: 1px solid #E5E0D5;
    border-radius: 10px;
    background: #FAFAFA;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
}
.og-dropdown__search input:focus {
    border-color: #385556;
    background: #FFFFFF;
}

.og-dropdown__list {
    list-style: none;
    max-height: 280px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}
.og-dropdown__list li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #1E1E1A;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background-color 0.15s, color 0.15s;
}
.og-dropdown__list li a:hover {
    background-color: rgba(56, 85, 86, 0.08);
    color: #385556;
}

/* ---------- Search (форма для WP: GET ?s=) — в тон дропдауну и кнопкам шапки ---------- */
/* Фиксированная «опора» под лупу: поле раскрывается absolute влево и перекрывает меню, без сдвига пунктов */
.og-search {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    align-self: center;
    flex-shrink: 0;
    z-index: 150;
}
.og-search__btn {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 2;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #385556;
    cursor: pointer;
    padding: 0;
    font: inherit;
}
.og-search__btn svg {
    width: 24px;
    height: 24px;
}
.og-search__btn:focus-visible {
    outline: 2px solid #385556;
    outline-offset: 2px;
}
.og-search__input {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    width: 0;
    opacity: 0;
    padding: 0;
    border: 1px solid transparent;
    box-shadow: none;
    background: transparent;
    color: #1E1E1A;
    caret-color: #385556;
    font-family: 'Merriweather', serif;
    font-size: 16px;
    border-radius: 16px;
    transition:
        width 0.35s ease,
        opacity 0.25s ease,
        padding 0.35s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
    outline: none;
    margin: 0;
    height: 56px;
    box-sizing: border-box;
}
.og-search__input::placeholder {
    color: rgba(30, 30, 26, 0.45);
}
.og-search:hover .og-search__input,
.og-search:focus-within .og-search__input {
    width: 300px;
    opacity: 1;
    padding: 0 56px 0 16px;
    border: 1px solid #E5E0D5;
    background-color: #FAFAFA;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.og-search:hover .og-search__input:focus,
.og-search__input:focus {
    border-color: #385556;
    background-color: #FFFFFF;
    box-shadow: 0 4px 18px rgba(56, 85, 86, 0.12);
}

/* ---------- Главная: main и карточка ---------- */
.og-main__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 48px;
}

/* Вводный блок посадочной по стране (?country=) */
.og-country-intro {
    margin-bottom: 48px;
}

.og-country-intro__inner {
    padding: 28px 32px 32px;
    border-radius: 16px;
    border: 1px solid #e5e0d5;
    background-color: #fafafa;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.og-country-intro__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3.2vw, 2.25rem);
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #1e1e1a;
    margin: 0 0 20px;
}

.og-country-intro__media {
    margin: 0 0 20px;
}

.og-country-intro__figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e3d9;
    background: #fff;
}

.og-country-intro__figure img,
.og-country-intro__img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.og-country-intro__body {
    font-family: 'Merriweather', serif;
    color: #4a4641;
    line-height: 1.8;
    font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.og-country-intro__body.entry-content p {
    margin: 0 0 1rem;
}

.og-country-intro__body.entry-content p:last-child {
    margin-bottom: 0;
}

.og-country-intro__body.entry-content :where(h2, h3, h4) {
    font-family: 'Inter', sans-serif;
    color: #1e1e1a;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 1.25rem 0 0.65rem;
}

.og-country-intro__body.entry-content :where(ul, ol) {
    margin: 0 0 1rem 1.15rem;
    padding: 0;
}

.og-country-intro__body.entry-content li {
    margin-bottom: 0.35rem;
}

.og-country-intro__body.entry-content a {
    color: #385556;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.og-country-intro__body.entry-content a:hover {
    color: #2a3f41;
}

.og-card {
    position: relative;
}

/* .og-card--hero — опциональный модификатор первой карточки в теме WP */

.og-main__inner > .og-card + .og-card {
    margin-top: 64px;
}

.og-card__grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 32px;
}

/* Запасной вариант при старом JS без плейсхолдера: один столбец текста на всю ширину */
.og-card__grid > .og-card__body:only-child {
    grid-column: 1 / -1;
}

.og-card__media {
    position: relative;
    display: block;
    align-self: start; /* не растягивать ссылку на высоту текста в соседней колонке грида */
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

/* Лента: нет картинки — та же двухколоночная сетка, что у карточек с обложкой */
.og-card__media--placeholder {
    min-height: 840px;
    background: linear-gradient(135deg, #e5e0d5 0%, #f6f0e7 55%, #fafafa 100%);
    box-shadow: inset 0 0 0 1px rgba(229, 224, 213, 0.9);
}

.og-card__img {
    width: 100%;
    height: auto;
    aspect-ratio: 160 / 147;
    max-height: 840px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

.og-card__badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 3;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Дата на превью: та же типографика, что у .og-article__date — Oswald uppercase;
   контраст через тёмную подложку + белый текст (читается на любом фото без разбора пикселей). */
.og-card__media-date {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    max-width: calc(100% - 32px);
    pointer-events: none;
}

.og-card__media-date-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.og-card__media-date-inner svg,
.og-card__media-date-icon {
    flex-shrink: 0;
    color: #ffffff;
    opacity: 0.95;
}

@media (prefers-contrast: more) {
    .og-card__media-date-inner {
        background-color: rgba(0, 0, 0, 0.85);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
    }
}

.og-badge {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.og-badge--country {
    color: #1E1E1A;
}

.og-badge--topic {
    color: #385556;
}

.og-card__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* grid/flex: иначе колонка с текстом может ломать вёрстку и клипать врезки */
}

/* Заголовок материала + дата публикации на главной */
.og-card__headblock {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.og-card__country-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 18px;
    margin: 0;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    line-height: 1.4;
    color: #4A4641;
}

.og-card__country-event,
.og-card__country-source,
.og-card__country-topic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.og-card__country-source {
    color: rgba(74, 70, 65, 0.82);
}

.og-card__country-sep {
    flex-shrink: 0;
    padding: 0 2px;
    font-family: 'Merriweather', serif;
    font-size: 14px;
    font-weight: 400;
    color: rgba(74, 70, 65, 0.45);
    user-select: none;
}

.og-card__country-source-label,
.og-card__country-name,
.og-card__country-topic-value {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #385556;
}

/* Ссылки в строке стран / темы / источника: подчёркивание по умолчанию; только у наведённой — без подчёркивания */
.og-card__country-row .og-card__country-row-link {
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.og-card__country-row .og-card__country-row-link:hover {
    text-decoration: none;
}

/* Одинаковая площадь иконки: слот фиксирован, фото заполняет его (cover), края по центру обрезаются. */
.og-card__country-flag-slot {
    flex-shrink: 0;
    width: 39px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    overflow: hidden;
    border-radius: 3px;
}

.og-card__country-flag {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.og-card__meta-line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #385556;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.og-card__meta-date,
.og-card__meta-read {
    color: inherit;
}

.og-card__meta-sep {
    font-weight: 600;
    color: rgba(56, 85, 86, 0.45);
}

.og-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1E1E1A;
}

.og-card__title-link {
    color: inherit;
    text-decoration: none;
}

.og-card__title-link:hover {
    opacity: 0.92;
}

/* Комментарий редакции — заметная, но лёгкая врезка */
.og-comment {
    position: relative;
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.06) 0%, rgba(56, 85, 86, 0.03) 100%);
    border: 1px solid rgba(56, 85, 86, 0.14);
    border-left: 3px solid #385556;
    border-radius: 12px;
    padding: 16px 18px 18px 16px;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.og-comment::before {
    display: none;
}

.og-comment__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-left: 0;
}

.og-comment__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    display: block;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
}

.og-comment__meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.og-comment__label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #385556;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.og-comment__rule {
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 6px;
    border-radius: 1px;
    background: rgba(56, 85, 86, 0.35);
}

.og-comment__text {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    color: #4A4641;
    margin: 0;
    padding-left: 0;
    border-left: none;
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Ссылки в «Комментарий OldGeek» (из админки <a href>); выше сбросов WP/block-theme */
.og-comment .og-comment__text a,
.og-comment .og-comment__text p a {
    color: #385556;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(56, 85, 86, 0.42);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.og-comment .og-comment__text a:hover,
.og-comment .og-comment__text p a:hover {
    color: #2a4142;
    text-decoration-color: rgba(42, 65, 66, 0.72);
}

.og-comment .og-comment__text a:visited,
.og-comment .og-comment__text p a:visited {
    color: #3a4f50;
}

.og-comment .og-comment__text a:focus-visible,
.og-comment .og-comment__text p a:focus-visible {
    outline: 2px solid rgba(56, 85, 86, 0.45);
    outline-offset: 3px;
    border-radius: 2px;
}

.og-comment .og-comment__text a[target="_blank"]::after,
.og-comment .og-comment__text p a[target="_blank"]::after {
    content: " ↗";
    font-family: Inter, system-ui, sans-serif;
    font-size: 0.82em;
    font-weight: 700;
    font-style: normal;
    opacity: 0.62;
    text-decoration: none;
    display: inline;
}

/* Полный текст на странице материала */
.og-comment--article {
    padding: 20px 22px 22px 18px;
    margin-bottom: 40px;
}

.og-comment--article .og-comment__text {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    line-height: 1.7;
}

.og-comment--article .og-comment__text p {
    margin-bottom: 14px;
}

.og-comment--article .og-comment__text p:last-child {
    margin-bottom: 0;
}

.og-card__excerpt {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: #4A4641;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.og-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #385556;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.og-card__more svg {
    flex-shrink: 0;
    transition: transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.og-card__more:hover {
    opacity: 0.9;
}

.og-card__more:hover svg {
    transform: translateX(5px);
}

@media (prefers-reduced-motion: reduce) {
    .og-card__more svg {
        transition: none;
    }
    .og-card__more:hover svg {
        transform: none;
    }
}

/* «Комментарий OldGeek» в карточке (раньше только в JS под #ogFeedCards; нужен и для PHP-шаблонов, напр. поиск) */
.og-main .og-comment {
    position: relative;
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.06) 0%, rgba(56, 85, 86, 0.03) 100%);
    border: 1px solid rgba(56, 85, 86, 0.14);
    border-left: 3px solid #385556;
    border-radius: 12px;
    padding: 16px 18px 18px 16px;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.og-main .og-comment__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.og-main .og-comment__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
}

.og-main .og-comment__meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.og-main .og-comment__label {
    font-family: Inter, system-ui, sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #385556;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.og-main .og-comment__rule {
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 6px;
    border-radius: 1px;
    background: rgba(56, 85, 86, 0.35);
}

.og-main .og-comment__text {
    font-family: Merriweather, Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    color: #4a4641;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.og-card__share-wrap {
    position: relative;
    margin-top: 48px;
    margin-bottom: 24px;
}

/*
 * Single / бесконечный скролл: одна панель комментариев в конце #ogArticleStream (не переносится в <article>).
 * Раньше ~48px и ~max(24,40)=40px; уменьшение на ~40% → ~29px и ~24px; выравниваем одной величиной.
 */
#ogArticleStream {
    --og-article-band-gap: 27px;
}

#ogArticleStream article .og-card__share-wrap {
    margin-bottom: var(--og-article-band-gap);
}

#ogArticleStream article .og-comments-panel {
    margin-top: var(--og-article-band-gap);
    margin-bottom: var(--og-article-band-gap);
}

#ogArticleStream .og-comments-panel + .og-card__share-wrap {
    margin-top: 0;
}

#ogArticleStream .og-article__related {
    margin-top: var(--og-article-band-gap);
}

.og-card__share-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #E5E0D5;
    transform: translateY(-50%);
}

.og-card__share-inner {
    position: relative;
    display: flex;
    justify-content: center;
}

.og-share-btn {
    background-color: #F6F0E7;
    border: 2px solid #E5E0D5;
    border-radius: 16px;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    font: inherit;
    transform-origin: center center;
}

.og-share-btn__text {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #385556;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.og-share-btn:hover {
    border-color: #385556;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: og-share-shake 0.85s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes og-share-shake {
    0%, 100% {
        transform: rotate(0deg);
    }
    14% {
        transform: rotate(-3deg);
    }
    28% {
        transform: rotate(3deg);
    }
    42% {
        transform: rotate(-2deg);
    }
    56% {
        transform: rotate(2deg);
    }
    70% {
        transform: rotate(-1.2deg);
    }
    82% {
        transform: rotate(0.8deg);
    }
    92% {
        transform: rotate(-0.4deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .og-share-btn:hover {
        animation: none;
    }
}

/* Меню «Поделиться»: Telegram, MAX, копирование (share-menu.js) */
.og-share-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10040;
    background: transparent;
}

@media (max-width: 768px) {
    .og-share-popover-backdrop {
        background: rgba(30, 30, 26, 0.35);
    }
}

.og-share-popover {
    position: fixed;
    z-index: 10041;
    min-width: 260px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 8px 0;
    background: #fff;
    border: 2px solid #e5e0d5;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.og-share-popover__action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1e1e1a;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.og-share-popover__action:hover,
.og-share-popover__action:focus-visible {
    background: rgba(56, 85, 86, 0.08);
    color: #385556;
    outline: none;
}

.og-share-popover__action--telegram {
    border-bottom: 1px solid #efeae3;
}

.og-share-popover__action--max {
    border-bottom: 1px solid #efeae3;
}

.og-share-popover__action--copy {
    border-bottom: 1px solid #efeae3;
}

.og-share-popover__action--native {
    font-weight: 500;
    color: #5c574f;
}

.og-share-popover__action-label {
    flex: 1;
    min-width: 0;
}

.og-share-popover__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.og-share-popover__icon--telegram {
    background: rgba(34, 158, 217, 0.12);
}

.og-share-popover__icon--telegram svg {
    width: 22px;
    height: 22px;
}

.og-share-popover__icon--telegram img {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.og-share-popover__icon--max {
    background: transparent;
}

.og-share-popover__icon--max img {
    width: 36px;
    height: 36px;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.og-share-popover__icon--neutral {
    background: rgba(56, 85, 86, 0.08);
    color: #385556;
}

.og-share-popover__icon--neutral svg {
    width: 20px;
    height: 20px;
}

.og-share-popover__icon--muted {
    background: rgba(92, 87, 79, 0.08);
    color: #5c574f;
}

.og-share-popover__icon--muted svg {
    width: 20px;
    height: 20px;
}

.og-share-popover__action:hover .og-share-popover__icon--muted,
.og-share-popover__action:focus-visible .og-share-popover__icon--muted {
    background: rgba(56, 85, 86, 0.1);
    color: #385556;
}

.og-infinite-hint {
    margin-top: 64px;
}

.og-infinite-hint--retry {
    margin-top: 30px;
}

.og-infinite-hint--end {
    margin-top: 30px;
}

.og-infinite-hint__box {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(56, 85, 86, 0.05) 0%, rgba(77, 104, 105, 0.05) 100%);
    border: 1px solid rgba(56, 85, 86, 0.2);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.og-infinite-hint__box--action {
    width: 100%;
    margin: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.og-infinite-hint__box--action:focus-visible {
    outline: 2px solid #385556;
    outline-offset: 3px;
}

.og-infinite-hint__box--action:hover {
    border-color: rgba(56, 85, 86, 0.35);
    background: linear-gradient(135deg, rgba(56, 85, 86, 0.08) 0%, rgba(77, 104, 105, 0.08) 100%);
}

/* Нижние три блока: одинаковый «слот» под иконку 48×48 */
.og-infinite-hint__box .og-spinner,
.og-infinite-hint__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
}

.og-infinite-hint__icon {
    color: #385556;
}

.og-spinner {
    border: 4px solid rgba(56, 85, 86, 0.3);
    border-top-color: #385556;
    border-radius: 50%;
    animation: og-spin 1s linear infinite;
}

@keyframes og-spin {
    to { transform: rotate(360deg); }
}

.og-infinite-hint__text {
    display: flex;
    flex-direction: column;
}

.og-infinite-hint__title {
    font-family: 'Merriweather', serif;
    font-weight: 600;
    font-size: 20px;
    color: #385556;
}

.og-infinite-hint__underline {
    width: 96px;
    height: 4px;
    background: linear-gradient(90deg, #385556 0%, transparent 100%);
    margin-top: 8px;
    border-radius: 2px;
}

/* ---------- Страница материала (та же сетка шапки/подвала, узкая колонка текста) ---------- */
.og-article {
    max-width: 900px;
    margin: 0 auto;
}

.og-article__back-wrap {
    margin-bottom: 32px;
}

.og-article__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #385556;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.og-article__back-arrow {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.og-article__back:hover .og-article__back-arrow {
    transform: translateX(-4px);
}

@media (prefers-reduced-motion: reduce) {
    .og-article__back:hover .og-article__back-arrow {
        transform: none;
    }
}

.og-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

/* Полная строка под датой: флаги как на главной (.og-card__country-row внутри) */
.og-article__country-row-wrap {
    flex: 1 1 100%;
    width: 100%;
    margin-top: 2px;
}

/* Бейджи страна+тема — одна группа (на мобиле не разъезжаются по ширине строки) */
.og-article__badges {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.og-article__date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #385556;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.og-article__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.og-article__badge--country {
    color: #1E1E1A;
}

.og-article__badge--topic {
    color: #385556;
}

/* Как .og-card__title на главной (лента) */
.og-article__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 3rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #1E1E1A;
    margin-bottom: 40px;
}

.og-article__hero {
    margin-bottom: 48px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.og-article__hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 160 / 147;
    max-height: min(122.5vh, 910px);
    object-fit: cover;
    display: block;
}

/* Картинка из тела поста (нет обложки WP) — те же отступы, что у .og-article__hero */
.og-article__hero--from-content figure {
    margin: 0;
}

.og-article__hero--from-content img {
    width: 100%;
    height: 875px;
    object-fit: cover;
    display: block;
}

.og-article__body {
    font-family: 'Merriweather', serif;
    color: #4A4641;
    line-height: 1.8;
    font-size: 19px;
}

.og-article__body p {
    margin-bottom: 24px;
}

/* Подзаголовки из HTML/блоков перевода (заголовок поста — отдельный h1 в шаблоне) */
.og-article__body.entry-content :where(h2, h3, h4, h5, h6) {
    font-family: 'Inter', sans-serif;
    color: #1e1e1a;
    letter-spacing: -0.02em;
    line-height: 1.28;
}

.og-article__body.entry-content h2 {
    font-weight: 800;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    margin-top: 40px;
    margin-bottom: 16px;
}

.og-article__body.entry-content h3 {
    font-weight: 700;
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    margin-top: 28px;
    margin-bottom: 12px;
}

.og-article__body.entry-content h4 {
    font-weight: 700;
    font-size: 1.08rem;
    margin-top: 22px;
    margin-bottom: 10px;
}

/* Ссылка на оригинальный материал (классы задаёт backend или нормализация в теме) */
.og-article__body .og-article__source {
    margin-top: 0;
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
}

/* Специфичность выше типовых `.entry-content a` из block-theme / WP, без «классической» синей ссылки */
article.post .og-article__body.entry-content p.og-article__source a.og-article__source-link,
.og-article__body.entry-content p.og-article__source > a {
    display: inline;
    align-items: unset;
    gap: unset;
    font-family: inherit;
    font-weight: inherit;
    font-size: inherit;
    font-style: italic;
    letter-spacing: inherit;
    line-height: inherit;
    color: #4a4641;
    text-decoration: underline;
    text-decoration-color: rgba(74, 70, 65, 0.4);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

article.post .og-article__body.entry-content p.og-article__source a.og-article__source-link::after,
.og-article__body.entry-content p.og-article__source > a::after {
    content: " ↗";
    font-size: 0.85em;
    font-style: normal;
    font-weight: 600;
    opacity: 0.65;
    text-decoration: none;
    display: inline;
}

article.post .og-article__body.entry-content p.og-article__source a.og-article__source-link:hover,
.og-article__body.entry-content p.og-article__source > a:hover {
    color: #3d3a36;
    text-decoration-color: rgba(61, 58, 54, 0.55);
}

article.post .og-article__body.entry-content p.og-article__source a.og-article__source-link:focus-visible,
.og-article__body.entry-content p.og-article__source > a:focus-visible {
    outline: 2px solid rgba(56, 85, 86, 0.45);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Прямая речь / цитата из текста новости — кегль и цвет как у .og-article__body */
.og-article__body blockquote {
    margin: 32px 0;
    padding: 18px 24px 22px 20px;
    border-left: 4px solid #385556;
    border-radius: 0 12px 12px 0;
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.08) 0%, rgba(56, 85, 86, 0.03) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    font-family: inherit;
    font-size: inherit;
    line-height: 1.8;
    font-style: italic;
    color: #4a4641;
}

/* Как .og-comment__label («Комментарий OldGeek») */
.og-article__body blockquote::before {
    content: "Цитата";
    display: block;
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #385556;
    margin-bottom: 12px;
    line-height: 1.2;
}

.og-article__body blockquote p {
    margin-bottom: 16px;
    font-size: inherit;
    line-height: inherit;
}

.og-article__body blockquote p:last-of-type {
    margin-bottom: 0;
}

/* Как основной текст абзацев внутри цитаты */
.og-article__body blockquote cite {
    display: block;
    margin-top: 4px;
    font-family: inherit;
    font-style: italic;
    font-weight: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    letter-spacing: inherit;
}

.og-article__h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: #1E1E1A;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 24px;
}

/* Бесконечный скролл: следующие полные материалы под блоком «Читайте также» */
.og-article-stack__chunk {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 2px solid #e5e0d5;
}

.og-article-stack__chunks {
    min-height: 1px;
}

.og-article-stack__sentinel {
    height: 1px;
    margin-top: 8px;
    pointer-events: none;
}

.og-article-stack__loading {
    margin-top: 32px;
}

.og-article-stack__end {
    margin-top: 32px;
}

/* Один блок комментариев на single: переключается на активную статью (JS) */
.og-comments-panel {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 2px solid #e5e0d5;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    position: relative;
    overflow-anchor: none;
}

.og-comments-panel__heading {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #1E1E1A;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.og-comments-panel__subhead {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #385556;
    margin: 0 0 28px;
    line-height: 1.4;
}

.og-comments-panel__post-title {
    font-weight: 700;
    color: #1E1E1A;
}

.og-comments-panel__form-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #385556;
    margin: 0 0 12px;
}

.og-comments-panel__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
    margin-bottom: 28px;
    width: 100%;
    min-width: 0;
}

.og-comments-panel__comment {
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.06) 0%, rgba(56, 85, 86, 0.02) 100%);
    border: 1px solid rgba(56, 85, 86, 0.14);
    border-radius: 12px;
    padding: 16px 18px 18px;
    box-sizing: border-box;
    width: 100%;
    /* Flex-колонка + длинные «слитые» строки: клип по горизонтали + перенос в теле */
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
}

/* Ответы на комментарий: заметная нить к родителю (отступ дублируется из JS). */
.og-comments-panel__comment--depth {
    border-left: 3px solid rgba(56, 85, 86, 0.45);
    padding-left: 15px;
}

.og-comments-panel__show-replies {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid rgba(56, 85, 86, 0.35);
    border-radius: 8px;
    background: rgba(56, 85, 86, 0.06);
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #385556;
    cursor: pointer;
    flex: 0 0 auto;
}

.og-comments-panel__show-replies:hover:not(:disabled) {
    background: rgba(56, 85, 86, 0.11);
}

.og-comments-panel__show-replies:disabled {
    opacity: 0.65;
    cursor: wait;
}

.og-comments-panel__replies {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
    padding-top: 2px;
    padding-left: 12px;
    border-left: 2px solid rgba(56, 85, 86, 0.18);
    min-width: 0;
    max-width: 100%;
}

.og-comments-panel__replies[hidden] {
    display: none !important;
}

.og-comments-panel__comment-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.og-comments-panel__avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    /* Fallback, если REST не передал avatar_bg (старый кэш и т.п.) */
    background: #385556;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: -0.03em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
}

.og-comments-panel__comment-head-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 14px;
    min-width: 0;
    flex: 1;
}

.og-comments-panel__author {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #385556;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

a.og-comments-panel__author:hover {
    text-decoration: underline;
}

.og-comments-panel__date {
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6f695f;
}

.og-comments-panel__body {
    font-family: 'Merriweather', Georgia, serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.65;
    color: #4a4641;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

/* Тело помечено как .entry-content — перебиваем глобальные правила WP / block-library */
.og-comments-panel .og-comments-panel__body.entry-content {
    display: block;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
}

.og-comments-panel .og-comments-panel__body.entry-content :where(p, li, dd, div, blockquote, cite, td, th) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.og-comments-panel__body p:last-child {
    margin-bottom: 0;
}

.og-comments-panel__comment-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-top: 12px;
}

.og-comments-panel__reply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    flex: 0 0 auto;
    font-family: 'Oswald', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #385556;
    background: rgba(56, 85, 86, 0.08);
    border: 1px solid rgba(56, 85, 86, 0.24);
    border-radius: 8px;
    cursor: pointer;
}

.og-comments-panel__reply-btn:hover {
    background: rgba(56, 85, 86, 0.16);
}

.og-comments-panel__empty,
.og-comments-panel__error,
.og-comments-panel__closed-note {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c574f;
    margin: 0 0 16px;
}

.og-comments-panel__error {
    color: #a34444;
}

.og-comments-panel__notice--moderation {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.45;
    text-transform: none;
    color: #4a4641;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(184, 140, 60, 0.45);
    background: rgba(255, 243, 220, 0.88);
}

.og-comments-panel__more {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 28px;
    padding: 12px 24px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #385556;
    background: #F6F0E7;
    border: 2px solid #E5E0D5;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.og-comments-panel__more:hover {
    border-color: #385556;
    background-color: #FFFFFF;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.og-comments-panel__more:active {
    transform: scale(0.98);
}

.og-comments-panel__more:focus-visible {
    outline: 2px solid #385556;
    outline-offset: 3px;
}

.og-comments-panel__more-title {
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.1;
}

.og-comments-panel__form-mount {
    margin-top: 8px;
}

.og-comments-panel__logged-in {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c574f;
    margin: 0 0 14px;
}

.og-comments-panel__label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #385556;
    margin-bottom: 16px;
}

.og-comments-panel__label--comment {
    margin-top: 4px;
}

.og-comments-panel__identity-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.og-comments-panel__identity-row .og-comments-panel__label {
    margin-bottom: 0;
}

.og-comments-panel__input,
.og-comments-panel__textarea {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #1E1E1A;
    background: #fff;
    border: 1px solid rgba(56, 85, 86, 0.25);
    border-radius: 10px;
    box-sizing: border-box;
}

.og-comments-panel__input::placeholder,
.og-comments-panel__textarea::placeholder {
    color: #8a847a;
    opacity: 1;
}

.og-comments-panel__textarea {
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 760px) {
    .og-comments-panel__identity-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.og-comments-panel__submit {
    padding: 12px 28px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #385556;
    border: none;
    border-radius: 12px;
    cursor: pointer;
}

.og-comments-panel__submit:hover {
    background: #2f4748;
}

.og-comments-panel__form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.og-comments-panel__reply-meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(56, 85, 86, 0.08);
    border: 1px solid rgba(56, 85, 86, 0.2);
}

.og-comments-panel__reply-text,
.og-comments-panel__reply-target {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.og-comments-panel__reply-text {
    color: #5c574f;
}

.og-comments-panel__reply-target {
    color: #1E1E1A;
    font-weight: 600;
}

.og-comments-panel__reply-cancel {
    border: none;
    background: transparent;
    padding: 0;
    margin-left: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #385556;
    cursor: pointer;
    text-decoration: underline;
}

.og-comments-panel__reply-meta[hidden] {
    display: none !important;
}

.og-comments-panel__more[hidden] {
    display: none !important;
}

.og-comments-panel__status {
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #5c574f;
    margin: 16px 0 0;
    min-height: 0;
}

.og-comments-panel__status[hidden] {
    display: none;
}

/* Под подгружаемыми статьями — те же отступы, без дублирования огромного верхнего поля первого блока */
.og-article__related--stacked {
    margin-top: 24px;
    margin-bottom: 56px;
}

.og-article__related {
    margin-top: 40px;
    margin-bottom: 80px;
}

.og-article__related-title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: #1E1E1A;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 40px;
}

.og-article__related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.og-article-card {
    text-decoration: none;
    color: inherit;
}

.og-article-card__thumb {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.og-article-card__img {
    width: 100%;
    height: 188px;
    object-fit: cover;
    display: block;
}

.og-article-card__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1E1E1A;
    line-height: 1.3;
    transition: color 0.2s ease;
}

.og-article-card:hover .og-article-card__title {
    color: #385556;
}

/* Средние ширины: плотнее меню, но единый ритм column-gap */
@media (max-width: 1280px) {
    .og-nav {
        column-gap: clamp(14px, 1.8vw, 26px);
        padding-inline-end: clamp(12px, 2vw, 24px);
    }
}

@media (max-width: 1140px) {
    .og-nav {
        column-gap: clamp(10px, 1.3vw, 20px);
        padding-inline-end: clamp(10px, 1.8vw, 20px);
    }

    .og-nav__link {
        font-size: clamp(15px, 1.02vw, 19px);
        letter-spacing: 0.06em;
    }

    .og-search:hover .og-search__input,
    .og-search:focus-within .og-search__input {
        width: min(260px, calc(100vw - 120px));
    }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .og-footer-mini__inner {
        padding: 14px 24px;
    }
    .og-header__inner { padding: 0 24px; gap: 16px; }
    .og-logo__img {
        height: clamp(104px, 21.3vw, 141px);
        max-width: min(100%, 946px);
    }
    .og-logo--brand .oldgeek-brand {
        --mark-height: clamp(132px, 23vw, 176px);
        --text-stack-natural: 228px;
    }
    .og-logo--brand .oldgeek-text-scaler {
        min-width: min(252px, 46vw);
    }
    .og-nav__link {
        font-size: clamp(15px, 1.65vw, 19px);
        padding: 9px 0;
    }
    .og-nav {
        column-gap: clamp(12px, 1.8vw, 22px);
        padding-inline-end: clamp(10px, 2vw, 18px);
    }
    .og-search:hover .og-search__input,
    .og-search:focus-within .og-search__input {
        width: 240px;
    }
    .og-card__grid {
        grid-template-columns: 1fr;
    }
    .og-card__img {
        max-height: 560px;
    }
    .og-card__media--placeholder {
        min-height: 560px;
    }
    .og-article__hero-img {
        max-height: min(101.5vh, 770px);
    }
    .og-article__hero--from-content img {
        height: 630px;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content img {
        height: 100%;
        aspect-ratio: unset;
    }
    .og-article__related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .og-footer-mini__inner {
        padding: 12px 16px;
    }
    .og-header {
        position: sticky;
        top: 0;
    }
    .og-header__inner {
        position: relative;
        align-items: center;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 8px;
    }

    .og-header-mobile-top-tagline {
        display: block;
        grid-column: 1 / -1;
        grid-row: 1;
        margin: 0 -24px 0 -24px;
        padding: 2px 12px 2px;
        font-family: "IBM Plex Sans", sans-serif;
        font-weight: 700;
        font-size: clamp(7px, calc((100vw - 40px) / 19), 14px);
        letter-spacing: -0.045em;
        line-height: 1.05;
        text-transform: uppercase;
        text-align: center;
        color: #000000;
        white-space: nowrap;
    }

    .og-header-mobile-menu-strip-rule {
        display: block;
        grid-column: 1 / -1;
        grid-row: 2;
        align-self: end;
        height: 0;
        border-bottom: 2px solid #E5E0D5;
        margin-left: -24px;
        margin-right: -24px;
        width: auto;
        min-width: 0;
        justify-self: stretch;
    }

    .og-logo {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        align-items: center;
        position: relative;
        z-index: 2;
    }

    /* Только мобилка: logomob (picture или один PNG) вместо марки + слоганов + wordmark */
    .og-logo--brand .og-logo__mob-wrap {
        display: block;
        line-height: 0;
        max-width: min(100%, calc(100vw - 132px));
    }

    .og-logo--brand .og-logo__mob-wrap .og-logo__mob,
    .og-logo--brand > img.og-logo__mob {
        display: block;
        line-height: 0;
        width: auto !important;
        height: auto !important;
        max-height: clamp(56px, 16vw, 88px);
        max-width: min(100%, calc(100vw - 132px));
        object-fit: contain;
    }

    .og-logo--brand .oldgeek-brand {
        display: none !important;
    }

    /* Под шапкой: небольшой зазор (фон страницы) + такая же линия, как border-bottom у .og-header */
    .og-header-mobile-extra-rule {
        display: block;
        padding: 4px 16px 0;
        border-bottom: 2px solid #E5E0D5;
    }

    .og-header-mobile-extra-rule__line {
        margin: 0 0 6px;
        padding: 0;
        font-family: "IBM Plex Sans", sans-serif;
        font-weight: 700;
        font-size: clamp(8px, calc((100vw - 40px) / 20.2), 14px);
        letter-spacing: -0.045em;
        line-height: 1.05;
        text-transform: uppercase;
        text-align: center;
        color: #000000;
        white-space: nowrap;
    }

    .og-header__end {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        margin-inline-start: 0;
        gap: 2px;
        align-self: center;
        position: relative;
        z-index: 2;
    }

    .og-header__end .og-nav-toggle {
        display: inline-flex;
    }

    .og-nav {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        align-self: stretch;
        justify-self: stretch;
        min-height: 0;
        margin: 0;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        column-gap: 0;
        row-gap: 0;
        padding: 0 0 28px;
        padding-inline: 16px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: auto;
        max-width: none;
        height: min(100vh, 100dvh);
        max-height: 100dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
        box-sizing: border-box;
        background: #fafafa;
        box-shadow: -4px 0 28px rgba(0, 0, 0, 0.12);
        z-index: 1;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.28s ease, visibility 0.28s ease;
    }

    .og-nav__panel-head {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        flex-shrink: 0;
        margin: 0 -16px 0;
        padding: calc(10px + env(safe-area-inset-top, 0px)) calc(8px + env(safe-area-inset-right, 0px)) 12px calc(8px + env(safe-area-inset-left, 0px));
        border-bottom: 1px solid #e8e4dc;
    }

    .og-nav__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: transparent;
        color: #385556;
        cursor: pointer;
        flex-shrink: 0;
    }

    .og-nav__close:hover {
        background: rgba(56, 85, 86, 0.1);
    }

    .og-nav__close:focus-visible {
        background: rgba(56, 85, 86, 0.1);
        outline: none;
        box-shadow: 0 0 0 2px rgba(56, 85, 86, 0.35);
    }

    .og-header--menu-open .og-nav {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
        z-index: 520;
    }

    .og-nav__item {
        width: 100%;
        flex-shrink: 0;
        border-bottom: 1px solid #e8e4dc;
        padding-block: 4px;
    }

    .og-nav__link {
        width: 100%;
        justify-content: flex-start;
        padding: 14px 4px;
        font-size: 18px;
    }

    .og-nav__link--icon {
        min-width: 0;
        width: 100%;
        justify-content: flex-start;
        padding: 14px 4px;
    }

    .og-nav .og-dropdown {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 4px 0 8px;
        padding: 12px;
        box-shadow: none;
        border: 1px solid #e5e0d5;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }

    /* Мобилка: только класс (клик), иначе focus-within из поля поиска не даёт свернуть повторным кликом */
    .og-nav__item.og-nav__item--dropdown-open .og-dropdown {
        display: block;
        transform: none;
        left: auto;
        right: auto;
        top: auto;
    }

    .og-nav__item--dropdown-open .og-nav__chev {
        transform: rotate(180deg);
    }

    .og-nav__item::after {
        display: none;
    }

    .og-search {
        width: 52px;
        height: 52px;
        flex: 0 0 52px;
        align-self: center;
        padding-bottom: 0;
    }
    .og-search__btn {
        width: 52px;
        height: 52px;
    }
    .og-search__btn svg {
        width: 22px;
        height: 22px;
    }
    .og-search__input {
        height: 52px;
    }
    .og-search:hover .og-search__input,
    .og-search:focus-within .og-search__input {
        padding: 0 52px 0 16px;
    }
    .og-logo__img {
        height: clamp(95px, 28.4vw, 133px);
        max-width: min(100%, 92vw);
    }
    .og-main__inner {
        padding: 24px 16px;
    }
    .og-country-intro__inner {
        padding: 20px 18px 22px;
    }
    .og-article__hero-img {
        max-height: min(91vh, 525px);
    }
    .og-article__hero--from-content img {
        height: 420px;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__media {
        height: auto;
        min-height: 0;
        max-height: none;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero,
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content {
        position: static;
        height: auto;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content img {
        height: auto;
        aspect-ratio: 16 / 10;
    }
    .og-article__related-grid {
        grid-template-columns: 1fr;
    }

    /* Детальная статья: дата строкой, страна+тема сгруппированы слева (без «разъезда» по flex-wrap) */
    .og-article__meta {
        gap: 10px;
        margin-bottom: 18px;
    }

    .og-article__date {
        flex: 0 0 100%;
        width: 100%;
    }

    .og-article__badges {
        flex: 1 1 100%;
        min-width: 0;
        gap: 8px;
    }

    .og-article__badge {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* ---------- WordPress: лента и «Читайте также» ---------- */
.og-feed-cards {
    display: block;
}

.og-feed-empty {
    text-align: center;
    padding: 48px 16px;
    color: #4a4641;
    font-family: 'Merriweather', serif;
}

.og-article-card__thumb--empty {
    min-height: 154px;
    background: linear-gradient(135deg, #e5e0d5 0%, #fafafa 100%);
    border-radius: 16px;
}

.entry-content::after {
    content: '';
    display: table;
    clear: both;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

.entry-content iframe {
    max-width: 100%;
}

/* Лента (контент из JS): повышенная специфичность — стили ядра WP часто обнуляют фон/рамку у вложенных блоков */
#ogFeedCards .og-comment {
    position: relative;
    background: linear-gradient(165deg, rgba(56, 85, 86, 0.06) 0%, rgba(56, 85, 86, 0.03) 100%);
    border: 1px solid rgba(56, 85, 86, 0.14);
    border-left: 3px solid #385556;
    border-radius: 12px;
    padding: 16px 18px 18px 16px;
    overflow: visible;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

#ogFeedCards .og-comment__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

#ogFeedCards .og-comment__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-sizing: border-box;
}

#ogFeedCards .og-comment__meta {
    display: flex;
    flex-direction: column;
    gap: 0;
}

#ogFeedCards .og-comment__label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #385556;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

#ogFeedCards .og-comment__rule {
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 6px;
    border-radius: 1px;
    background: rgba(56, 85, 86, 0.35);
}

#ogFeedCards .og-comment__text {
    font-family: 'Merriweather', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.75;
    color: #4a4641;
    margin: 0;
    padding: 0;
    border: none;
    display: block;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ---------- Пасхалка «КЛИК» на странице «Где я» (contacts) ---------- */
.og-click-easter-word {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
    color: #385556;
    font-weight: 700;
}
.og-click-easter-word:hover {
    color: #2a4142;
}

body.og-easter-modal--open {
    overflow: hidden;
}

.og-easter-modal[hidden] {
    display: none !important;
}

.og-easter-modal:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.og-easter-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 30, 26, 0.55);
    cursor: pointer;
}

.og-easter-modal__dialog {
    position: relative;
    z-index: 1;
    max-width: 560px;
    width: 100%;
    max-height: min(88vh, 720px);
    overflow: auto;
    padding: 22px 24px 26px;
    border-radius: 16px;
    border: 1px solid rgba(56, 85, 86, 0.25);
    background: #fafafa;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.og-easter-modal__title {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: #1e1e1a;
    margin: 0 0 14px;
}

.og-easter-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(56, 85, 86, 0.1);
    color: #385556;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
}

.og-easter-modal__close:hover {
    background: rgba(56, 85, 86, 0.18);
}

.og-easter-modal__close:focus-visible {
    outline: 2px solid #385556;
    outline-offset: 2px;
}

.og-easter-modal__p1,
.og-easter-modal__p2 {
    font-family: 'Merriweather', serif;
    font-size: clamp(16px, 2.1vw, 18px);
    line-height: 1.7;
    color: #4a4641;
    margin: 0 0 1rem;
}

.og-easter-modal__warn-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 1rem;
}

.og-easter-modal__warn-phase1,
.og-easter-modal__warn-phase2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: clamp(1rem, 2.4vw, 1.25rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #b45309;
    text-align: center;
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 2px dashed rgba(180, 83, 9, 0.55);
    background: rgba(255, 243, 220, 0.95);
}

.og-easter-modal__warn-phase1.og-easter-modal__warn--blink {
    animation: og-easter-warn-blink 0.55s ease-in-out infinite;
}

@keyframes og-easter-warn-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.28;
    }
}

@media (prefers-reduced-motion: reduce) {
    .og-easter-modal__warn-phase1.og-easter-modal__warn--blink {
        animation: none;
    }
}

.og-easter-modal__p2 {
    margin-bottom: 0;
    padding-top: 4px;
    border-top: 1px solid #e5e0d5;
}

/* =====================================================================
   Вид карточки (план VID-KARTOCHKI, Фаза 1): верхний грид «фото + досье»,
   заголовок ниже на всю ширину, мета-футер. Визуал досье — флаг страны
   события (заглушка; карта подключится в Фазе 3).
   Разметка общая для ленты (feed-card.php / home-feed.js) и детальной
   (article-main.php).
   ===================================================================== */

:root {
    --og-card-top-row-height: 382px;
    --og-article-top-row-height: 500px;
}

/* ---- Лента: верх карточки ---- */
.og-card__top {
    display: grid;
    grid-template-columns: minmax(0, 720px) minmax(0, 1fr);
    grid-template-rows: var(--og-card-top-row-height);
    gap: 22px;
    align-items: stretch;
    margin-bottom: 22px;
}

.og-card__top .og-card__aside {
    height: 100%;
    min-height: 0;
    max-height: var(--og-card-top-row-height);
    align-self: stretch;
}

.og-card__top .og-card__media {
    align-self: stretch;
    height: 100%;
    max-height: var(--og-card-top-row-height);
    min-height: 0;
    border-radius: 12px;
    overflow: hidden;
}

.og-card__top .og-card__img {
    width: 100%;
    height: 100%;
    max-height: 100%;
    aspect-ratio: unset;
    object-fit: cover;
    border-radius: 12px;
}

.og-card__top .og-card__media--placeholder {
    height: var(--og-card-top-row-height);
    min-height: 0;
}

/* Нет досье (нет данных о стране) — фото на всю ширину, обычная пропорция */
.og-card__top > .og-card__media:only-child {
    grid-column: 1 / -1;
    height: auto;
}

.og-card__top > .og-card__media:only-child .og-card__img {
    height: auto;
    aspect-ratio: 160 / 147;
    max-height: 560px;
}

/* Вертикальный ритм прямых детей карточки (раньше задавал .og-card__body) */
.og-card .og-card__title {
    margin: 0 0 16px;
}

.og-card > .og-comment {
    margin: 0 0 20px;
}

.og-card > .og-card__excerpt {
    margin: 0 0 16px;
}

/* ---- Досье (правый блок верха) ---- */
.og-card__aside {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(56, 85, 86, 0.16);
    border-radius: 12px;
    overflow: hidden;
    background: #fbfaf6;
}

.og-card__aside-visual {
    position: relative;
    flex: 1 1 auto;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: #ece9e2; /* тихий фон под будущую карту */
}

.og-card__aside-flag {
    max-width: 62%;
    max-height: 72%;
    width: auto;
    height: auto;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

/* Региональная карта страны (готовый PNG, Mapbox) — заполняет визуальный блок */
.og-card__aside-visual--map {
    padding: 0;
    background: #e9eceb;
    overflow: hidden;
}

/* Карта без дублирующего блока «Источник» — на всю высоту досье (= высота фото) */
.og-card__aside--map-only {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
}

.og-card__aside--map-only .og-card__aside-visual--map {
    flex: unset;
    height: 100%;
    min-height: 0;
}

.og-card__map-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: calc(100% - 20px);
    padding: 6px 10px 6px 8px;
    border-radius: 8px;
    background: rgba(251, 250, 246, 0.94);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    color: #1a1a1a;
}

.og-card__map-badge-flag {
    flex: 0 0 auto;
    width: 24px;
    height: 17px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.og-card__map-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.04);
    transform-origin: center center;
}

.og-card__aside-info {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 44px;
    padding: 15px 18px;
}

.og-card__aside-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.og-card__aside-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #7c8a82;
}

.og-card__aside-value {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    color: #2b3a36;
}

.og-card__aside-flag-mini {
    width: 30px;
    height: 21px;
    border-radius: 3px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ---- Мета-футер: [дата] · категория · комментарии ---- */
.og-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(56, 85, 86, 0.14);
    color: #6a766f;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.2;
}

.og-card__footer-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.og-card__footer-item svg {
    flex-shrink: 0;
    color: #7c8a82;
}

.og-card__footer-item a {
    color: #385556;
    text-decoration: none;
}

.og-card__footer-item a:hover {
    text-decoration: underline;
}

/* ---- Детальная: верх «фото + досье» (выше ленты — герой читается крупнее) ---- */
.og-article__top:not(.og-article__top--no-aside) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    grid-template-rows: minmax(0, var(--og-article-top-row-height));
    gap: 22px;
    align-items: stretch;
    margin-bottom: 32px;
}

.og-article__top:not(.og-article__top--no-aside) > .og-article__media,
.og-article__top:not(.og-article__top--no-aside) > .og-card__aside {
    min-height: 0;
}

.og-article__top:not(.og-article__top--no-aside) .og-article__media {
    position: relative;
    min-width: 0;
    height: var(--og-article-top-row-height);
    min-height: var(--og-article-top-row-height);
    max-height: var(--og-article-top-row-height);
    overflow: hidden;
    border-radius: 12px;
}

.og-article__top:not(.og-article__top--no-aside) .og-card__aside {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: var(--og-article-top-row-height);
    min-height: var(--og-article-top-row-height);
    max-height: var(--og-article-top-row-height);
    align-self: stretch;
    overflow: hidden;
}

.og-article__top:not(.og-article__top--no-aside) .og-card__aside-visual {
    flex: unset;
    min-height: 0;
    height: 100%;
    padding: 0;
}

.og-article__top:not(.og-article__top--no-aside) .og-card__aside-visual--map {
    min-height: 0;
}

.og-article__top:not(.og-article__top--no-aside) .og-card__aside-info {
    flex: unset;
}

/* Герой в верхнем гриде: заполняет всю колонку (перебивает height:875px у from-content) */
.og-article__top:not(.og-article__top--no-aside) .og-article__hero,
.og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content {
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    box-shadow: none;
    border-radius: 0;
}

.og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content figure,
.og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content p {
    margin: 0;
    width: 100%;
    height: 100%;
}

.og-article__top:not(.og-article__top--no-aside) .og-article__hero-img,
.og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    max-width: none;
    aspect-ratio: unset;
    object-fit: cover;
    display: block;
}

.og-article__top--no-hero:not(.og-article__top--no-aside) {
    grid-template-columns: 1fr;
}

/* ---- Адаптив ---- */
@media (max-width: 1024px) {
    .og-card__top {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .og-card__top .og-card__media,
    .og-card__top .og-card__media--placeholder {
        height: auto;
        max-height: none;
    }
    .og-card__top .og-card__aside {
        max-height: none;
    }
    .og-card__top .og-card__img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 900px) {
    .og-article__top:not(.og-article__top--no-aside) {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__media {
        height: auto;
        min-height: 0;
        max-height: none;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-card__aside {
        height: auto;
        min-height: 0;
        max-height: none;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero,
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content {
        position: static;
        height: auto;
    }
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero-img,
    .og-article__top:not(.og-article__top--no-aside) .og-article__hero--from-content img {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 560px) {
    .og-card__aside-info {
        gap: 12px 24px;
    }
}
