/*
Theme Name: dds_tribratanewspolressukabumi.com
Author: Дмитрий Соколов
Description: Тёмная тема для информационно-аналитического портала о безопасной жизни в городе: карты преступности, рейтинги защищённости жилых комплексов, юридическая безопасность сделок.
Version: 1.1
Text Domain: safemap
*/

/* ==================================================================
   1. Переменные и база
   ================================================================== */

:root {
    --bg: #0B1220;
    --bg-alt: #101A2E;
    --bg-foot: #070D18;
    --bg-side: #0E1626;
    --line: #1E2A44;
    --ink: #E6EDF7;
    --muted: #8A9BB8;
    --accent: #4DA3FF;
    --danger: #FF5C5C;
    --grid: rgba(26, 36, 56, 0.25);
    --head-font: "Inter Tight", "Arial Narrow", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 24px);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

.entry-body a,
.widget a,
.crumbs a,
.card-title a {
    position: relative;
}

.entry-body a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .25s ease;
}

.entry-body a:hover::after,
.crumbs a:hover::after {
    transform: scaleX(1);
}

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

h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    letter-spacing: .04em;
}

h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    padding-left: 1.3em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    color: var(--ink);
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--bg-alt);
    color: var(--ink);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: .65rem .8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--head-font);
    letter-spacing: .04em;
}

hr {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 2rem 0;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
}

/* ==================================================================
   2. Кнопки и метки
   ================================================================== */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .85rem 1.6rem;
    border-radius: 0;
    border: 1px solid var(--accent);
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.btn-fill {
    background: var(--accent);
    color: #08111F;
}

.btn-fill:hover {
    transform: translateY(-2px);
    background: #6FB6FF;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(77, 163, 255, .12);
}

.mark {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent);
    flex: 0 0 6px;
}

.mark-risk {
    background: var(--danger);
}

.eyebrow {
    display: block;
    font-family: var(--head-font);
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .6rem;
}

/* Заголовок секции: пунктир сверху + вертикальная полоса слева */
.sec-head {
    border-top: 1px dashed var(--line);
    padding-top: 1.4rem;
    margin-bottom: 1.8rem;
}

.sec-head h2,
.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: .4rem;
}

.sec-head h2::before,
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    background: var(--accent);
}

.sec-note {
    color: var(--muted);
    margin: 0;
    max-width: 62ch;
}

/* ==================================================================
   3. Верхняя полоса, шапка
   ================================================================== */

.topbar {
    height: 3px;
    background: linear-gradient(to right, var(--accent) 0, var(--accent) 80%, var(--danger) 80%, var(--danger) 100%);
}

.site-head {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: static;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.3rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-mark {
    flex: 0 0 auto;
}

.brand-logo {
    max-height: 60px;
    width: auto;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ink);
    line-height: 1.35;
    max-width: 52ch;
}

.brand-desc {
    display: block;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.5;
    margin-top: .3rem;
    max-width: 68ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--head-font);
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .6rem 1rem;
    cursor: pointer;
}

.main-nav[hidden] {
    display: none !important;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    font-family: var(--head-font);
    font-size: .95rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    display: inline-block;
    transition: color .2s ease, border-color .2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ==================================================================
   4. Хлебные крошки
   ================================================================== */

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    padding: 1.4rem 0 0;
    word-break: break-word;
}

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

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

.crumbs .sep {
    margin: 0 .45rem;
    color: var(--line);
}

/* ==================================================================
   5. Раскладки
   ================================================================== */

.site-main {
    padding: 2.2rem 0 3.5rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area {
    min-width: 0;
}

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    padding: 1.4rem 1.3rem;
}

.sidebar .widget + .widget {
    margin-top: 2rem;
}

/* ==================================================================
   6. Карточки записей
   ================================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: width .25s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

.card:hover::before {
    width: 64px;
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}

.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to bottom, rgba(11, 18, 32, 0), rgba(11, 18, 32, .75));
    pointer-events: none;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
    min-width: 0;
}

.card-mark {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .7rem;
}

.card-mark span.label {
    font-family: var(--head-font);
    font-size: .72rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .5rem;
}

.card-title a {
    color: var(--ink);
    transition: color .2s ease;
}

.card-title a:hover {
    color: var(--accent);
}

.card-meta {
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .7rem;
    letter-spacing: .04em;
}

.card-excerpt {
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 1.1rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--head-font);
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.card-more:hover {
    border-bottom-color: var(--accent);
}

/* ==================================================================
   7. Главная
   ================================================================== */

.front {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section {
    position: relative;
    padding: 3rem 2rem;
    margin-bottom: 2.2rem;
    min-width: 0;
    overflow: hidden;
}

.front-section.is-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, var(--grid) 0, var(--grid) 1px, transparent 1px, transparent 24px);
    border-left: 4px solid var(--accent);
}

.front-section.is-base {
    background-color: var(--bg);
    border: 1px solid var(--line);
}

.front-section::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 320px;
    height: 210px;
    opacity: .04;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 260' fill='none' stroke='%234DA3FF' stroke-width='3'%3E%3Cpath d='M10 250 L10 130 L70 130 L70 70 L150 70 L150 140 L230 140 L230 45 L310 45 L310 175 L390 175 L390 250 Z'/%3E%3Crect x='40' y='160' width='45' height='45'/%3E%3Crect x='175' y='170' width='60' height='35'/%3E%3Crect x='255' y='85' width='35' height='55'/%3E%3Cpath d='M0 215 L400 215'/%3E%3C/svg%3E");
}

/* Hero */
.fs-hero h1 {
    margin-bottom: 1rem;
    max-width: 22ch;
}

.fs-hero .hero-lead {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 68ch;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat {
    padding: .4rem 1.2rem;
    border-right: 1px dashed var(--line);
    min-width: 0;
}

.stat:last-child {
    border-right: 0;
}

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.7rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--accent);
    line-height: 1.1;
}

.stat-cap {
    display: block;
    color: var(--muted);
    font-size: .88rem;
    margin-top: .4rem;
}

/* Таймлайн */
.timeline {
    position: relative;
    padding-left: 2.4rem;
    margin: 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: .6rem;
    bottom: .6rem;
    width: 1px;
    background: var(--line);
}

.tl-item {
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    min-width: 0;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -1.75rem;
    top: 1.6rem;
    width: 1.75rem;
    height: 1px;
    background: var(--line);
}

.tl-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .5rem;
}

.tl-step {
    font-family: var(--head-font);
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}

.tl-item h3 {
    margin: 0 0 .4rem;
    font-size: 1.15rem;
}

.tl-item p {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
}

/* CTA */
.fs-cta {
    position: relative;
    background-color: var(--bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    padding: 2.6rem 2.2rem;
}

.fs-cta .cta-flag {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 10px;
    height: 10px;
    background: var(--danger);
}

.fs-cta h2 {
    max-width: 24ch;
}

.cta-text {
    color: var(--muted);
    max-width: 66ch;
}

.cta-actions {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}

.cta-mail {
    font-family: var(--head-font);
    letter-spacing: .08em;
    color: var(--accent);
}

/* Блок последних записей на главной */
.fs-latest {
    padding: 3rem 2rem;
}

.latest-more {
    margin-top: 1.8rem;
}

/* ==================================================================
   8. Записи и страницы
   ================================================================== */

.entry-head {
    margin-bottom: 1.6rem;
    border-top: 1px dashed var(--line);
    padding-top: 1.4rem;
}

.entry-head h1 {
    font-size: 2.4rem;
    position: relative;
    padding-left: 1.1rem;
}

.entry-head h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 4px;
    background: var(--accent);
}

.entry-meta {
    color: var(--muted);
    font-size: .85rem;
    letter-spacing: .05em;
}

.entry-thumb {
    margin-bottom: 1.6rem;
}

.entry-thumb img {
    width: 100%;
    display: block;
    border: 1px solid var(--line);
}

.entry-body {
    font-size: 1.02rem;
}

.entry-body h2,
.entry-body h3 {
    margin-top: 1.8em;
}

.entry-body img {
    border: 1px solid var(--line);
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    font-size: .88rem;
    color: var(--muted);
}

.entry-tags a {
    color: var(--accent);
}

.page-head {
    border-top: 1px dashed var(--line);
    padding-top: 1.4rem;
    margin-bottom: 1.6rem;
}

.page-head h1 {
    font-size: 2.4rem;
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.page-head h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 4px;
    background: var(--accent);
}

/* ==================================================================
   9. Пагинация
   ================================================================== */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    padding: .55rem .95rem;
    border: 1px solid var(--line);
    color: var(--ink);
    font-family: var(--head-font);
    font-size: .9rem;
    letter-spacing: .06em;
    background: var(--bg-alt);
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #08111F;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* ==================================================================
   10. Формы, поиск, комментарии
   ================================================================== */

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--ink);
    padding: .7rem .9rem;
    font-family: var(--body-font);
    font-size: .95rem;
    border-radius: 0;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form {
    display: flex;
    gap: .6rem;
    align-items: stretch;
}

.search-form label {
    flex: 1;
    min-width: 0;
}

.search-form .btn {
    padding: .7rem 1.2rem;
    cursor: pointer;
}

.comments-area {
    margin-top: 3rem;
    border-top: 1px dashed var(--line);
    padding-top: 1.8rem;
}

.comments-area h2 {
    font-size: 1.5rem;
    position: relative;
    padding-left: 1.1rem;
}

.comments-area h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    background: var(--accent);
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0;
}

.cmt-inner {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.1rem 1.2rem;
    margin-bottom: 1rem;
}

.cmt-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

.cmt-author {
    font-family: var(--head-font);
    letter-spacing: .05em;
    color: var(--ink);
}

.cmt-date {
    color: var(--muted);
    font-size: .82rem;
}

.cmt-text p {
    margin: 0 0 .6em;
}

.cmt-reply a {
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-family: var(--head-font);
}

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    padding: 1.6rem 1.6rem;
}

.comment-respond .comment-reply-title {
    margin-top: 0;
    font-size: 1.25rem;
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form label {
    display: block;
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .35rem;
}

.comment-form .submit {
    background: var(--accent);
    color: #08111F;
    border: 1px solid var(--accent);
    font-family: var(--head-font);
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .8rem 1.6rem;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: transform .2s ease, background-color .2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    background: #6FB6FF;
}

.comment-form .comment-form-cookies-consent label {
    display: inline;
}

/* ==================================================================
   11. Виджеты
   ================================================================== */

.widget {
    color: var(--ink);
}

.widget-title {
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    position: relative;
    padding-left: 1rem;
    margin-bottom: 1rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    bottom: .2em;
    width: 4px;
    background: var(--accent);
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
}

.widget li:last-child {
    border-bottom: 0;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--ink);
}

.sidebar .widget a {
    color: var(--ink);
    transition: color .2s ease;
}

.sidebar .widget a:hover {
    color: var(--accent);
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    color: var(--muted);
    font-size: .8rem;
}

/* ==================================================================
   12. Подвал
   ================================================================== */

.site-foot {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

.foot-col {
    min-width: 0;
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #C6D3E6;
    font-size: .94rem;
}

.site-foot .widget-title {
    color: var(--ink);
}

.site-foot .widget a {
    color: #C6D3E6;
}

.site-foot .widget a:hover {
    color: var(--accent);
}

.site-foot .widget .post-date {
    color: var(--muted);
}

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: .85rem;
    line-height: 1.6;
}

/* ==================================================================
   13. Cookie-баннер
   ================================================================== */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    background: var(--bg-alt);
    border-top: 2px solid var(--accent);
    padding: 1.1rem 1.6rem;
    color: var(--ink);
    font-size: .9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 78ch;
    min-width: 0;
}

.cookie-banner .btn {
    padding: .6rem 1.3rem;
    cursor: pointer;
}

/* ==================================================================
   14. 404 и поиск
   ================================================================== */

.nf-box {
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 2.6rem 2.2rem;
    border-left: 4px solid var(--danger);
}

.nf-box h1 {
    font-size: 2.6rem;
}

.nf-code {
    font-family: var(--head-font);
    font-size: 5rem;
    color: var(--danger);
    line-height: 1;
    letter-spacing: .06em;
}

.nf-actions {
    margin-top: 1.6rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.nf-search {
    margin-top: 1.8rem;
    max-width: 480px;
}

.archive-head {
    border-top: 1px dashed var(--line);
    padding-top: 1.4rem;
    margin-bottom: 1.8rem;
}

.archive-head h1 {
    font-size: 2.2rem;
    position: relative;
    padding-left: 1.1rem;
}

.archive-head h1::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 4px;
    background: var(--accent);
}

.empty-note {
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 1.6rem 1.6rem;
    color: var(--muted);
}

/* ==================================================================
   15. Адаптив
   ================================================================== */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .layout-single,
    .front {
        width: 100%;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        flex: 1 1 100%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        border-top: 1px dashed var(--line);
        padding-top: .8rem;
        margin-top: .4rem;
    }

    .main-nav li {
        padding: .45rem 0;
    }

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

    .stats-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.2rem 0;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }

    .front-section,
    .fs-latest {
        padding: 2rem 1.3rem;
    }

    .fs-cta {
        padding: 1.9rem 1.4rem;
    }

    .nf-box {
        padding: 1.8rem 1.4rem;
    }

    .sidebar {
        padding: 1.2rem 1.1rem;
    }

    .comment-respond {
        padding: 1.3rem 1.2rem;
    }

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

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

    .stat {
        border-right: 0;
        border-bottom: 1px dashed var(--line);
        padding: .8rem 0;
    }

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

    .front-section::after {
        width: 200px;
        height: 130px;
    }

    .cookie-banner {
        padding: 1rem 1.1rem;
    }
}
