/*
Theme Name: dds_топ-лучших.рф
Author: Алексей Зимин
Description: Информационно-аналитический портал, объединяющий методологию исследования рынка электроники, прозрачные стандарты сравнения устройств и практические руководства по рациональному выбору высокотехнологичных товаров.
Version: 1.1
Text Domain: tlrf
*/

/* ============================================================
   1. Палитра, типографика, переменные
   ============================================================ */
:root {
    --bg-base: #FFFFFF;
    --bg-soft: #F5F7FA;
    --bg-method: #E0F0F0;
    --bg-chip: #EDF0F4;

    --ink: #1E2A3E;
    --ink-soft: #4A5B6E;
    --ink-mute: #6B7A8F;

    --accent: #2D5F9E;
    --accent-deep: #1E4A7A;
    --emerald: #1B7B4E;
    --amber: #E6A017;

    --line: #D6DCE5;
    --line-soft: #E6EAF0;

    --font-sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --font-serif: "Cormorant Garamond", "Georgia", serif;

    --container: 1180px;
    --shell-width: 92%;

    --transition: 200ms ease;
}

/* ============================================================
   2. Сброс и базовые стили
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg-base);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html { scroll-behavior: smooth; }

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--ink);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 1rem + 0.8vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1em;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 3px solid var(--accent);
    background: var(--bg-method);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--ink);
}
blockquote p { margin-bottom: 0.5em; }
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.92em;
}
code { background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 3px; }
pre {
    background: var(--bg-soft);
    padding: 1em 1.2em;
    overflow-x: auto;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    line-height: 1.45;
}
pre code { background: none; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.65em 0.85em;
    text-align: left;
    vertical-align: top;
}
th { background: var(--bg-soft); font-weight: 600; }
tbody tr:nth-child(even) td { background: #FBFCFD; }

hr { border: none; border-top: 1px solid var(--line); margin: 2em 0; }

::selection { background: var(--accent); color: #fff; }

/* ============================================================
   3. Контейнер
   ============================================================ */
.shell {
    width: min(92%, var(--container));
    margin-inline: auto;
}

/* ============================================================
   4. Скрытое для скрин-ридеров
   ============================================================ */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ============================================================
   5. Шапка
   ============================================================ */
.site-head {
    background: var(--bg-base);
    border-bottom: 1px solid var(--line-soft);
    padding: 1.4em 0;
}

.head-row {
    display: flex;
    align-items: center;
    gap: 1.5em;
    flex-wrap: wrap;
    min-width: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85em;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
}
.brand-logo, .brand-svg {
    width: 48px;
    height: 48px;
    display: block;
    flex: 0 0 48px;
}
.brand-svg { color: var(--accent); }
.brand-text { min-width: 0; }
.brand-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
    letter-spacing: 0.02em;
    text-transform: lowercase;
    line-height: 1.1;
    margin: 0;
}
.brand-tag {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-top: 0.2em;
    line-height: 1.3;
    max-width: 480px;
}

/* Главное меню */
.head-nav { min-width: 0; }
.head-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.8em;
    flex-wrap: wrap;
}
.head-nav li { margin: 0; }
.head-nav a {
    color: var(--ink);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4em 0;
    position: relative;
    display: inline-block;
}
.head-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition);
}
.head-nav a:hover, .head-nav .current-menu-item > a {
    color: var(--accent);
}
.head-nav a:hover::after, .head-nav .current-menu-item > a::after { transform: scaleX(1); }

/* Бургер */
.nav-toggle[hidden] { display: none !important; }
.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    padding: 0.5em 0.8em;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    align-items: center;
    gap: 0.5em;
}
.nav-toggle .bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}
.nav-toggle .bars span {
    width: 18px;
    height: 2px;
    background: var(--accent);
    display: block;
}

/* ============================================================
   6. Основной layout
   ============================================================ */
.site-main {
    padding: 2.5em 0 3.5em;
    min-height: 60vh;
}

/* Двухколоночный (контент + сайдбар) */
.layout-split {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}
.layout-split > * { min-width: 0; }

/* Без сайдбара — 85% по центру через block-контекст (A12 п.3) */
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Сайдбар */
.sidebar { min-width: 0; }
.widget {
    margin-bottom: 2em;
    padding: 1.4em 1.5em;
    background: var(--bg-soft);
    border-left: 3px solid var(--accent);
}
.widget:last-child { margin-bottom: 0; }
.widget-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1em;
    color: var(--ink);
    font-weight: 700;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    margin-bottom: 0.6em;
    padding-bottom: 0.6em;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
}
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.widget a { color: var(--ink); font-weight: 500; }
.widget a:hover { color: var(--accent); }
.widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-top: 0.2em;
}

/* ============================================================
   7. Хлебные крошки
   ============================================================ */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin-bottom: 1.5em;
    padding-bottom: 0.6em;
    border-bottom: 1px solid var(--line-soft);
}
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 0.4em; color: var(--ink-mute); }
.breadcrumbs span:last-child { color: var(--ink); }

/* ============================================================
   8. Карточки записей
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6em;
}
.cards-grid > * { min-width: 0; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-base);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
    border-color: var(--accent);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-soft);
}
.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 400ms ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }

.card-body {
    flex: 1;
    padding: 1.2em 1.3em 1.3em;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.card-meta {
    font-size: 0.78rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.6em;
    display: flex;
    gap: 0.7em;
    align-items: center;
    flex-wrap: wrap;
}
.card-meta .dot {
    width: 6px; height: 6px;
    background: var(--emerald);
    border-radius: 50%;
    display: inline-block;
}
.card-title {
    font-size: 1.15rem;
    margin: 0 0 0.5em;
    line-height: 1.35;
}
.card-title a {
    color: var(--ink);
}
.card-title a:hover { color: var(--accent); }

.card-excerpt {
    font-size: 0.93rem;
    color: var(--ink-soft);
    margin-bottom: 1em;
    flex: 1;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }

.card-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.88rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: auto;
    align-self: flex-start;
}
.card-more::after {
    content: "→";
    transition: transform var(--transition);
}
.card-more:hover::after { transform: translateX(3px); }

/* ============================================================
   9. Горизонтальная карточка (если используется) — паттерн с position:absolute (A10)
   ============================================================ */
.card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: var(--bg-base);
    border: 1px solid var(--line-soft);
    overflow: hidden;
    margin-bottom: 1.4em;
}
.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-row .card-body {
    flex: 1;
    min-width: 0;
}

/* ============================================================
   10. Кнопки
   ============================================================ */
.btn {
    display: inline-block;
    padding: 0.75em 1.4em;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    position: relative;
    transition: background var(--transition), border-color var(--transition);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn:hover {
    background: var(--accent-deep);
    color: #fff;
    border-color: var(--accent-deep);
}
.btn::after {
    content: "";
    display: block;
    height: 1px;
    background: rgba(255,255,255,0.4);
    width: 0;
    margin-top: 0.4em;
    transition: width var(--transition);
}
.btn:hover::after { width: 100%; }

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    box-shadow: none;
}
.btn-ghost:hover {
    background: var(--accent);
    color: #fff;
}
.btn-ghost::after { display: none; }

.btn-chip {
    display: inline-block;
    padding: 0.4em 1em;
    min-height: 36px;
    line-height: 28px;
    font-size: 0.85rem;
    background: var(--bg-chip);
    color: var(--ink);
    border-radius: 20px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
}
.btn-chip:hover, .btn-chip.is-active {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   11. Главная — секции
   ============================================================ */
.hero-panel {
    background: var(--bg-method);
    padding: 2.4em 2em;
    margin-bottom: 2.5em;
    border-left: 4px solid var(--emerald);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2em;
    align-items: center;
}
.hero-panel > * { min-width: 0; }
.hero-panel .label {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--emerald);
    font-weight: 700;
    margin-bottom: 0.6em;
}
.hero-panel h1 {
    margin: 0 0 0.6em;
    font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.1rem);
}
.hero-panel p {
    color: var(--ink-soft);
    margin: 0 0 1em;
    font-size: 1rem;
}
.hero-meta {
    display: flex;
    align-items: center;
    gap: 0.85em;
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin-top: 1.2em;
}
.hero-meta .avatar {
    width: 36px; height: 36px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex: 0 0 36px;
}
.hero-side {
    justify-self: center;
}
.hex-cluster {
    width: 160px;
    height: 160px;
    color: var(--accent);
}

/* Универсальные тематические секции */
.section {
    margin-bottom: 2.5em;
    padding: 2em 2em;
    background: var(--bg-base);
    border: 1px solid var(--line-soft);
}
.section.section-soft { background: var(--bg-soft); border-color: transparent; }
.section.section-method { background: var(--bg-method); border-color: transparent; }
.section h2 { margin-top: 0; }
.section .eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.6em;
}

.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2em;
    margin-top: 1.5em;
}
.cols-2 > * { min-width: 0; }
.cols-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

/* Шкала прозрачности данных */
.tr-scale {
    display: block;
    background: var(--line-soft);
    height: 6px;
    position: relative;
    margin: 0.5em 0;
    overflow: hidden;
}
.tr-scale span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2D5F9E, var(--emerald));
}
.tr-label {
    font-size: 0.78rem;
    color: var(--ink-mute);
    display: flex;
    justify-content: space-between;
}

/* Шаги */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
}
.steps li {
    counter-increment: step;
    padding-left: 2.4em;
    position: relative;
    margin-bottom: 0.9em;
}
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 0;
    width: 1.8em; height: 1.8em;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Чек-лист */
.checks {
    list-style: none;
    padding: 0;
}
.checks li {
    padding-left: 2em;
    position: relative;
    margin-bottom: 0.7em;
}
.checks li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.25em;
    width: 1.1em; height: 1.1em;
    background: var(--accent);
    box-shadow: inset 0 0 0 2px var(--accent);
}
.checks li::after {
    content: "";
    position: absolute;
    left: 0.32em; top: 0.4em;
    width: 0.36em; height: 0.66em;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* Бейджи статуса данных */
.std-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.8rem;
    color: var(--ink-soft);
    padding: 0.18em 0.6em;
    background: var(--bg-soft);
}
.std-badge::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ink-mute);
}
.std-badge.is-verified::before { background: var(--emerald); }
.std-badge.is-vendor::before { background: var(--amber); }
.std-badge.is-pending::before { background: var(--ink-mute); }

/* Toggle переключатель */
.toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
    background: var(--bg-chip);
    padding: 0.25em;
    position: relative;
}
.toggle button {
    background: transparent;
    border: none;
    padding: 0.45em 1em;
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--ink-soft);
    font-weight: 500;
}
.toggle button.is-on {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   12. Контент записи / страницы
   ============================================================ */
.entry-header { margin-bottom: 1.8em; }
.entry-title {
    margin-top: 0;
    margin-bottom: 0.4em;
}
.entry-meta {
    color: var(--ink-mute);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.entry-meta a { color: var(--ink-soft); }

.entry-thumbnail {
    margin: 0 0 2em;
    overflow: hidden;
}
.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content > * {
    margin-bottom: 1em;
}
.entry-content h2 {
    margin-top: 1.8em;
    padding-top: 0.4em;
    border-top: 1px solid var(--line-soft);
}
.entry-content figure { margin: 1.5em 0; }
.entry-content figure img { width: 100%; height: auto; display: block; }
.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-align: center;
    margin-top: 0.5em;
    font-style: italic;
}

.post-tags {
    margin: 2em 0 1em;
    padding-top: 1.2em;
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem;
}
.post-tags a {
    display: inline-block;
    margin-right: 0.5em;
    padding: 0.2em 0.7em;
    background: var(--bg-chip);
    color: var(--ink);
    border-radius: 20px;
}
.post-tags a:hover { background: var(--accent); color: #fff; }

/* ============================================================
   13. Пагинация
   ============================================================ */
.pagination {
    margin: 2.5em 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4em;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.85em;
    font-size: 0.9rem;
    color: var(--ink);
    background: var(--bg-chip);
    text-decoration: none;
    font-weight: 500;
}
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .current {
    background: var(--accent);
    color: #fff;
}

/* ============================================================
   14. Поиск
   ============================================================ */
.search-form {
    display: flex;
    margin: 1em 0;
}
.search-form label { flex: 1; min-width: 0; }
.search-form input[type="search"] {
    width: 100%;
    padding: 0.7em 1em;
    font: inherit;
    border: 1px solid var(--line);
    background: var(--bg-base);
    color: var(--ink);
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button {
    padding: 0.7em 1.4em;
    font: inherit;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition);
}
.search-form button:hover { background: var(--accent-deep); }

/* ============================================================
   15. Комментарии
   ============================================================ */
.comments-area {
    margin-top: 3em;
    padding-top: 2em;
    border-top: 1px solid var(--line);
}
.comments-title {
    margin-top: 0;
    font-size: 1.3rem;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}
.comment-list li { margin-bottom: 1.4em; }
.comment-body {
    padding: 1.2em 1.4em;
    background: var(--bg-soft);
    border-left: 2px solid var(--accent);
}
.comment-body .comment-author {
    font-weight: 700;
    color: var(--ink);
}
.comment-body .comment-meta {
    font-size: 0.8rem;
    color: var(--ink-mute);
    margin-bottom: 0.6em;
}
.comment-body .comment-meta a { color: var(--ink-mute); }
.comment-body p:last-child { margin-bottom: 0; }
.children {
    list-style: none;
    padding-left: 2em;
    margin-top: 1em;
}

.comment-respond {
    margin-top: 2em;
    padding: 1.4em 1.5em;
    background: var(--bg-soft);
}
.comment-form p { margin-bottom: 0.8em; }
.comment-form label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.3em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65em 0.85em;
    font: inherit;
    border: 1px solid var(--line);
    background: var(--bg-base);
    color: var(--ink);
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--accent); }

/* ============================================================
   16. Подвал
   ============================================================ */
.site-foot {
    background: #14202F;
    color: #B7C2D2;
    padding: 3em 0 1.5em;
    margin-top: 4em;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5em;
    margin-bottom: 2em;
}
.foot-col { min-width: 0; }

/* Виджеты в футере — светлый текст на тёмном фоне */
.foot-col .widget {
    background: transparent;
    border-left: none;
    padding: 0;
    margin: 0;
    color: #B7C2D2;
}
.foot-col .widget-title {
    color: #fff;
    margin-bottom: 1em;
}
.foot-col .widget a { color: #D8DEE8; }
.foot-col .widget a:hover { color: #fff; }
.foot-col .widget li {
    border-bottom-color: rgba(255,255,255,0.1);
    color: #B7C2D2;
}
.foot-col .widget .post-date { color: #8290A4; }

.foot-bottom {
    padding-top: 1.5em;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    color: #8290A4;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8em;
}
.foot-bottom .signature {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-style: italic;
}
.foot-bottom .signature svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

/* ============================================================
   17. Cookie-баннер (A11: hidden + display)
   ============================================================ */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1.2em;
    right: 1.2em;
    bottom: 1.2em;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1.2em;
    flex-wrap: wrap;
    background: #14202F;
    color: #fff;
    padding: 1em 1.2em;
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    max-width: 920px;
    margin: 0 auto;
}
.cookie-banner p {
    margin: 0;
    font-size: 0.88rem;
    flex: 1 1 240px;
    color: #D8DEE8;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 0.6em 1.4em;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background var(--transition);
}
.cookie-banner button:hover { background: var(--accent-deep); }

/* ============================================================
   18. 404
   ============================================================ */
.error-404 {
    text-align: center;
    padding: 2em 1em;
}
.error-404 .big {
    font-size: clamp(4rem, 5rem + 4vw, 8rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin: 0;
    letter-spacing: -0.04em;
}
.error-404 h1 {
    margin-top: 0.4em;
}

/* ============================================================
   19. Адаптив
   ============================================================ */
@media (max-width: 960px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 2.5em;
    }
    .layout-single { width: 92%; }
    .cols-2, .cols-3 {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }
    .hero-panel {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .hero-side { justify-self: start; }
    .foot-cols {
        grid-template-columns: 1fr;
        gap: 2em;
    }
}

@media (max-width: 700px) {
    .nav-toggle { display: inline-flex; }
    .head-nav {
        flex-basis: 100%;
        order: 3;
    }
    .head-nav[hidden] { display: none !important; }
    .head-nav ul {
        flex-direction: column;
        gap: 0.4em;
        padding-top: 0.8em;
    }
    .head-nav a {
        display: block;
        padding: 0.6em 0;
        border-bottom: 1px solid var(--line-soft);
    }
}

@media (max-width: 600px) {
    body { font-size: 15.5px; }
    .site-main { padding: 1.8em 0 2.5em; }
    .hero-panel { padding: 1.6em 1.4em; }
    .section { padding: 1.4em 1.3em; }
    .card-body { padding: 1em 1.1em 1.2em; }
    .brand-tag { display: none; }

    /* Горизонтальная карточка → колонка (A10) */
    .card-row { flex-direction: column; }
    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .foot-bottom { flex-direction: column; align-items: flex-start; }
    .cookie-banner {
        left: 0.7em;
        right: 0.7em;
        bottom: 0.7em;
        padding: 0.9em 1em;
    }
}
