/*
Theme Name: dds_69winz.com
Theme URI: https://69winz.com/
Author: Артём Савельев
Description: Информационная тема в духе японского минимализма с холодной сине-стальной палитрой и акцентным «цифровым» синим. Подходит для сайтов с разборами тем, критериями выбора и практическими ориентирами.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: winzo
*/

:root {
    --bg: #f5f7fc;
    --bg-alt: #ebf0f9;
    --head-bg: #ffffff;
    --head-line: #cbd5e1;
    --foot-bg: #0b1a2f;
    --side-bg: #e9eef5;
    --text: #1e2a3a;
    --acc: #2a7de1;
    --acc2: #6c8ebf;
    --muted: #8899b0;
    --card-line: #dce3ec;
    --sans-head: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --sans-body: -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;
    font-family: var(--sans-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg,
        rgba(42, 125, 225, 0.06),
        rgba(42, 125, 225, 0.06) 0.5px,
        rgba(42, 125, 225, 0) 0.5px,
        rgba(42, 125, 225, 0) 16px);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans-head);
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
    font-weight: 600;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

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

.eyebrow {
    display: inline-block;
    font-family: var(--sans-head);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--acc2);
    margin: 0 0 0.9rem;
}

.sec-title {
    position: relative;
    padding-bottom: 0.85rem;
    margin: 0 0 1.8rem;
    text-align: left;
    max-width: 720px;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: var(--acc);
}

.dot-sub {
    position: relative;
    padding-left: 14px;
}

.dot-sub::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
}

/* ---------- Ссылки и кнопки ---------- */

.entry-content a,
.card-excerpt a,
.widget-text a,
.comment-text a {
    color: var(--acc);
    text-decoration: none;
    font-weight: inherit;
    background-image: linear-gradient(var(--acc), var(--acc));
    background-repeat: no-repeat;
    background-size: 0% 1px;
    background-position: 50% 100%;
    transition: background-size 0.3s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget-text a:hover,
.comment-text a:hover { background-size: 100% 1px; }

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--sans-head);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    border-color: var(--acc2);
    background: rgba(42, 125, 225, 0.1);
    color: var(--acc);
}

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

.btn--light:hover {
    border-color: var(--acc2);
    background: rgba(42, 125, 225, 0.22);
    color: #ffffff;
}

.btn--ghost {
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
    color: var(--acc);
}

.btn--ghost:hover {
    background: transparent;
    border-color: transparent;
    text-decoration: underline;
}

/* ---------- Шапка ---------- */

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

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.6rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    text-decoration: none;
    color: var(--text);
}

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    display: block;
    width: 46px;
    height: 46px;
}

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

.brand-name {
    display: block;
    font-family: var(--sans-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
}

.brand-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 0.25rem;
    max-width: 460px;
}

.nav-toggle {
    display: none;
    padding: 0.6rem 1rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--sans-head);
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav a {
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
    font-family: var(--sans-head);
    font-size: 0.96rem;
    color: var(--text);
    text-decoration: none;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -4px;
    height: 1px;
    background: var(--acc);
    transition: left 0.28s ease, right 0.28s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    left: 0;
    right: 0;
}

.main-nav .current-menu-item > a { color: var(--acc); }

.head-rule {
    height: 3px;
    background: var(--acc);
}

/* ---------- Каркас страниц ---------- */

.site-main { display: block; }

.page-body { padding: 3.2rem 0 4.5rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.layout-single { display: block; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.9;
}

.crumbs a {
    color: var(--acc2);
    text-decoration: none;
}

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

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

.page-title {
    font-size: 2.4rem;
    margin: 0 0 1.4rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: var(--acc);
}

/* ---------- Карточки записей ---------- */

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--card-line);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

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

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

.card:hover::before { opacity: 1; }

.card-thumb {
    position: relative;
    display: block;
    background: var(--bg-alt);
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 26, 47, 0.18), rgba(11, 26, 47, 0) 22%, rgba(11, 26, 47, 0) 78%, rgba(11, 26, 47, 0.18)),
        linear-gradient(180deg, rgba(11, 26, 47, 0.12), rgba(11, 26, 47, 0) 26%, rgba(11, 26, 47, 0) 74%, rgba(11, 26, 47, 0.16));
    pointer-events: none;
}

.card-thumb--empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e9eef5, #f5f7fc 60%, #e3eaf5);
}

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

.card-title {
    font-size: 1.18rem;
    margin: 0 0 0.6rem;
}

.card-title a {
    color: var(--text);
    text-decoration: none;
}

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

.post-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.85rem;
}

.post-meta a {
    color: var(--acc2);
    text-decoration: none;
}

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

.meta-sep { margin: 0 0.3rem; }

.card-excerpt {
    font-size: 0.94rem;
    color: #47566b;
    margin-bottom: 1.2rem;
}

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

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

.card-more a {
    font-family: var(--sans-head);
    font-size: 0.9rem;
    color: var(--acc);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease;
}

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

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85rem;
    border: 1px solid var(--card-line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font-family: var(--sans-head);
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.pager .page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
}

.pager .page-numbers.current {
    border-color: var(--acc);
    background: rgba(42, 125, 225, 0.1);
    color: var(--acc);
}

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

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--card-line);
    border-radius: 6px;
    padding: 1.7rem 1.6rem;
    color: var(--text);
}

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

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--text);
    position: relative;
    padding-bottom: 0.6rem;
    margin: 0 0 1rem;
}

.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: var(--acc);
}

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

.sidebar li {
    padding: 0.5rem 0 0.5rem 14px;
    position: relative;
    border-bottom: 1px solid rgba(30, 42, 58, 0.08);
    font-size: 0.94rem;
    color: var(--text);
}

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
}

.sidebar li:last-child { border-bottom: none; }

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

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

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    font-size: 0.78rem;
    color: #5d6c82;
}

.sidebar p { color: var(--text); font-size: 0.94rem; }

/* ---------- Форма поиска ---------- */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--card-line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font-family: var(--sans-body);
    font-size: 0.95rem;
}

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

/* ---------- Контент записи и страницы ---------- */

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

.entry-content h2 { font-size: 1.75rem; margin-top: 2.2rem; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.8rem; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.3em; }

.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--acc);
    border-radius: 6px;
    color: #2b3a4d;
}

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

.entry-content img {
    display: block;
    border-radius: 6px;
    margin: 1.6rem 0;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--card-line);
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--card-line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th {
    background: var(--bg-alt);
    font-family: var(--sans-head);
    font-weight: 600;
}

.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.8rem;
}

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--card-line);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

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

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

.comment-inner {
    background: #ffffff;
    border: 1px solid var(--card-line);
    border-radius: 6px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
}

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

.comment-author {
    font-family: var(--sans-head);
    font-weight: 600;
}

.comment-date { font-size: 0.8rem; color: var(--muted); }

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

.comment-actions a {
    font-size: 0.85rem;
    color: var(--acc);
    text-decoration: none;
}

.comment-actions a:hover { text-decoration: underline; }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--card-line);
    border-radius: 6px;
    padding: 1.8rem 1.7rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--card-line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font-family: var(--sans-body);
    font-size: 0.95rem;
}

.comment-respond textarea { min-height: 150px; resize: vertical; }

.comment-respond .submit {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border: 1px solid var(--acc);
    border-radius: 4px;
    background: transparent;
    color: var(--acc);
    font-family: var(--sans-head);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.comment-respond .submit:hover {
    border-color: var(--acc2);
    background: rgba(42, 125, 225, 0.1);
}

/* ---------- Главная: общие секции ---------- */

.hero .shell,
.front-section .shell { width: min(85%, 1240px); }

.front-section { padding: 120px 0; }

.front-section--alt { background: var(--bg-alt); }

.front-section--grad {
    background: linear-gradient(160deg, #f5f7fc 0%, #e6edf9 55%, #e0e9f7 100%);
}

.front-section--tight { padding: 96px 0; }

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: #0b1a2f;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 14, 26, 0.92) 0%, rgba(6, 14, 26, 0.72) 42%, rgba(6, 14, 26, 0.18) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding: 6.5rem 2.4rem;
    max-width: 760px;
}

.hero-blob {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 420px;
    height: 420px;
    z-index: 1;
    opacity: 0.06;
    pointer-events: none;
}

.hero h1 {
    color: #ffffff;
    margin: 0 0 1.1rem;
    max-width: 14ch;
}

.hero .eyebrow { color: #9fc2ee; }

.hero-lead {
    color: #cfdcec;
    font-size: 1.08rem;
    max-width: 54ch;
    margin: 0 0 2rem;
}

/* Таймлайн */

.tl {
    position: relative;
    margin-top: 3rem;
    padding-left: 0;
    list-style: none;
}

.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--head-line);
    transform: translateX(-0.5px);
}

.tl-item {
    position: relative;
    width: 44%;
    min-width: 0;
    margin-bottom: 3.2rem;
    padding: 0 0 0 0;
}

.tl-item:nth-child(odd) { margin-right: auto; text-align: right; padding-right: 2.4rem; }

.tl-item:nth-child(even) { margin-left: auto; padding-left: 2.4rem; }

.tl-item::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--acc);
}

.tl-item:nth-child(odd)::before { left: calc(113.6% - 4.5px); }

.tl-item:nth-child(even)::before { left: calc(-13.6% - 4.5px); }

.tl-date {
    display: block;
    font-family: var(--sans-head);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.tl-item h3 { font-size: 1.2rem; margin: 0 0 0.5rem; }

.tl-item p { margin: 0; color: #47566b; font-size: 0.96rem; }

/* Статистика */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 3rem;
}

.stat {
    min-width: 0;
    padding: 0.5rem 1.6rem;
    border-left: 1px solid var(--card-line);
}

.stat:first-child { border-left: none; padding-left: 0; }

.stat-num {
    display: block;
    font-family: var(--sans-head);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--acc);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    font-family: var(--sans-head);
    font-size: 0.95rem;
    color: var(--text);
    margin: 0.35rem 0 0.4rem;
}

.stat-note {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Рубрикатор */

.rubrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.6rem;
    margin-top: 3rem;
}

.rubric {
    position: relative;
    display: block;
    min-width: 0;
    padding: 1.9rem 1.7rem;
    background: #ffffff;
    border: 1px solid var(--card-line);
    border-radius: 6px;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rubric::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--acc);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.rubric:hover::before { opacity: 1; }

.rubric-icon {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 1.1rem;
    color: var(--acc);
}

.rubric h3 { font-size: 1.1rem; margin: 0 0 0.5rem; }

.rubric p { margin: 0; font-size: 0.9rem; color: #47566b; }

/* Последние записи на главной */

.front-latest-more { margin-top: 2.6rem; }

/* ---------- Подвал ---------- */

.site-foot {
    background: var(--foot-bg);
    color: #c6d3e4;
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.6rem;
}

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

.site-foot .widget-title {
    position: relative;
    font-size: 1.02rem;
    color: #ffffff;
    padding-bottom: 0.6rem;
    margin: 0 0 1.1rem;
}

.site-foot .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 1px;
    background: var(--acc);
}

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

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

.site-foot li {
    position: relative;
    padding: 0.42rem 0 0.42rem 14px;
}

.site-foot li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--acc);
}

.site-foot a {
    color: #dbe6f4;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-foot a:hover { color: #7fb3f0; }

.site-foot .post-date {
    display: block;
    font-size: 0.78rem;
    color: #93a6bf;
}

.foot-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: #93a6bf;
}

/* ---------- 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;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: #0b1a2f;
    border-top: 3px solid var(--acc);
    color: #d6e2f0;
    font-size: 0.9rem;
}

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

.cookie-banner .btn {
    border-color: var(--acc);
    color: #ffffff;
    white-space: nowrap;
}

/* ---------- 404 ---------- */

.err-code {
    font-family: var(--sans-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--acc);
    margin: 0 0 1rem;
    letter-spacing: -0.04em;
}

.err-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

/* ---------- Адаптив ---------- */

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

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

    .layout-single .content-area { width: 100%; }

    .front-section { padding: 80px 0; }

    .front-section--tight { padding: 64px 0; }

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

    .stat:nth-child(odd) { border-left: none; padding-left: 0; }

    .hero-inner { padding: 5rem 2rem; }

    .hero-blob { width: 300px; height: 300px; }
}

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

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

    .hero .shell,
    .front-section .shell { width: 92%; }

    .head-inner { padding: 1.1rem 0; gap: 1rem; }

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

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

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding: 0.6rem 0 0.2rem;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px solid var(--head-line);
    }

    .main-nav a { display: block; padding: 0.7rem 0; }

    .main-nav a::after { display: none; }

    .brand-desc { display: none; }

    .page-body { padding: 2.2rem 0 3rem; }

    .page-title { font-size: 1.9rem; }

    .front-section { padding: 60px 0; }

    .front-section--tight { padding: 52px 0; }

    .hero-inner { padding: 3.6rem 1.4rem; }

    .hero-lead { font-size: 1rem; }

    .hero-blob { display: none; }

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

    .tl-item,
    .tl-item:nth-child(odd),
    .tl-item:nth-child(even) {
        width: 100%;
        margin: 0 0 2.4rem;
        text-align: left;
        padding-left: 1.7rem;
        padding-right: 0;
    }

    .tl-item::before,
    .tl-item:nth-child(odd)::before,
    .tl-item:nth-child(even)::before {
        left: 0;
        right: auto;
        transform: none;
    }

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

    .stat {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--card-line);
        padding-top: 1.2rem;
    }

    .stat:first-child { border-top: none; padding-top: 0; }

    .entry-content blockquote { padding: 1.2rem 1.2rem; }

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

    .sidebar { padding: 1.4rem 1.3rem; }

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

    .rubric { padding: 1.5rem 1.4rem; }

    .card-body { padding: 1.3rem 1.3rem 1.5rem; }
}
