/*
Theme Name: dds_sharonlovesbooksandcats.com
Author: Евгения Тарасова
Description: Тема для информационного сайта о книгах, веб-дизайне, маркетинге и лайфстайле. Дизайн-концепция Lavender Tech.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lavbook
*/

:root {
    --paper: #F8F6FC;
    --paper-alt: #F0ECF9;
    --tile: #E8E1F0;
    --ink: #1E1A2B;
    --accent: #7C5CBF;
    --accent-2: #B8A9D4;
    --muted: #8A7D9E;
    --deep: #2D2640;
    --dot: #D6CBE6;
    --white: #FFFFFF;
    --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --font-body: "Literata", "Spectral", Georgia, "Times New Roman", serif;
    --shadow-card: 0 2px 6px rgba(124, 92, 191, .10), 0 12px 28px rgba(124, 92, 191, .10);
    --shadow-card-h: 0 4px 10px rgba(124, 92, 191, .18), 0 20px 40px rgba(124, 92, 191, .20);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image:
        radial-gradient(circle at 12% 8%, var(--dot) 1.4px, transparent 1.5px),
        radial-gradient(circle at 63% 22%, var(--dot) 1.1px, transparent 1.2px),
        radial-gradient(circle at 34% 71%, var(--dot) 1.6px, transparent 1.7px),
        radial-gradient(circle at 88% 54%, var(--dot) 1.2px, transparent 1.3px),
        radial-gradient(circle at 76% 91%, var(--dot) 1.3px, transparent 1.4px);
    background-size: 340px 320px, 260px 240px, 420px 380px, 300px 290px, 380px 340px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
}

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

a { color: var(--accent); }

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

.site-main { padding: 2.2rem 0 3.2rem; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    letter-spacing: .035em;
    line-height: 1.22;
    color: var(--ink);
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 { font-size: 3.6rem; letter-spacing: .02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

/* Заголовки секций — тонкая вертикальная линия слева */
.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.4rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .12em;
    bottom: .12em;
    width: 2px;
    background: var(--accent);
}

/* ---------- Кнопки и ссылки ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-decoration: none;
    padding: .82rem 1.9rem;
    border: 0;
    border-radius: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%);
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
    color: var(--white);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover,
.btn:focus {
    transform: translateY(2px);
    box-shadow: inset 0 4px 10px rgba(30, 26, 43, .28);
    color: var(--white);
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 2px var(--accent);
}
.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: var(--white);
    box-shadow: inset 0 4px 10px rgba(30, 26, 43, .28);
}

.entry-content a,
.crumbs a,
.card-excerpt a,
.widget a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .18s ease, text-decoration-color .18s ease;
}
.entry-content a:hover,
.crumbs a:hover,
.card-excerpt a:hover,
.widget a:hover {
    text-decoration-style: solid;
    color: var(--ink);
}

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

.site-top {
    background: var(--paper);
    box-shadow: 0 6px 24px rgba(124, 92, 191, .10);
    border-bottom: 1px solid var(--tile);
}
.site-top-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    flex: 1 1 340px;
    text-decoration: none;
    color: inherit;
}
.brand-logo,
.brand-mark { width: 54px; height: 54px; flex: none; display: block; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: .05em;
    line-height: 1.3;
    color: var(--ink);
}
.brand-tagline {
    display: block;
    font-size: .82rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: .25rem;
}

.nav-toggle {
    display: none;
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .08em;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 60px;
    padding: .5rem 1.1rem;
    cursor: pointer;
}

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

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .05em;
    text-decoration: none;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color .18s ease, border-color .18s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

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

.layout-single {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3rem;
    align-items: start;
}
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    background: var(--white);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 4px 22px rgba(124, 92, 191, .12);
    padding: 1.6rem 1.5rem;
    border-left: 4px solid var(--accent-2);
}

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

.crumbs {
    font-family: var(--font-head);
    font-size: .84rem;
    letter-spacing: .04em;
    color: var(--muted);
    margin-bottom: 1.6rem;
}
.crumbs a { text-decoration-style: dotted; }
.crumb-sep { color: var(--accent-2); margin: 0 .3rem; }

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border-left: 4px solid var(--accent-2);
    border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-h);
    border-left-color: var(--accent);
}

.card-thumb {
    background: var(--white);
    padding: 0 0 .55rem;
}
.card-shot {
    position: relative;
    display: block;
    overflow: hidden;
}
.card-shot img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(124, 92, 191, .28), rgba(184, 169, 212, .10) 60%, rgba(248, 246, 252, 0));
    pointer-events: none;
}
.card-date {
    display: block;
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .1em;
    color: var(--muted);
    padding: .55rem 1.1rem 0;
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.1rem 1.3rem 1.4rem;
}
.card-title {
    font-size: 1.18rem;
    margin: 0 0 .55rem;
}
.card-title a {
    color: var(--ink);
    text-decoration: none;
    transition: color .18s ease;
}
.card-title a:hover { color: var(--accent); }
.card-cats {
    font-family: var(--font-head);
    font-size: .76rem;
    letter-spacing: .1em;
    margin-bottom: .5rem;
}
.card-cats a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent-2);
}
.card-excerpt {
    color: #4A4358;
    font-size: .95rem;
    margin-bottom: 1.1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; }
.card-more .btn { font-size: .82rem; padding: .62rem 1.4rem; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin: 2.2rem 0 1rem;
}
.pager .page-numbers {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .05em;
    text-decoration: none;
    padding: .55rem 1rem;
    color: var(--accent);
    background: var(--white);
    border: 1px solid var(--accent-2);
    border-radius: 60px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.pager .page-numbers:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(2px);
}
.pager .page-numbers.current {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: var(--white);
}
.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    color: var(--muted);
    padding-inline: .3rem;
}

/* ---------- Разделители-точки ---------- */

.dots-rule {
    height: 26px;
    margin: 2.6rem 0;
    background-image: radial-gradient(circle, var(--dot) 3px, transparent 3.2px);
    background-size: 34px 26px;
    background-position: 0 0;
    opacity: .85;
}

/* ---------- Главная ---------- */

.front-shell { width: 85%; margin-left: auto; margin-right: auto; }

.front-section {
    padding: 2.8rem 2.2rem;
    margin-bottom: 2.4rem;
    border-radius: 0 18px 18px 0;
}
.front-section.plain { padding-inline: 0; }
.front-section.tone {
    position: relative;
    overflow: hidden;
    background-color: var(--paper-alt);
    background-image:
        linear-gradient(rgba(124, 92, 191, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 92, 191, .07) 1px, transparent 1px);
    background-size: 46px 46px, 46px 46px;
    border-left: 2px solid var(--accent-2);
}
.front-section.tone::before {
    content: "";
    position: absolute;
    left: -30px;
    bottom: -40px;
    width: 260px;
    height: 260px;
    opacity: .05;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cpath d='M60 26c-10-8-24-10-38-8v72c14-2 28 0 38 8 10-8 24-10 38-8V18c-14-2-28 0-38 8z' fill='%237C5CBF'/%3E%3Cpath d='M60 26v72' stroke='%231E1A2B' stroke-width='3'/%3E%3C/svg%3E");
    pointer-events: none;
}
.front-section .sec-lead {
    color: #4A4358;
    max-width: 62ch;
}

/* Блок 1 — hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 4.4rem 2.6rem;
    border-radius: 0 18px 18px 0;
    color: var(--white);
    background: var(--deep);
}
.fs-hero img.hero-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(45, 38, 64, .92) 0%, rgba(124, 92, 191, .74) 55%, rgba(184, 169, 212, .55) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 44rem;
}
.hero-kicker {
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: #E4DBF5;
    margin-bottom: 1rem;
}
.fs-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
}
.hero-lead {
    color: #EDE7F7;
    font-size: 1.08rem;
    margin-bottom: 1.8rem;
}
.fs-hero .btn { background: linear-gradient(120deg, #FFFFFF 0%, #E4DBF5 100%); color: var(--deep); }
.fs-hero .btn:hover { color: var(--deep); }

/* Блок 2 — сетка карточек-рубрик */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.6rem;
}
.rubric-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border-left: 4px solid var(--accent-2);
    border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow-card);
    padding: 1.8rem 1.5rem 1.6rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rubric-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-h);
    border-left-color: var(--accent);
}
.rubric-num {
    position: absolute;
    right: .6rem;
    top: -.5rem;
    font-family: var(--font-head);
    font-size: 4.6rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: var(--paper-alt);
    line-height: 1;
}
.rubric-shape { display: block; width: 48px; height: 48px; margin-bottom: 1rem; position: relative; z-index: 2; }
.rubric-card h3 { position: relative; z-index: 2; font-size: 1.2rem; }
.rubric-card p { position: relative; z-index: 2; margin: 0; font-size: .95rem; color: #4A4358; }

/* Блок 3 — таймлайн */
.timeline {
    position: relative;
    margin-top: 1.2rem;
    padding: .6rem 0;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--accent);
    opacity: .5;
}
.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.4rem 2rem 0;
    min-width: 0;
}
.tl-item.right {
    margin-left: 50%;
    padding: 0 0 2rem 2.4rem;
}
.tl-item::after {
    content: "";
    position: absolute;
    top: .55rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--accent);
}
.tl-item::after { right: -7px; }
.tl-item.right::after { left: -7px; right: auto; }
.tl-step {
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: .3rem;
}
.tl-item h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.tl-item p { margin: 0; font-size: .95rem; color: #4A4358; }

/* Блок 4 — карта тем */
.topic-map {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 1rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-head);
    font-size: .98rem;
    letter-spacing: .06em;
    color: var(--ink);
    background: var(--tile);
    border-radius: 0 14px 14px 0;
    padding: 1.35rem 1.1rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.topic-tile:hover,
.topic-tile:focus {
    background: var(--accent);
    color: var(--white);
    transform: translateY(2px);
}

/* Цитата с крупным знаком */
.quote-plate {
    position: relative;
    overflow: hidden;
    background: var(--paper-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    padding: 2.2rem 2.2rem;
    margin: 2rem 0;
}
.quote-plate::before {
    content: "?";
    position: absolute;
    right: .8rem;
    top: -2.4rem;
    font-family: var(--font-head);
    font-size: 12rem;
    font-weight: 800;
    color: var(--dot);
    opacity: .55;
    line-height: 1;
    pointer-events: none;
}
.quote-plate p {
    position: relative;
    z-index: 2;
    font-size: 1.22rem;
    margin: 0;
}
.quote-plate cite {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: .9rem;
    font-family: var(--font-head);
    font-style: normal;
    font-size: .82rem;
    letter-spacing: .12em;
    color: var(--muted);
}

/* CTA */
.cta-plate {
    background: linear-gradient(120deg, var(--deep) 0%, var(--accent) 100%);
    border-radius: 0 18px 18px 0;
    padding: 2.4rem 2.2rem;
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    align-items: center;
    justify-content: space-between;
}
.cta-plate h2 { color: var(--white); margin: 0 0 .4rem; }
.cta-text { min-width: 0; flex: 1 1 320px; }
.cta-text p { margin: 0; color: #EDE7F7; }
.cta-plate .btn { background: var(--white); color: var(--deep); }
.cta-plate .btn:hover { color: var(--deep); }

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

.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.4rem; }
.entry-meta {
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .09em;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.entry-shot {
    position: relative;
    overflow: hidden;
    border-radius: 0 16px 16px 0;
    margin-bottom: 1.8rem;
}
.entry-shot img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.entry-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(124, 92, 191, .24), rgba(248, 246, 252, 0) 65%);
}
.entry-content { min-width: 0; }
.entry-content h2 { margin-top: 1.9rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content img { border-radius: 0 14px 14px 0; display: block; }
.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--paper-alt);
    border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .45rem; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid var(--accent-2);
    background: var(--white);
}
th, td {
    border: 1px solid var(--accent-2);
    padding: .7rem .9rem;
    text-align: left;
}
th {
    font-family: var(--font-head);
    background: var(--paper-alt);
    letter-spacing: .04em;
}

.tags-line {
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .07em;
    margin-top: 1.6rem;
    color: var(--muted);
}
.tags-line a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent-2); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}
.post-nav a {
    font-family: var(--font-head);
    font-size: .88rem;
    letter-spacing: .05em;
    text-decoration: none;
    color: var(--accent);
    background: var(--white);
    border-left: 3px solid var(--accent-2);
    border-radius: 0 12px 12px 0;
    padding: .7rem 1.1rem;
    box-shadow: var(--shadow-card);
    max-width: 46%;
    min-width: 0;
}
.post-nav a:hover { border-left-color: var(--accent); }

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

.comments-zone {
    margin-top: 2.6rem;
    background: var(--white);
    border-left: 4px solid var(--accent-2);
    border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow-card);
    padding: 1.8rem 1.8rem 2rem;
}
.comment-list { list-style: none; margin: 0 0 1.6rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.4rem; }
.comment-inner {
    border-bottom: 1px dashed var(--dot);
    padding: 1rem 0;
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: baseline;
    margin-bottom: .4rem;
}
.comment-author { font-family: var(--font-head); font-weight: 700; letter-spacing: .04em; }
.comment-date { font-size: .8rem; color: var(--muted); }
.comment-tools { font-family: var(--font-head); font-size: .82rem; }
.comment-tools a { color: var(--accent); text-decoration: none; }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: .84rem;
    letter-spacing: .06em;
    margin-bottom: .3rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .65rem .8rem;
    border: 1px solid var(--accent-2);
    border-radius: 0 10px 10px 0;
    background: var(--paper);
    color: var(--ink);
}
.comment-form p { margin-bottom: 1rem; }
.comment-form .submit {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: .06em;
    padding: .8rem 1.9rem;
    border: 0;
    border-radius: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%);
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: var(--white);
    cursor: pointer;
}
.comment-form .submit:hover { transform: translateY(2px); }

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

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    font-family: var(--font-body);
    font-size: .98rem;
    padding: .65rem .9rem;
    border: 1px solid var(--accent-2);
    border-radius: 0 10px 10px 0;
    background: var(--white);
    color: var(--ink);
}
.search-form button {
    font-family: var(--font-head);
    font-size: .88rem;
    letter-spacing: .06em;
    border: 0;
    border-radius: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 95% 100%, 0 100%);
    padding: .65rem 1.4rem;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: var(--white);
    cursor: pointer;
}

/* ---------- Виджеты: сайдбар ---------- */

.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    position: relative;
    padding-left: .9rem;
    margin-bottom: .9rem;
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 2px;
    background: var(--accent);
}
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: #3B3448; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--dot);
    font-size: .95rem;
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent-2); }
.sidebar .widget a:hover { color: var(--ink); border-bottom-style: solid; }
.sidebar .widget .post-date { display: block; font-family: var(--font-head); font-size: .76rem; color: var(--muted); letter-spacing: .07em; }

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

.site-bottom {
    background: var(--deep);
    color: #E1DAF0;
    margin-top: 3rem;
    padding: 3rem 0 1.6rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.2rem;
}
.footer-col { min-width: 0; }
.site-bottom .widget-title {
    color: var(--white);
    font-size: 1.02rem;
    position: relative;
    padding-left: .9rem;
    margin-bottom: .9rem;
}
.site-bottom .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    bottom: .15em;
    width: 2px;
    background: var(--accent-2);
}
.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .widget li { color: #DCD4EC; font-size: .93rem; }
.site-bottom .widget ul { list-style: none; margin: 0; padding: 0; }
.site-bottom .widget li { padding: .38rem 0; border-bottom: 1px dashed rgba(184, 169, 212, .25); }
.site-bottom .widget li:last-child { border-bottom: 0; }
.site-bottom .widget a {
    color: #D8CCF0;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}
.site-bottom .widget a:hover { color: var(--white); text-decoration-style: solid; }

.footer-line {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(184, 169, 212, .28);
    font-family: var(--font-head);
    font-size: .82rem;
    letter-spacing: .06em;
    color: #BFB4D8;
}

/* ---------- Cookie-баннер ---------- */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    background: var(--deep);
    color: #E7E0F4;
    padding: 1rem 1.4rem;
    box-shadow: 0 -8px 26px rgba(30, 26, 43, .3);
}
.cookie-banner p { margin: 0; font-size: .9rem; max-width: 60ch; }
.cookie-banner .btn { font-size: .82rem; padding: .6rem 1.5rem; }

/* ---------- 404 и поиск ---------- */

.state-plate {
    background: var(--white);
    border-left: 4px solid var(--accent-2);
    border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow-card);
    padding: 2.4rem 2.2rem;
}
.state-plate h1 { font-size: 2.6rem; }
.state-plate .search-form { margin: 1.4rem 0; }

.page-heading { margin-bottom: 1.8rem; }
.page-heading h1 { font-size: 2.6rem; }
.page-heading p { color: var(--muted); }

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

@media (max-width: 960px) {
    h1 { font-size: 2.7rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single, .front-shell { width: 100%; }
    .entry-title { font-size: 2rem; }
}

@media (max-width: 700px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex: 1 1 100%;
    }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: .8rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .site-main { padding: 1.6rem 0 2.4rem; }
    .front-section { padding: 1.9rem 1.3rem; margin-bottom: 1.8rem; }
    .front-section.plain { padding-inline: 0; }
    .fs-hero { padding: 2.6rem 1.4rem; }
    .quote-plate { padding: 1.8rem 1.4rem; }
    .quote-plate::before { font-size: 8rem; top: -1.6rem; }
    .cta-plate { padding: 1.8rem 1.4rem; }
    .state-plate { padding: 1.7rem 1.3rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comments-zone { padding: 1.4rem 1.2rem 1.6rem; }
    .rubric-num { font-size: 3.6rem; }
    .timeline::before { left: 7px; }
    .tl-item,
    .tl-item.right {
        width: 100%;
        margin-left: 0;
        padding: 0 0 1.6rem 1.9rem;
    }
    .tl-item::after,
    .tl-item.right::after { left: 0; right: auto; }
    .post-nav a { max-width: 100%; }
}
