/*
Theme Name: dds_dabmsarl.com
Theme URI: https://dabmsarl.com/
Author: Рыжова Вероника
Author URI: https://dabmsarl.com/
Description: Брендинг и digital — умная минималистичная эклектика. Тема для сайта о визуальной коммуникации, контенте и продвижении.
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
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_dabmsarl
*/

/* =========================
   1. Базовые переменные
   ========================= */
:root {
    --bg: hsl(40, 8%, 96%);
    --bg-soft: hsl(40, 8%, 92%);
    --bg-card: #ffffff;
    --ink: #1E1E22;
    --ink-soft: #44444a;
    --ink-mute: #6c6c74;
    --line: hsl(40, 8%, 86%);
    --line-strong: hsl(40, 8%, 76%);
    --terra: #C1532B;
    --terra-deep: #8B2C1A;
    --terra-soft: #f4dccf;
    --neon: #EFFA60;
    --grad-warm: linear-gradient(135deg, #C1532B 0%, #8B2C1A 100%);

    --r-asym-1: 24px 4px 24px 4px;
    --r-asym-2: 4px 24px 4px 24px;

    --shadow-sm: 0 1px 2px rgba(30, 30, 34, 0.05);
    --shadow-md: 0 4px 14px rgba(30, 30, 34, 0.08);
    --shadow-lg: 0 8px 28px rgba(30, 30, 34, 0.12);

    --content-w: 1200px;
    --content-narrow: 880px;

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Manrope", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(193, 83, 43, 0.04) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--terra);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--terra-deep);
}

p {
    margin: 0 0 1em;
    /* без background-color по правилу F */
}

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

h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); position: relative; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* «Терракотовый квадрат» у h2: вылетает слева при появлении */
h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--terra);
    margin-right: 0.5em;
    transform: translateX(-12px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s ease;
    vertical-align: 0.18em;
}

h2.is-in-view::before {
    transform: translateX(0);
    opacity: 1;
}

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

li {
    margin-bottom: 0.3em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid var(--terra);
    background: var(--bg-soft);
    border-radius: 0 12px 12px 0;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--ink-soft);
}

code, pre {
    font-family: var(--font-mono);
    font-size: 0.92em;
}

code {
    background: var(--bg-soft);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    color: var(--terra-deep);
}

pre {
    background: var(--ink);
    color: #f4f4f4;
    padding: 1.2em;
    border-radius: 12px;
    overflow-x: auto;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 2em 0;
    /* «рваный пиксель» — глитч-разделитель */
    background-image: linear-gradient(
        to right,
        var(--line) 0,
        var(--line) 18%,
        transparent 18%,
        transparent 22%,
        var(--line) 22%,
        var(--line) 56%,
        transparent 56%,
        transparent 60%,
        var(--terra) 60%,
        var(--terra) 64%,
        var(--line) 64%,
        var(--line) 100%
    );
    background-size: 100% 1px;
    background-repeat: no-repeat;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    border: 1px solid var(--line-strong);
    background: var(--bg-card);
}

th, td {
    border: 1px solid var(--line-strong);
    padding: 0.7em 1em;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--bg-soft);
    font-weight: 600;
    color: var(--ink);
}

/* =========================
   3. Контейнеры и сетка
   ========================= */
.layout {
    width: 100%;
    max-width: var(--content-w);
    margin: 0 auto;
    padding: 0 24px;
}

.layout-narrow {
    max-width: var(--content-narrow);
}

.section {
    padding: 56px 0;
}

.section-tight {
    padding: 32px 0;
}

.section-hero {
    padding: 80px 0 64px;
}

.with-aside {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
    align-items: start;
}

.no-aside {
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .with-aside {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .no-aside {
        width: 100%;
    }
}

/* =========================
   4. Кнопки
   ========================= */
.btn,
.wp-block-button__link,
button.btn,
input[type="submit"].btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--terra);
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.2;
    border: 2px solid var(--terra);
    border-radius: var(--r-asym-1);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    will-change: transform;
}

.btn:hover,
.btn:focus-visible {
    background: var(--ink);
    color: var(--terra);
    border-color: var(--terra);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(30, 30, 34, 0.18);
}

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

.btn-ghost:hover {
    background: var(--terra);
    color: #fff;
}

/* «Линк-категория» — подчёркивание ползёт слева направо */
.link-cat {
    position: relative;
    display: inline-block;
    color: var(--ink);
    font-weight: 500;
    padding-bottom: 4px;
}

.link-cat::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: var(--terra);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease 0.2s;
}

.link-cat:hover::after {
    transform: scaleX(1);
}

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

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

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

.brand-logo {
    width: 48px;
    height: 48px;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.brand-desc {
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-top: 2px;
}

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

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

.primary-nav a {
    color: var(--ink);
    font-weight: 500;
    font-size: 0.98rem;
    position: relative;
    padding: 4px 0;
}

.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--terra);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease 0.05s;
}

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

.nav-toggle {
    display: none;
    background: none;
    border: 2px solid var(--ink);
    border-radius: 8px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    position: relative;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--ink);
}

.nav-toggle .bar::before { top: -7px; }
.nav-toggle .bar::after  { top: 7px; }

@media (max-width: 768px) {
    .nav-toggle {
        display: inline-flex;
    }
    .primary-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    .primary-nav.is-open {
        display: block;
        margin-top: 16px;
    }
    .primary-nav ul {
        flex-direction: column;
        gap: 14px;
    }
}

/* =========================
   6. Hero (главная)
   ========================= */
.hero {
    background-image: var(--grad-warm);
    background-color: var(--terra);
    color: #fff;
    padding: 96px 0 80px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 32px 4px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 14px 14px;
    opacity: 0.6;
    pointer-events: none;
}

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

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--neon);
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 14px;
    border-radius: var(--r-asym-2);
    margin-bottom: 24px;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    margin-bottom: 18px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 640px;
}

.hero h1 .accent {
    background: var(--neon);
    color: var(--ink);
    padding: 0 0.25em;
    border-radius: 4px;
}

.hero-actions {
    margin-top: 32px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-actions .btn {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.hero-actions .btn:hover {
    background: var(--neon);
    color: var(--ink);
    border-color: var(--neon);
}

.hero-actions .btn-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.hero-actions .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

/* =========================
   7. Тематические блоки
   ========================= */
.topic-block {
    background: var(--bg-card);
    border-radius: 24px 4px 24px 4px;
    padding: 48px 44px;
    margin: 32px 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.topic-block.alt {
    background: var(--ink);
    color: #fff;
    border-radius: 4px 24px 4px 24px;
}

.topic-block.alt h2,
.topic-block.alt h3 {
    color: #fff;
}

.topic-block.alt p {
    color: rgba(255, 255, 255, 0.85);
}

.topic-block.alt h2::before {
    background-color: var(--neon);
}

.topic-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--terra);
    margin-bottom: 12px;
}

.topic-block.alt .topic-eyebrow {
    color: var(--neon);
}

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

.topic-cell {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
}

.topic-block.alt .topic-cell {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.topic-cell h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.topic-cell p {
    margin: 0;
    color: var(--ink-mute);
    font-size: 0.95rem;
}

.topic-block.alt .topic-cell p {
    color: rgba(255, 255, 255, 0.78);
}

.topic-stat {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 16px;
}

.topic-stat .num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 2.4rem;
    background: var(--neon);
    color: var(--ink);
    padding: 0 10px;
    border-radius: 6px;
    line-height: 1.1;
}

.topic-stat .label {
    color: var(--ink-mute);
    font-size: 0.95rem;
}

.topic-block.alt .topic-stat .label {
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 768px) {
    .topic-block {
        padding: 32px 24px;
    }
    .topic-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================
   8. Карточки записей
   ========================= */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin: 32px 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--bg-soft);
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.04);
}

.card-body {
    flex: 1;
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-meta {
    font-size: 0.82rem;
    color: var(--ink-mute);
    font-family: var(--font-mono);
    letter-spacing: 0.04em;
}

.card-meta a {
    color: var(--terra);
}

.card-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.25;
}

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

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

.card-excerpt {
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.55;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-foot {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-more {
    font-weight: 600;
    color: var(--terra);
    font-size: 0.92rem;
}

.card-more:hover {
    color: var(--terra-deep);
}

/* Горизонтальная карточка (страницы списков) */
.card-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.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;
}

@media (max-width: 600px) {
    .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;
    }
}

/* =========================
   9. Сайдбар и виджеты
   ========================= */
.aside {
    position: relative;
}

.widget {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.widget-title,
.widget h2,
.widget h3 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.widget-title::before,
.widget h2::before,
.widget h3::before {
    display: none;
}

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

.widget li {
    margin: 0;
    padding: 8px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}

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

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

.widget a:hover {
    color: var(--terra);
}

/* Поиск */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form .search-field {
    flex: 1;
    padding: 10px 14px;
    border: 2px solid var(--line-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--bg);
    color: var(--ink);
    min-width: 0;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--terra);
}

.search-form .search-submit {
    padding: 10px 18px;
    border-radius: 10px;
    background: var(--ink);
    color: #fff;
    border: 2px solid var(--ink);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.search-form .search-submit:hover {
    background: var(--terra);
    border-color: var(--terra);
}

/* =========================
   10. Хлебные крошки
   ========================= */
.crumbs {
    padding: 18px 0 8px;
    font-size: 0.88rem;
    color: var(--ink-mute);
    font-family: var(--font-mono);
}

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

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

.crumbs .sep {
    margin: 0 8px;
    color: var(--terra);
}

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

/* =========================
   11. Пагинация
   ========================= */
.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 40px 0 12px;
}

.pager a,
.pager span {
    display: inline-block;
    min-width: 44px;
    padding: 10px 14px;
    text-align: center;
    border: 2px solid var(--line-strong);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.pager a:hover {
    background: var(--terra);
    border-color: var(--terra);
    color: #fff;
}

.pager .current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.pager .dots {
    background: transparent;
    border: none;
    color: var(--ink-mute);
}

/* =========================
   12. Записи и страницы (контент)
   ========================= */
.entry {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 36px 40px;
    border: 1px solid var(--line);
}

.entry-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.entry-meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--ink-mute);
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.entry-meta a {
    color: var(--terra);
}

.entry-title {
    margin: 0;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-thumb {
    display: block;
    margin: 0 0 24px;
    border-radius: 14px;
    overflow: hidden;
}

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

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

.entry-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--ink-mute);
}

.entry-tags a {
    display: inline-block;
    margin: 4px 4px 0 0;
    padding: 4px 10px;
    background: var(--bg-soft);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.entry-tags a:hover {
    background: var(--terra);
    color: #fff;
}

@media (max-width: 600px) {
    .entry {
        padding: 24px 20px;
    }
}

/* =========================
   13. Архивы / список (index, поиск)
   ========================= */
.archive-head {
    margin: 24px 0 28px;
}

.archive-head h1 {
    margin: 0 0 6px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.archive-head p {
    color: var(--ink-mute);
    font-size: 0.98rem;
    margin: 0;
}

.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px dashed var(--line-strong);
}

/* =========================
   14. 404
   ========================= */
.notfound {
    text-align: center;
    padding: 80px 24px;
}

.notfound .code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(5rem, 14vw, 9rem);
    line-height: 1;
    color: var(--terra);
    margin: 0;
    background: var(--neon);
    display: inline-block;
    padding: 0 20px;
    border-radius: var(--r-asym-1);
}

.notfound h1 {
    margin: 24px 0 12px;
}

.notfound p {
    color: var(--ink-mute);
    max-width: 540px;
    margin: 0 auto 24px;
}

.notfound .search-form {
    max-width: 420px;
    margin: 0 auto 22px;
}

/* =========================
   15. Комментарии
   ========================= */
.comments {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.comments-title {
    margin-top: 0;
}

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

.comment-list li {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px 22px;
    margin-bottom: 16px;
}

.comment-list .children {
    list-style: none;
    margin: 16px 0 0 24px;
    padding: 0;
    border-left: 2px solid var(--line);
    padding-left: 18px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
}

.comment-author .avatar {
    border-radius: 999px;
    display: block;
}

.comment-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-mute);
    margin-bottom: 10px;
}

.comment-body p {
    margin: 0 0 0.5em;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--terra);
}

.comment-form {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
}

.comment-form p {
    margin: 0 0 14px;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--line-strong);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.96rem;
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
}

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

.comment-form .form-submit {
    margin: 0;
}

.comment-form .submit {
    background: var(--terra);
    border: 2px solid var(--terra);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--r-asym-1);
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--ink);
    color: var(--terra);
}

/* =========================
   16. Cookie-баннер
   ========================= */
/* По правилу A11 — это правило должно идти ДО основного блока стилей */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    background: rgba(30, 30, 34, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 18px 4px 18px 4px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
    max-width: 720px;
    margin: 0 auto;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
    flex: 1;
    min-width: 220px;
}

.cookie-banner a {
    color: var(--neon);
}

.cookie-accept {
    background: var(--terra);
    color: #fff;
    border: 2px solid var(--terra);
    padding: 10px 22px;
    border-radius: var(--r-asym-1);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

.cookie-accept:hover {
    background: var(--neon);
    color: var(--ink);
    border-color: var(--neon);
}

/* =========================
   17. Подвал
   ========================= */
.site-footer {
    background-image: var(--grad-warm);
    background-color: var(--ink);
    color: #fff;
    margin-top: 64px;
    padding: 56px 0 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 18px 18px;
    pointer-events: none;
}

.footer-cols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    padding-bottom: 40px;
}

.footer-col .widget {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
}

.footer-col .widget-title,
.footer-col .widget h2,
.footer-col .widget h3 {
    color: #fff;
}

.footer-col .widget li {
    border-bottom-color: rgba(255, 255, 255, 0.18);
}

.footer-col .widget a {
    color: rgba(255, 255, 255, 0.92);
}

.footer-col .widget a:hover {
    color: var(--neon);
}

.footer-bottom {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 22px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-sign {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--neon);
    /* эффект «выгорания» */
    text-shadow: 0 0 1px rgba(239, 250, 96, 0.6), 0 0 8px rgba(239, 250, 96, 0.18);
    border-bottom: 1px dashed rgba(239, 250, 96, 0.5);
    padding-bottom: 1px;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.footer-sign:hover {
    color: #fff;
    border-bottom-color: #fff;
}

@media (max-width: 768px) {
    .footer-cols {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =========================
   18. Утилиты и доступность
   ========================= */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
    border-radius: 0 0 8px 8px;
}

.skip-link:focus {
    left: 0;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.alignright {
    float: right;
    margin: 0 0 1em 1.4em;
}

.alignleft {
    float: left;
    margin: 0 1.4em 1em 0;
}

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

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--ink-mute);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}

/* Печать */
@media print {
    .site-header, .site-footer, .aside, .cookie-banner, .pager {
        display: none !important;
    }
    body {
        background: #fff;
        color: #000;
    }
}
