/*
Theme Name: dds_info-resursy.rf
Author: Алексей Городецкий
Description: Тема для информационного портала об IT-индустрии, веб-технологиях и цифровых государственных ресурсах. Холодная палитра, японский минимализм, асимметричная сетка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: infores
*/

/* =========================================================
   1. Переменные и базовые правила
   ========================================================= */
:root {
    --paper: #F0F4F8;
    --alt: #E4E9F0;
    --head-bg: #1A233A;
    --foot-bg: #0F1729;
    --side-bg: #FFFFFF;
    --ink: #1E2A3A;
    --acc: #3A86FF;
    --acc2: #00C2D1;
    --muted: #6B7A8F;
    --grid: #D0D9E5;
    --sans: "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
    --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: radial-gradient(var(--grid) 1px, transparent 1px);
    background-size: 26px 26px;
    background-attachment: fixed;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.8em;
}

h1 { font-size: 3.5rem; margin-bottom: 0.5em; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.25em;
}

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

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

blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, #1A233A 0%, #2A3B5C 100%);
    border-left: 5px solid var(--acc2);
    color: #EDF2F9;
}

blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: var(--mono);
    font-size: 0.92em;
    background: var(--alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--grid);
}

th, td {
    border: 1px solid var(--grid);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

th {
    background: var(--alt);
    font-weight: 700;
}

/* =========================================================
   2. Каркас
   ========================================================= */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main {
    display: block;
    padding: 2.4rem 0 3.6rem;
}

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

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

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

/* =========================================================
   3. Ссылки в тексте — растущее подчёркивание
   ========================================================= */
.prose a,
.entry-content a,
.crumbs a,
.card-title a {
    position: relative;
    display: inline;
}

.prose a::after,
.entry-content a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--acc);
    transition: width 0.25s ease;
}

.prose a:hover::after,
.entry-content a:hover::after,
.card-title a:hover::after {
    width: 100%;
}

/* =========================================================
   4. Кнопки
   ========================================================= */
.btn {
    display: inline-block;
    border: 1px solid var(--acc);
    border-radius: 0;
    background: transparent;
    color: var(--acc);
    padding: 0.75rem 1.7rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus {
    background: var(--acc);
    color: #FFFFFF;
}

.btn-fill {
    background: var(--acc);
    color: #FFFFFF;
}

.btn-fill:hover,
.btn-fill:focus {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--head-bg);
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.55);
    color: #FFFFFF;
}

.btn-light:hover,
.btn-light:focus {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--head-bg);
}

/* =========================================================
   5. Шапка
   ========================================================= */
.site-top {
    position: static;
    background: var(--head-bg);
    color: #FFFFFF;
    border-bottom: 1px solid rgba(58, 134, 255, 0.35);
}

.site-top__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
}

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

.brand-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

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

.brand-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #FFFFFF;
    max-width: 46ch;
}

.brand-name a { color: #FFFFFF; }
.brand-name a:hover { color: var(--acc2); }

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: #9FB0C6;
    max-width: 58ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0;
    color: #FFFFFF;
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.main-nav a {
    position: relative;
    display: inline-block;
    color: #D7E1EE;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--acc2);
    transition: width 0.25s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

.main-nav a:hover { color: #FFFFFF; }

/* =========================================================
   6. Заголовки секций и «цифровой след»
   ========================================================= */
.sec-head {
    position: relative;
    padding-top: 2.1rem;
    margin-bottom: 1.8rem;
}

.sec-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--acc);
}

.sec-num {
    position: absolute;
    top: -0.55rem;
    left: 42%;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--acc);
}

.sec-title {
    margin: 0;
    padding-left: 2.4rem;
    font-size: 1.95rem;
}

.sec-lead {
    margin: 0.7rem 0 0;
    padding-left: 2.4rem;
    color: var(--muted);
    max-width: 62ch;
}

.on-dark .sec-title,
.on-dark .sec-lead { color: #E7EDF6; }

.on-dark .sec-head::before { background: var(--acc2); }
.on-dark .sec-num { color: var(--acc2); }

/* =========================================================
   7. Секции главной
   ========================================================= */
.front-wrap {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section {
    position: relative;
    padding: 3.4rem 2.2rem;
    margin-bottom: 2.6rem;
    border-top: 1px solid var(--grid);
    border-left: 1px solid var(--grid);
}

.front-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 12px;
    background-image: repeating-linear-gradient(135deg, rgba(58, 134, 255, 0.16) 0 6px, transparent 6px 13px);
    pointer-events: none;
}

.fs-paper { background: var(--paper); }
.fs-alt { background: var(--alt); }

/* --- Блок 1: hero --- */
.fs-hero {
    background: var(--head-bg);
    color: #FFFFFF;
    border-top: 1px solid var(--acc);
    border-left: 1px solid rgba(58, 134, 255, 0.5);
    overflow: hidden;
    padding: 4.2rem 2.4rem;
}

.fs-hero::after {
    background-image: repeating-linear-gradient(135deg, rgba(0, 194, 209, 0.35) 0 6px, transparent 6px 13px);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 50%;
    min-width: 0;
}

.hero-kicker {
    display: block;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.06;
    color: #FFFFFF;
    margin: 0 0 1.1rem;
}

.hero-sub {
    color: #B7C6DA;
    font-size: 1.02rem;
    margin-bottom: 1.9rem;
}

.hero-art {
    position: absolute;
    top: 0;
    right: -2%;
    width: 44%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-art svg {
    width: 100%;
    height: 100%;
}

.hero-blob {
    position: absolute;
    top: -60px;
    right: -50px;
    width: 360px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* --- Блок 2: таймлайн --- */
.tl {
    position: relative;
    margin-top: 2.4rem;
}

.tl::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--acc);
}

.tl-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1fr);
    align-items: start;
    margin-bottom: 2.1rem;
}

.tl-row:last-child { margin-bottom: 0; }

.tl-year {
    text-align: right;
    padding-right: 1.6rem;
    font-family: var(--mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--head-bg);
    letter-spacing: 0.04em;
}

.tl-mark {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: center;
    padding-top: 0.55rem;
}

.tl-dot {
    width: 13px;
    height: 13px;
    background: var(--paper);
    border: 2px solid var(--acc);
}

.tl-body {
    min-width: 0;
    padding-left: 1.6rem;
}

.tl-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.08rem;
}

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

/* --- Блок 3: цитата --- */
.fs-quote { overflow: hidden; }

.quote-plate {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #1A233A 0%, #2A3B5C 100%);
    border-left: 5px solid var(--acc2);
    padding: 2.6rem 2.4rem;
    margin-top: 2.2rem;
}

.quote-plate p {
    margin: 0;
    font-size: 2.2rem;
    line-height: 1.34;
    letter-spacing: 0.03em;
    font-weight: 700;
    color: #F1F5FB;
}

.quote-sign {
    display: block;
    margin-top: 1.5rem;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acc2);
}

.quote-blob {
    position: absolute;
    left: -60px;
    bottom: -70px;
    width: 320px;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

/* --- Блок 4: рубрикатор --- */
.rubrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    margin-top: 2.2rem;
}

.rubric {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    background: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 0;
    padding: 2.2rem 1.8rem 2.4rem;
    min-width: 0;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.rubric svg {
    width: 52px;
    height: 52px;
    stroke: var(--head-bg);
    fill: none;
    stroke-width: 1.4;
    transition: stroke 0.22s ease;
}

.rubric-name {
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ink);
    transition: color 0.22s ease;
}

.rubric-note {
    font-size: 0.9rem;
    color: var(--muted);
    transition: color 0.22s ease;
}

.rubric:hover {
    background: var(--head-bg);
    border-color: var(--head-bg);
}

.rubric:hover .rubric-name { color: #FFFFFF; }
.rubric:hover .rubric-note { color: #AEBED4; }
.rubric:hover svg { stroke: #FFFFFF; }

/* =========================================================
   8. Карточки записей
   ========================================================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
    gap: 1.7rem;
}

.cards-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.7rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--alt);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0;
    background: var(--acc);
    transition: width 0.22s ease;
    z-index: 2;
}

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

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

.card-thumb {
    display: block;
    width: 100%;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: contrast(1.1) saturate(0.92);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.35rem 1.5rem 1.6rem;
}

.card-title {
    font-size: 1.16rem;
    margin: 0 0 0.55rem;
}

.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--acc); }
.card-title a::after { background: var(--acc); }

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

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

.card-foot {
    margin-top: auto;
}

.post-meta {
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.post-meta a { color: var(--acc); }
.meta-sep { color: var(--grid); }

.card-more {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--acc);
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

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

/* =========================================================
   9. Записи и страницы
   ========================================================= */
.crumbs {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    letter-spacing: 0.03em;
}

.crumbs a { color: var(--acc); }
.crumbs-sep { color: var(--grid); padding: 0 0.25rem; }

.page-head {
    padding-top: 2.1rem;
    position: relative;
    margin-bottom: 1.8rem;
}

.page-head::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 1px;
    background: var(--acc);
}

.page-head h1 {
    font-size: 2.7rem;
    padding-left: 2.4rem;
    margin: 0;
}

.entry-hero img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
    margin-bottom: 1.8rem;
}

.entry-content {
    border-top: 1px solid var(--grid);
    border-left: 1px solid var(--grid);
    background: #FFFFFF;
    padding: 2rem 2.1rem 2.2rem;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.9rem;
}

.entry-content img { margin: 1.2rem 0; }

.entry-tags {
    margin-top: 1.6rem;
    font-size: 0.84rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--grid);
    padding: 0.2rem 0.7rem;
    margin: 0 0.35rem 0.4rem 0;
    color: var(--ink);
}

.entry-tags a:hover {
    background: var(--acc);
    border-color: var(--acc);
    color: #FFFFFF;
}

.list-head {
    margin-bottom: 2rem;
}

/* =========================================================
   10. Сайдбар и виджеты
   ========================================================= */
.sidebar {
    background: var(--side-bg);
    border-top: 1px solid var(--acc);
    border-left: 1px solid var(--grid);
    padding: 1.7rem 1.5rem 1.9rem;
    min-width: 0;
}

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

.sidebar .widget-title {
    font-size: 0.9rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--alt);
}

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

.sidebar li {
    padding: 0.45rem 0 0.45rem 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--alt);
    font-size: 0.94rem;
    color: var(--ink);
}

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 5px;
    height: 5px;
    background: var(--acc2);
}

.sidebar li a { color: var(--ink); }
.sidebar li a:hover { color: var(--acc); }
.sidebar .post-date { display: block; font-size: 0.76rem; color: var(--muted); font-family: var(--mono); }
.sidebar p { color: var(--ink); font-size: 0.94rem; }

/* =========================================================
   11. Формы поиска и комментарии
   ========================================================= */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

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

.search-form input[type="search"] {
    width: 100%;
    border: 1px solid var(--grid);
    border-radius: 0;
    background: #FFFFFF;
    padding: 0.72rem 0.9rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--acc);
}

.comments-area {
    margin-top: 2.6rem;
    background: #FFFFFF;
    border-top: 1px solid var(--grid);
    border-left: 1px solid var(--grid);
    padding: 1.9rem 2rem 2.1rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 1px solid var(--alt);
}

.comment-item { margin-bottom: 1.2rem; }

.comment-inner {
    border-top: 1px solid var(--alt);
    border-left: 1px solid var(--alt);
    padding: 1.1rem 1.2rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author { font-weight: 700; }

.comment-date {
    font-family: var(--mono);
    font-size: 0.76rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.comment-actions a {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.comment-hold { color: var(--muted); font-size: 0.88rem; }

.comment-form label {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--grid);
    border-radius: 0;
    background: var(--paper);
    padding: 0.7rem 0.9rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 150px; }

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

.comment-form .submit {
    display: inline-block;
    border: 1px solid var(--acc);
    border-radius: 0;
    background: var(--acc);
    color: #FFFFFF;
    padding: 0.75rem 1.7rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: transparent;
    color: var(--acc);
}

/* =========================================================
   12. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.8rem;
    border: 1px solid var(--grid);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager .page-numbers:hover,
.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #FFFFFF;
}

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

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

/* =========================================================
   13. Подвал
   ========================================================= */
.site-foot {
    background: var(--foot-bg);
    color: #C3D0E0;
    padding: 3rem 0 1.6rem;
    border-top: 1px solid rgba(58, 134, 255, 0.35);
}

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

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

.site-foot .widget-title {
    font-size: 0.86rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-foot p,
.site-foot li,
.site-foot .textwidget {
    color: #C3D0E0;
    font-size: 0.92rem;
}

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

.site-foot li {
    padding: 0.38rem 0 0.38rem 1rem;
    position: relative;
}

.site-foot li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 5px;
    height: 5px;
    background: var(--acc2);
}

.site-foot a { color: #D7E1EE; }
.site-foot a:hover { color: var(--acc2); }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-family: var(--mono);
    font-size: 0.76rem;
    letter-spacing: 0.09em;
    color: #8497AE;
}

/* =========================================================
   14. Cookie-баннер
   ========================================================= */
.cookie-banner[hidden] { display: none !important; }

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

.cookie-banner p { margin: 0; min-width: 0; max-width: 78ch; }
.cookie-banner a { color: var(--acc2); }

/* =========================================================
   15. 404 и служебные
   ========================================================= */
.notfound {
    padding: 2rem 2.1rem 2.4rem;
    background: #FFFFFF;
    border-top: 1px solid var(--acc);
    border-left: 1px solid var(--grid);
}

.notfound-code {
    font-family: var(--mono);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 0.6rem;
}

.notfound .search-form { margin: 1.4rem 0 1.6rem; }

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

.empty-note {
    background: #FFFFFF;
    border-top: 1px solid var(--acc);
    border-left: 1px solid var(--grid);
    padding: 1.6rem 1.8rem;
    color: var(--muted);
}

/* =========================================================
   16. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    body { font-size: 16px; }

    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.5rem; }

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

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

    .hero-inner { max-width: 68%; }
    .hero-art { width: 36%; opacity: 0.85; }

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

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

    .quote-plate p { font-size: 1.75rem; }
}

@media (max-width: 600px) {
    .site-top__inner {
        align-items: flex-start;
        padding: 1.1rem 0;
    }

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

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

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0.1rem;
        margin-top: 0.8rem;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 0.55rem 0;
    }

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

    .hero-title { font-size: 2.05rem; }

    .front-section {
        padding: 2.4rem 1.3rem;
        margin-bottom: 1.8rem;
    }

    .fs-hero { padding: 2.6rem 1.4rem; }

    .hero-inner { max-width: 100%; }

    .hero-art { display: none; }

    .sec-title,
    .sec-lead,
    .page-head h1 { padding-left: 1.2rem; }

    .sec-num { left: 44%; }

    .page-head h1 { font-size: 1.9rem; }

    .tl::before { left: 7px; }

    .tl-row {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 0.4rem;
    }

    .tl-year {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        padding-right: 0;
        padding-left: 1rem;
        font-size: 1.15rem;
    }

    .tl-mark {
        grid-column: 1;
        grid-row: 1 / span 2;
        justify-content: flex-start;
        padding-top: 0.5rem;
    }

    .tl-body {
        grid-column: 2;
        grid-row: 2;
        padding-left: 1rem;
    }

    .quote-plate {
        padding: 1.7rem 1.4rem;
    }

    .quote-plate p { font-size: 1.32rem; }

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

    .rubric { padding: 1.6rem 1.4rem 1.8rem; }

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

    .entry-content,
    .comments-area,
    .notfound { padding: 1.5rem 1.3rem 1.7rem; }

    .cookie-banner { padding: 1rem 1.2rem; font-size: 0.84rem; }

    .card-body { padding: 1.15rem 1.2rem 1.4rem; }
}
