/*
Theme Name: dds_iesvn
Theme URI: https://iesvn.com/
Author: Алексей Воронцов
Author URI: https://iesvn.com/
Description: Тема оформления для образовательного медиа и базы знаний по экологии, устойчивому развитию, КСО и основам ESG.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: dds_iesvn
*/

/* === БАЗА === */

:root {
    --clr-deep: #0F3B2C;
    --clr-emerald: #2A7F6E;
    --clr-bg: #F4F7F2;
    --clr-card: #FEFEF9;
    --clr-ochre: #C9A03D;
    --clr-ochre-hover: #B28B2E;
    --clr-terracotta: #B85C38;
    --clr-text: #1E2F2A;
    --clr-text-soft: #5A6B5E;
    --clr-glossary: #E0EBE5;
    --shadow-soft: 0 2px 10px rgba(15, 59, 44, 0.06);
    --shadow-hover: 0 6px 18px rgba(15, 59, 44, 0.12);
    --rad-primary: 12px;
    --rad-secondary: 20px;
    --rad-action: 8px;
    --trans: 0.2s ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--clr-text);
    background: var(--clr-bg);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--clr-emerald);
    text-decoration: none;
    transition: color var(--trans);
}

a:hover {
    color: var(--clr-deep);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--clr-deep);
    line-height: 1.25;
    margin: 1.4em 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
}

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

blockquote {
    margin: 1.2em 0;
    padding: 1em 1.4em;
    background: var(--clr-glossary);
    border-left: 4px solid var(--clr-emerald);
    border-radius: var(--rad-action);
    color: var(--clr-text);
    font-style: italic;
}

code, pre {
    font-family: "Menlo", "Consolas", monospace;
    background: var(--clr-glossary);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 0.9em;
}

pre {
    padding: 1em;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    background: var(--clr-card);
    border: 1px solid #d8e0d9;
}

th, td {
    border: 1px solid #d8e0d9;
    padding: 0.6em 0.9em;
    text-align: left;
}

th {
    background: var(--clr-glossary);
    color: var(--clr-deep);
    font-weight: 700;
}

/* === КОНТЕЙНЕР === */

.wrap-outer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-main {
    padding: 30px 0 60px;
}

.has-sidebar-layout {
    display: flex;
    gap: 4%;
    align-items: flex-start;
}

.has-sidebar-layout .page-content {
    width: 67%;
}

.has-sidebar-layout .side-column {
    width: 27%;
    padding-left: 2%;
}

.wide-content .page-content {
    width: 85%;
    margin: 0 auto;
}

/* === ШАПКА === */

.site-top {
    background: var(--clr-deep);
    color: #fff;
}

.site-top a {
    color: #fff;
}

.site-top a:hover {
    color: var(--clr-ochre);
    text-decoration: none;
}

.topic-bar {
    background: rgba(0, 0, 0, 0.18);
    padding: 8px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topic-bar-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.72);
}

.topic-bar-inner .topic-label {
    font-weight: 600;
    color: var(--clr-ochre);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.topic-bar-inner span.topic-item {
    opacity: 0.9;
}

.topic-bar-inner span.topic-item::before {
    content: "·";
    margin-right: 14px;
    color: rgba(255, 255, 255, 0.35);
}

.topic-bar-inner span.topic-item:first-of-type::before {
    display: none;
}

.head-main {
    padding: 22px 0;
}

.head-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

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

.brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    padding: 6px;
}

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

.brand-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
    margin: 0 0 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.brand-title a {
    color: inherit;
}

.brand-tag {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
    margin: 0;
    max-height: 2.6em;
    overflow: hidden;
}

.site-nav {
    display: flex;
    align-items: center;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--rad-action);
    cursor: pointer;
    font-size: 0.9rem;
}

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

.nav-menu li a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--rad-action);
    font-size: 0.95rem;
    transition: background var(--trans), color var(--trans);
}

.nav-menu li a:hover,
.nav-menu .current-menu-item > a {
    background: var(--clr-emerald);
    color: #fff;
    text-decoration: none;
}

/* === ХЛЕБНЫЕ КРОШКИ === */

.crumbs {
    padding: 14px 0;
    font-size: 0.85rem;
    color: var(--clr-text-soft);
    background: transparent;
}

.crumbs a {
    color: var(--clr-text-soft);
}

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

.crumbs .sep {
    margin: 0 6px;
    opacity: 0.5;
}

.crumbs .current {
    color: var(--clr-text);
}

/* === КНОПКИ === */

.btn-primary {
    display: inline-block;
    background: var(--clr-emerald);
    color: #fff;
    padding: 10px 22px;
    border-radius: var(--rad-primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: var(--clr-deep);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--clr-emerald);
    padding: 7px 18px;
    border: 1.5px solid var(--clr-emerald);
    border-radius: var(--rad-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: background var(--trans), color var(--trans);
    cursor: pointer;
}

.btn-outline:hover {
    background: var(--clr-emerald);
    color: #fff;
    text-decoration: none;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-ochre);
    color: var(--clr-text);
    padding: 9px 18px;
    border-radius: var(--rad-action);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background var(--trans);
}

.btn-action:hover {
    background: var(--clr-ochre-hover);
    color: var(--clr-text);
    text-decoration: none;
}

.btn-action svg {
    width: 16px;
    height: 16px;
}

/* === КАРТОЧКИ (ВЕРТИКАЛЬНЫЕ) === */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--clr-card);
    border-radius: var(--rad-primary);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--trans), box-shadow var(--trans);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--clr-glossary);
}

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

.card-title {
    margin: 0 0 0.5em;
    font-size: 1.1rem;
    line-height: 1.3;
}

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

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

.card-meta {
    font-size: 0.8rem;
    color: var(--clr-text-soft);
    margin: 0 0 0.6em;
}

.card-meta a {
    color: var(--clr-text-soft);
}

.card-excerpt {
    color: var(--clr-text);
    font-size: 0.94rem;
    margin: 0 0 1em;
}

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

.card-foot {
    margin-top: auto;
    padding-top: 8px;
}

/* === ГОРИЗОНТАЛЬНАЯ КАРТОЧКА (методичка) === */

.card-row {
    display: flex;
    flex-direction: row;
    background: var(--clr-card);
    border-radius: var(--rad-primary);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 18px;
    transition: transform var(--trans), box-shadow var(--trans);
}

.card-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.card-thumb-wrap {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
    background: var(--clr-glossary);
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-row .card-body {
    padding: 18px 22px;
}

/* === ФРОНТ-ПЕЙДЖ === */

.hero {
    background: linear-gradient(135deg, var(--clr-deep) 0%, #164a38 100%);
    color: #fff;
    padding: 60px 40px;
    border-radius: var(--rad-primary);
    margin-bottom: 40px;
    text-align: center;
}

.hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin: 0 0 0.4em;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    max-width: 720px;
    margin: 0 auto 1.4em;
}

.section-block {
    margin: 50px 0;
}

.section-block h2 {
    font-size: 1.7rem;
    margin-bottom: 0.4em;
}

.section-lead {
    color: var(--clr-text-soft);
    font-size: 1rem;
    max-width: 780px;
    margin: 0 0 1.8em;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.feature-tile {
    background: var(--clr-card);
    padding: 22px 22px 24px;
    border-radius: var(--rad-primary);
    border-top: 3px solid var(--clr-emerald);
    box-shadow: var(--shadow-soft);
}

.feature-tile h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5em;
    color: var(--clr-deep);
}

.feature-tile p {
    color: var(--clr-text);
    font-size: 0.95rem;
    margin: 0;
}

.feature-tile .tile-tag {
    display: inline-block;
    background: var(--clr-glossary);
    color: var(--clr-deep);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: var(--rad-secondary);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.steps-block {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: stepcount;
}

.step-item {
    background: var(--clr-card);
    padding: 20px;
    border-radius: var(--rad-primary);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.step-item::before {
    counter-increment: stepcount;
    content: counter(stepcount);
    display: inline-block;
    background: var(--clr-ochre);
    color: var(--clr-deep);
    font-weight: 700;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.step-item h4 {
    margin: 0 0 0.4em;
    font-size: 1rem;
}

.step-item p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--clr-text-soft);
}

.expert-block {
    background: var(--clr-glossary);
    border-radius: var(--rad-primary);
    padding: 32px 36px;
    display: flex;
    gap: 28px;
    align-items: center;
}

.expert-avatar {
    flex: 0 0 110px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-emerald), var(--clr-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    box-shadow: var(--shadow-soft);
}

.expert-content h3 {
    margin: 0 0 0.3em;
    font-size: 1.25rem;
}

.expert-content .expert-role {
    display: block;
    font-size: 0.85rem;
    color: var(--clr-text-soft);
    margin-bottom: 0.8em;
}

.expert-content p {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.6;
    font-style: italic;
}

.data-module {
    background: var(--clr-card);
    border-radius: var(--rad-primary);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border-left: 4px solid var(--clr-ochre);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
    align-items: center;
}

.data-module h3 {
    margin: 0 0 0.5em;
    color: var(--clr-deep);
}

.data-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--clr-emerald);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--clr-text-soft);
    margin-top: 4px;
    display: block;
}

/* === САЙДБАР === */

.side-column .widget {
    background: var(--clr-card);
    border-radius: var(--rad-primary);
    padding: 20px 22px;
    margin-bottom: 22px;
    box-shadow: var(--shadow-soft);
}

.side-column .widget-title,
.side-column .widget h2,
.side-column .widget h3 {
    font-size: 1rem;
    color: var(--clr-deep);
    border-bottom: 2px solid var(--clr-glossary);
    padding-bottom: 8px;
    margin: 0 0 12px;
}

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

.side-column .widget li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(224, 235, 229, 0.7);
    font-size: 0.92rem;
}

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

.side-column .widget a {
    color: var(--clr-text);
}

.side-column .widget a:hover {
    color: var(--clr-emerald);
    text-decoration: none;
}

/* === ПАГИНАЦИЯ === */

.pager {
    margin: 40px 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 8px 14px;
    background: var(--clr-card);
    color: var(--clr-deep);
    border-radius: var(--rad-action);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
    transition: background var(--trans), color var(--trans);
    text-decoration: none;
    white-space: nowrap;
}

.pager .page-numbers:hover,
.pager .page-numbers.current {
    background: var(--clr-emerald);
    color: #fff;
    text-decoration: none;
}

.pager .page-numbers.dots,
.pager .page-numbers.dots:hover {
    background: transparent;
    box-shadow: none;
    color: var(--clr-deep);
    cursor: default;
}

/* === ОДИНОЧНАЯ ЗАПИСЬ / СТРАНИЦА === */

.entry-head {
    margin-bottom: 24px;
}

.entry-title {
    margin: 0 0 0.4em;
    font-size: 2.1rem;
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--clr-text-soft);
}

.entry-meta a {
    color: var(--clr-text-soft);
}

.entry-thumb {
    margin-bottom: 24px;
    border-radius: var(--rad-primary);
    overflow: hidden;
    display: block;
}

.entry-body {
    font-size: 1rem;
    line-height: 1.7;
}

.entry-body img {
    border-radius: var(--rad-action);
    margin: 1.2em 0;
}

.entry-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #d8e0d9;
    font-size: 0.88rem;
    color: var(--clr-text-soft);
}

.entry-tags a {
    display: inline-block;
    margin: 0 4px 4px 0;
    padding: 3px 10px;
    background: var(--clr-glossary);
    border-radius: var(--rad-secondary);
    font-size: 0.82rem;
    color: var(--clr-deep);
}

.entry-tags a:hover {
    background: var(--clr-emerald);
    color: #fff;
    text-decoration: none;
}

/* === КОММЕНТАРИИ === */

.comments-block {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--clr-glossary);
}

.comments-block h2,
.comments-block h3 {
    margin-top: 0;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.comment-list li {
    background: var(--clr-card);
    border-radius: var(--rad-primary);
    padding: 18px 22px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-soft);
}

.comment-list .children {
    list-style: none;
    margin: 14px 0 0;
    padding: 0 0 0 24px;
    border-left: 2px solid var(--clr-glossary);
}

.comment-author {
    font-weight: 700;
    color: var(--clr-deep);
    font-size: 0.95rem;
}

.comment-date {
    font-size: 0.8rem;
    color: var(--clr-text-soft);
    margin-left: 10px;
}

.comment-text {
    margin: 10px 0 0;
    font-size: 0.95rem;
}

.comment-reply {
    margin-top: 8px;
    font-size: 0.85rem;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    margin-bottom: 4px;
    font-weight: 600;
    color: var(--clr-deep);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d8e0d9;
    border-radius: var(--rad-action);
    font-size: 0.95rem;
    margin-bottom: 14px;
    font-family: inherit;
    background: var(--clr-card);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--clr-emerald);
}

/* === ПОИСК === */

.search-form {
    display: flex;
    gap: 8px;
    margin: 14px 0;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #d8e0d9;
    border-radius: var(--rad-action);
    font-size: 0.95rem;
    background: var(--clr-card);
}

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

/* === 404 === */

.err-block {
    text-align: center;
    padding: 40px 20px;
}

.err-block .err-num {
    font-size: 5rem;
    color: var(--clr-ochre);
    font-weight: 700;
    line-height: 1;
    margin: 0;
}

/* === ПОДВАЛ === */

.site-foot {
    background: var(--clr-deep);
    color: rgba(255, 255, 255, 0.82);
    padding: 48px 0 0;
    margin-top: 60px;
}

.site-foot a {
    color: rgba(255, 255, 255, 0.82);
}

.site-foot a:hover {
    color: var(--clr-ochre);
    text-decoration: none;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
    padding-bottom: 40px;
}

.foot-cols .widget-title,
.foot-cols .widget h2,
.foot-cols .widget h3 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

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

.foot-cols .widget li {
    padding: 4px 0;
    font-size: 0.9rem;
}

.foot-cols .widget p {
    font-size: 0.9rem;
    margin: 0 0 0.8em;
}

.foot-base {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* === COOKIE-БАННЕР === */

.cookie-bar {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: var(--clr-deep);
    color: #fff;
    padding: 16px 22px;
    border-radius: var(--rad-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.9rem;
}

.cookie-bar-text {
    flex: 1;
}

.cookie-bar-text a {
    color: var(--clr-ochre);
    text-decoration: underline;
}

.cookie-bar button {
    flex-shrink: 0;
}

.cookie-bar.is-hidden {
    display: none;
}

/* === АДАПТИВ === */

@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-block {
        grid-template-columns: repeat(2, 1fr);
    }
    .foot-cols {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .data-module {
        grid-template-columns: 1fr;
    }
    .has-sidebar-layout {
        flex-direction: column;
    }
    .has-sidebar-layout .page-content,
    .has-sidebar-layout .side-column,
    .wide-content .page-content {
        width: 100%;
        padding: 0;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.35rem; }
    .hero {
        padding: 36px 22px;
    }
    .hero h1 { font-size: 1.6rem; }
    .card-grid,
    .feature-grid,
    .steps-block {
        grid-template-columns: 1fr;
    }
    .foot-cols {
        grid-template-columns: 1fr;
    }
    .head-main-inner {
        gap: 14px;
    }
    .nav-toggle {
        display: inline-block;
    }
    .site-nav {
        flex-basis: 100%;
        order: 3;
    }
    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 2px;
        width: 100%;
        padding: 10px 0;
    }
    .nav-menu.is-open {
        display: flex;
    }
    .nav-menu li a {
        display: block;
        padding: 10px 14px;
    }
    .expert-block {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }
    .data-stats {
        grid-template-columns: 1fr 1fr;
    }
    .btn-primary,
    .btn-action {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .card-row {
        flex-direction: column;
    }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a {
        position: static;
    }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}

/* === УТИЛИТЫ === */

.screen-reader-text {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.alignleft { float: left; margin: 0 1.2em 0.8em 0; }
.alignright { float: right; margin: 0 0 0.8em 1.2em; }
.aligncenter { display: block; margin: 0 auto 0.8em; }
.clear { clear: both; }

.wp-caption {
    max-width: 100%;
    margin-bottom: 1em;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--clr-text-soft);
    text-align: center;
    margin-top: 4px;
}

.nothing-found {
    padding: 40px 20px;
    background: var(--clr-card);
    border-radius: var(--rad-primary);
    text-align: center;
    box-shadow: var(--shadow-soft);
}
