/*
Theme Name: dds_дезтерем.рф
Theme URI: https://дезтерем.рф/
Author: Дмитрий Кравцов
Author URI: https://дезтерем.рф/
Description: Специализированный образовательный портал «Дезтерем» — онлайн-платформа для подготовки, аттестации и сопровождения специалистов в области дезинфектологии, гигиены и вирусологии.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dezterem
*/

/* ============== БАЗА ============== */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: "Inter", "PT Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #2E3A44;
    background: #F5F7FC;
    overflow-x: hidden;
}

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

a {
    color: #007C7E;
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: #1B3B4F; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Manrope", "Inter", "Helvetica Neue", Arial, sans-serif;
    color: #1B3B4F;
    line-height: 1.25;
    margin: 0 0 .6em;
    font-weight: 700;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.8rem, 1.4rem + 1.8vw, 2.6rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

p, ul, ol { color: inherit; }

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

blockquote {
    margin: 1.2em 0;
    padding: .8em 1.2em;
    border-left: 4px solid #007C7E;
    background: rgba(194, 220, 219, .25);
    color: #1B3B4F;
    font-style: italic;
}

code, pre {
    font-family: "JetBrains Mono", Consolas, Monaco, monospace;
    background: #EDF1F7;
    color: #1B3B4F;
    border-radius: 4px;
}
code { padding: 2px 6px; font-size: .92em; }
pre {
    padding: 14px 18px;
    overflow-x: auto;
    border: 1px solid #C2DCDB;
    margin: 1em 0;
}

hr {
    border: none;
    border-top: 1px solid #C2DCDB;
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #C2DCDB;
    background: #fff;
}
th, td {
    border: 1px solid #C2DCDB;
    padding: 10px 14px;
    text-align: left;
}
th {
    background: rgba(0, 124, 126, .08);
    color: #1B3B4F;
    font-weight: 700;
}

/* ============== ОБЁРТКА ============== */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main {
    padding: 32px 0 64px;
}

/* «Слом» уголков — отсылка к защитной архитектуре */
.site-corner-cut {
    position: relative;
}
.site-corner-cut::before,
.site-corner-cut::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    pointer-events: none;
    z-index: 5;
}
.site-corner-cut::before {
    top: 0; left: 0;
    border-top: 2px solid #007C7E;
    border-left: 2px solid #007C7E;
}
.site-corner-cut::after {
    bottom: 0; right: 0;
    border-bottom: 2px solid #007C7E;
    border-right: 2px solid #007C7E;
}

/* ============== HEADER ============== */
.site-header {
    background: #fff;
    border-bottom: 1px solid #C2DCDB;
    position: relative;
}
.site-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 3px;
    background: linear-gradient(90deg, #007C7E 0%, #007C7E 35%, #1B3B4F 35%, #1B3B4F 70%, #9E2A3E 70%);
    opacity: .85;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

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

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

.brand-title {
    font-family: "Manrope", "Inter", sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #1B3B4F;
    line-height: 1.2;
    margin: 0;
    display: block;
    max-width: 360px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand-title a { color: inherit; }

.brand-tagline {
    font-size: .82rem;
    color: #5a6770;
    line-height: 1.35;
    margin-top: 4px;
    max-width: 460px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Меню */
.primary-nav { display: flex; align-items: center; }

.primary-nav ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.primary-nav li a {
    display: inline-block;
    padding: 9px 14px;
    color: #1B3B4F;
    font-weight: 600;
    font-size: .95rem;
    border-radius: 6px;
    transition: background .2s ease, color .2s ease;
}
.primary-nav li a:hover,
.primary-nav .current-menu-item > a {
    background: rgba(0, 124, 126, .1);
    color: #007C7E;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1B3B4F;
    color: #1B3B4F;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

/* ============== ХЛЕБНЫЕ КРОШКИ ============== */
.breadcrumbs {
    font-size: .88rem;
    color: #5a6770;
    margin: 18px 0 24px;
    padding: 10px 14px;
    background: rgba(194, 220, 219, .35);
    border-left: 3px solid #007C7E;
    border-radius: 0 4px 4px 0;
}
.breadcrumbs a { color: #1B3B4F; }
.breadcrumbs a:hover { color: #007C7E; }
.breadcrumbs .sep { margin: 0 4px; color: #007C7E; }
.breadcrumbs span:not(.sep) { color: #2E3A44; font-weight: 500; }

/* ============== РАСКЛАДКА ============== */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: flex-start;
}
.layout-no-sidebar { display: block; }
.layout-no-sidebar .content-wrap {
    width: 85%;
    margin-inline: auto;
}

.content-wrap { min-width: 0; }
.sidebar { min-width: 0; }

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .layout-no-sidebar .content-wrap { width: 100%; }
}

/* ============== САЙДБАР ============== */
.sidebar .widget {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-top: 3px solid #007C7E;
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 22px;
    color: #2E3A44;
}
.sidebar .widget-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    color: #1B3B4F;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 1px solid #C2DCDB;
}
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar .widget li {
    padding: 7px 0;
    border-bottom: 1px dashed #C2DCDB;
    color: #2E3A44;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: #1B3B4F; font-weight: 500; }
.sidebar .widget a:hover { color: #007C7E; }
.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: .78rem;
    color: #5a6770;
    margin-top: 2px;
}

/* ============== КОНТЕНТ ЗАПИСИ ============== */
.entry {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    padding: 30px 34px;
    margin-bottom: 24px;
}
.entry-title {
    margin-top: 0;
    border-bottom: 2px solid #007C7E;
    padding-bottom: .35em;
    display: inline-block;
}
.entry-meta {
    font-size: .85rem;
    color: #5a6770;
    margin-bottom: 18px;
}
.entry-meta a { color: #007C7E; }

.entry-thumb {
    margin: 0 -34px 22px;
}
.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .entry { padding: 20px 18px; }
    .entry-thumb { margin: 0 -18px 18px; }
}

/* ============== КАРТОЧКИ ЗАПИСЕЙ (СЕТКА) ============== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin: 0 0 32px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #C2DCDB;
    border-top: 3px solid #007C7E;
    border-radius: 6px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(27, 59, 79, .08);
}

.card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: rgba(194, 220, 219, .3);
}
.card-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 18px 20px 20px;
    min-width: 0;
}

.card-title {
    font-size: 1.1rem;
    margin: 0 0 8px;
    line-height: 1.3;
}
.card-title a { color: #1B3B4F; }
.card-title a:hover { color: #007C7E; }

.card-meta {
    font-size: .78rem;
    color: #5a6770;
    margin-bottom: 10px;
}

.card-excerpt {
    color: #2E3A44;
    font-size: .93rem;
    margin-bottom: 14px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    align-self: flex-start;
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid #007C7E;
    color: #1B3B4F;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: .88rem;
    transition: background .2s ease, color .2s ease;
}
.card-more:hover {
    background: rgba(0, 124, 126, .1);
    color: #007C7E;
}

/* ============== КНОПКИ ============== */
.btn-primary {
    display: inline-block;
    padding: 11px 22px;
    background: #007C7E;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid #007C7E;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
}
.btn-primary:hover {
    background: #006264;
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 124, 126, .25);
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: #1B3B4F;
    border: 1px solid #007C7E;
    border-radius: 8px;
    font-weight: 600;
    transition: background .2s ease;
}
.btn-secondary:hover { background: rgba(0, 124, 126, .1); }

.btn-danger {
    display: inline-block;
    padding: 10px 18px;
    background: #9E2A3E;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    border: 1px solid #9E2A3E;
}
.btn-danger:hover { background: #82202f; color: #fff; }

/* ============== ГЛАВНАЯ ============== */
.hero {
    background: linear-gradient(135deg, #1B3B4F 0%, #007C7E 100%);
    color: #fff;
    padding: 60px 0;
    border-radius: 6px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    border: 2px solid rgba(255,255,255,.15);
    border-radius: 50%;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -60px; right: 60px;
    width: 120px; height: 120px;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: 50%;
}
.hero-inner {
    width: min(92%, 880px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}
.hero h1 {
    color: #fff;
    font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem);
    margin-bottom: .4em;
}
.hero p {
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    margin-bottom: 1.5em;
    max-width: 720px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta .btn-primary {
    background: #fff;
    color: #1B3B4F;
    border-color: #fff;
}
.hero-cta .btn-primary:hover {
    background: #C2DCDB;
    color: #1B3B4F;
}
.hero-cta .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, .6);
}
.hero-cta .btn-secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.section {
    margin: 0 0 48px;
}
.section-title {
    margin: 0 0 6px;
    font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem);
}
.section-subtitle {
    color: #5a6770;
    margin-bottom: 24px;
}

/* Биоиндикатор */
.bio-monitor {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-top: 3px solid #9E2A3E;
    border-radius: 6px;
    padding: 28px 30px;
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 30px;
    align-items: center;
}
@media (max-width: 720px) {
    .bio-monitor { grid-template-columns: 1fr; }
}

.bio-rings {
    position: relative;
    width: 220px;
    height: 220px;
    justify-self: center;
}
.bio-rings .ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid;
    inset: 0;
    animation: bio-pulse 3.4s ease-in-out infinite;
}
.bio-rings .ring-1 { border-color: rgba(0, 124, 126, .55); }
.bio-rings .ring-2 { inset: 22px; border-color: rgba(27, 59, 79, .5); animation-delay: .6s; }
.bio-rings .ring-3 { inset: 46px; border-color: rgba(158, 42, 62, .55); animation-delay: 1.2s; }
.bio-rings .ring-core {
    inset: 70px;
    border: none;
    background: radial-gradient(circle at 30% 30%, #007C7E, #1B3B4F);
    animation: none;
    box-shadow: 0 6px 22px rgba(0, 124, 126, .35);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    text-align: center;
    letter-spacing: .04em;
}
@keyframes bio-pulse {
    0%, 100% { transform: scale(1); opacity: .85; }
    50% { transform: scale(1.05); opacity: 1; }
}

.bio-info ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0;
}
.bio-info li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #C2DCDB;
}
.bio-info li:last-child { border-bottom: none; }
.bio-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}
.bio-dot.green  { background: #007C7E; }
.bio-dot.blue   { background: #1B3B4F; }
.bio-dot.red    { background: #9E2A3E; }

/* Сетка «чистых зон» */
.clean-zones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}
.zone-card {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    padding: 22px 24px;
    border-top: 3px solid #007C7E;
    min-width: 0;
}
.zone-card.type-attest { border-top-color: #1B3B4F; }
.zone-card.type-virus  { border-top-color: #9E2A3E; }
.zone-card h3 {
    margin-top: 0;
    font-size: 1.1rem;
}
.zone-card p {
    color: #2E3A44;
    font-size: .94rem;
    margin-bottom: 0;
}
.zone-card .zone-tag {
    display: inline-block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #007C7E;
    margin-bottom: 8px;
    font-weight: 700;
}
.zone-card.type-attest .zone-tag { color: #1B3B4F; }
.zone-card.type-virus  .zone-tag { color: #9E2A3E; }

/* Протокольные карточки */
.protocol-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.protocol-card {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-left: 5px solid #007C7E;
    padding: 18px 22px;
    border-radius: 0 6px 6px 0;
    min-width: 0;
}
.protocol-card .protocol-number {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: .8rem;
    color: #9E2A3E;
    letter-spacing: .1em;
}
.protocol-card h4 {
    margin: 4px 0 8px;
    color: #1B3B4F;
    font-size: 1.05rem;
}
.protocol-card p { margin: 0; font-size: .92rem; }

/* Шаги / уровни допуска */
.access-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.access-card {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    padding: 22px;
    text-align: center;
    min-width: 0;
}
.access-card .access-badge {
    display: inline-flex;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(0, 124, 126, .12);
    color: #007C7E;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.4rem;
    margin-bottom: 14px;
    border: 2px solid #007C7E;
}
.access-card.lvl-2 .access-badge { background: rgba(27, 59, 79, .12); border-color: #1B3B4F; color: #1B3B4F; }
.access-card.lvl-3 .access-badge { background: rgba(158, 42, 62, .12); border-color: #9E2A3E; color: #9E2A3E; }
.access-card h4 { margin: 0 0 6px; color: #1B3B4F; }
.access-card p  { margin: 0; font-size: .9rem; color: #5a6770; }

/* ============== ПАГИНАЦИЯ ============== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 32px 0 0;
}
.pagination a,
.pagination span {
    display: inline-block;
    min-width: 40px;
    padding: 9px 14px;
    text-align: center;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    background: #fff;
    color: #1B3B4F;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.pagination a:hover {
    background: rgba(0, 124, 126, .1);
    color: #007C7E;
    border-color: #007C7E;
}
.pagination .current {
    background: #007C7E;
    color: #fff;
    border-color: #007C7E;
}

/* ============== ПОИСК ============== */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 520px;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
    color: #2E3A44;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #007C7E;
    box-shadow: 0 0 0 3px rgba(0, 124, 126, .15);
}
.search-form button {
    padding: 10px 18px;
    background: #007C7E;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}
.search-form button:hover { background: #006264; }

/* ============== КОММЕНТАРИИ ============== */
.comments-area {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    padding: 26px 30px;
    margin-top: 26px;
}
.comments-area h2,
.comments-area h3 { color: #1B3B4F; }
.comment-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}
.comment-list li {
    padding: 14px 0;
    border-bottom: 1px solid #C2DCDB;
}
.comment-list li:last-child { border-bottom: none; }
.comment-list .children {
    list-style: none;
    padding-left: 24px;
    margin-top: 14px;
    border-left: 2px solid #C2DCDB;
}
.comment-meta { font-size: .82rem; color: #5a6770; margin-bottom: 6px; }
.comment-author { font-weight: 700; color: #1B3B4F; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    margin-top: 4px;
    background: #fff;
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form p { margin: 0 0 14px; }
.comment-form .form-submit input {
    padding: 11px 22px;
    background: #007C7E;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.comment-form .form-submit input:hover { background: #006264; }

/* ============== FOOTER ============== */
.site-footer {
    background: #1B3B4F;
    color: #d8e3eb;
    padding: 48px 0 0;
    margin-top: 60px;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007C7E 0%, #007C7E 50%, #9E2A3E 50%, #9E2A3E 100%);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 36px;
}
@media (max-width: 800px) {
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid .footer-widget {
    color: #d8e3eb;
    min-width: 0;
}
.footer-grid .footer-widget .widget-title {
    color: #fff;
    font-size: 1.05rem;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    font-weight: 700;
}
.footer-grid .footer-widget,
.footer-grid .footer-widget p,
.footer-grid .footer-widget li,
.footer-grid .footer-widget span {
    color: #d8e3eb;
    font-size: .93rem;
}
.footer-grid .footer-widget a {
    color: #C2DCDB;
}
.footer-grid .footer-widget a:hover {
    color: #fff;
}
.footer-grid .footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-grid .footer-widget li {
    padding: 6px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, .12);
}
.footer-grid .footer-widget li:last-child { border-bottom: none; }
.footer-grid .footer-widget .post-date {
    display: block;
    font-size: .78rem;
    color: rgba(255, 255, 255, .55);
}

.site-copyright {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 18px 0;
    font-size: .86rem;
    color: rgba(255, 255, 255, .65);
    text-align: center;
}

/* ============== COOKIE-БАННЕР ============== */
/* Правило для скрытия должно идти ДО основного блока стилей */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1B3B4F;
    color: #fff;
    padding: 16px 20px;
    border-top: 3px solid #007C7E;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, .15);
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}
.cookie-banner p {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: .92rem;
    color: #d8e3eb;
}
.cookie-banner button {
    padding: 10px 22px;
    background: #007C7E;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: .92rem;
}
.cookie-banner button:hover { background: #006264; }

/* ============== 404 ============== */
.error-404 {
    background: #fff;
    border: 1px solid #C2DCDB;
    border-radius: 6px;
    padding: 50px 40px;
    text-align: center;
}
.error-404 h1 {
    font-size: clamp(2rem, 1.4rem + 3vw, 4rem);
    color: #9E2A3E;
    margin: 0 0 .2em;
}

/* ============== АДАПТИВ ============== */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #C2DCDB;
        border-bottom: 1px solid #C2DCDB;
        padding: 12px 5%;
        display: none;
        z-index: 50;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul {
        flex-direction: column;
        gap: 2px;
        width: 100%;
    }
    .primary-nav li a { width: 100%; }
    .site-header { position: relative; }
}

@media (max-width: 600px) {
    .hero { padding: 40px 0; }
    .entry { padding: 18px; }
    .comments-area { padding: 18px; }
    .brand-title { font-size: 1rem; max-width: 220px; }
    .brand-tagline { display: none; }
}

/* ============== УТИЛИТЫ ============== */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.alignleft  { float: left;  margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.wp-caption {
    max-width: 100%;
    margin: 1em 0;
}
.wp-caption-text {
    font-size: .85rem;
    color: #5a6770;
    text-align: center;
    margin-top: 6px;
}
