/* 1PNZ.ru — оформление сайта (редизайн 2026). Единственный файл стилей публичной части.
   Шрифты — /static/fonts/fonts.css (текст — Golos Text, заголовки — Literata), иконки — /static/img/icons.svg,
   скрипты — /static/js/site.js. Адреса файлов — с версией по времени изменения (Asset::url).
   Характер — «газета»: тёплая бумага, заголовки с засечками, линейки, газетная шапка с логотипом по центру,
   лента-таймлайн. Цвета — зелёный знака логотипа и красный «.ru».

   1. Токены и сброс          5. Карточки и строки списков    9. Статья, галерея
   2. Шапка, меню, панель     6. Главная                      10. Служебные страницы, форма
   3. Подвал, cookie          7. Лента, читаемое, подписка    11. Адаптив
   4. Общие блоки             8. Списки, навигация, поиск                                       */

/* ================================================================ 1. Токены и сброс */
:root {
    --font: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-head: "Literata", "Literata Fallback", Georgia, "Times New Roman", serif;

    --green: #0f6b37;          /* 6,6:1 на бумаге — ссылки, рубрики, акценты */
    --green-dark: #0a4f28;
    --green-soft: #e3eee3;
    --deep: #0d3622;           /* верхняя строка, подвал, тёмные блоки */
    --deep-2: #12472d;
    --lime: #c4ec74;           /* акцент на тёмном */
    --red: #d7261e;            /* «Срочно», «Тема дня», «.ru» */

    --ink: #171a16;            /* текст и линейки */
    --ink-2: #3b4039;
    --muted: #666b63;          /* 5,3:1 на бумаге */
    --paper: #f6f3ec;          /* фон страницы — тёплая бумага */
    --surface: #fffdf8;        /* подложки статьи и блоков */
    --line: #e1dccf;
    --field: #ece7db;

    --radius: 4px;
    --radius-lg: 8px;
    --shadow: 0 1px 2px rgba(40, 32, 12, .06), 0 6px 24px rgba(40, 32, 12, .06);

    --container: 1240px;
    --gutter: clamp(16px, 3vw, 32px);
    --nav-h: 52px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 16px/1.45 var(--font);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, blockquote, dl, dd {
    margin: 0;
}

h1, h2, h3, h4 {
    font-size: inherit;
    font-weight: inherit;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    vertical-align: bottom;
}

img {
    max-width: 100%;
    height: auto;
    border: 0;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + 2 * var(--gutter));
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    font: 600 15px/1 var(--font);
}

.skip-link:focus {
    top: 12px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

.icon-button:hover {
    background: var(--field);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 22px;
    background: var(--green);
    color: #fff;
    font: 600 15px/1 var(--font);
    cursor: pointer;
    transition: background-color .15s ease;
}

.button:hover {
    background: var(--green-dark);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border: 1.5px solid currentColor;
    border-radius: 4px;
    font: 700 12px/1.4 var(--font);
    vertical-align: 1px;
}

/* ================================================================ 2. Шапка, меню, мобильная панель */
/* Верхняя строка: сервисы и соцсети */
.topbar {
    background: var(--deep);
    color: #d7e3d6;
    font: 500 13.5px/1 var(--font);
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 40px;
}

.topbar__links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 22px;
}

.topbar__links a:hover {
    color: var(--lime);
}

.topbar__end {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar .age-badge {
    border-color: rgba(215, 227, 214, .7);
    color: #d7e3d6;
    font-size: 11.5px;
}

.topbar__social {
    display: flex;
    gap: 4px;
}

.topbar .social-link {
    width: 30px;
    height: 30px;
    background: transparent;
    color: #d7e3d6;
}

.topbar .social-link svg {
    width: 17px;
    height: 17px;
}

/* Шапка издания: логотип слева, поиск справа */
.site-header {
    position: relative;
    z-index: 50;
    background: var(--paper);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    min-height: 104px;
}

.site-header__logo {
    display: block;
    line-height: 0;
}

.site-header__logo img {
    display: block;
    width: auto;
    height: 58px;
}

.site-header__logo .logo-short {
    display: none;
}

.site-header__actions {
    display: none;
    justify-self: end;
    gap: 2px;
}

/* Поиск */
.site-search {
    position: relative;
    justify-self: end;
    width: 100%;
    max-width: 300px;
}

.site-search__input {
    display: block;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 46px 0 18px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--surface);
    color: var(--ink);
    font: 400 15px/1 var(--font);
    -webkit-appearance: none;
    appearance: none;
}

.site-search__input::placeholder {
    color: var(--muted);
}

.site-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.site-search__input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15, 107, 55, .14);
}

.site-search__button {
    position: absolute;
    top: 3px;
    right: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.site-search__button:hover {
    color: var(--green);
}

/* Соцсети: знак в круге, при наведении — цвет соцсети */
.site-social,
.site-drawer__social,
.site-footer__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--field);
    color: var(--ink-2);
    transition: background-color .15s ease, color .15s ease;
}

.social-link svg {
    display: block;
    width: 20px;
    height: 20px;
}

.social-link:hover,
.social-link:focus-visible {
    color: #fff;
}

.social-link--vk:hover, .social-link--vk:focus-visible { background: #0077ff; }
.social-link--ok:hover, .social-link--ok:focus-visible { background: #ee8208; }
.social-link--telegram:hover, .social-link--telegram:focus-visible { background: #229ed9; }
.social-link--max:hover, .social-link--max:focus-visible { background: #6b3ff0; }
.social-link--rss:hover, .social-link--rss:focus-visible { background: #f26522; }

/* Меню разделов: газетная строка между линейками, закрепляется при прокрутке */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 45;
    background: var(--paper);
    transition: box-shadow .2s ease, background-color .2s ease;
}

.site-nav__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    height: var(--nav-h);
}

/* Линейки — по ширине содержимого, без полей контейнера */
.site-nav__inner::before,
.site-nav__inner::after {
    content: "";
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    pointer-events: none;
}

.site-nav__inner::before {
    top: 0;
    border-top: 3px double var(--ink);
}

.site-nav__inner::after {
    bottom: 0;
    border-bottom: 1px solid var(--ink);
}

.site-nav.is-stuck {
    background: var(--surface);
    box-shadow: 0 2px 14px rgba(40, 32, 12, .12);
}

.site-nav.is-stuck .site-nav__inner::before,
.site-nav.is-stuck .site-nav__inner::after {
    border-color: transparent;
}

/* Знак сайта слева — только у закреплённого меню */
.site-nav__mark {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    opacity: 0;
    transform: translate(-6px, -50%);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.site-nav__mark img {
    display: block;
    width: 30px;
    height: 30px;
}

.site-nav.is-stuck .site-nav__mark {
    opacity: 1;
    transform: translate(0, -50%);
    pointer-events: auto;
}

.site-nav__list {
    display: flex;
    align-items: stretch;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav__list::-webkit-scrollbar {
    display: none;
}

.site-nav__list li {
    flex: none;
}

.site-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
    color: var(--ink);
    font: 700 13.5px/1 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav__link::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: -1px;
    height: 3px;
    background: var(--green);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.site-nav__link:hover {
    color: var(--green);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
    transform: scaleX(1);
}

.site-nav__link.is-active {
    color: var(--green);
}

/* Подрубрики текущего раздела */
.site-subnav {
    border-bottom: 1px solid var(--line);
}

.site-subnav__list {
    display: flex;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-subnav__list::-webkit-scrollbar {
    display: none;
}

.site-subnav__list li {
    flex: none;
}

.site-subnav__link {
    display: block;
    padding: 6px 14px;
    border-radius: 16px;
    color: var(--ink-2);
    font: 500 14px/1.2 var(--font);
    white-space: nowrap;
}

.site-subnav__link:hover {
    color: var(--green);
}

.site-subnav__link.is-active {
    background: var(--ink);
    color: var(--paper);
}

/* Мобильная панель меню */
.site-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    justify-content: flex-end;
}

.site-drawer[hidden] {
    display: none;
}

.site-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13, 30, 20, .55);
    animation: drawer-fade .2s ease-out;
}

.site-drawer__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(380px, 100%);
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    box-shadow: -8px 0 32px rgba(13, 30, 20, .25);
    animation: drawer-in .22s ease-out;
}

.site-drawer__head {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 8px 0 20px;
    border-bottom: 3px double var(--ink);
}

.site-drawer__logo img {
    display: block;
    width: auto;
    height: 34px;
}

.site-drawer .site-search--drawer {
    flex: none;
    max-width: none;
    margin: 16px 20px 8px;
}

.site-drawer__nav {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
}

.site-drawer__link,
.site-drawer__group > summary {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 0 20px;
    border-left: 3px solid transparent;
    color: var(--ink);
    font: 600 17px/1.2 var(--font-head);
    cursor: pointer;
}

.site-drawer__link:hover,
.site-drawer__group > summary:hover {
    background: var(--field);
}

.site-drawer__link.is-active,
.site-drawer__group.is-active > summary {
    border-left-color: var(--green);
    color: var(--green);
}

.site-drawer__group > summary {
    justify-content: space-between;
    list-style: none;
}

.site-drawer__group > summary::-webkit-details-marker {
    display: none;
}

.site-drawer__group > summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin: -4px 4px 0 12px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.site-drawer__group[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.site-drawer__sub {
    padding: 2px 0 10px;
}

.site-drawer__sub a {
    display: block;
    padding: 9px 20px 9px 36px;
    color: var(--ink-2);
    font: 400 16px/1.25 var(--font);
}

.site-drawer__sub a:hover {
    background: var(--field);
}

.site-drawer__sub a.is-active,
.site-drawer__sub a.site-drawer__all {
    color: var(--green);
    font-weight: 600;
}

.site-drawer__sep {
    height: 1px;
    margin: 8px 20px;
    background: var(--line);
}

.site-drawer__social {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--line);
}

html.is-drawer-open,
html.is-drawer-open body {
    overflow: hidden;
}

@keyframes drawer-in {
    from { transform: translateX(100%); }
    to { transform: none; }
}

@keyframes drawer-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ================================================================ 3. Основная часть, подвал, «Наверх», cookie */
.site-main {
    display: block;
    padding-top: 28px;
}

.site-main > .mainbox {
    display: flow-root;
}

.site-footer {
    margin-top: 56px;
    background: var(--deep);
    color: #d4e0d3;
    font: 400 15px/1.6 var(--font);
}

.site-footer a:hover {
    color: #fff;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 40px;
    padding-top: 48px;
    padding-bottom: 36px;
}

.site-footer__logo {
    display: inline-block;
    line-height: 0;
}

.site-footer__logo img {
    display: block;
    width: auto;
    height: 44px;
}

.site-footer p {
    margin: 0 0 12px;
}

.site-footer__about > p {
    margin: 16px 0 20px;
    color: #a3b5a6;
    font: 600 17px/1.4 var(--font-head);
}

.site-footer .social-link {
    background: rgba(255, 255, 255, .08);
    color: #d4e0d3;
}

.site-footer__title {
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
    color: var(--lime);
    font: 700 13px/1.2 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-footer__nav ul {
    columns: 2;
    column-gap: 24px;
}

.site-footer li {
    margin: 0 0 10px;
    break-inside: avoid;
}

.site-footer__contacts p {
    margin-bottom: 14px;
}

.site-footer__label {
    display: block;
    color: #a3b5a6;
    font-size: 13px;
    line-height: 1.4;
}

.site-footer__legal {
    display: grid;
    gap: 10px;
    padding-bottom: 28px;
    color: #a3b5a6;
    font-size: 13px;
    line-height: 1.55;
}

.site-footer__legal p {
    max-width: 1100px;
    margin: 0;
}

.site-footer__legal > p:first-child {
    max-width: none;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.site-footer__legal a {
    color: #d4e0d3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer__legal a:hover {
    text-decoration: none;
}

.site-footer__copy {
    color: #d4e0d3;
}

.site-footer__copy .age-badge {
    margin-right: 6px;
}

.site-footer__counters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 31px;
}

.site-footer__counters a {
    display: inline-block;
    line-height: 0;
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: calc(20px + var(--to-top-offset, 0px));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 4px 16px rgba(13, 30, 20, .25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background-color .15s ease;
}

.to-top[hidden] {
    display: none;
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.to-top:hover {
    background: var(--green);
}

/* Cookie: карточка в углу, не полоса во всю ширину */
.cookie {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 2000;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px 14px;
    align-items: start;
    width: min(420px, calc(100% - 40px));
    padding: 18px 18px 16px;
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--green);
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 10px 40px rgba(13, 30, 20, .25);
    animation: cookie-in .3s ease-out;
}

.cookie[hidden] {
    display: none;
}

.cookie__icon {
    color: #c98a3d;
}

.cookie__text {
    font: 400 14.5px/1.5 var(--font);
}

.cookie__text a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie__ok {
    grid-column: 2;
    justify-self: start;
    height: 40px;
}

@keyframes cookie-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}

/* ================================================================ 4. Общие блоки: сетка, заголовки разделов, реклама */
.layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 40px;
    align-items: start;
    margin-bottom: 48px;
}

.layout__main,
.layout__aside {
    display: flex;
    flex-direction: column;
    gap: 36px;
    min-width: 0;
}

.layout__aside {
    position: relative;
}

/* Колонка короче соседней — едет вместе с прокруткой и остаётся на виду (top считает site.js: длинная колонка
   сначала прокручивается до конца и закрепляется у нижнего края экрана) */
@media (min-width: 1024px) {
    .layout__aside[data-sticky-aside] {
        position: sticky;
        top: calc(var(--nav-h) + 20px);
    }
}

/* Колонки разделены тонкой вертикальной линейкой во всю высоту раскладки (посередине промежутка) */
.layout::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    right: calc(330px + 20px);
    width: 1px;
    background: var(--line);
    pointer-events: none;
}

.grid {
    display: grid;
    gap: 32px 26px;
}

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.block {
    margin-bottom: 48px;
}

/* Заголовок раздела: жирная линейка сверху, название с засечками, «Все» справа */
.block-head,
.block > .block-title,
.top-list > .block-title,
.partners > .block-title,
.contacts-card > .block-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 18px;
    margin-bottom: 20px;
    padding-top: 10px;
    border-top: 3px solid var(--ink);
}

/* Блок в самом верху правой колонки (десктоп) — без линейки: заголовок стоит вровень с началом левой колонки,
   над которой уже двойная линейка. Пустые рекламные места не выводятся, так что первым идёт сам блок */
@media (min-width: 1024px) {
    .layout__aside > :first-child > .block-head,
    .layout__aside > :first-child > .block-title {
        padding-top: 0;
        border-top: 0;
    }

    /* …но если левая колонка начинается с заголовка раздела с линейкой (главная) — место линейки сохраняем,
       чтобы заголовки обеих колонок стояли на одной высоте */
    .layout:has(> .layout__main > :first-child > .block-head) > .layout__aside > :first-child > .block-title {
        padding-top: 13px;
    }
}

.block-head .block-title {
    min-width: 0;
    padding: 0;
    border: 0;
}

.block-title {
    color: var(--ink);
    font: 700 26px/1.15 var(--font-head);
    letter-spacing: -.01em;
}

.block-title a:hover {
    color: var(--green);
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    color: var(--green);
    font: 700 13px/1.2 var(--font);
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.more-link::after {
    content: "";
    flex: none;
    width: 15px;
    height: 10px;
    margin-top: -1px; /* по центру заглавных букв, а не всей строки */
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10'%3E%3Cpath d='M0 5h13M9 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 10'%3E%3Cpath d='M0 5h13M9 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .15s ease;
}

.more-link:hover::after {
    transform: translateX(3px);
}

/* Рекламные места */
.ad-slot,
.ad-slot--side,
.ad-slot--wide {
    display: flex;
    justify-content: center;
    margin: 0;
    line-height: 0;
}

.layout + .ad-slot--wide,
.block + .ad-slot--wide {
    margin-bottom: 48px;
}

.ad-slot__item {
    position: relative;
    max-width: 100%;
}

.ad-slot__link {
    display: block;
}

.ad-slot__item img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
}

.ad-slot__cover {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ad-slot__item--html {
    line-height: normal;
}

/* Текст из редактора (статьи, спецпроекты, статические страницы) */
.rich-text {
    color: var(--ink);
    font: 400 18.5px/1.68 var(--font);
    overflow-wrap: break-word;
}

.rich-text > * + * {
    margin-top: 1em;
}

.rich-text h2,
.rich-text h3,
.rich-text h4 {
    margin-top: 1.6em;
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.25;
}

.rich-text h2 { font-size: 25px; }
.rich-text h3 { font-size: 21px; }
.rich-text h4 { font-size: 19px; }

.rich-text a {
    color: var(--green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.rich-text a:hover {
    color: var(--red);
}

.rich-text ul { padding-left: 1.4em; list-style: disc; }
.rich-text ol { padding-left: 1.4em; list-style: decimal; }

.rich-text li + li {
    margin-top: .4em;
}

.rich-text blockquote,
.rich-text .quotes {
    padding: 6px 0 6px 24px;
    border-left: 3px solid var(--green);
    color: var(--ink-2);
    font: 600 20px/1.5 var(--font-head);
}

.rich-text .question {
    font-weight: 700;
}

.rich-text img {
    max-width: 100%;
    height: auto !important;
    border-radius: var(--radius);
}

.rich-text iframe,
.rich-text video {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
}

.rich-text table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 16px;
}

.rich-text td,
.rich-text th {
    padding: 8px 12px;
    border: 1px solid var(--line);
    vertical-align: top;
}

.rich-text strong,
.rich-text b {
    font-weight: 700;
}

/* ================================================================ 5. Карточки и строки списков */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--field);
}

.card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .25s ease;
}

.card:hover .card__media img {
    filter: brightness(1.06) saturate(1.06);
}

.card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 12px;
}

.card__rubric,
.meta__rubric {
    position: relative;
    z-index: 2;
    align-self: flex-start;
    color: var(--green);
    font: 700 12px/1.3 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.card__rubric:hover,
.meta__rubric:hover {
    color: var(--red);
}

.card__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    color: var(--red);
    font: 700 12px/1.2 var(--font);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.card__label::before {
    content: "";
    width: 22px;
    height: 2px;
    background: currentColor;
}

.card__title {
    color: var(--ink);
    font: 700 19px/1.27 var(--font-head);
    text-wrap: pretty;
}

.card__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Наведение на заголовок новости — по всему сайту одинаково: тонкое подчёркивание
   (карточки, строки, лента, популярное, новости партнёров) */
.card:hover .card__title a,
.row-card:hover .row-card__title a,
.feed__item a:hover,
.top-list__item a:hover,
.partners .mm-body__line a:hover span {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.card__lead {
    color: var(--ink-2);
    font: 400 16px/1.5 var(--font);
}

.card__date,
.meta {
    color: var(--muted);
    font: 500 13px/1.3 var(--font);
}

.card--sm .card__title {
    font-size: 17px;
}

.card--lg .card__title {
    font-size: 25px;
    line-height: 1.2;
}

.card__count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 14px;
    background: rgba(13, 30, 20, .78);
    color: #fff;
    font: 600 13px/1.2 var(--font);
}

.media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #cfc8b6;
}

/* Строка списка */
.row-card {
    position: relative;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.row-card--text {
    grid-template-columns: minmax(0, 1fr);
}

.row-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--field);
}

.row-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.row-card__body {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 12px;
}

.row-card__title {
    color: var(--ink);
    font: 700 20px/1.27 var(--font-head);
}

.row-card__lead {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-2);
    font: 400 15.5px/1.5 var(--font);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ================================================================ 6. Главная */
/* «Срочно»: красная плашка */
.hot {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
    padding: 12px 18px;
    border-left: 6px solid var(--red);
    background: #fbe9e6;
}

.hot__label {
    flex: none;
    color: var(--red);
    font: 800 13px/1.2 var(--font);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hot__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 28px;
    min-width: 0;
}

.hot__list a {
    color: #6d120d;
    font: 700 17px/1.35 var(--font-head);
}

.hot__list a:hover {
    text-decoration: underline;
}

.lead {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Тема дня: фото и заголовок рядом, а не заголовок на фото */
.card--hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ink);
}

.card--hero .card__media {
    aspect-ratio: 4 / 3;
}

.card--hero .card__body {
    gap: 14px;
    padding-top: 0;
}

.card--hero .card__title {
    font-size: clamp(24px, 2.1vw, 31px);
    line-height: 1.14;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.card--hero .card__lead {
    display: -webkit-box;
    overflow: hidden;
    font-size: 16.5px;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* Подписка: MAX и Telegram рядом, во всю ширину блока */
.promo-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.promo {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon body" "icon button";
    gap: 10px 16px;
    align-items: center;
    padding: 20px 22px;
    overflow: hidden;
    border-radius: 14px;
    color: #fff;
    isolation: isolate;
    transition: transform .2s ease, box-shadow .2s ease;
}

.promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(31, 23, 124, .25);
}

/* Фирменные цвета MAX — индиго и фиолетовый */
.promo--max {
    background: linear-gradient(120deg, #1f177c 0%, #4a2bd4 55%, #8f3fff 100%);
}

.promo--telegram {
    background: linear-gradient(120deg, #1d8fd0 0%, #2aabee 100%);
}

.promo--telegram:hover {
    box-shadow: 0 10px 28px rgba(29, 143, 208, .3);
}

.promo::after {
    content: "";
    position: absolute;
    right: -40px;
    top: -50px;
    z-index: -1;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.promo__icon {
    grid-area: icon;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #fff;
}

.promo--max .promo__icon { color: #5b2ef0; }
.promo--telegram .promo__icon { color: #229ed9; }

.promo__body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.promo__title {
    font: 700 19px/1.2 var(--font);
}

.promo__text {
    color: rgba(255, 255, 255, .86);
    font: 400 14px/1.4 var(--font);
}

.promo__button {
    grid-area: button;
    justify-self: start;
    padding: 8px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .18);
    font: 700 13px/1 var(--font);
    letter-spacing: .04em;
    transition: background-color .15s ease, color .15s ease;
}

.promo:hover .promo__button {
    background: #fff;
    color: #1f177c;
}

.promo--telegram:hover .promo__button {
    color: #1d8fd0;
}

/* Разделы на главной: подрубрики и «Все новости» — на одной линии с буквами заголовка (по базовой линии) */

.section-row__subs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-right: auto;
}

.section-row__subs a {
    color: var(--muted);
    font: 500 14px/1.3 var(--font);
}

.section-row__subs a:hover {
    color: var(--green);
}

/* Важное: светло-зелёная подложка с красным знаком «!» и сводка в две колонки — миниатюра слева, текст справа.
   Отличается от сеток карточек в разделах; вся строка — ссылка (растянутый ::after у заголовка) */
.important {
    margin-bottom: 48px;
    padding: 24px 30px 10px;
    border-radius: var(--radius-lg);
    background: #e7eee0;
}

.important__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.important__mark {
    display: grid;
    place-items: center;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font: 800 19px/1 var(--font-head);
}

.important__title {
    font: 700 26px/1.15 var(--font-head);
    letter-spacing: -.01em;
}

.important__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
}

.important__item {
    position: relative;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 18px 0;
    border-bottom: 1px solid rgba(15, 107, 55, .16);
}

/* нижний ряд — без линейки */
.important__item:nth-last-child(-n+2):nth-child(odd),
.important__item:nth-last-child(-n+2):nth-child(odd) ~ .important__item {
    border-bottom: 0;
}

.important__media {
    overflow: hidden;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    background: var(--field);
}

.important__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter .2s ease;
}

.important__item:hover .important__media img {
    filter: brightness(1.06) saturate(1.06);
}

.important__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.important__name {
    color: var(--ink);
    font: 700 19px/1.28 var(--font-head);
}

.important__item:hover .important__name a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

/* Фоторепортажи: мозаика снимков с подписями поверх (не похоже на ленту новостей) — первый репортаж крупно,
   с полоской миниатюр, остальные плитками 2×2. Вся плитка — ссылка (растянутый ::after у заголовка) */
.photos__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr));
    grid-auto-rows: 224px;
    gap: 16px;
}

/* Список фоторепортажей: три колонки, свежий на первой странице — 2×2 */
.photos__grid--list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 250px;
    margin-bottom: 8px;
}

.photos__grid--list .photo-tile--big {
    grid-column: span 2;
}

/* «Другие фоторепортажи» в галерее: один ряд из четырёх */
.photos__grid--row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 230px;
}

.photo-tile {
    position: relative;
    display: grid;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #121612;
    color: #fff;
    isolation: isolate;
}

.photo-tile--big {
    grid-row: span 2;
}

/* снимок и подпись — в одной ячейке, подпись прижата к низу */
.photo-tile > * {
    grid-area: 1 / 1;
    min-width: 0;
}

.photo-tile__media {
    position: relative;
    z-index: -1;
    height: 100%;
}

.photo-tile__media img,
.photo-tile__media .media-empty {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.photo-tile:hover .photo-tile__media img {
    transform: scale(1.04);
}

.photo-tile__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 9, 0) 30%, rgba(8, 12, 9, .5) 58%, rgba(8, 12, 9, .9));
}

.photo-tile__body {
    display: flex;
    flex-direction: column;
    align-self: end;
    gap: 8px;
    padding: 16px 18px 16px;
}

.photo-tile--big .photo-tile__body {
    gap: 12px;
    padding: 28px 30px 26px;
}

.photo-tile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    color: rgba(255, 255, 255, .78);
    font: 600 12.5px/1.2 var(--font);
}

.photo-tile__count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px 4px 8px;
    border-radius: 13px;
    background: rgba(255, 255, 255, .18);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
}

.photo-tile__title {
    display: -webkit-box;
    overflow: hidden;
    padding-bottom: 2px; /* место под подчёркивание последней строки */
    font: 700 17px/1.25 var(--font-head);
    text-shadow: 0 1px 12px rgba(0, 0, 0, .35);
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.photo-tile--big .photo-tile__title {
    font-size: clamp(22px, 2.1vw, 30px);
    line-height: 1.15;
    letter-spacing: -.01em;
}

.photo-tile__link {
    color: inherit;
}

.photo-tile__link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
}

.photo-tile:hover .photo-tile__link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.photo-tile__link:focus-visible {
    outline: none;
}

.photo-tile:has(.photo-tile__link:focus-visible) {
    outline: 3px solid var(--lime);
    outline-offset: 3px;
}

/* Полоска миниатюр крупного репортажа: «контактный лист», на последней — сколько ещё снимков */
.photo-tile__strip {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.photo-tile__strip li {
    position: relative;
    flex: none;
    width: 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .9);
    background: #2a2f2a;
}

.photo-tile__strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-tile__strip span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(8, 12, 9, .62);
    font: 700 15px/1 var(--font);
}

/* Спецпроект: тёмная «кинопанель» — видео (или картинка) слева во всю высоту, справа описание.
   Маркировка рекламы — внизу правой части, мелко, но читаемо */
.special {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    margin-bottom: 48px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(196, 236, 116, .14), transparent 55%),
        radial-gradient(90% 70% at 100% 100%, rgba(15, 107, 55, .55), transparent 70%),
        #121612;
    color: #f3efe4;
}

.special--text {
    grid-template-columns: minmax(0, 1fr);
}

.special__media {
    position: relative;
    min-height: 100%;
    background: #000;
}

.special__media--video {
    aspect-ratio: 16 / 9;
}

.special__media iframe,
.special__media video,
.special__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.special__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    min-width: 0;
    padding: 32px 34px 28px;
}

.special__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.special__label,
.special__kind {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 11px;
    border-radius: 13px;
    font: 700 12px/1 var(--font);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.special__label {
    background: var(--red);
    color: #fff;
}

.special__kind {
    padding-left: 8px;
    box-shadow: inset 0 0 0 1px rgba(243, 239, 228, .35);
    color: #f3efe4;
}

.special__title {
    font: 700 clamp(26px, 2.6vw, 36px)/1.12 var(--font-head);
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
}

.special__title a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.special__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* название — сверху, ссылки и маркировка — у нижнего края панели */
}

/* Ссылки — как «Все новости →», только светлые */
.special__link {
    color: var(--lime);
}

.special__note {
    padding-top: 14px;
    border-top: 1px solid rgba(243, 239, 228, .16);
    color: rgba(243, 239, 228, .62);
    font: 400 12.5px/1.5 var(--font);
}

/* Список спецпроектов — панели одна под другой */
.specials .special {
    margin-bottom: 28px;
}

/* Метка над заголовком материала («Спецпроект») */
.article__label {
    align-self: flex-start;
}

/* ================================================================ 7. Лента новостей, читаемое, подписка, партнёры */
/* Лента — таймлайн: время, точка на линии, заголовок; без внутренней прокрутки */
.feed__title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
    font: 700 26px/1.15 var(--font-head);
}

.feed__title a:hover {
    color: var(--green);
}

.feed__list {
    position: relative;
    margin-bottom: 18px;
}

/* Линия таймлайна — из отрезков у каждой строки: начинается у первого кружка, кончается на последнем видимом
   (его отмечает site.js классом is-last; без скриптов — последняя строка списка) */
.feed__item::after,
.feed__day::after {
    content: "";
    position: absolute;
    left: 55px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--line);
}

.feed__list > .feed__item:first-child::after,
.feed__list > .feed__day:first-child + .feed__item::after {
    top: 18px;
}

.feed__list > .feed__day:first-child::after {
    display: none;
}

.feed__list > .feed__item:last-child::after,
.feed__list > .feed__item.is-last::after {
    bottom: auto;
    height: 18px;
}

.feed__list > .feed__item:first-child:last-child::after,
.feed__list > .feed__item:first-child.is-last::after {
    display: none;
}

.feed__day {
    position: relative;
    margin: 0;
    padding: 12px 0 4px 72px; /* внутренние отступы: отрезок линии таймлайна проходит сквозь подпись без разрыва */
    color: var(--green);
    font: 700 12px/1.2 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.feed__item {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 28px;
    padding: 9px 0;
}

.feed__item::before {
    content: "";
    position: absolute;
    z-index: 1;
    left: 52px;
    top: 15px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 0 0 2px var(--green);
}

.feed__item:first-of-type::before {
    background: var(--red);
    box-shadow: 0 0 0 2px var(--red), 0 0 0 6px rgba(215, 38, 30, .15);
}

.feed__item time {
    color: var(--muted);
    font: 700 14px/1.45 var(--font);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.feed__item a {
    color: var(--ink);
    font: 500 15px/1.42 var(--font);
}

.feed > .more-link {
    margin-left: 72px;
}

/* Колонка по высоте соседней (главная, верхний блок): высоту ряда задаёт левая колонка, лента заполняет её
   и обрезается целыми строками (site.js [data-fit]); без скриптов — плавно гаснет внизу */
@media (min-width: 1024px) {
    .layout__aside--fit {
        align-self: stretch;
    }

    .layout__aside--fit > .feed {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
    }

    .layout__aside--fit .feed__list {
        flex: 1 1 auto;
        min-height: 0;
        margin-bottom: 14px;
        overflow: hidden;
    }

    .layout__aside--fit:not(.is-fitted) .feed__list {
        -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent);
        mask-image: linear-gradient(to bottom, #000 calc(100% - 70px), transparent);
    }

    .layout__aside--fit .feed__list > .is-cut {
        visibility: hidden;
    }
}

/* Самое читаемое: крупные цифры с засечками */
.top-list__item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.top-list__num {
    color: var(--green);
    font: 700 34px/.9 var(--font-head);
    font-variant-numeric: lining-nums;
}

.top-list__item a {
    color: var(--ink);
    font: 600 16px/1.35 var(--font-head);
}

/* Соцсети в колонке */
.subscribe {
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    background: var(--deep);
    color: #fff;
}

.subscribe__kicker {
    color: var(--lime);
    font: 700 12px/1.2 var(--font);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.subscribe__title {
    margin: 8px 0 18px;
    font: 700 21px/1.2 var(--font-head);
}

.subscribe__links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.subscribe__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font: 600 14px/1.2 var(--font);
    transition: background-color .15s ease, color .15s ease;
}

.subscribe__link:hover {
    background: var(--lime);
    color: var(--deep);
}

.partners {
    min-height: 120px;
}

/* Виджет Mediametrics («Новости партнёров») встраивается разметкой со своими встроенными стилями (ширина, шрифт
   Roboto, плавающие блоки) — оформляем строки как ленту сайта: миниатюра, заголовок с засечками, линейки */
.partners .mm-body {
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-family: var(--font) !important;
}

/* У строки виджета — фиксированная высота и встроенный margin-bottom: 10px !important, который стилями
   не перебить. Поэтому линейка — сверху строки, а снизу отступ меньше на эти 10 px: над фото и под ним по 12 px */
.partners .mm-body__line {
    height: auto !important;
    margin-top: 0 !important;
    padding: 12px 0 2px !important;
    border-top: 1px solid var(--line);
}

.partners .mm-body__line:first-child {
    padding-top: 4px !important;
    border-top: 0;
}

.partners .mm-body__line a {
    display: grid !important;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    color: var(--ink) !important;
    text-decoration: none;
}

/* Стили виджета подчёркивают ссылку при наведении — тогда к подчёркиванию заголовка добавлялось второе */
.partners .mm-body .mm-body__line a,
.partners .mm-body .mm-body__line a:hover {
    text-decoration: none !important;
}

.partners .mm-body__line img {
    float: none !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--field);
}

.partners .mm-body__line span {
    display: -webkit-box !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    overflow: hidden;
    padding: 0 0 2px !important; /* место под подчёркивание последней строки: иначе у обрезанных «…» заголовков его срезает */
    color: inherit;
    font: 600 15.5px/1.35 var(--font-head) !important;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.partners .mm-body__line a:hover img {
    filter: brightness(1.06) saturate(1.06);
}

.partners--direct {
    overflow: hidden;
}

.partners-wide {
    margin-top: 32px;
}

/* ================================================================ 8. Списки, навигация, поиск, темы */
.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 12px;
    color: var(--muted);
    font: 600 12.5px/1.3 var(--font);
    letter-spacing: .06em;
    text-transform: uppercase;
}

.crumbs a:hover {
    color: var(--green);
}

.page-head {
    margin-bottom: 32px;
    padding-bottom: 22px;
    border-bottom: 3px double var(--ink);
}

.page-title {
    color: var(--ink);
    font: 700 clamp(32px, 4vw, 52px)/1.05 var(--font-head);
    letter-spacing: -.015em;
    text-wrap: balance;
}

.page-title__page {
    color: var(--muted);
    font-size: .5em;
    font-weight: 600;
    letter-spacing: 0;
}

.page-head__intro {
    margin-top: 16px;
    color: var(--ink-2);
}

.page-head__lead {
    max-width: 760px;
    margin-bottom: 16px;
    color: var(--ink-2);
    font: 400 17px/1.5 var(--font);
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid var(--ink);
    border-radius: 17px;
    color: var(--ink);
    font: 600 14px/1.2 var(--font);
    transition: background-color .15s ease, color .15s ease;
}

.chip:hover {
    background: var(--ink);
    color: var(--paper);
}

.chip.is-active {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

/* Первая страница рубрики: главная новость крупно и две рядом */
.list-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 26px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ink);
}

.list-lead > .card:first-child {
    grid-row: span 2;
}

.list {
    display: flex;
    flex-direction: column;
}

.list > .ad-slot {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.empty {
    padding: 40px 0;
    color: var(--muted);
    font: 600 20px/1.4 var(--font-head);
}

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 32px;
}

.pager__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.pager__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 21px;
    color: var(--ink);
    font: 700 16px/1 var(--font-head);
    font-variant-numeric: lining-nums tabular-nums;
}

a.pager__link:hover {
    border-color: var(--ink);
}

.pager__link.is-current {
    border-color: var(--ink);
    background: var(--ink);
    color: var(--paper);
}

.pager__link--prev,
.pager__link--next {
    padding: 0 18px;
    font: 600 14px/1 var(--font);
}

.pager__gap {
    color: var(--muted);
}

.date-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.date-form__label {
    color: var(--ink-2);
    font-weight: 600;
}

.date-form__input {
    height: 42px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--surface);
    font: 500 15px/1 var(--font);
}

.date-form__input:focus {
    outline: none;
    border-color: var(--green);
}

.date-form__nav {
    color: var(--green);
    font-weight: 700;
}

.date-form__nav:hover {
    color: var(--red);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 640px;
}

.search-form__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    border-radius: 24px;
    background: var(--surface);
    font: 400 17px/1 var(--font);
    -webkit-appearance: none;
    appearance: none;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15, 107, 55, .14);
}

.search-form .button {
    height: 48px;
    padding: 0 26px;
    border-radius: 24px;
}

.search-form__found {
    margin-top: 14px;
    color: var(--muted);
    font: 500 15px/1.4 var(--font);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud__link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    color: var(--ink);
    font: 600 15px/1.2 var(--font-head);
    transition: border-color .15s ease, color .15s ease;
}

.tag-cloud__link:hover {
    border-color: var(--green);
    color: var(--green);
}

.tag-cloud__link--lg { font-size: 18px; }
.tag-cloud__link--xl { font-size: 21px; }

.tag-cloud__count {
    color: var(--muted);
    font: 500 13px/1 var(--font);
}

.author {
    display: flex;
    align-items: center;
    gap: 18px;
}

.author__photo {
    flex: none;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--field);
}

.author__about {
    max-width: 680px;
    color: var(--ink-2);
}

/* ================================================================ 9. Статья, фотогалерея */
.article {
    position: relative;
    min-width: 0;
    padding: 40px 52px 44px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.article__head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.article__title {
    color: var(--ink);
    font: 700 clamp(28px, 3vw, 42px)/1.12 var(--font-head);
    letter-spacing: -.015em;
    text-wrap: balance;
}

.article__meta {
    gap: 6px 18px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.article__author {
    color: var(--green);
    font-weight: 700;
}

.article__author:hover {
    color: var(--red);
}

.article__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Анонс — с засечками, крупно, с линией слева */
.article__lead {
    margin-bottom: 28px;
    padding-left: 20px;
    border-left: 3px solid var(--red);
    color: var(--ink);
    font: 600 21px/1.48 var(--font-head);
}

.article__lead p {
    margin: 0;
}

.article__photo {
    margin: 0 -52px 30px;
    background: var(--field);
}

.article__photo img {
    display: block;
    width: 100%;
    height: auto;
}

.article__gallery,
.article__video {
    margin-top: 30px;
}

.article__credit,
.article__source {
    margin-top: 14px;
    color: var(--muted);
    font: 400 15px/1.5 var(--font);
}

.article__source a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article__foot {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
    padding-top: 24px;
    border-top: 3px double var(--ink);
}

.article__tags {
    margin-top: 0;
}

.article > .promo-row,
.article > .ad-slot {
    margin-top: 30px;
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.share__label {
    margin-right: 6px;
    color: var(--muted);
    font: 700 12.5px/1 var(--font);
    letter-spacing: .08em;
    text-transform: uppercase;
}

.share__copy {
    position: relative;
    cursor: pointer;
}

.share__copy:hover,
.share__copy.is-copied {
    background: var(--ink);
    color: #fff;
}

.share__copy.is-copied::after {
    content: "Ссылка скопирована";
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--ink);
    color: #fff;
    font: 500 13px/1.2 var(--font);
    white-space: nowrap;
    pointer-events: none;
}

/* Фотогалерея (common/_gallery.php, site.js [data-gallery]) */
.pgallery {
    position: relative;
}

.pgallery__stage {
    position: relative;
    container-type: inline-size;
    overflow: hidden;
    border-radius: var(--radius);
    background: #101611;
}

.pgallery__track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.pgallery__track::-webkit-scrollbar {
    display: none;
}

.pgallery__track:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: -3px;
}

.pgallery__slide {
    flex: 0 0 100%;
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.pgallery__slide figure {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
}

.pgallery__slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.pgallery__slide figcaption {
    padding: 10px 16px 12px;
    color: #d4e0d3;
    font: 400 14px/1.45 var(--font);
}

.pgallery__nav {
    position: absolute;
    top: calc(100cqw / 3 - 22px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 253, 248, .94);
    color: var(--ink);
    box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
    cursor: pointer;
    transition: opacity .15s ease, transform .15s ease;
}

.pgallery__nav:hover {
    transform: scale(1.06);
}

.pgallery__nav[disabled] {
    opacity: 0;
    pointer-events: none;
}

.pgallery__nav--prev { left: 12px; }
.pgallery__nav--next { right: 12px; }

.pgallery__bar {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pgallery__count,
.pgallery__full {
    background: rgba(13, 30, 20, .75);
    color: #fff;
}

.pgallery__count {
    padding: 6px 10px;
    border-radius: 14px;
    font: 600 13px/1 var(--font);
    font-variant-numeric: tabular-nums;
}

.pgallery__full {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.pgallery__full[hidden] {
    display: none;
}

.pgallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.pgallery__thumb {
    flex: none;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    background: var(--field);
    overflow: hidden;
    opacity: .55;
    cursor: pointer;
    transition: opacity .15s ease, box-shadow .15s ease;
}

.pgallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pgallery__thumb:hover {
    opacity: .85;
}

.pgallery__thumb.is-active {
    opacity: 1;
    box-shadow: inset 0 0 0 3px var(--green);
}

.pgallery__thumb.is-active img {
    padding: 3px;
    border-radius: var(--radius);
}

.pgallery:fullscreen {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: #000;
}

.pgallery:fullscreen .pgallery__stage {
    flex: 1;
    display: flex;
    background: #000;
}

.pgallery:fullscreen .pgallery__track {
    flex: 1;
}

.pgallery:fullscreen .pgallery__slide img {
    flex: 1;
    min-height: 0;
    aspect-ratio: auto;
}

.pgallery:fullscreen .pgallery__nav {
    top: calc(50% - 22px);
}

.article--gallery {
    margin-bottom: 48px;
}

.article--gallery .pgallery__slide img {
    max-height: 78vh;
}

.article--gallery .article__lead {
    border-left: 0;
    padding-left: 0;
    font: 400 18px/1.55 var(--font);
}

/* ================================================================ 10. Служебные страницы, форма */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    max-width: 720px;
    padding: 24px 0 48px;
}

.error-page__code {
    color: var(--green);
    font: 700 clamp(80px, 12vw, 150px)/.9 var(--font-head);
    letter-spacing: -.03em;
}

.error-page__title {
    font: 700 clamp(26px, 3vw, 38px)/1.15 var(--font-head);
}

.error-page__text {
    color: var(--ink-2);
    font: 400 18px/1.55 var(--font);
}

.error-page__search {
    width: 100%;
}

.article--page {
    margin-bottom: 48px;
}

/* Форма обратной связи — не шире удобной строки, даже когда колонка шире */
.article--form .feedback {
    max-width: 640px;
}

/* Карточка «Редакция» в правой колонке служебных страниц */
.contacts-card__list {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.contacts-card__list > div {
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.contacts-card__list > div:first-child {
    padding-top: 0;
}

.contacts-card__list dt {
    color: var(--muted);
    font: 500 12.5px/1.3 var(--font);
}

.contacts-card__list dd {
    margin: 3px 0 0;
    color: var(--ink);
    font: 600 16px/1.35 var(--font);
}

.contacts-card__list a {
    color: var(--green);
}

.contacts-card__list a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contacts-card__button {
    margin-top: 18px;
}

.feedback__intro {
    margin-bottom: 22px;
    color: var(--ink-2);
    font: 400 17px/1.5 var(--font);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field__label {
    color: var(--ink);
    font: 600 15px/1.3 var(--font);
}

.field__label .required {
    color: var(--red);
}

.field__input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1px solid #cdc6b4;
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    font: 400 16px/1.4 var(--font);
}

textarea.field__input {
    min-height: 160px;
    resize: vertical;
}

.field__input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15, 107, 55, .14);
}

.field.has-error .field__input {
    border-color: var(--red);
}

.field__error,
.form__errors {
    color: #a3150f;
    font: 500 14px/1.4 var(--font);
}

.form__errors {
    padding: 12px 14px;
    border-radius: var(--radius);
    background: #fbe9e6;
}

.form__note {
    color: var(--muted);
    font: 400 14px/1.5 var(--font);
}

.form__note a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form .button {
    align-self: flex-start;
    height: 48px;
    padding: 0 30px;
    border-radius: 24px;
    font-size: 16px;
}

.form .button:disabled {
    opacity: .6;
    cursor: wait;
}

.feedback__done {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.feedback__title {
    font: 700 24px/1.25 var(--font-head);
}

/* ================================================================ 11. Адаптив */
@media (max-width: 1279.98px) {
    .site-nav__link {
        padding: 0 11px;
        font-size: 12.5px;
        letter-spacing: .06em;
    }

    .site-nav__link::after {
        left: 11px;
        right: 11px;
    }

    .promo {
        grid-template-areas: "icon body" "button button";
    }
}

/* Планшеты и телефоны: компактная шапка, меню — в панели */
@media (max-width: 1023.98px) {
    /* Важное: одна колонка */
    .important {
        padding: 20px 20px 6px;
    }

    .important__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .important__item:nth-last-child(-n+2):nth-child(odd) {
        border-bottom: 1px solid rgba(15, 107, 55, .16);
    }

    .important__item:last-child {
        border-bottom: 0;
    }

    /* Фоторепортажи: крупный — во всю ширину, остальные 2×2 */
    .photos__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 210px;
        gap: 12px;
    }

    .photo-tile--big {
        grid-column: 1 / -1;
    }

    /* Спецпроект: видео сверху, описание под ним */
    .special {
        grid-template-columns: minmax(0, 1fr);
    }

    .special__info {
        padding: 22px 20px 20px;
    }

    .special__links {
        flex-flow: row wrap;
        gap: 10px 22px;
    }

    html {
        scroll-padding-top: 76px;
    }

    .topbar,
    .site-nav,
    .site-header .site-search {
        display: none;
    }

    .site-header {
        position: sticky;
        top: 0;
        border-bottom: 3px double var(--ink);
    }

    .site-header__inner {
        grid-template-columns: auto 1fr;
        min-height: 62px;
        gap: 8px;
    }

    .site-header__logo img {
        height: 38px;
    }

    .site-header__actions {
        display: flex;
        margin-right: -10px;
    }

    .layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .layout::before {
        display: none;
    }

    .grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__about {
        grid-column: 1 / -1;
    }

    .article {
        padding: 32px 32px 36px;
    }

    .article__photo {
        margin-inline: -32px;
    }
}

@media (max-width: 699.98px) {
    .important {
        margin-right: calc(-1 * var(--gutter));
        margin-left: calc(-1 * var(--gutter));
        padding: 18px var(--gutter) 4px;
        border-radius: 0;
    }

    .important__item {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding: 14px 0;
    }

    .important__name {
        font-size: 16px;
    }

    .photos__grid {
        grid-auto-rows: 172px;
        gap: 10px;
    }

    .photo-tile__body {
        gap: 6px;
        padding: 12px;
    }

    .photo-tile--big .photo-tile__body {
        gap: 10px;
        padding: 18px 16px 16px;
    }

    .photo-tile__title {
        font-size: 14.5px;
        -webkit-hyphens: auto;
        hyphens: auto; /* узкая плитка: длинные слова («станкостроительном») переносятся, а не обрезаются */
        overflow-wrap: anywhere;
    }

    .photo-tile:not(.photo-tile--big) time {
        display: none;
    }

    .photo-tile__strip li {
        width: 48px;
        height: 48px;
    }

    .site-main {
        padding-top: 18px;
    }

    .site-subnav__list {
        justify-content: flex-start;
    }

    .block-title,
    .feed__title {
        font-size: 23px;
    }

    .grid--2,
    .grid--3,
    .promo-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .grid {
        gap: 26px;
    }

    .card--hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        padding-bottom: 26px;
    }

    .card--hero .card__media {
        aspect-ratio: 16 / 10;
        margin-inline: calc(-1 * var(--gutter));
        border-radius: 0;
    }

    .card--hero .card__lead {
        font-size: 16px;
    }

    /* «Главное», разделы, лид рубрики: первая карточка крупно, остальные — строкой с маленькой картинкой */
    .lead .grid--2 .card + .card,
    .section-row__items .card + .card,
    .list-lead > .card + .card {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
    }

    .lead .grid--2 .card + .card .card__body,
    .section-row__items .card + .card .card__body,
    .list-lead > .card + .card .card__body {
        padding-top: 0;
    }

    .lead .grid--2 .card + .card .card__title,
    .section-row__items .card + .card .card__title,
    .list-lead > .card + .card .card__title {
        font-size: 16.5px;
    }

    .lead .grid--2 .card + .card .card__rubric {
        display: none;
    }

    .section-row__subs {
        display: none;
    }

    .list-lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .list-lead > .card:first-child {
        grid-row: auto;
    }

    .list-lead > .card:first-child .card__title {
        font-size: 22px;
    }

    /* «Важное» и «Фоторепортажи» — лента с прокруткой вбок */
    .block > .grid--4 {
        display: flex;
        gap: 14px;
        margin-inline: calc(-1 * var(--gutter));
        padding: 0 var(--gutter) 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .block > .grid--4::-webkit-scrollbar {
        display: none;
    }

    .block > .grid--4 > * {
        flex: 0 0 76%;
        scroll-snap-align: start;
    }

    .row-card {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
        padding: 16px 0;
    }

    .row-card__title {
        font-size: 16.5px;
    }

    .row-card__lead {
        display: none;
    }

    .hot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .article {
        margin-inline: calc(-1 * var(--gutter));
        padding: 24px 18px 30px;
        border-radius: 0;
        box-shadow: none;
    }

    .article__photo {
        margin-inline: -18px;
    }

    .article__lead {
        font-size: 18.5px;
    }

    .rich-text {
        font-size: 17.5px;
        line-height: 1.64;
    }

    .pager__link--prev,
    .pager__link--next {
        flex: 1 1 40%;
    }

    .pager__list {
        order: -1;
        justify-content: center;
        width: 100%;
    }

    /* Лента на телефоне — первые строки, полностью — по ссылке «Все новости» */
    .feed__list > li:nth-child(n+13) {
        display: none;
    }

    .site-footer {
        margin-top: 40px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 36px;
    }

    .to-top {
        right: 12px;
        bottom: calc(16px + var(--to-top-offset, 0px));
        width: 44px;
        height: 44px;
    }

    .cookie {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
}

@media (max-width: 419.98px) {
    .site-header__logo .logo-full {
        display: none;
    }

    .site-header__logo .logo-short {
        display: block;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-drawer__panel,
    .site-drawer__backdrop,
    .cookie {
        animation: none;
    }

    .to-top,
    .promo {
        transition: none;
    }
}

@media print {
    .topbar,
    .site-nav,
    .site-subnav,
    .site-search,
    .site-header__actions,
    .site-drawer,
    .to-top,
    .cookie,
    .layout__aside,
    .layout::before,
    .promo-row,
    .ad-slot,
    .site-footer__counters {
        display: none !important;
    }

    .layout {
        grid-template-columns: 1fr;
    }
}
