/*
Theme Name: dds_rutakedown.ru
Theme URI: https://rutakedown.ru/
Author: Анна Вересова
Description: Тема «Ателье знаний» — образовательный ресурс о моде и стиле: история костюма, уроки, fashion-профессии.
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: rtkd
*/

:root {
    --bg: #F7F5FB;
    --bg-alt: #EEEAF7;
    --bg-accent: #E4DCF5;
    --header: #FFFFFF;
    --header-line: #D9D2EA;
    --footer: #241E33;
    --side: #F1EDF9;
    --text: #2A2438;
    --accent: #7C5CBF;
    --gold: #E4B95B;
    --muted: #7A728C;
    --line: #CFC5E8;
    --serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    position: relative;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, #EDE8F5 0, #EDE8F5 1px, transparent 1px, transparent 24px);
}

body::before {
    content: "";
    position: absolute;
    top: 70px;
    right: 1.5%;
    width: 220px;
    height: 360px;
    opacity: .4;
    pointer-events: none;
    z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 360' fill='none' stroke='%23D9D2EA' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M110 8v22'/%3E%3Ccircle cx='110' cy='8' r='5'/%3E%3Cpath d='M70 40c10-8 70-8 80 0 8 20 6 40-4 58-6 14-4 34 6 52 10 22 12 48 4 70-10 22-12 40-10 56H74c2-16 0-34-10-56-8-22-6-48 4-70 10-18 12-38 6-52-10-18-12-38-4-58z'/%3E%3Cpath d='M82 120c18 8 38 8 56 0M74 214c24 10 48 10 72 0' stroke-dasharray='4 6'/%3E%3Cpath d='M110 286v44M76 348l34-18 34 18'/%3E%3C/svg%3E") no-repeat center / contain;
}

.site-wrap { position: relative; z-index: 1; }

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

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
a:hover, a:focus-visible {
    color: var(--accent);
    text-decoration-color: var(--gold);
    text-decoration-thickness: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.22;
    color: var(--text);
    margin: 1.6em 0 .6em;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 8px 8px 0;
    font-family: var(--serif);
    font-style: italic;
}

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

.table-scroll, .entry-content { min-width: 0; }
.entry-content table { display: block; overflow-x: auto; }

pre { overflow-x: auto; background: #EEEAF7; padding: 1rem 1.2rem; border-radius: 6px; }

/* ---------- Контейнеры ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

.rtkd-binding {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0 33.33%, var(--gold) 33.33% 66.66%, #B9A6E3 66.66% 100%);
}

/* ---------- Кнопки ---------- */
.rtkd-btn {
    display: inline-block;
    padding: .8rem 1.6rem;
    border-radius: 6px;
    border: 1px solid var(--accent);
    font-family: var(--sans);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    text-decoration: none;
    line-height: 1.3;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
    cursor: pointer;
}
.rtkd-btn--fill { background: var(--accent); color: #FFFFFF; }
.rtkd-btn--line { background: transparent; color: var(--accent); }
.rtkd-btn:hover, .rtkd-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 92, 191, .28);
    text-decoration: none;
}
.rtkd-btn--fill:hover, .rtkd-btn--fill:focus-visible { color: #FFFFFF; }
.rtkd-btn--line:hover, .rtkd-btn--line:focus-visible { background: var(--bg-alt); color: var(--accent); }

/* ---------- Шапка ---------- */
.site-header {
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--header-line);
    position: relative;
    z-index: 5;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    text-decoration: none;
    color: var(--text);
}
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark { flex: 0 0 auto; }
.brand-logo, .brand-mark svg { display: block; width: 54px; height: 54px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 560px;
}
.brand-desc {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 560px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: .55rem .7rem;
    cursor: pointer;
    color: var(--text);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--accent);
    margin: 4px 0;
}

.rtkd-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; }
.rtkd-menu a {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 1px solid transparent;
}
.rtkd-menu a:hover,
.rtkd-menu .current-menu-item > a { color: var(--accent); border-bottom-color: var(--gold); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: .85rem;
    color: var(--muted);
    padding: 1.4rem 0 .2rem;
}
.breadcrumbs a { color: var(--muted); text-decoration-color: var(--line); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--gold); }
.breadcrumbs span:last-child { color: var(--text); }

/* ---------- Раскладки ---------- */
.site-main { padding-bottom: 4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    align-items: start;
    margin-top: 1.4rem;
}
.layout-single {
    display: block;
    width: 85%;
    margin: 1.4rem auto 0;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 2rem; }
.page-head h1 { margin: .4rem 0 .6rem; font-size: 2.6rem; }
.page-kicker {
    display: block;
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
}
.page-head .rtkd-rule { margin-top: 1rem; }

.rtkd-rule {
    position: relative;
    height: 1px;
    width: 62%;
    background: var(--line);
}
.rtkd-rule::after {
    content: "";
    position: absolute;
    left: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--side);
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    color: #2A2438;
}
.sidebar .widget { margin-bottom: 2rem; color: #2A2438; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.15rem;
    color: #2A2438;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dotted var(--line); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #5E43A0; text-decoration: none; }
.sidebar a:hover { color: #7C5CBF; text-decoration: underline; text-decoration-color: var(--gold); }
.sidebar .post-date { display: block; font-size: .78rem; color: #7A728C; }
.sidebar p { color: #2A2438; }

/* ---------- Карточки ---------- */
.rtkd-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(124, 92, 191, .08), inset 0 -1px 0 var(--line);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(124, 92, 191, .16), inset 0 -1px 0 var(--line);
}
.card-thumb { overflow: hidden; position: relative; }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .45s ease;
}
.card:hover .card-thumb img { transform: scale(1.05); }
.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 10;
    background:
        radial-gradient(circle at 78% 30%, rgba(228, 185, 91, .35) 0 6px, transparent 7px),
        repeating-linear-gradient(135deg, rgba(124, 92, 191, .10) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, #EEEAF7, #E4DCF5);
}
.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: .5rem .8rem;
    font-size: .8rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.card-title { margin: 0 0 .6rem; font-size: 1.28rem; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { font-size: .96rem; color: #4A4358; flex: 1; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .8rem;
    font-weight: 700;
    font-size: .88rem;
}

/* ---------- Теги рубрик ---------- */
.rtkd-tag {
    display: inline-block;
    padding: .12rem .55rem;
    border-radius: 4px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    line-height: 1.6;
}
.rtkd-tag:hover { text-decoration: none; filter: brightness(.95); }
.rtkd-tag--t0 { background: rgba(124, 92, 191, .14); color: #5E43A0; }
.rtkd-tag--t1 { background: rgba(155, 124, 214, .18); color: #5B3F93; }
.rtkd-tag--t2 { background: rgba(98, 72, 160, .14); color: #4A3584; }
.rtkd-tag--t3 { background: rgba(184, 160, 226, .28); color: #563C8F; }
.rtkd-tag--t4 { background: rgba(137, 92, 170, .15); color: #5C3A7E; }
.rtkd-tag--t5 { background: rgba(110, 104, 184, .16); color: #454090; }

/* ---------- Записи и страницы ---------- */
.entry { min-width: 0; }
.entry-header h1 { font-size: 2.6rem; margin: .6rem 0 .8rem; }
.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; color: var(--muted); font-size: .88rem; }
.entry-thumb { margin: 1.8rem 0; border-radius: 10px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { margin-top: 1.6rem; }
.entry-content h2 {
    position: relative;
    padding-left: 1.1rem;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .1em;
    width: 3px;
    height: 2.44em;
    border-radius: 2px;
    background: var(--mark, var(--accent));
}
.rtkd-mark-amethyst { --mark: #7C5CBF; }
.rtkd-mark-gold { --mark: #E4B95B; }
.entry-content img { border-radius: 8px; }
.entry-footer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.entry-footer a { margin-right: .4rem; }

/* ---------- Пагинация ---------- */
.rtkd-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin: 2.8rem 0 0;
}
.rtkd-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--text);
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease;
}
.rtkd-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.rtkd-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.rtkd-pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form label { flex: 1; min-width: 0; }
.search-field {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    background: #FFFFFF;
    color: var(--text);
}
.search-field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ---------- Комментарии ---------- */
.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-body { background: #FFFFFF; border-radius: 10px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; box-shadow: 0 6px 18px rgba(124, 92, 191, .06); }
.comment-meta { font-size: .85rem; color: var(--muted); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: .5rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    font: inherit;
    background: #FFFFFF;
}
.comment-form .submit {
    background: var(--accent);
    color: #FFFFFF;
    border: 0;
    border-radius: 6px;
    padding: .8rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
}

/* ---------- Главная: общие ---------- */
.front-shell { width: min(85%, 1240px); margin-inline: auto; }

.front-section { padding: 5.5rem 0; position: relative; }

.sec-head { margin-bottom: 3rem; }
.sec-kicker {
    display: block;
    font-size: .74rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}
.sec-title {
    position: relative;
    margin: 0;
    padding-left: 1.2rem;
    font-size: 2.4rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}
.sec-head .rtkd-rule { margin-top: 1rem; width: 58%; }
.sec-head .rtkd-rule::after { display: none; }

.rtkd-seam {
    height: 2px;
    width: min(85%, 1240px);
    margin-inline: auto;
    background-image: radial-gradient(circle, #CFC5E8 1.3px, transparent 1.6px);
    background-size: 12px 2px;
    background-repeat: repeat-x;
}

.rtkd-divider {
    position: relative;
    height: 1px;
    background: var(--line);
    margin-top: 4rem;
}
.rtkd-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 11px;
    height: 11px;
    margin-left: -5.5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--bg-alt);
}

/* ---------- Hero ---------- */
.fs-hero {
    background: linear-gradient(135deg, #EEEAF7 0%, #F7F5FB 70%);
    padding: 5rem 0 3.5rem;
}
.fs-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 3.5rem;
    align-items: center;
}
.fs-hero-text { min-width: 0; }
.fs-hero-kicker {
    display: inline-block;
    font-size: .76rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    padding-left: 1rem;
    position: relative;
}
.fs-hero-kicker::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -3px;
    border-radius: 50%;
    background: var(--gold);
}
.fs-hero h1 { font-size: 3.4rem; line-height: 1.1; margin: 1rem 0 1.2rem; }
.fs-hero-lead { font-size: 1.15rem; color: #4A4358; max-width: 34em; margin-bottom: 2rem; }
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.fs-hero-art { min-width: 0; justify-self: center; width: 100%; }
.fs-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; }

/* ---------- Таймлайн ---------- */
.fs-timeline {
    background-color: #EEEAF7;
    background-image: repeating-linear-gradient(-45deg, rgba(207, 197, 232, .35) 0, rgba(207, 197, 232, .35) 1px, transparent 1px, transparent 22px);
}
.tl {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
.tl::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0 3rem 2.4rem 0;
    min-width: 0;
}
.tl-item:nth-child(even) { margin-left: 50%; padding: 0 0 2.4rem 3rem; }
.tl-item::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: -8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px #EEEAF7;
}
.tl-item:nth-child(even)::after { right: auto; left: -8px; }
.tl-card {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 10px 26px rgba(124, 92, 191, .08), inset 0 -1px 0 var(--line);
}
.tl-date {
    display: block;
    font-size: .76rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}
.tl-card h3 { margin: .35rem 0 .5rem; font-size: 1.3rem; }
.tl-card p { margin: 0; font-size: .95rem; color: #4A4358; }

/* ---------- Последние записи ---------- */
.fs-latest { padding-top: 5rem; }
.fs-latest-foot { margin-top: 2.6rem; text-align: center; }

/* ---------- Статистика ---------- */
.fs-stats {
    background: #241E33;
    color: #EFEBF7;
}
.fs-stats .sec-kicker { color: #B3AAC7; }
.fs-stats .sec-title { color: #FFFFFF; }
.fs-stats .sec-head .rtkd-rule { background: rgba(207, 197, 232, .25); }
.stats-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
    position: relative;
    text-align: center;
    padding: .5rem 1.2rem;
    min-width: 0;
}
.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: var(--gold);
}
.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1;
    color: #7C5CBF;
    text-shadow: 0 0 28px rgba(124, 92, 191, .45);
}
.stat-label {
    display: block;
    margin-top: .7rem;
    font-size: .92rem;
    color: #B3AAC7;
}

/* ---------- CTA ---------- */
.fs-cta {
    background: linear-gradient(135deg, #EEEAF7 0%, #E4DCF5 100%);
}
.cta-plate {
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 4rem 3.5rem 3.2rem;
    text-align: center;
    overflow: hidden;
}
.cta-plate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #7C5CBF 0 33.33%, #E4B95B 33.33% 66.66%, #B9A6E3 66.66% 100%);
}
.cta-quote {
    position: relative;
    margin: 0 auto 2rem;
    max-width: 780px;
    padding: 0 2.5rem;
    background: none;
    border: 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.9rem;
    line-height: 1.4;
    color: var(--text);
}
.cta-quote::before, .cta-quote::after {
    position: absolute;
    font-family: var(--serif);
    font-style: normal;
    font-size: 5rem;
    line-height: 1;
    color: var(--gold);
}
.cta-quote::before { content: "«"; left: -.6rem; top: -1.4rem; }
.cta-quote::after { content: "»"; right: -.6rem; bottom: -2.8rem; }
.cta-sign { display: block; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.8rem; }

/* ---------- 404 ---------- */
.rtkd-404 { text-align: left; padding: 2rem 0 1rem; }
.rtkd-404 .big { font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--accent); margin: 0; }
.rtkd-404 .search-form { margin: 1.6rem 0; }

/* ---------- Подвал ---------- */
.site-footer {
    background: #241E33;
    color: #E9E4F4;
    margin-top: 0;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding: 4rem 0 3rem;
}
.footer-col { min-width: 0; }
.site-footer .widget { color: #E9E4F4; font-size: .95rem; }
.site-footer .widget-title {
    color: #FFFFFF;
    font-size: 1.2rem;
    margin: 0 0 1rem;
    padding-left: 1rem;
    position: relative;
}
.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.site-footer .widget p, .site-footer .textwidget { color: #D6CFE6; }
.site-footer a { color: #CFC5E8; text-decoration-color: rgba(207, 197, 232, .4); }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .35rem 0; }
.site-footer .post-date { display: block; font-size: .78rem; color: #A79EBD; }
.footer-bottom {
    border-top: 1px solid rgba(207, 197, 232, .18);
    padding: 1.3rem 0;
    font-size: .85rem;
    color: #B3AAC7;
}

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 14px 40px rgba(36, 30, 51, .18);
    font-size: .9rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner .rtkd-btn { flex: 0 0 auto; padding: .6rem 1.3rem; }

/* ---------- Служебное ---------- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.alignleft { float: left; margin: 0 1.4rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.4rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: .85rem; color: var(--muted); }
.sticky .card-title a::before { content: "★ "; color: var(--gold); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    body::before { display: none; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .layout-single { width: 100%; }
    .fs-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .fs-hero h1 { font-size: 2.6rem; }
    .fs-hero-art { max-width: 460px; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .stat:nth-child(3)::before { display: none; }
    .footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .nav-toggle { display: block; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { display: none; width: 100%; }
    .main-nav.is-open { display: block; }
    .rtkd-menu { flex-direction: column; gap: 0; padding: .5rem 0 .3rem; }
    .rtkd-menu a { display: block; padding: .6rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .front-shell { width: 92%; }
    .rtkd-seam { width: 92%; }
    .front-section { padding: 3.5rem 0; }
    .fs-hero { padding: 3rem 0 2.5rem; }
    .fs-hero h1 { font-size: 2.1rem; }
    .sec-title { font-size: 1.8rem; }
    .page-head h1, .entry-header h1 { font-size: 1.9rem; }
    .brand-name { font-size: .9rem; }
    .brand-desc { display: none; }
    .brand-logo, .brand-mark svg { width: 44px; height: 44px; }
    .tl::before { left: 8px; }
    .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.8rem 2.2rem; }
    .tl-item::after, .tl-item:nth-child(even)::after { left: 0; right: auto; }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat + .stat::before { left: 50%; top: -1.25rem; margin: -3.5px 0 0 -3.5px; }
    .stat:nth-child(3)::before { display: block; }
    .stat-num { font-size: 3.2rem; }
    .cta-plate { padding: 2.8rem 1.4rem 2.4rem; }
    .cta-quote { font-size: 1.35rem; padding: 0 1.6rem; }
    .cta-quote::before, .cta-quote::after { font-size: 3.4rem; }
    .cta-quote::after { bottom: -2rem; }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .sidebar { padding: 1.4rem 1.3rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; padding: 1rem 1.2rem; }
    .search-form { flex-direction: column; }
    .rtkd-404 .big { font-size: 4.2rem; }
}
