/*
Theme Name: dds_walldeco.ru
Theme URI: https://walldeco.ru/
Author: Алексей Березин
Description: Тема «Тёплая геометрия» для информационно-образовательного портала о декоре стен и отделке.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: wdeco
*/

:root {
    --sand: #FDF8F3;
    --sand-2: #F5EDE4;
    --side: #F9F3EC;
    --ink: #2B2724;
    --ink-2: #3D3834;
    --amber: #D97706;
    --copper: #B45309;
    --muted: #8A7E72;
    --rule: #E8DDD1;
    --serif: "Playfair Display", "PT Serif", Georgia, "Times New Roman", serif;
    --sans: "Manrope", "Segoe UI", Arial, sans-serif;
    --shadow: 0 6px 24px rgba(43, 39, 36, 0.08);
    --shadow-deep: 0 14px 34px rgba(43, 39, 36, 0.14);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--sand);
    background-image:
        repeating-linear-gradient(45deg, rgba(240, 231, 220, 0.4) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(240, 231, 220, 0.4) 0 1px, transparent 1px 24px);
    position: relative;
}
body::before {
    content: "";
    position: fixed;
    top: -140px;
    right: -140px;
    width: 560px;
    height: 560px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3Cfilter id='b'%3E%3CfeGaussianBlur stdDeviation='38'/%3E%3C/filter%3E%3C/defs%3E%3Cpath filter='url(%23b)' fill='%23D97706' fill-opacity='0.22' d='M290 70c50 30 60 110 30 170s-100 100-160 80-100-80-80-140 70-100 120-115 60-25 90 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
}
h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.01em; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

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

table { width: 100%; border-collapse: collapse; margin: 1.5em 0; border: 1px solid var(--rule); }
th, td { border: 1px solid var(--rule); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--sand-2); font-weight: 700; }

blockquote {
    margin: 1.8em 0;
    padding: 1.2em 1.6em;
    border-left: 4px solid var(--amber);
    background: var(--sand-2);
    border-radius: 0 10px 10px 0;
    font-family: var(--serif);
    font-size: 1.2rem;
}
blockquote p:last-child { margin-bottom: 0; }

pre { overflow-x: auto; background: var(--ink); color: var(--sand); padding: 1em 1.2em; border-radius: 8px; }
code { font-size: .92em; }

.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%, 1280px); margin-inline: auto; }

/* ---------- Кнопки ---------- */

.btn, .comment-form .submit {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.2;
    padding: .85em 1.5em;
    border-radius: 8px;
    border: 2px solid var(--amber);
    background: var(--amber);
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover, .btn:focus-visible, .comment-form .submit:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(180, 83, 9, 0.28);
    text-decoration: none;
}
.btn-line { background: transparent; color: var(--copper); border-color: var(--copper); }
.btn-line:hover, .btn-line:focus-visible { background: var(--copper); color: #FFFFFF; }
.btn-line--light { color: #FDF8F3; border-color: #E8B77A; }
.btn-line--light:hover, .btn-line--light:focus-visible { background: var(--copper); border-color: var(--copper); }

/* ---------- Шапка ---------- */

.masthead { background: #FFFFFF; border-bottom: 1px solid var(--rule); position: relative; }
.masthead__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}
.brand:hover, .brand:focus-visible { color: var(--ink); text-decoration: none; }
.brand__mark { flex: 0 0 auto; display: block; }
.brand-logo, .brand-svg { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.3;
    max-width: 62ch;
}
.brand__desc {
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 90ch;
    margin-top: .2rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    flex: 0 0 auto;
    background: transparent;
    border: 2px solid var(--copper);
    color: var(--copper);
    border-radius: 8px;
    padding: .5rem .8rem;
    font: 700 .9rem var(--sans);
    cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; }
.nav-toggle__bars::after { position: absolute; top: 6px; }

.topnav { border-top: 1px solid var(--rule); background: #FFFFFF; }
.topnav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .2rem 2rem;
}
.topnav__list a {
    display: block;
    padding: .8rem 0;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.topnav__list a:hover, .topnav__list a:focus-visible,
.topnav__list .current-menu-item > a {
    color: var(--copper);
    border-bottom-color: var(--amber);
}

.tape { height: 4px; background: linear-gradient(90deg, var(--amber), var(--copper)); }

.site-main { padding: 0 0 4.5rem; }

/* ---------- Хлебные крошки ---------- */

.breadcrumbs {
    font-size: .88rem;
    color: var(--muted);
    padding: 1.4rem 0 .4rem;
}
.breadcrumbs a { color: var(--copper); }
.breadcrumbs .sep { margin: 0 .35em; color: var(--amber); }

/* ---------- Раскладки ---------- */

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

.layout-with-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-top: 1rem;
}
.layout-with-sidebar .content-area { width: 67%; min-width: 0; }
.layout-with-sidebar .sidebar { width: 27%; min-width: 0; }

.front-main { width: 85%; margin-left: auto; margin-right: auto; padding-top: 2.5rem; }

/* ---------- Заголовки: точка-маркер ---------- */

.page-title, .sec-title, .card-title, .entry-content h2, .replies__title {
    position: relative;
    padding-left: .9em;
}
.page-title::before, .sec-title::before, .card-title::before, .entry-content h2::before, .replies__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: .36em;
    height: .36em;
    min-width: 7px;
    min-height: 7px;
    border-radius: 50%;
    background: var(--amber);
}
.page-title { font-size: 2.6rem; margin: .4em 0 .5em; }

.sec-head { margin-bottom: 2.2rem; max-width: 70ch; }
.sec-head::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    background: var(--amber);
    margin-bottom: 1rem;
}
.sec-head--row {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
}
.sec-head--row::before { flex: 0 0 100%; margin-bottom: 0; }
.sec-title { font-size: 2.3rem; font-weight: 800; margin: 0; }
.sec-lead { color: var(--muted); margin: .8rem 0 0; font-size: 1.05rem; }

/* ---------- Разделитель «разметка стены» ---------- */

.markline {
    height: 16px;
    margin: 2.6rem 0;
    background:
        radial-gradient(circle, var(--amber) 0 3.5px, transparent 4px) calc(50% - 22px) 50% / 16px 16px no-repeat,
        radial-gradient(circle, var(--copper) 0 4.5px, transparent 5px) 50% 50% / 16px 16px no-repeat,
        radial-gradient(circle, var(--amber) 0 3.5px, transparent 4px) calc(50% + 22px) 50% / 16px 16px no-repeat,
        repeating-linear-gradient(90deg, #CDBBA7 0 7px, transparent 7px 14px) 0 50% / 100% 1px no-repeat;
}

/* ---------- Секции главной ---------- */

.fs { position: relative; }
.fs-alt {
    background: var(--sand-2);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-radius: 10px;
    padding: 3.6rem 3.2rem;
}

/* Hero */
.fs-hero {
    min-height: 540px;
    display: flex;
    align-items: flex-end;
    border-radius: 10px;
    overflow: hidden;
    background: var(--ink);
    color: #FDF8F3;
    padding: 4rem 3.5rem;
}
.fs-hero__bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background:
        linear-gradient(100deg, rgba(43, 39, 36, 0.92) 0%, rgba(43, 39, 36, 0.78) 45%, rgba(43, 39, 36, 0.45) 100%);
}
.fs-hero__inner { position: relative; z-index: 1; max-width: 46rem; min-width: 0; }
.fs-hero__title {
    font-size: 3.5rem;
    line-height: 1.08;
    font-weight: 800;
    color: #FDF8F3;
    margin: 0 0 1.2rem;
    position: relative;
    padding-left: .55em;
}
.fs-hero__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: .22em;
    height: .22em;
    border-radius: 50%;
    background: var(--amber);
}
.fs-hero__lead { font-size: 1.15rem; color: #E8DDD1; max-width: 60ch; margin-bottom: 2rem; }
.fs-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; position: relative; max-width: 58rem; }
.steps__item {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 1.6rem;
    position: relative;
    padding-bottom: 2.2rem;
}
.steps__item:last-child { padding-bottom: 0; }
.steps__item::before {
    content: "";
    position: absolute;
    left: 2.75rem;
    top: 4.6rem;
    bottom: .4rem;
    width: 1px;
    background: var(--copper);
}
.steps__item:last-child::before { display: none; }
.steps__num {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 4rem;
    line-height: 1;
    color: var(--amber);
    text-align: center;
    justify-self: center;
}
.steps__body { min-width: 0; padding-top: .5rem; border-top: 1px solid var(--rule); }
.steps__body h3 { margin: .6rem 0 .4rem; font-size: 1.4rem; }
.steps__body p { margin: 0; color: var(--ink); }

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

/* Факты */
.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.facts__item {
    min-width: 0;
    padding: .4rem 1.6rem;
    border-left: 1px solid #D9C9B8;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__num {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1;
    color: var(--amber);
}
.facts__cap { color: var(--muted); font-size: .95rem; line-height: 1.55; }

/* Карта тем */
.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}
.topics__tile {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    padding: 1.6rem 1.5rem;
    background: var(--sand-2);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.topics__tile:hover, .topics__tile:focus-visible {
    border-color: var(--amber);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    color: var(--ink);
    text-decoration: none;
}
.topics__icon { color: var(--copper); display: block; margin-bottom: .5rem; }
.topics__icon svg { display: block; }
.topics__name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; }
.topics__note { font-size: .92rem; color: var(--muted); }

/* ---------- Карточка записи ---------- */

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-top: 2px solid var(--amber);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-width: 0;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); border-top-color: var(--copper); }
.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;
}
.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; gap: .3rem 1rem; font-size: .82rem; color: var(--muted); }
.card-cat { color: var(--copper); }
.card-title { font-size: 1.3rem; margin: .5rem 0 .6rem; line-height: 1.3; }
.card-title::before { top: .5em; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover, .card-title a:focus-visible { color: var(--copper); }
.card-excerpt { flex: 1; font-size: .97rem; line-height: 1.65; color: #4A433E; overflow-wrap: anywhere; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: .8rem; font-weight: 700; font-size: .92rem; }

/* ---------- Запись и страница ---------- */

.entry-head { margin-bottom: 1.4rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .9rem; }
.entry-cats a { margin-right: .6rem; }
.entry-cover { margin: 0 0 2rem; border-radius: 10px; overflow: hidden; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.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(--amber); }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .5em; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); }
.entry-tags a {
    font-size: .85rem;
    padding: .3em .8em;
    border: 1px solid var(--rule);
    border-radius: 8px;
    text-decoration: none;
    background: #FFFFFF;
}
.entry-tags a:hover { border-color: var(--amber); }
.page-head { margin-bottom: 1.8rem; }
.page-intro { color: var(--muted); max-width: 70ch; }
.page-links { margin: 1.5em 0; font-weight: 600; }

/* ---------- Сайдбар и виджеты ---------- */

.sidebar {
    background: var(--side);
    border: 1px solid var(--rule);
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.2rem;
    margin: 0 0 1rem;
    color: var(--ink);
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--rule);
}
.sidebar .widget-title::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--amber);
    margin-top: .6rem;
    margin-bottom: -.65rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .6rem 0; border-bottom: 1px dashed #DCCDBD; line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sidebar a:hover, .sidebar a:focus-visible { color: var(--copper); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .8rem; color: #7A6E62; margin-top: .2rem; font-weight: 400; }
.sidebar p { color: var(--ink); }

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    padding: .55rem .9rem;
    border: 2px solid var(--rule);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.pager a.page-numbers:hover, .pager a.page-numbers:focus-visible {
    border-color: var(--copper);
    color: var(--copper);
    transform: translateY(-2px);
}
.pager .page-numbers.current { background: var(--amber); border-color: var(--amber); color: #FFFFFF; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: .55rem .3rem; }

/* ---------- Поиск ---------- */

.finder { margin: 1.4rem 0; }
.finder__label { display: block; font-weight: 600; margin-bottom: .4rem; }
.finder__row { display: flex; gap: .6rem; }
.finder__input {
    flex: 1;
    min-width: 0;
    font: inherit;
    padding: .75em 1em;
    border: 2px solid var(--rule);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
}
.finder__input:focus { border-color: var(--amber); outline: none; }

/* ---------- 404 ---------- */

.lost { padding: 2rem 0 1rem; }
.lost__code {
    font-family: var(--serif);
    font-weight: 800;
    font-size: 7rem;
    line-height: 1;
    color: var(--amber);
    margin: 0;
}
.lost__home { margin-top: 1.6rem; }
.empty-block { background: var(--side); border-radius: 10px; padding: 1.6rem 1.8rem; }

/* ---------- Комментарии ---------- */

.replies { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.replies__title { font-size: 1.6rem; margin-top: 0; }
.replies__list, .replies__list .children { list-style: none; margin: 0; padding: 0; }
.replies__list .children { padding-left: 2rem; }
.reply-box {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}
.reply-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.reply-avatar { border-radius: 50%; display: block; }
.reply-who { display: flex; flex-direction: column; line-height: 1.3; }
.reply-who time { font-size: .8rem; color: var(--muted); }
.reply-wait { color: var(--copper); font-size: .9rem; }
.reply-link a { font-size: .88rem; font-weight: 700; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    padding: .7em .9em;
    border: 2px solid var(--rule);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--amber); outline: none; }
.comment-form .comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { font-weight: 400; }
.comment-notes { color: var(--muted); font-size: .9rem; }

/* ---------- Подвал ---------- */

.colophon {
    background-color: var(--ink);
    background-image: radial-gradient(#3D3834 1px, transparent 1.2px);
    background-size: 9px 9px;
    color: #E8DDD1;
    padding: 4rem 0 1.6rem;
    border-top: 4px solid var(--amber);
}
.colophon__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
}
.colophon__col { min-width: 0; }
.colophon .widget { margin-bottom: 1.6rem; color: #E8DDD1; }
.colophon .widget-title {
    font-size: 1.2rem;
    color: #FDF8F3;
    margin: 0 0 1rem;
    padding-left: .9em;
    position: relative;
}
.colophon .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .5em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--amber);
}
.colophon p, .colophon .textwidget { color: #D6C9BB; font-size: .95rem; line-height: 1.7; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { padding: .3rem 0; }
.colophon a { color: #F2C98F; text-decoration-color: rgba(242, 201, 143, .5); }
.colophon a:hover, .colophon a:focus-visible { color: #FDF8F3; text-decoration-color: var(--amber); }
.colophon__copy {
    margin: 2.8rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid #4A433E;
    font-size: .85rem;
    color: #B5A898;
}

/* ---------- Cookie ---------- */

.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--ink);
    color: #F5EDE4;
    border-top: 3px solid var(--amber);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(43, 39, 36, 0.3);
}
.cookie-banner__text { margin: 0; font-size: .92rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-banner__btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
    .fs-hero__title { font-size: 2.9rem; }
    .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .topnav { display: none; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: 0; }
    .topnav__list a { padding: .75rem 0; border-bottom: 1px solid var(--rule); }
    .brand__desc { display: none; }

    .layout-with-sidebar { flex-direction: column; }
    .layout-with-sidebar .content-area, .layout-with-sidebar .sidebar { width: 100%; }
    .layout-with-sidebar .sidebar { margin-top: 3rem; }
    .layout-single .content-area { width: 100%; }
    .front-main { width: 100%; }

    h1, .page-title { font-size: 2.1rem; }
    .sec-title { font-size: 1.9rem; }
    .fs-alt { padding: 2.8rem 2rem; }
    .fs-hero { min-height: 460px; padding: 3rem 2.2rem; }
    .fs-hero__title { font-size: 2.5rem; }

    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .facts__item:nth-child(3) { border-left: 0; padding-left: 0; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-logo, .brand-svg { width: 46px; height: 46px; }
    .brand__name { font-size: .9rem; }
    h1, .page-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.6rem; }
    .fs-alt { padding: 2.2rem 1.3rem; }
    .fs-hero { min-height: 420px; padding: 2.4rem 1.4rem; }
    .fs-hero__title { font-size: 2rem; }
    .fs-hero__lead { font-size: 1rem; }
    .steps__item { grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; }
    .steps__num { font-size: 2.8rem; }
    .steps__item::before { left: 1.7rem; top: 3.4rem; }
    .card-grid, .card-grid--three { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .facts__item, .facts__item:nth-child(3) { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px solid #D9C9B8; }
    .facts__item:last-child { border-bottom: 0; padding-bottom: 0; }
    .facts__num { font-size: 2.8rem; }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .colophon__grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .finder__row { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .lost__code { font-size: 5rem; }
    .replies__list .children { padding-left: 1rem; }
    .markline { margin: 1.8rem 0; }
}
