/*
Theme Name: dds_zonazerotendencias.com
Theme URI: https://zonazerotendencias.com
Author: Анна Литвинова
Author URI: https://zonazerotendencias.com
Description: Образовательный портал о профессиях и обучении в индустрии моды, розничной торговли и электронной коммерции. Тема в стиле «интеллектуальной моды»: акцент на типографике, воздухе и контрасте.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: zonazero
*/

/* =========================================================================
   Переменные и сброс
   ========================================================================= */
:root {
    --bg: #F9F7F5;
    --bg-soft: #EFEDEA;
    --text: #1E1A1A;
    --accent: #D44C5E;
    --accent-2: #2E3A46;
    --warn: #DCAE33;
    --dark: #0F0D0D;
    --line: #ddd8d2;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --shell: min(92%, 1180px);
    --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--serif);
    color: var(--text);
    line-height: 1.22;
    margin: 0 0 0.5em;
    font-weight: 600;
}
h1 { font-size: 2.5rem; letter-spacing: 0.01em; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

/* =========================================================================
   Контейнер ширины
   ========================================================================= */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }

/* =========================================================================
   Кнопки
   ========================================================================= */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    background: transparent;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .12s ease, border-color .18s ease;
}
.btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
    transform: translateY(2px);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color .18s ease;
}
.btn-text .arrow { transition: transform .18s ease; }
.btn-text:hover { color: var(--accent); text-decoration: none; }
.btn-text:hover .arrow { transform: translateX(4px); }

/* =========================================================================
   Шапка
   ========================================================================= */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .2s ease, padding .2s ease;
}
.site-header.is-compact {
    box-shadow: 0 6px 24px rgba(15, 13, 13, 0.08);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    transition: padding .2s ease;
}
.site-header.is-compact .header-inner { padding: 12px 0; }

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}
.brand-logo,
.brand-logo-svg {
    width: 56px;
    height: 56px;
    flex: 0 0 auto;
    display: block;
    transition: width .2s ease, height .2s ease;
}
.site-header.is-compact .brand-logo,
.site-header.is-compact .brand-logo-svg {
    width: 42px;
    height: 42px;
}
.brand-text { min-width: 0; }
.brand-name {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    line-height: 1.3;
}
.brand-name:hover { text-decoration: none; color: var(--accent); }
.brand-desc {
    font-size: 0.78rem;
    color: var(--accent-2);
    display: block;
    margin-top: 2px;
}

.header-nav { margin-left: auto; }
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 26px;
}
.menu a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.menu a:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}
.menu .current-menu-item > a {
    color: var(--accent);
    border-color: var(--accent);
}

/* Бургер */
.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: transparent;
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 13, 13, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
    z-index: 40;
}
body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

/* =========================================================================
   Хлебные крошки
   ========================================================================= */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--accent-2);
    padding: 18px 0 0;
}
.breadcrumbs a { color: var(--accent-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 6px; color: var(--line); }

/* =========================================================================
   Главная — общие блоки
   ========================================================================= */
.hero {
    padding: 78px 0 64px;
    background: var(--bg);
}
.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
}
.hero h1 {
    font-size: clamp(2.3rem, 5vw, 3.5rem);
    max-width: 18ch;
    letter-spacing: 0.01em;
}
.hero-lead {
    max-width: 60ch;
    font-size: 1.1rem;
    color: var(--accent-2);
    margin: 18px 0 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
    border-top: 1px solid var(--line);
    padding-top: 32px;
}
.stat-num {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 2.6rem;
    color: var(--accent);
    line-height: 1;
}
.stat-label {
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-top: 6px;
}

.section-head { margin-bottom: 36px; max-width: 62ch; }
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 12px;
}

/* Гибридная сетка ниш — текст / карточка в шахматном порядке */
.niche-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
}
.niche-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}
.niche-row:nth-child(even) .niche-visual { order: -1; }
.niche-copy { min-width: 0; padding-left: 18px; }
.niche-copy.mark-fashion { border-left: 3px solid var(--accent); }
.niche-copy.mark-retail { border-left: 3px dashed var(--warn); }
.niche-copy.mark-ecom { border-left: 3px solid var(--accent-2); }
.niche-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-2);
    margin-bottom: 10px;
}
.niche-tag .at {
    display: inline-grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1.5px solid var(--accent-2);
    border-radius: 50%;
    font-size: 0.8rem;
}
.niche-visual {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 40px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.niche-visual .big {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
}
.niche-visual ul {
    margin: 0;
    padding-left: 18px;
    color: var(--accent-2);
    font-size: 0.95rem;
}
.niche-visual li { margin-bottom: 6px; }

/* Сетка карточек записей */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* =========================================================================
   Карточка записи
   ========================================================================= */
.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(15, 13, 13, 0.1);
}
.card-thumb-wrap {
    overflow: hidden;
    background: var(--bg-soft);
}
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.card-thumb-placeholder {
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    background: var(--bg-soft);
    color: var(--accent);
    font-family: var(--serif);
    font-size: 2.4rem;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 24px;
    min-width: 0;
}
.card-meta {
    font-size: 0.78rem;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.card-meta .niche-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    vertical-align: middle;
}
.card.niche-fashion .niche-dot { background: var(--accent); }
.card.niche-retail .niche-dot { background: var(--warn); }
.card.niche-ecom .niche-dot { background: var(--accent-2); border-radius: 50%; }
.card.niche-default .niche-dot { background: var(--line); }
.card-title { font-size: 1.25rem; margin-bottom: 10px; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-excerpt {
    color: var(--accent-2);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; }

/* =========================================================================
   Модуль кейсов от инсайдеров — карусель
   ========================================================================= */
.cases { background: var(--bg-soft); }
.cases-track-wrap { position: relative; }
.cases-track {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    scrollbar-width: thin;
}
.case-card {
    scroll-snap-align: start;
    flex: 0 0 320px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.case-photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 1.5rem;
    filter: grayscale(1);
    transition: filter .2s ease;
}
.case-card:hover .case-photo { filter: grayscale(0); }
.case-quote {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text);
    flex: 1;
}
.case-author { font-size: 0.85rem; color: var(--accent-2); }
.case-author strong { color: var(--text); }
.cases-controls { display: flex; gap: 10px; margin-top: 22px; }
.case-nav {
    width: 44px;
    height: 44px;
    border: 1.5px solid var(--accent-2);
    border-radius: 50%;
    background: transparent;
    color: var(--accent-2);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
.case-nav:hover { background: var(--accent-2); color: #fff; }

/* =========================================================================
   Спецблок Zero Water — вкладки
   ========================================================================= */
.zero-water { background: var(--dark); color: var(--bg); }
.zero-water h2 { color: var(--bg); }
.zero-water .section-eyebrow { color: var(--warn); }
.zw-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.zw-tab {
    padding: 10px 22px;
    border-radius: 40px;
    border: 1px solid rgba(249, 247, 245, 0.25);
    background: rgba(249, 247, 245, 0.06);
    color: var(--bg);
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color .15s ease, opacity .15s ease;
}
.zw-tab:hover { opacity: 0.85; }
.zw-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.zw-meter {
    height: 8px;
    border-radius: 40px;
    background: rgba(249, 247, 245, 0.12);
    overflow: hidden;
    margin-bottom: 24px;
}
.zw-meter-fill {
    height: 100%;
    width: 33%;
    background: var(--warn);
    border-radius: 40px;
    transition: width .35s ease;
}
.zw-panel { display: none; }
.zw-panel.is-active { display: block; }
.zw-panel p { color: rgba(249, 247, 245, 0.82); max-width: 60ch; }
.zw-panel h3 { color: var(--bg); }

/* =========================================================================
   Раскладки контента
   ========================================================================= */
.layout-single .content-area {
    width: 85%;
    margin-inline: auto;
}
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr);
    gap: 44px;
    align-items: start;
}
.layout-with-sidebar .content-area { min-width: 0; }

.page-main { padding: 40px 0 64px; }

/* =========================================================================
   Сайдбар
   ========================================================================= */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    color: var(--text);
}
.sidebar .widget-title {
    font-size: 1.05rem;
    margin-bottom: 14px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.sidebar .widget a { color: var(--accent-2); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget .post-date,
.sidebar .widget time {
    display: block;
    font-size: 0.78rem;
    color: var(--accent-2);
    margin-top: 2px;
}

/* =========================================================================
   Записи и страницы
   ========================================================================= */
.entry-header { margin-bottom: 22px; }
.entry-title { font-size: clamp(2rem, 4vw, 2.8rem); }
.entry-meta {
    font-size: 0.85rem;
    color: var(--accent-2);
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.entry-thumb {
    margin: 0 0 26px;
    border-radius: var(--radius);
    overflow: hidden;
}
.entry-thumb img { display: block; width: 100%; }
.entry-content { font-size: 1.05rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
    font-family: var(--serif);
    font-size: 1.15rem;
}
.entry-content a { text-decoration: underline; }
.entry-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--accent-2);
}
.entry-footer a {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 4px 12px;
    background: var(--bg-soft);
    border-radius: 40px;
    color: var(--accent-2);
}
.entry-footer a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Таблицы */
.entry-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.4em 0;
}
.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--accent-2);
}
.entry-content th,
.entry-content td {
    padding: 10px 14px;
    text-align: left;
}
.entry-content th { background: var(--bg-soft); }

/* =========================================================================
   Пагинация
   ========================================================================= */
.pagination { margin-top: 44px; }
.pagination .page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.pagination .page-numbers li a,
.pagination .page-numbers li span {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--accent-2);
    font-weight: 600;
}
.pagination .page-numbers li a:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}
.pagination .page-numbers li .current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* =========================================================================
   Комментарии
   ========================================================================= */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}
.comments-title { font-size: 1.5rem; margin-bottom: 22px; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children {
    list-style: none;
    margin: 0 0 0 32px;
    padding: 0;
}
.comment-item { margin-bottom: 20px; }
.comment-inner {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 20px;
}
.comment-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.comment-head img { border-radius: 50%; }
.comment-author { font-weight: 700; display: block; }
.comment-date { font-size: 0.8rem; color: var(--accent-2); }
.comment-pending { font-size: 0.85rem; color: var(--accent); }
.comment-reply a {
    font-size: 0.85rem;
    font-weight: 600;
}
.comment-respond {
    margin-top: 30px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 26px;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.95rem;
    background: #fff;
    margin-top: 4px;
}
.comment-respond textarea { min-height: 130px; }
.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url { margin-bottom: 14px; }
.comment-respond .submit {
    display: inline-block;
    padding: 12px 26px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    color: var(--accent);
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.comment-respond .submit:hover { background: var(--accent); color: #fff; }

/* =========================================================================
   Форма поиска
   ========================================================================= */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.95rem;
    background: #fff;
}
.search-form .search-submit {
    padding: 11px 22px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    background: transparent;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}
.search-form .search-submit:hover { background: var(--accent); color: #fff; }

/* =========================================================================
   404
   ========================================================================= */
.error-404 {
    text-align: center;
    padding: 70px 0;
}
.error-404 .big-404 {
    font-family: var(--serif);
    font-size: clamp(5rem, 16vw, 10rem);
    color: var(--accent);
    line-height: 1;
}
.error-404 .search-form { margin: 24px auto 0; }

/* =========================================================================
   Контакты статичные
   ========================================================================= */
.static-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
}
.static-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--bg-soft);
    border-radius: 40px;
    color: var(--accent-2);
    font-weight: 600;
    font-size: 0.9rem;
}
.static-contacts a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* =========================================================================
   Подвал
   ========================================================================= */
.site-footer {
    background: var(--dark);
    color: var(--bg-soft);
    margin-top: 64px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    padding: 56px 0 40px;
}
.footer-col { min-width: 0; }
.site-footer .widget { color: var(--bg-soft); }
.site-footer .widget-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 14px;
}
.site-footer .widget p { color: rgba(249, 247, 245, 0.7); font-size: 0.92rem; }
.site-footer .widget a { color: var(--bg-soft); }
.site-footer .widget a:hover { color: var(--warn); }
.site-footer .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-footer .widget li {
    padding: 6px 0;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(249, 247, 245, 0.08);
}
.site-footer .widget li:last-child { border-bottom: none; }
.site-footer .widget time,
.site-footer .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: rgba(249, 247, 245, 0.55);
}
/* Виджет «Меню навигации» отдаёт <ul class="menu"> — в подвале это
   вертикальный список, а не горизонтальная строка шапки */
.site-footer .menu { display: block; }
.site-footer .menu a {
    display: inline-block;
    padding-bottom: 0;
    border-bottom: 0;
}
.site-footer .menu a:hover,
.site-footer .menu .current-menu-item > a {
    color: var(--warn);
    border-color: transparent;
}
.footer-bottom {
    border-top: 1px solid rgba(249, 247, 245, 0.1);
    padding: 22px 0;
    font-size: 0.82rem;
    color: rgba(249, 247, 245, 0.6);
}

/* =========================================================================
   Cookie-баннер  (правило A11 — до основных стилей баннера)
   ========================================================================= */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--dark);
    color: var(--bg-soft);
    padding: 16px 0;
    box-shadow: 0 -8px 24px rgba(15, 13, 13, 0.25);
}
.cookie-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cookie-inner p {
    margin: 0;
    flex: 1;
    min-width: 240px;
    font-size: 0.9rem;
    color: rgba(249, 247, 245, 0.82);
}
.cookie-inner a { color: var(--warn); }
.cookie-accept {
    padding: 10px 24px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, opacity .15s ease;
}
.cookie-accept:hover { transform: translateY(2px); opacity: 0.92; }

/* =========================================================================
   Адаптивность
   ========================================================================= */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .niche-row { grid-template-columns: minmax(0, 1fr); }
    .niche-row:nth-child(even) .niche-visual { order: 0; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .nav-toggle { display: block; }
    .header-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(82vw, 320px);
        background: var(--bg);
        box-shadow: -12px 0 40px rgba(15, 13, 13, 0.2);
        padding: 80px 26px 26px;
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 50;
        overflow-y: auto;
    }
    body.nav-open .header-nav { transform: translateX(0); }
    .menu { flex-direction: column; gap: 4px; }
    .menu a {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }
    .cards-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 32px; }
    .layout-single .content-area { width: 100%; }
    .hero-stats { gap: 28px; }
    .case-card { flex: 0 0 82vw; }
    .section { padding: 42px 0; }
    .hero { padding: 52px 0 44px; }
    .search-form { flex-wrap: wrap; }
    .search-form .search-field { flex: 1 1 100%; }
}
