/*
Theme Name: dds_house-cardin-2019.ru
Theme URI: https://house-cardin-2019.ru/
Author: Анна Северцева
Description: Тема образовательного портала о моде: история костюма, великие дизайнеры, профессия дизайнера одежды, архив Пьера Кардена.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hcardin
*/

:root {
    --bg: #FFF8F0;
    --bg-alt: #FFEEDD;
    --dark: #2B1B12;
    --side: #FFF3E6;
    --ink: #2B1B12;
    --coral: #E85D2C;
    --amber: #D4A017;
    --muted: #8C6E5A;
    --line: #F0DCC8;
    --copper: #B0643A;
    --head: "Playfair Display", Georgia, "Times New Roman", serif;
    --text: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 300'%3E%3Cg fill='%23E85D2C' fill-opacity='0.04'%3E%3Cellipse cx='60' cy='22' rx='14' ry='16'/%3E%3Crect x='55' y='36' width='10' height='14'/%3E%3Cpath d='M22 58 Q60 44 98 58 L92 120 Q84 150 90 180 L30 180 Q36 150 28 120 Z'/%3E%3Crect x='56' y='180' width='8' height='90'/%3E%3Cpath d='M30 290 Q60 262 90 290 Z'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(245, 230, 211, 0.3) 0 1px, transparent 1px 20px);
    background-repeat: no-repeat, repeat;
    background-position: right 2% bottom 0, 0 0;
    background-size: 220px auto, auto;
    background-attachment: fixed, scroll;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head);
    color: var(--ink);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

a {
    color: var(--coral);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .25s ease, text-decoration-thickness .25s ease, text-decoration-color .25s ease;
}
a:hover, a:focus-visible {
    color: var(--amber);
    text-decoration-thickness: 2px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote {
    margin: 1.5em 0;
    padding: .4em 0 .4em 1.4em;
    border-left: 4px solid var(--coral);
    font-family: var(--head);
    font-style: italic;
    font-size: 1.15rem;
}

pre { overflow-x: auto; background: var(--bg-alt); padding: 1em 1.2em; border-radius: 6px; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.shell { width: min(92%, 1240px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: .72em 1.9em;
    border-radius: 6px;
    font-family: var(--text);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid var(--coral);
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn-fill { background: var(--coral); color: #fff; }
.btn-line { background: transparent; color: var(--coral); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn:hover, .btn:focus-visible {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43, 27, 18, 0.18);
    text-decoration: none;
}

/* ---------- Полоса и шапка ---------- */
.ribbon { height: 4px; background: linear-gradient(90deg, #E85D2C, #D4A017); }

.masthead { background: var(--dark); color: #FFF8F0; }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    text-decoration: none;
    color: #FFF8F0;
    min-width: 0;
}
.brand:hover { color: #FFF8F0; }
.brand-mark { flex: 0 0 auto; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 44ch;
}
.brand-desc {
    font-size: .78rem;
    color: #D9BFA9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 60ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid #D4A017;
    border-radius: 6px;
    width: 46px; height: 40px;
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    position: absolute;
    left: 50%;
    width: 22px; height: 2px;
    margin-left: -11px;
    background: #FFF8F0;
    content: "";
    transition: transform .25s ease;
}
.nav-toggle-bar { top: 50%; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: .5em .95em;
    color: #FFF8F0;
    text-decoration: none;
    font-size: .95rem;
    font-weight: 500;
    border-radius: 6px;
}
.nav-list a:hover, .nav-list .current-menu-item > a {
    color: var(--amber);
    background: rgba(255, 248, 240, 0.06);
}
.nav-list .sub-menu {
    list-style: none;
    margin: 0; padding: .4rem;
    position: absolute;
    top: 100%; left: 0;
    min-width: 200px;
    background: var(--dark);
    border: 1px solid #4A3326;
    border-radius: 6px;
    display: none;
    z-index: 20;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

/* ---------- Раскладка страниц ---------- */
.page-shell { padding: 1.6rem 0 3.5rem; }

.crumbs {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.crumbs a { color: var(--coral); }
.crumbs .sep { color: var(--amber); margin: 0 .3em; }

.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 1.8rem; }
.page-title { font-size: 2.4rem; margin: 0 0 .4em; }
.page-lead { color: var(--muted); font-size: 1.05rem; }

.entry {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2.2rem 2.4rem;
    box-shadow: 0 4px 12px rgba(43, 27, 18, 0.08);
}
.entry-head .card-meta { margin-bottom: .8rem; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; border-radius: 8px; }
.entry-content { min-width: 0; overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    padding-left: .9rem;
    border-left: 3px solid var(--coral);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--coral); }
.entry-content img { display: block; border-radius: 6px; }
.entry-tags { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a {
    font-size: .85rem;
    text-decoration: none;
    padding: .25em .75em;
    border-radius: 6px;
    background: var(--bg-alt);
}
.entry-pages { margin-top: 1.4rem; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    color: #2B1B12;
}
.sidebar .widget { margin-bottom: 1.8rem; color: #2B1B12; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.15rem;
    margin: 0 0 .9rem;
    color: #2B1B12;
    padding-left: .8rem;
    border-left: 3px solid var(--coral);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #2B1B12; text-decoration-color: rgba(232, 93, 44, .5); }
.sidebar a:hover { color: var(--coral); }
.sidebar .post-date { display: block; font-size: .8rem; color: #7A5C48; }

/* ---------- Сетка карточек ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(43, 27, 18, 0.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232, 93, 44, 0.15);
    border-color: var(--coral);
}
.card-thumb { overflow: hidden; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .5s ease;
}
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(232, 93, 44, .12) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(-45deg, rgba(212, 160, 23, .12) 0 1px, transparent 1px 14px);
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.3rem 1.4rem 1.5rem;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    color: var(--muted);
}
.card-title { font-size: 1.25rem; margin: .6rem 0 .6rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--coral); }
.card-excerpt { color: #5A4336; font-size: .95rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt img, .card-excerpt figure { display: none; }
.card-more { align-self: flex-start; margin-top: auto; padding: .5em 1.3em; font-size: .88rem; }

.cat-chip {
    display: inline-block;
    padding: .18em .7em;
    border-radius: 6px;
    font-size: .76rem;
    font-weight: 600;
    text-decoration: none;
}
.cat-chip:hover { text-decoration: none; filter: brightness(.95); }
.tone-0 { background: rgba(232, 93, 44, .12); color: #B8431A; }
.tone-1 { background: rgba(212, 160, 23, .16); color: #8A6400; }
.tone-2 { background: rgba(176, 100, 58, .14); color: #8A4A26; }
.tone-3 { background: rgba(201, 162, 39, .18); color: #7A5A00; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 2.6rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: .5em .9em;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pager a.page-numbers:hover { border-color: var(--coral); color: var(--coral); }
.pager .page-numbers.current { background: var(--coral); border-color: var(--coral); color: #fff; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Главная ---------- */
.front-inner { width: 85%; margin-left: auto; margin-right: auto; }

.hero {
    position: relative;
    overflow: hidden;
    background: var(--dark);
    color: #fff;
    padding: 6.5rem 0 6rem;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #E85D2C, #D4A017);
    z-index: 2;
}
.hero-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(100deg, rgba(43, 27, 18, .88) 0%, rgba(43, 27, 18, .62) 55%, rgba(43, 27, 18, .35) 100%);
}
.hero .shell { position: relative; z-index: 1; }
.hero-inner { max-width: 760px; margin-left: 7.5%; }
.hero-title {
    font-size: 3.2rem;
    color: #fff;
    margin: 0 0 .5em;
    line-height: 1.12;
}
.hero-sub { font-size: 1.12rem; color: #F3E3D3; max-width: 60ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.band { padding: 4.5rem 0; }
.band-plain { background-color: var(--bg); }
.band-alt { background-color: var(--bg-alt); }
.band-accent {
    background-color: var(--bg-alt);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32L0 82V66l28 16 28-16v16L28 98z' fill='none' stroke='%232B1B12' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E"),
        linear-gradient(180deg, #FFEEDD 0%, #FFF8F0 100%);
}
.band-more { margin: 2.2rem 0 0; text-align: center; }

.sec-title {
    position: relative;
    margin: 0 0 .5em;
    padding-left: 2.6rem;
    font-size: 2.2rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 11px; height: 11px;
    margin-top: -5.5px;
    border-radius: 50%;
    background: var(--amber);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 11px; top: 50%;
    width: calc(2.6rem - 11px - .9rem);
    height: 1px;
    background: var(--amber);
}
.sec-title span {
    display: inline-block;
    padding-left: .9rem;
    border-left: 3px solid var(--coral);
}
.sec-lead { color: var(--muted); margin: 0 0 2.4rem; padding-left: 2.6rem; max-width: 70ch; }

/* разделители */
.seam {
    height: 14px;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, #D4A017 0 3px, transparent 3.5px),
        repeating-linear-gradient(90deg, #E0C3A8 0 8px, transparent 8px 14px);
    background-size: 84px 14px, 100% 1px;
    background-position: 0 0, 0 50%;
    background-repeat: repeat-x, no-repeat;
}
.rule-diamond {
    position: relative;
    height: 1px;
    background: var(--line);
    width: min(92%, 1240px);
    margin: 0 auto;
}
.rule-diamond span {
    position: absolute;
    left: 50%; top: 50%;
    width: 12px; height: 12px;
    margin: -6px 0 0 -6px;
    background: var(--amber);
    transform: rotate(45deg);
}

/* таймлайн */
.chrono {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.chrono::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: #D4A017;
}
.chrono-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem 2rem 0;
}
.chrono-item:nth-child(even) { margin-left: 50%; padding: 0 0 2rem 2.6rem; }
.chrono-item::before {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: -8px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--coral);
    z-index: 1;
}
.chrono-item:nth-child(even)::before { right: auto; left: -8px; }
.chrono-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.3rem 1.5rem 1.2rem;
    box-shadow: 0 4px 12px rgba(43, 27, 18, 0.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.chrono-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232, 93, 44, 0.15);
    border-color: var(--coral);
}
.chrono-date {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: #8A6400;
    background: rgba(212, 160, 23, .16);
    padding: .15em .7em;
    border-radius: 6px;
}
.chrono-card h3 { margin: .5rem 0 .4rem; font-size: 1.25rem; }
.chrono-card p { margin: 0; font-size: .95rem; color: #5A4336; }

/* цитата */
.maxim {
    position: relative;
    margin: 0;
    background: #2B1B12;
    color: #FFF8F0;
    border-radius: 10px;
    padding: 3.4rem 12rem 3rem 3.4rem;
    overflow: hidden;
}
.maxim::before {
    content: "";
    position: absolute;
    left: 2rem; top: 2.6rem; bottom: 2.6rem;
    width: 4px;
    background: #E85D2C;
    border-radius: 2px;
}
.maxim-text {
    margin: 0;
    padding: 0 0 0 1.6rem;
    border: 0;
    font-family: var(--head);
    font-style: italic;
    font-weight: 500;
    font-size: 2rem;
    line-height: 1.4;
    color: #FFF8F0;
}
.maxim-text p { margin: 0; }
.maxim-cite {
    margin-top: 1.4rem;
    padding-left: 1.6rem;
    font-size: .95rem;
    letter-spacing: .04em;
    color: #D4A017;
}
.maxim-scissors {
    position: absolute;
    right: 2.2rem; top: 50%;
    width: 150px; height: 150px;
    margin-top: -75px;
    opacity: .1;
    transform: rotate(-18deg);
}

/* рубрикатор */
.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}
.topic {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
    padding: 1.7rem 1.6rem;
    background: #FFEEDD;
    border: 1px solid #F0DCC8;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.band-alt .topic { background: #FFF8F0; }
.topic svg {
    width: 44px; height: 44px;
    margin-bottom: .6rem;
    fill: none;
    stroke: var(--coral);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    transition: stroke .3s ease;
}
.topic-name { font-family: var(--head); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.topic-note { font-size: .88rem; color: var(--muted); transition: color .3s ease; }
.topic:hover, .topic:focus-visible {
    background: #E85D2C;
    border-color: #E85D2C;
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(232, 93, 44, 0.25);
    text-decoration: none;
}
.band-alt .topic:hover { background: #E85D2C; }
.topic:hover svg, .topic:focus-visible svg { stroke: #fff; }
.topic:hover .topic-note, .topic:focus-visible .topic-note { color: #fff; }

/* ---------- Поиск, 404, пустые состояния ---------- */
.seek { display: flex; gap: .6rem; margin: 1.2rem 0; max-width: 560px; }
.seek-field {
    flex: 1;
    min-width: 0;
    padding: .7em 1em;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
.seek-field:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
.sidebar .seek { flex-direction: column; }

.empty-note {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.6rem 1.8rem;
}
.lost { text-align: left; padding: 2rem 0; }
.lost-code {
    font-family: var(--head);
    font-size: 6rem;
    line-height: 1;
    margin: 0;
    color: var(--coral);
}

/* ---------- Комментарии ---------- */
.discussion {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2rem 2.2rem;
}
.discussion-title { margin-top: 0; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-left: 1.6rem; border-left: 2px solid var(--line); }
.note { padding: 1rem 0; border-bottom: 1px dashed var(--line); }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.note-head img { border-radius: 50%; display: block; }
.note-author { font-weight: 600; }
.note-date { font-size: .8rem; color: var(--muted); }
.note-text { margin-top: .5rem; }
.comment-reply-link { font-size: .85rem; }
.comment-form label { display: block; font-weight: 500; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7em 1em;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    background: var(--bg);
}

/* ---------- Подвал ---------- */
.colophon {
    background: #2B1B12;
    color: #F3E3D3;
    padding: 3.5rem 0 1.6rem;
    position: relative;
}
.colophon::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #E85D2C, #D4A017);
}
.colophon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
}
.colophon-col { min-width: 0; }
.colophon .widget { color: #F3E3D3; font-size: .93rem; }
.colophon .widget-title {
    color: #D4A017;
    font-size: 1.15rem;
    margin: 0 0 1rem;
    padding-left: .8rem;
    border-left: 3px solid #E85D2C;
}
.colophon .widget p { color: #E9D5C3; }
.colophon .widget a { color: #FFB38F; text-decoration-color: rgba(255, 179, 143, .5); }
.colophon .widget a:hover { color: #D4A017; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .35rem 0; }
.colophon-bottom {
    margin-top: 2.6rem;
    padding-top: 1.3rem;
    border-top: 1px solid #4A3326;
    font-size: .85rem;
    color: #C9AE97;
}

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    background: #2B1B12;
    color: #FFF8F0;
    border-radius: 10px;
    border-top: 3px solid #E85D2C;
    box-shadow: 0 10px 30px rgba(43, 27, 18, .3);
}
.cookie-text { margin: 0; font-size: .9rem; color: #F3E3D3; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .front-inner { width: 100%; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-inner { margin-left: 0; }
    .hero-title { font-size: 2.6rem; }
    .maxim { padding: 3rem 8rem 2.6rem 3rem; }
    .maxim-text { font-size: 1.7rem; }

    .nav-toggle { display: block; }
    .masthead-row { flex-wrap: wrap; }
    .primary-nav { display: none; width: 100%; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: .4rem 0 .6rem; border-top: 1px solid #4A3326; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding-left: 1rem; }
    .brand { flex: 1; }
}

@media (max-width: 600px) {
    h1, .page-title { font-size: 1.9rem; }
    .sec-title { font-size: 1.7rem; padding-left: 2rem; }
    .sec-title::after { width: calc(2rem - 11px - .6rem); }
    .sec-title span { padding-left: .6rem; }
    .sec-lead { padding-left: 0; }
    .band { padding: 3rem 0; }
    .hero { padding: 4.5rem 0 4rem; }
    .hero-title { font-size: 2.1rem; }
    .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .entry { padding: 1.5rem 1.3rem; }
    .discussion { padding: 1.5rem 1.3rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .brand-desc { display: none; }

    .chrono::before { left: 8px; }
    .chrono-item, .chrono-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.6rem 2.2rem; }
    .chrono-item::before, .chrono-item:nth-child(even)::before { left: 0; right: auto; }

    .maxim { padding: 2.4rem 1.6rem 2.2rem 2.4rem; }
    .maxim::before { left: 1.2rem; }
    .maxim-text { font-size: 1.35rem; padding-left: .9rem; }
    .maxim-cite { padding-left: .9rem; }
    .maxim-scissors { width: 90px; height: 90px; right: .6rem; top: auto; bottom: .6rem; margin-top: 0; }

    .seek { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
}
