/*
Theme Name: dds_designen.ru
Theme URI: https://designen.ru/
Author: Анна Соболева
Author URI: https://designen.ru/
Description: Авторская тема методического портала designen.ru — пространство для ивент-режиссёров и сценаристов событий. Графитовый фон, терракотовые акценты и шафрановое золото подчёркивают драматургичную строгость.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: designen
*/

/* ============== ШРИФТЫ ============== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Courier+Prime:wght@400;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    line-height: 1.65;
    color: #1E1E24;
    background: #F5F0E8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: #C36F5E;
    text-decoration: none;
    transition: color .2s ease, border-color .2s ease;
}
a:hover { color: #1E1E24; }

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Courier Prime', 'Courier New', monospace;
    font-weight: 700;
    color: #1E1E24;
    margin: 0 0 .6em;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-family: 'Manrope', sans-serif; font-weight: 600; }
h4, h5, h6 { font-family: 'Manrope', sans-serif; font-weight: 600; }

hr {
    border: 0;
    border-top: 1px solid #B6BAA4;
    margin: 2rem 0;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid #C36F5E;
    background: rgba(217, 180, 139, 0.12);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1.15em;
    color: #2a2a30;
}

code, pre {
    font-family: 'Courier Prime', monospace;
    background: rgba(30, 30, 36, 0.06);
    border-radius: 4px;
}
code { padding: 2px 6px; font-size: 0.9em; }
pre { padding: 14px 16px; overflow-x: auto; }
pre code { background: none; padding: 0; }

/* ============== ТАБЛИЦЫ ============== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid #B6BAA4;
}
th, td {
    padding: 10px 14px;
    border: 1px solid #B6BAA4;
    text-align: left;
}
th {
    background: rgba(30, 30, 36, 0.05);
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
}

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

/* ============== ШАПКА ============== */
.site-header {
    background: #1E1E24;
    color: #F5F0E8;
    padding: 24px 0 18px;
    border-bottom: 3px solid #C36F5E;
}

.site-header a { color: #F5F0E8; }
.site-header a:hover { color: #D9B48B; }

.header-top {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

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

.brand-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-mark {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
    flex: 1 1 auto;
}

.brand-title {
    display: block;
    font-family: 'Courier Prime', monospace;
    font-size: 1.05rem;
    font-weight: 700;
    color: #F5F0E8;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tagline {
    display: block;
    margin-top: 4px;
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 0.82rem;
    color: #B6BAA4;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-accent {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #D9B48B;
}

.header-tagword {
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    text-transform: lowercase;
    letter-spacing: 0.18em;
    color: #D9B48B;
    padding: 6px 14px;
    border: 1px solid rgba(217, 180, 139, 0.4);
    border-radius: 0 12px 0 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.header-tagword::before {
    content: '/ ';
    color: #C36F5E;
}

/* ============== НАВИГАЦИЯ ============== */
.main-nav {
    margin-top: 18px;
}

.nav-toggle[hidden] { display: none !important; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #B6BAA4;
    color: #F5F0E8;
    padding: 8px 14px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.9rem;
    border-radius: 0 12px 0 12px;
    cursor: pointer;
}

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

.nav-menu a {
    display: inline-block;
    padding: 8px 2px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.98rem;
    letter-spacing: 0.02em;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
    border-bottom-color: #C36F5E;
    color: #D9B48B;
}

.nav-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 16px;
}

/* ============== ОСНОВНОЕ ============== */
.site-main {
    padding: 36px 0 60px;
}

.layout-single {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    column-gap: 6%;
    width: min(92%, 1180px);
    margin-inline: auto;
}

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

/* ============== ХЛЕБНЫЕ КРОШКИ ============== */
.breadcrumbs {
    font-family: 'Manrope', sans-serif;
    font-size: 0.86rem;
    color: #6a6a72;
    margin-bottom: 22px;
    padding: 10px 14px;
    background: rgba(182, 186, 164, 0.18);
    border-left: 3px solid #D9B48B;
}

.breadcrumbs a {
    color: #C36F5E;
}

.breadcrumbs a:hover {
    color: #1E1E24;
    text-decoration: underline;
}

.breadcrumbs .sep {
    color: #B6BAA4;
    margin: 0 6px;
}

/* ============== ГЛАВНАЯ ============== */
.front-hero {
    background: #1E1E24;
    color: #F5F0E8;
    padding: 60px 7.5%;
    border-radius: 0 36px 0 36px;
    margin-bottom: 44px;
    position: relative;
    overflow: hidden;
}

.front-hero::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(217, 180, 139, 0.18);
    border-radius: 0 60% 0 60%;
    pointer-events: none;
}

.front-hero h1 {
    color: #F5F0E8;
    margin-bottom: 18px;
}

.front-hero .lead {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    color: #D9B48B;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 0 26px;
}

.section-block {
    margin: 0 0 50px;
    padding: 38px 7%;
    background: #ffffff;
    border-radius: 0 28px 0 28px;
    border: 1px solid rgba(30, 30, 36, 0.08);
    position: relative;
}

.section-block.tone-dark {
    background: #2a2930;
    color: #F5F0E8;
}

.section-block.tone-dark h2 { color: #F5F0E8; }
.section-block.tone-dark a { color: #D9B48B; }
.section-block.tone-dark a:hover { color: #F5F0E8; }

.section-block.tone-smoke {
    background:
        radial-gradient(circle, rgba(30,30,36,0.18) 1px, transparent 1.5px) 0 0 / 14px 14px,
        #d8d8c8;
}

.section-block .eyebrow {
    display: inline-block;
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #C36F5E;
    margin-bottom: 14px;
}

.section-block.tone-dark .eyebrow {
    color: #D9B48B;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 28px;
}

.three-col .col {
    padding: 22px 22px 24px;
    border-left: 2px solid #C36F5E;
    background: rgba(245, 240, 232, 0.4);
}

.section-block.tone-dark .three-col .col {
    background: rgba(245, 240, 232, 0.06);
    border-left-color: #D9B48B;
}

.three-col .col h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 1.05rem;
    color: inherit;
}

.three-col .col .num {
    font-family: 'Courier Prime', monospace;
    font-size: 0.8rem;
    color: #D9B48B;
    letter-spacing: 0.14em;
    display: block;
    margin-bottom: 8px;
}

.recent-strip {
    margin: 0 0 50px;
}

.recent-strip-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 14px;
    border-bottom: 1px solid #B6BAA4;
}

.recent-strip-head h2 { margin: 0; }

.recent-strip-head .head-side {
    font-family: 'Courier Prime', monospace;
    font-size: 0.84rem;
    color: #6a6a72;
    letter-spacing: 0.1em;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

/* ============== КНОПКИ ============== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: #F5F0E8;
    background: #1E1E24;
    border: 1px solid #1E1E24;
    border-radius: 20px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease, background .2s ease;
}

.btn:hover {
    color: #C36F5E;
    transform: translateY(1px);
    box-shadow: inset 0 0 0 1px #C36F5E;
}

.btn-accent {
    background: #C36F5E;
    border-color: #C36F5E;
    color: #F5F0E8;
}

.btn-accent:hover {
    background: #1E1E24;
    border-color: #1E1E24;
    color: #D9B48B;
    box-shadow: inset 0 0 0 1px #D9B48B;
}

.btn-scenario {
    display: inline-block;
    padding: 12px 22px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1E1E24;
    background: rgba(217, 180, 139, 0.55);
    border: 1px solid rgba(30, 30, 36, 0.2);
    border-radius: 0 14px 0 0;
}

.btn-scenario:hover {
    background: #1E1E24;
    color: #D9B48B;
    border-color: #1E1E24;
}

/* ============== КАРТОЧКИ ============== */
.card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(30, 30, 36, 0.1);
    border-radius: 0 18px 0 18px;
    overflow: hidden;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #C36F5E;
    transition: height .3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px -18px rgba(30, 30, 36, 0.35);
}

.card:hover::before {
    height: 100%;
}

.card:nth-child(3n)::before { background: #D9B48B; }
.card:nth-child(3n+2)::before { background: #B6BAA4; }

.card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    background: #B6BAA4;
}

.card-thumb-fallback {
    width: 100%;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(135deg, rgba(195, 111, 94, 0.15), rgba(217, 180, 139, 0.18)),
        repeating-linear-gradient(45deg, rgba(30, 30, 36, 0.04) 0 8px, transparent 8px 16px),
        #efe6d6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier Prime', monospace;
    color: #1E1E24;
    font-size: 0.85rem;
    letter-spacing: 0.18em;
}

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

.card-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.75rem;
    color: #6a6a72;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-meta .meta-date { color: #D9B48B; }

.card-title {
    font-family: 'Courier Prime', monospace;
    font-size: 1.1rem;
    margin: 0 0 12px;
    line-height: 1.3;
}

.card-title a { color: #1E1E24; }
.card-title a:hover { color: #C36F5E; }

.card-excerpt {
    color: #38383e;
    font-size: 0.96rem;
    margin-bottom: 16px;
}

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

.card-foot {
    margin-top: auto;
}

/* Горизонтальная карточка для основного блога — пока используем сетку, но оставим css на случай */
.card-row {
    flex-direction: row;
}

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

/* ============== ОДИНОЧНАЯ ЗАПИСЬ ============== */
.entry {
    background: #ffffff;
    border-radius: 0 22px 0 22px;
    padding: 36px 7% 40px;
    border: 1px solid rgba(30, 30, 36, 0.08);
}

.entry-header {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #B6BAA4;
}

.entry-meta {
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #6a6a72;
    margin-bottom: 14px;
}

.entry-meta .meta-date {
    color: #D9B48B;
    font-weight: 700;
}

.entry-meta .meta-cats {
    color: #C36F5E;
}

.entry-title {
    margin: 0;
}

.entry-thumb {
    margin: 0 0 26px;
}

.entry-thumb img {
    width: 100%;
    height: auto;
    border-radius: 0 18px 0 18px;
}

.entry-content {
    font-size: 1.02rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.6em;
}

.entry-content img {
    border-radius: 6px;
    margin: 1.2em 0;
}

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

.entry-content li { margin-bottom: 0.4em; }

.entry-footer {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid #B6BAA4;
    font-family: 'Manrope', sans-serif;
    font-size: 0.86rem;
    color: #6a6a72;
}

.entry-footer .tag-list a {
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 4px;
    padding: 3px 10px;
    background: rgba(217, 180, 139, 0.25);
    color: #1E1E24;
    border-radius: 12px;
    font-size: 0.82rem;
}

.entry-footer .tag-list a:hover {
    background: #C36F5E;
    color: #F5F0E8;
}

/* ============== САЙДБАР ============== */
.sidebar {
    font-size: 0.96rem;
}

.sidebar .widget {
    margin-bottom: 30px;
    padding: 22px 22px 24px;
    background: #ffffff;
    border: 1px solid rgba(30, 30, 36, 0.08);
    border-radius: 0 16px 0 16px;
    color: #1E1E24;
}

.sidebar .widget .widget-title,
.sidebar .widget h2,
.sidebar .widget h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #1E1E24;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C36F5E;
}

.sidebar .widget a {
    color: #1E1E24;
    border-bottom: 1px dotted rgba(195, 111, 94, 0.5);
}

.sidebar .widget a:hover {
    color: #C36F5E;
    border-bottom-color: #C36F5E;
}

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

.sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px dotted rgba(30, 30, 36, 0.12);
    color: #1E1E24;
}

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

.sidebar .widget .post-date {
    display: block;
    margin-top: 3px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.74rem;
    color: #6a6a72;
    letter-spacing: 0.1em;
}

.sidebar .widget select {
    width: 100%;
    padding: 8px;
    font-family: inherit;
}

/* ============== ПОДВАЛ ============== */
.site-footer {
    background: #1E1E24;
    color: #F5F0E8;
    padding: 50px 0 0;
    margin-top: 60px;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(245, 240, 232, 0.14);
}

.footer-col {
    min-width: 0;
    color: #F5F0E8;
}

.footer-col .widget {
    color: #F5F0E8;
    margin-bottom: 18px;
}

.footer-col .widget .widget-title,
.footer-col .widget h2,
.footer-col .widget h3 {
    font-family: 'Courier Prime', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #D9B48B;
    margin: 0 0 14px;
}

.footer-col .widget p,
.footer-col .widget li,
.footer-col .widget {
    color: #F5F0E8;
    font-size: 0.94rem;
    line-height: 1.55;
}

.footer-col .widget a {
    color: #F5F0E8;
    border-bottom: 1px solid transparent;
}

.footer-col .widget a:hover {
    color: #D9B48B;
    border-bottom-color: #D9B48B;
}

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

.footer-col .widget li {
    padding: 4px 0;
    border-bottom: none;
}

.footer-col .widget .post-date {
    display: block;
    font-family: 'Courier Prime', monospace;
    font-size: 0.74rem;
    color: #B6BAA4;
    letter-spacing: 0.1em;
}

.footer-bottom {
    padding: 22px 0 26px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: #B6BAA4;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-author {
    color: #D9B48B;
}

.footer-author em {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* ============== ПОИСК ============== */
.search-form {
    display: flex;
    gap: 0;
    background: transparent;
}

.search-form .field {
    flex: 1;
    padding: 10px 4px;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #1E1E24;
    color: #1E1E24;
    outline: none;
}

.search-form .field:focus {
    border-bottom-color: #C36F5E;
}

.search-form .field::placeholder {
    color: #6a6a72;
    font-style: italic;
}

.search-form .submit {
    padding: 10px 22px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    background: #1E1E24;
    color: #C36F5E;
    border: none;
    border-bottom: 2px solid #1E1E24;
    cursor: pointer;
    transition: color .2s ease, background .2s ease;
    letter-spacing: 0.04em;
}

.search-form .submit:hover {
    background: #C36F5E;
    color: #F5F0E8;
}

.site-footer .search-form .field {
    border-bottom-color: #D9B48B;
    color: #F5F0E8;
}
.site-footer .search-form .field::placeholder { color: #B6BAA4; }
.site-footer .search-form .submit {
    background: #F5F0E8;
    color: #1E1E24;
    border-bottom-color: #D9B48B;
}

/* ============== ПАГИНАЦИЯ ============== */
.pagination {
    margin: 36px 0 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.92rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #B6BAA4;
    color: #1E1E24;
    background: #ffffff;
    border-radius: 0 10px 0 10px;
}

.pagination a:hover {
    background: #C36F5E;
    border-color: #C36F5E;
    color: #F5F0E8;
}

.pagination .current {
    background: #1E1E24;
    color: #D9B48B;
    border-color: #1E1E24;
}

.pagination .dots {
    border: none;
    background: transparent;
    color: #6a6a72;
}

/* ============== КОММЕНТАРИИ ============== */
.comments-area {
    margin-top: 36px;
    padding: 30px 7%;
    background: #ffffff;
    border-radius: 0 22px 0 22px;
    border: 1px solid rgba(30, 30, 36, 0.08);
}

.comments-title {
    font-family: 'Courier Prime', monospace;
    font-size: 1.05rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 2px solid #C36F5E;
}

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

.comment-list .comment {
    margin-bottom: 22px;
    padding: 18px 22px;
    background: rgba(245, 240, 232, 0.7);
    border-left: 3px solid #D9B48B;
    border-radius: 0 12px 0 12px;
}

.comment-list .children {
    list-style: none;
    margin: 18px 0 0;
    padding: 0 0 0 22px;
    border-left: 1px dashed #B6BAA4;
}

.comment-author {
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: 0.98rem;
    color: #1E1E24;
}

.comment-author img.avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 10px;
}

.comment-metadata {
    font-family: 'Courier Prime', monospace;
    font-size: 0.74rem;
    color: #6a6a72;
    letter-spacing: 0.1em;
    margin: 4px 0 10px;
}

.comment-content {
    font-size: 0.96rem;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C36F5E;
    border-bottom: 1px solid transparent;
}

.comment-reply-link:hover {
    border-bottom-color: #C36F5E;
}

.comment-respond {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #B6BAA4;
}

.comment-respond .comment-reply-title {
    font-family: 'Courier Prime', monospace;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #1E1E24;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 4px;
    font-family: 'Lora', serif;
    font-size: 0.96rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #1E1E24;
    color: #1E1E24;
    outline: none;
    margin-bottom: 14px;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-bottom-color: #C36F5E;
}

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

.comment-form .submit {
    width: 100%;
    padding: 14px 22px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    letter-spacing: 0.04em;
    background: #1E1E24;
    color: #C36F5E;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.comment-form .submit:hover {
    background: #C36F5E;
    color: #F5F0E8;
}

/* ============== 404 ============== */
.error-404 {
    text-align: center;
    padding: 40px 6%;
    background: #ffffff;
    border-radius: 0 22px 0 22px;
    border: 1px solid rgba(30, 30, 36, 0.08);
}

.error-404 .error-code {
    font-family: 'Courier Prime', monospace;
    font-size: clamp(4rem, 12vw, 7rem);
    font-weight: 700;
    color: #C36F5E;
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.04em;
}

.error-404 .error-message {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #6a6a72;
    margin-bottom: 26px;
}

.error-404 .error-back {
    margin-top: 22px;
}

/* ============== COOKIE-БАННЕР ============== */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 22px;
    background: #1E1E24;
    color: #F5F0E8;
    border: 1px solid rgba(217, 180, 139, 0.3);
    border-radius: 0 16px 0 16px;
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.45);
    font-size: 0.92rem;
    line-height: 1.5;
}

.cookie-banner .cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-banner a {
    color: #D9B48B;
    border-bottom: 1px dotted #D9B48B;
}

.cookie-banner a:hover {
    color: #C36F5E;
    border-bottom-color: #C36F5E;
}

.cookie-banner .cookie-accept {
    padding: 10px 26px;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    background: #C36F5E;
    color: #F5F0E8;
    border: 1px solid #C36F5E;
    border-radius: 20px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
    flex-shrink: 0;
}

.cookie-banner .cookie-accept:hover {
    background: #F5F0E8;
    color: #1E1E24;
    border-color: #F5F0E8;
}

/* ============== АДАПТИВ ============== */
@media (max-width: 960px) {
    .three-col,
    .recent-grid,
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 36px;
    }
    .header-tagword {
        display: none;
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    .three-col,
    .recent-grid,
    .footer-top {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-toggle { display: inline-block; }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        margin-top: 10px;
        padding: 8px 0;
        background: rgba(245, 240, 232, 0.06);
        border-radius: 0 10px 0 10px;
    }

    .nav-menu.is-open {
        display: flex;
    }

    .nav-menu a {
        padding: 10px 14px;
        border-bottom: 1px solid rgba(245, 240, 232, 0.1);
    }

    .nav-menu a:hover,
    .nav-menu .current-menu-item > a,
    .nav-menu .current_page_item > a {
        border-bottom-color: rgba(245, 240, 232, 0.1);
        background: rgba(195, 111, 94, 0.12);
    }

    .front-hero,
    .section-block,
    .entry,
    .comments-area {
        padding-left: 6%;
        padding-right: 6%;
    }

    .layout-single {
        width: 92%;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============== ВЫРАВНИВАНИЕ WP ============== */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 100%; }
.alignfull { width: 100%; }

.wp-caption {
    max-width: 100%;
}
.wp-caption .wp-caption-text {
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    color: #6a6a72;
    text-align: center;
    padding: 6px 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin: 1.4em 0;
}

.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;
    width: 1px;
    word-wrap: normal;
}

/* ============== СЛАЙДЕР (на главной) ============== */
.scene-slider {
    position: relative;
    overflow: hidden;
    border-radius: 0 20px 0 20px;
    margin: 30px 0;
}

.scene-slider .slides {
    display: flex;
    transition: transform .6s ease;
}

.scene-slider .slide {
    flex: 0 0 100%;
    min-width: 0;
    padding: 36px 9%;
    background: #2a2930;
    color: #F5F0E8;
}

.scene-slider .slide:nth-child(2) { background: #2c2a2d; }
.scene-slider .slide:nth-child(3) { background: #28282e; }

.scene-slider .slide .quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    color: #D9B48B;
    line-height: 1.5;
    margin: 0 0 14px;
}

.scene-slider .slide .who {
    font-family: 'Courier Prime', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B6BAA4;
}

.scene-slider .slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: #1E1E24;
}

.scene-slider .slider-dots button {
    width: 26px;
    height: 4px;
    border: none;
    background: rgba(245, 240, 232, 0.25);
    cursor: pointer;
    padding: 0;
    transition: background .2s ease;
}

.scene-slider .slider-dots button.is-active {
    background: #C36F5E;
}
