/*
Theme Name: dds_hourlyhits.com
Description: Ежечасный новостной портал о недвижимости и жилищно-коммунальном хозяйстве России. Японский минимализм, холодная стальная палитра, чертёжная сетка.
Author: Артем Воронов
Version: 1.1
Text Domain: hhits
Requires at least: 6.0
Requires PHP: 8.0
*/

/* ============ Переменные ============ */
:root {
    --bg: #F4F7F9;
    --bg-alt: #E4EBF0;
    --ink: #0F1B24;
    --deep: #0B1E2D;
    --side: #EDF2F6;
    --accent: #C8102E;
    --accent-dark: #9E0C24;
    --steel: #2A6F97;
    --steel-dark: #1F5273;
    --muted: #6B7C8C;
    --hair: #D0DAE2;
    --dash: #B8C6D1;
    --grid: #DCE5EC;
    --grid-alt: #C8D4DE;
    --head-font: "PT Sans Narrow", "Roboto Condensed", "Arial Narrow", "Franklin Gothic Medium", Impact, system-ui, sans-serif;
    --body-font: "Segoe UI", "PT Sans", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ============ Служебные правила скрытия ============ */
.cookie-banner[hidden],
.site-nav[hidden],
.tabs-pane[hidden] { display: none !important; }

/* ============ База ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px;
}

body::after {
    content: "";
    position: fixed;
    right: 2%;
    bottom: 0;
    width: 180px;
    height: 200px;
    opacity: .15;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 200'%3E%3Cg fill='none' stroke='%23C8D4DE' stroke-width='2'%3E%3Crect x='20' y='40' width='80' height='150'/%3E%3Crect x='100' y='80' width='60' height='110'/%3E%3Cpath d='M20 40 60 12 100 40'/%3E%3Crect x='34' y='60' width='20' height='13'/%3E%3Crect x='66' y='60' width='20' height='13'/%3E%3Crect x='34' y='92' width='20' height='13'/%3E%3Crect x='66' y='92' width='20' height='13'/%3E%3Crect x='34' y='124' width='20' height='13'/%3E%3Crect x='66' y='124' width='20' height='13'/%3E%3Crect x='114' y='104' width='32' height='13'/%3E%3Crect x='114' y='136' width='32' height='13'/%3E%3Cpath d='M8 190h164'/%3E%3C/g%3E%3C/svg%3E");
}

.site-wrap { position: relative; z-index: 1; }

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

a { color: var(--steel); }

p { margin: 0 0 1.05em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: .01em;
    margin: 1.6em 0 .6em;
}

h1 { font-size: 2.8rem; text-transform: uppercase; margin-top: 0; }
h2 { font-size: 1.85rem; text-transform: uppercase; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

.shell { width: min(92%, 1180px); margin-inline: auto; }

.screen-hide {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ============ Кнопки ============ */
.btn {
    display: inline-block;
    border: 0;
    border-radius: 2px;
    padding: .72rem 1.5rem;
    font-family: var(--head-font);
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover, .btn-solid:focus { background: var(--accent-dark); color: #fff; transform: translateX(2px); }
.btn-ghost { background: transparent; border: 1px solid var(--steel); color: var(--steel); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--steel); color: #fff; transform: translateX(2px); }
.btn-light { background: transparent; border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-light:hover, .btn-light:focus { background: rgba(255,255,255,.12); border-color: #fff; transform: translateX(2px); }

/* ============ Шапка ============ */
.site-head {
    background: var(--deep);
    border-bottom: 3px solid var(--accent);
    color: #fff;
    padding: 1.1rem 0;
}
.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: .9rem; min-width: 0; text-decoration: none; color: #fff; }
.brand-logo { width: 54px; height: 54px; display: block; }
.brand-mark { width: 54px; height: 54px; display: block; color: var(--accent); }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.22rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
    color: #fff;
}
.brand-desc {
    display: block;
    font-size: .8rem;
    color: #9FB2C2;
    margin-top: .25rem;
    max-width: 46ch;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 2px;
    color: #fff;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .5rem .9rem;
    cursor: pointer;
}
.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-nav a {
    color: #DCE7EF;
    text-decoration: none;
    font-family: var(--head-font);
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.site-nav a:hover,
.site-nav .current-menu-item > a { color: #fff; border-bottom-color: var(--accent); }

/* ============ Раскладка ============ */
.site-main { padding: 2.2rem 0 3rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--side);
    border-radius: 2px;
    padding: 1.4rem 1.3rem;
    color: var(--ink);
}

/* ============ Хлебные крошки ============ */
.crumbs {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
    letter-spacing: .02em;
}
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { color: var(--dash); margin: 0 .25rem; }

/* ============ Заголовки секций и страниц ============ */
.sec-head { margin-bottom: 1.5rem; }
.sec-over {
    display: block;
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .45rem;
}
.sec-title {
    position: relative;
    margin: 0;
    padding-left: calc(.6rem + 3px);
    font-size: 1.85rem;
    text-transform: uppercase;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    bottom: .16em;
    width: 3px;
    background: var(--accent);
}
.page-title {
    position: relative;
    padding-left: calc(.6rem + 3px);
    margin-bottom: 1.2rem;
}
.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    bottom: .16em;
    width: 3px;
    background: var(--accent);
}

/* ============ Разделитель секций ============ */
.sec-divider {
    display: flex;
    gap: 30%;
    margin: 2.4rem 0;
}
.sec-divider::before,
.sec-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background-image: repeating-linear-gradient(to right, var(--dash) 0 8px, transparent 8px 16px);
}

/* ============ Главная ============ */
.front-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.fs {
    position: relative;
    margin-bottom: 2.6rem;
    padding: 2.6rem 2.2rem;
    border-radius: 2px;
}
.fs::before,
.fs::after {
    content: "";
    position: absolute;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background-image: repeating-linear-gradient(to bottom, var(--grid-alt) 0 7px, transparent 7px 15px);
}
.fs::before { left: -12px; }
.fs::after { right: -12px; }

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(to right, var(--grid-alt) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-alt) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Блок 1 — hero */
.fs-hero {
    padding: 0;
    overflow: hidden;
    background: var(--deep);
}
.hero-media { position: relative; }
.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}
.hero-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.4rem 2.4rem;
    background: linear-gradient(90deg, rgba(11,30,45,.88) 0%, rgba(11,30,45,.6) 55%, rgba(11,30,45,.25) 100%);
    min-width: 0;
}
.hero-title {
    margin: 0;
    font-size: 2.8rem;
    text-transform: uppercase;
    color: #fff;
    max-width: 18ch;
}
.hero-rule {
    width: 96px;
    height: 3px;
    background: var(--accent);
    margin: 1.1rem 0;
}
.hero-text {
    color: #D5E1EA;
    max-width: 52ch;
    margin-bottom: 1.5rem;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Блок 2 — статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    min-width: 0;
    text-align: center;
    padding: .6rem 1rem;
    border-left: 1px dashed var(--dash);
}
.stat-cell:first-child { border-left: 0; }
.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--accent);
    letter-spacing: .02em;
}
.stat-label {
    display: block;
    margin-top: .4rem;
    font-size: .88rem;
    color: var(--muted);
}

/* Блок «последние записи» */
.fs-latest { padding-left: 0; padding-right: 0; }
.fs-latest .sec-head { padding: 0; }
.latest-more { margin-top: 1.6rem; }

/* Блок 3 — сетка рубрик */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.rubric-card {
    position: relative;
    min-width: 0;
    background: #fff;
    border-top: 3px solid var(--accent);
    border-radius: 2px;
    padding: 1.6rem 1.4rem;
    transition: transform .18s ease;
}
.rubric-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width .18s ease;
}
.rubric-card:hover { transform: translateY(-2px); }
.rubric-card:hover::before { width: 3px; }
.rubric-icon { width: 46px; height: 46px; color: var(--steel); display: block; margin-bottom: .9rem; }
.rubric-card h3 { margin: 0 0 .5rem; font-size: 1.2rem; text-transform: uppercase; }
.rubric-card p { margin: 0; color: #35485A; font-size: .96rem; }

/* Блок 4 — CTA */
.fs-cta {
    position: relative;
    overflow: hidden;
    background: var(--deep);
    color: #fff;
    padding: 2.8rem 2.4rem;
}
.cta-inner { position: relative; z-index: 2; max-width: 60ch; }
.fs-cta h2 { color: #fff; margin: 0 0 .8rem; font-size: 2rem; }
.fs-cta p { color: #CBD9E4; }
.plate-house {
    position: absolute;
    right: 1.6rem;
    bottom: -12px;
    width: 150px;
    height: 170px;
    color: #C8D4DE;
    opacity: .15;
    z-index: 1;
}

/* ============ Карточки записей ============ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.cards-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 2px;
    overflow: hidden;
    padding: 1.1rem 1.2rem 1.3rem;
}
.card-body { flex: 1; min-width: 0; }
.card-body::after { content: ""; display: block; clear: both; }
.card-thumb {
    float: left;
    width: 60%;
    margin: .2rem 1.1rem .7rem 0;
    overflow: hidden;
    border-radius: 2px;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .25s ease;
}
.card:hover .card-thumb img { transform: scale(1.02); }
.card-title {
    position: relative;
    overflow: hidden;
    margin: 0 0 .5rem;
    padding-bottom: .5rem;
    padding-left: 0;
    font-size: 1.22rem;
    border-bottom: 1px solid var(--hair);
    transition: color .18s ease, padding-left .18s ease;
}
.card-title a { color: inherit; text-decoration: none; }
.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    bottom: .6em;
    width: 0;
    background: var(--accent);
    transition: width .18s ease;
}
.card:hover .card-title { color: var(--accent); padding-left: .65rem; }
.card:hover .card-title::before { width: 3px; }
.card-date {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .55rem;
    letter-spacing: .04em;
}
.card-excerpt { color: #35485A; font-size: .96rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more { margin-top: .6rem; padding: .5rem 1.1rem; font-size: .88rem; }

/* ============ Запись и страница ============ */
.entry {
    background: #fff;
    border-radius: 2px;
    padding: 1.8rem 1.9rem 2rem;
}
.entry-meta {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
    letter-spacing: .03em;
}
.entry-thumb { margin-bottom: 1.4rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: 2px; }
.entry-content { min-width: 0; }
.entry-content h2,
.entry-content h3,
.widget-area-title {
    position: relative;
    padding-left: 1rem;
}
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: .52em;
    width: 4px;
    height: 4px;
    background: var(--accent);
}
.entry-content a {
    color: var(--steel);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size .25s ease, color .18s ease;
}
.entry-content a:hover { color: var(--accent); background-size: 100% 1px; }
.entry-content img { border-radius: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .4em; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem;
    border-left: 4px solid var(--accent);
    background: var(--bg-alt);
    border-radius: 0 2px 2px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--dash);
}
.entry-content th,
.entry-content td {
    border: 1px solid var(--dash);
    padding: .6rem .8rem;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); font-family: var(--head-font); text-transform: uppercase; letter-spacing: .03em; }
.entry-tags { margin-top: 1.6rem; font-size: .88rem; color: var(--muted); }
.entry-tags a {
    display: inline-block;
    margin: 0 .35rem .35rem 0;
    padding: .18rem .6rem;
    border: 1px solid var(--hair);
    border-radius: 2px;
    color: var(--accent);
    text-decoration: none;
}
.entry-tags a:hover { border-color: var(--accent); }

/* ============ Пагинация ============ */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    border: 1px solid var(--hair);
    border-radius: 2px;
    background: #fff;
    color: var(--steel);
    text-decoration: none;
    font-family: var(--head-font);
    letter-spacing: .04em;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.pager .page-numbers:hover {
    background: var(--steel);
    border-color: var(--steel);
    color: #fff;
    transform: translateX(2px);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ============ Виджеты ============ */
.widget { margin-bottom: 1.6rem; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
    position: relative;
    margin: 0 0 .9rem;
    padding-left: calc(.6rem + 3px);
    font-size: 1.15rem;
    text-transform: uppercase;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    bottom: .16em;
    width: 3px;
    background: var(--accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px solid var(--hair); }
.widget li:last-child { border-bottom: 0; }

.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: #24323F; }
.sidebar .widget a { color: var(--steel); text-decoration: none; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: .8rem; color: var(--muted); }

/* ============ Подвал ============ */
.site-foot {
    background: var(--deep);
    border-top: 3px solid var(--accent);
    color: #C3D2DD;
    padding: 2.6rem 0 1.4rem;
    margin-top: 2rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title { color: #fff; }
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #C3D2DD; }
.site-foot .widget li { border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot .widget a { color: #E3EDF4; text-decoration: none; }
.site-foot .widget a:hover { color: var(--accent); }
.site-foot .widget .post-date { display: block; font-size: .8rem; color: #8FA5B6; }
.foot-bottom {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255,255,255,.14);
    font-size: .85rem;
    color: #91A6B6;
}

/* ============ Cookie-баннер ============ */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--deep);
    border-top: 3px solid var(--accent);
    color: #D7E3EB;
    font-size: .9rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: #fff; }

/* ============ Форма поиска ============ */
.search-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.search-form label { flex: 1 1 200px; min-width: 0; display: block; margin: 0; }
.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: .62rem .8rem;
    border: 1px solid var(--hair);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: .95rem;
}
.search-form input[type="search"]:focus { outline: 2px solid var(--steel); outline-offset: 1px; }

/* ============ Комментарии ============ */
.comments-block {
    margin-top: 2rem;
    background: #fff;
    border-radius: 2px;
    padding: 1.6rem 1.8rem 1.8rem;
}
.comments-title {
    position: relative;
    margin: 0 0 1.2rem;
    padding-left: calc(.6rem + 3px);
    font-size: 1.4rem;
    text-transform: uppercase;
}
.comments-title::before {
    content: "";
    position: absolute;
    left: 0; top: .16em; bottom: .16em;
    width: 3px;
    background: var(--accent);
}
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.4rem; padding: 0 0 0 1rem; border-left: 1px solid var(--hair); }
.comment-item { margin-bottom: 1.2rem; }
.comment-inner { background: var(--bg-alt); border-radius: 2px; padding: 1rem 1.2rem; }
.comment-head { display: flex; gap: .8rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .4rem; }
.comment-author { font-family: var(--head-font); text-transform: uppercase; letter-spacing: .04em; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-text p { margin: 0 0 .6em; }
.comment-reply a { color: var(--steel); text-decoration: none; font-size: .88rem; }
.comment-reply a:hover { color: var(--accent); }
.comment-hold { color: var(--accent); font-size: .88rem; }
.comment-form label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: .25rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--hair);
    border-radius: 2px;
    font-family: var(--body-font);
    font-size: .95rem;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form .form-submit input[type="submit"] {
    border: 0;
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    padding: .72rem 1.5rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--accent-dark); transform: translateX(2px); }

/* ============ 404 и поиск ============ */
.nf-box { background: #fff; border-radius: 2px; padding: 2rem 2rem 2.2rem; }
.nf-code { font-family: var(--head-font); font-size: 4.4rem; color: var(--accent); line-height: 1; margin: 0 0 .6rem; }
.nf-actions { margin-top: 1.4rem; display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }
.list-empty { background: #fff; border-radius: 2px; padding: 1.6rem 1.8rem; }

/* ============ Адаптив ============ */
@media (max-width: 960px) {
    h1, .hero-title { font-size: 2.1rem; }
    h2, .sec-title { font-size: 1.55rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single > .content-area { width: 100%; }
    .front-area { width: 100%; }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs::before, .fs::after { display: none; }
    .hero-body { position: static; background: var(--deep); padding: 1.8rem 1.4rem; }
    .hero-media img { aspect-ratio: 16 / 9; }
    .nav-toggle { display: inline-block; }
    .site-nav { flex-basis: 100%; }
    .site-nav ul { flex-direction: column; gap: .7rem; padding-top: .8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero-title { font-size: 1.8rem; }
    .fs { padding: 1.8rem 1.4rem; margin-bottom: 2rem; }
    .fs-hero { padding: 0; }
    .fs-latest { padding-left: 0; padding-right: 0; }
    .fs-cta { padding: 1.8rem 1.4rem; }
    .entry, .comments-block, .nf-box { padding: 1.3rem 1.2rem; }
    .cards-grid, .rubric-grid, .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0; }
    .stat-cell:nth-child(odd) { border-left: 0; }
    .card-thumb { float: none; width: 100%; margin: 0 0 .9rem; }
    .card-thumb img { aspect-ratio: 16 / 9; }
    .plate-house { width: 110px; height: 125px; right: .6rem; }
    body::after { display: none; }
}
