/*
Theme Name: dds_portel.ru
Author: Ярослав Титов
Description: Информационная тема для сайта об электронике и аксессуарах для отдыха.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pvolt
*/

:root {
    --bg: #F0F6FC;
    --bg-alt: #FFFFFF;
    --bg-side: #E8F0F8;
    --bg-deep: #0A1A2F;
    --ink: #1C2E40;
    --accent: #0088A8;
    --accent-2: #FFB347;
    --muted: #6B8A9A;
    --line: #DCE8F0;
    --dash: #B0D0E0;
    --font-head: Verdana, "DejaVu Sans", Geneva, "Segoe UI", sans-serif;
    --font-body: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --shell: 1180px;
}

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

html { scroll-behavior: smooth; }

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

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

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

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

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

p { margin: 0 0 1.1em; }

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

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

code, pre {
    font-family: "DejaVu Sans Mono", Consolas, monospace;
    background: var(--bg-side);
    border-radius: 6px;
}

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

code { padding: 0.1em 0.35em; }

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

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

th { background: var(--bg-side); font-family: var(--font-head); }

/* ---------- Контейнер ---------- */

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

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

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

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

.site-main { padding: 2.4rem 0 3.4rem; }

/* ---------- Ссылки в тексте: волна ---------- */

.entry-content a,
.widget-box .textwidget a,
.comment-text a {
    position: relative;
    color: var(--accent);
}

.entry-content a::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='5' viewBox='0 0 20 5'%3E%3Cpath d='M0 3 Q 5 0 10 3 T 20 3' fill='none' stroke='%230088A8' stroke-width='1.4'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.entry-content a:hover::after,
.comment-text a:hover::after { transform: scaleX(1); }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.85rem 1.9rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #1C2E40;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 26, 47, 0.22);
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #1C2E40;
}

.btn-light {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #0A1A2F;
}

.btn-light:hover,
.btn-light:focus {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: #0A1A2F;
}

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

.site-head {
    position: relative;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border-bottom: 3px solid var(--accent);
}

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

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.25;
    color: var(--ink);
}

.brand-tag {
    display: block;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
}

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

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list a {
    display: inline-block;
    position: relative;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ink);
    padding: 0.35rem 0;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }

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

/* ---------- Хлебные крошки ---------- */

.trail {
    padding: 1rem 0 0.2rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

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

.trail .sep { color: var(--dash); margin: 0 0.15rem; }

/* ---------- Заголовки секций ---------- */

.sect-title {
    position: relative;
    display: inline-block;
    margin: 0 0 1.6rem 1.6rem;
    padding-bottom: 0.5rem;
}

.sect-title::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: 0.55em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.sect-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
}

.entry-content h2 {
    position: relative;
    padding-left: 1.6rem;
    margin-top: 2rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: -0.2rem;
    top: 0.5em;
    width: 15px;
    height: 15px;
    background: var(--accent-2);
}

.entry-content h3 { margin-top: 1.6rem; }

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2.4rem 2rem;
    margin-bottom: 2.6rem;
}

.card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border-top: 4px solid var(--accent);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 8px 8px 0 rgba(0, 136, 168, 0.15);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 rgba(255, 179, 71, 0.55);
}

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

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

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(10, 26, 47, 0.45), rgba(10, 26, 47, 0));
    pointer-events: none;
}

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

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

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

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1rem;
}

.card-excerpt { margin-bottom: 1.2rem; }

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

.card-more { margin-top: auto; align-self: flex-start; }

/* ---------- Главная ---------- */

.front-section {
    padding: 3rem 0;
    border-bottom: 2px dashed var(--dash);
}

.front-section:last-child { border-bottom: none; }

.front-section.alt-bg {
    background: var(--bg-alt);
    border-radius: 14px;
    padding: 3rem 2.4rem;
    margin: 0 0 0.5rem;
}

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 4.6rem 2.6rem 4rem;
    margin-bottom: 0.6rem;
    background: linear-gradient(135deg, #0A1A2F 0%, #1E3B5A 100%);
    border-bottom: none;
    color: #EAF3FA;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(10, 26, 47, 0.92) 5%, rgba(30, 59, 90, 0.55) 100%);
}

.hero-compass {
    position: absolute;
    right: -40px;
    bottom: -50px;
    width: 320px;
    height: 320px;
    opacity: 0.1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    max-width: 720px;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 2px solid rgba(255, 179, 71, 0.6);
    border-radius: 30px;
    padding: 0.4rem 1.1rem;
    margin-bottom: 1.4rem;
}

.fs-hero h1 {
    color: #FFFFFF;
    margin-bottom: 0.6rem;
    text-shadow: 0 0 26px rgba(0, 136, 168, 0.75), 0 0 60px rgba(0, 136, 168, 0.35);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--accent-2);
    margin-bottom: 1.9rem;
}

.hero-note {
    color: #C7DCEC;
    max-width: 620px;
    margin-bottom: 2rem;
}

/* Блок 2 — чек-лист */

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

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    min-width: 0;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
}

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

.check-list li:nth-child(even) { color: var(--muted); }

.check-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.check-body { min-width: 0; }

.check-body b {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.15rem;
}

/* Блок 3 — статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.stat-plate {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 1.9rem 1.5rem;
    text-align: center;
    box-shadow: 6px 6px 0 rgba(0, 136, 168, 0.12);
    min-width: 0;
}

.stat-num {
    font-family: var(--font-head);
    font-size: 2.9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.stat-bar {
    width: 62px;
    height: 3px;
    background: var(--accent-2);
    margin: 0.9rem auto 1rem;
}

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

/* Блок 4 — текст + иллюстрация */

.duo {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

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

.duo-art {
    min-width: 0;
    background: var(--bg-alt);
    padding: 2.2rem 2rem 2.6rem;
    box-shadow: 8px 8px 0 rgba(0, 136, 168, 0.14);
    clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 96%, 84% 91%, 74% 97%, 63% 92%, 52% 98%, 41% 92%, 30% 97%, 19% 91%, 9% 96%, 0 91%);
}

.duo-art svg { display: block; width: 100%; height: auto; }

.duo-art figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
    text-align: center;
}

/* CTA */

.fs-cta {
    background: linear-gradient(120deg, #F0F6FC 0%, rgba(0, 136, 168, 0.12) 100%);
    background-color: #F0F6FC;
    border: 2px solid var(--dash);
    border-radius: 14px;
    padding: 2.6rem 2.4rem;
    text-align: center;
}

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

.front-latest { padding: 3rem 0; }

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    border-top: 4px solid var(--accent);
}

.widget-box { margin-bottom: 1.8rem; }

.widget-box:last-child { margin-bottom: 0; }

.widget-caption {
    position: relative;
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.widget-caption::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 4px;
    background: var(--accent);
}

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

.sidebar .widget-caption { color: #12283B; }

.sidebar .widget-box a { color: #0A6A85; }

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

.sidebar .widget-box .post-date { color: #4E6E80; font-size: 0.82rem; }

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

.widget-box li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed var(--dash);
}

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

.widget-box li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 7px;
    height: 7px;
    background: var(--accent-2);
}

.widget-box li a { display: inline; }

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

.site-foot {
    background: var(--bg-deep);
    background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 22px);
    color: #C6DAEA;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 2px dashed rgba(176, 208, 224, 0.35);
}

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

.site-foot .widget-box,
.site-foot .widget-box p,
.site-foot .widget-box li,
.site-foot .textwidget { color: #C6DAEA; }

.site-foot .widget-caption { color: #FFFFFF; }

.site-foot .widget-caption::after { background: var(--accent-2); }

.site-foot .widget-box a { color: #8FD2E4; }

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

.site-foot .widget-box li { border-bottom-color: rgba(176, 208, 224, 0.22); }

.site-foot .widget-box li::before { background: var(--accent-2); }

.site-foot .post-date { color: #8FA9BC; }

.foot-bottom {
    padding-top: 1.4rem;
    font-size: 0.85rem;
    color: #8FA9BC;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.4rem;
    justify-content: space-between;
}

.foot-mail { color: #8FD2E4; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2.2rem 0 1rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.6rem 1rem;
    border: 2px solid var(--dash);
    border-radius: 30px;
    background: var(--bg-alt);
    color: var(--ink);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

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

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    min-width: auto;
    padding: 0.6rem 0.3rem;
}

/* ---------- Запись ---------- */

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

.entry-title { font-size: 3.5rem; margin-bottom: 0.5rem; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

.entry-content { margin-bottom: 2rem; }

.entry-content img { border-radius: 10px; display: block; }

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

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--dash);
    border-radius: 30px;
    padding: 0.2rem 0.8rem;
    margin: 0 0.3rem 0.4rem 0;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.4rem 0;
    border-top: 2px dashed var(--dash);
    border-bottom: 2px dashed var(--dash);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.post-nav span { min-width: 0; }

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

.comments-area {
    background: var(--bg-alt);
    border-radius: 12px;
    border-top: 4px solid var(--accent);
    padding: 1.8rem 1.8rem 2rem;
}

.comments-title { font-size: 1.4rem; 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: 2px dashed var(--dash);
}

.comment-inner {
    padding: 1rem 1.2rem;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 1rem;
}

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

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

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

.comment-tools { font-size: 0.85rem; }

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    padding: 0.7rem 1rem;
    border: 2px solid var(--dash);
    border-radius: 10px;
    background: #FFFFFF;
}

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

.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; }

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

.comment-form .submit,
.search-submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.85rem 1.9rem;
    border-radius: 30px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.comment-form .submit:hover,
.search-submit:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #1C2E40;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(10, 26, 47, 0.22);
}

/* ---------- Поиск и 404 ---------- */

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

.search-box {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    flex-wrap: wrap;
}

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

.page-head { margin-bottom: 1.8rem; }

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

.not-found {
    background: var(--bg-alt);
    border-radius: 14px;
    border-top: 4px solid var(--accent);
    padding: 2.6rem 2.2rem;
}

.not-found .code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.no-posts {
    background: var(--bg-alt);
    border-radius: 12px;
    padding: 1.8rem 1.8rem;
}

/* ---------- Cookie-баннер ---------- */

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

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: #0A1A2F;
    border-top: 3px solid var(--accent);
    color: #D7E7F3;
    font-size: 0.9rem;
}

.cookie-bar p { margin: 0; max-width: 780px; min-width: 0; }

.cookie-bar a { color: var(--accent-2); }

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

@media (max-width: 960px) {
    body { font-size: 16px; }
    h1, .entry-title { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }

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

    .layout-single { width: 100%; }

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

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

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

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

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

    .nav-list {
        flex-direction: column;
        gap: 0;
        background: var(--bg-alt);
        border-radius: 12px;
        padding: 0.6rem 1rem;
        margin-top: 0.6rem;
    }

    .nav-list li { border-bottom: 1px dashed var(--dash); }

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

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

@media (max-width: 600px) {
    h1, .entry-title { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }

    .front-section { padding: 2.2rem 0; }

    .front-section.alt-bg { padding: 2rem 1.4rem; }

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

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

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

    .stat-num { font-size: 2.4rem; }

    .duo-art { padding: 1.6rem 1.3rem 2rem; }

    .card-grid { gap: 1.8rem; }

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

    .comments-area { padding: 1.4rem 1.2rem 1.6rem; }

    .not-found { padding: 1.9rem 1.4rem; }

    .sidebar { padding: 1.3rem 1.2rem; }

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

    .hero-compass { width: 200px; height: 200px; right: -60px; }
}
