/*
Theme Name: dds_thatbradoesnotfither.com
Theme URI: https://thatbradoesnotfither.com/
Author: Ирина Лескова
Description: Информационная тема для сайта о нижнем белье и бодипозитиве. Японский минимализм, холодная лавандовая палитра, редакционная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bratrue
*/

/* =============================================================
   1. Переменные и база
   ============================================================= */
:root {
    --bg:            #F2F5F9;
    --bg-alt:        #E8EDF5;
    --bg-accent-a:   #E8EDF5;
    --bg-accent-b:   #DCE3ED;
    --surface:       #FFFFFF;
    --footer-bg:     #1C212B;
    --text:          #1E232E;
    --muted:         #8A929F;
    --accent:        #7B6B9E;
    --accent-2:      #4A7C8C;
    --line:          #D5DCE6;
    --radius:        8px;
    --radius-btn:    6px;
    --shell:         1180px;
    --font-head:     "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body:     "Source Sans Pro", "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -150px;
    bottom: -180px;
    width: 560px;
    height: 460px;
    border-radius: 50% 46% 54% 50% / 52% 50% 50% 48%;
    background: radial-gradient(circle at 40% 40%, #7B6B9E 0%, #8E82AD 55%, rgba(123,107,158,0) 78%);
    opacity: 0.07;
    filter: blur(22px);
    pointer-events: none;
    z-index: 0;
}

.site-header, .site-main, .site-footer { position: relative; z-index: 1; }

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 100% 0;
    background-position: 0 100%;
    transition: background-size .22s ease, color .2s ease;
}
a:hover, a:focus-visible { background-size: 100% 1.5px; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.25;
    color: var(--text);
    margin: 0 0 .7em;
}

h1 { font-size: 3.2rem; letter-spacing: .015em; font-weight: 500; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

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

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

/* =============================================================
   2. Шапка
   ============================================================= */
.site-header {
    background: rgba(242, 245, 249, .85);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-mark img, .brand-mark svg { display: block; width: 52px; height: 52px; }
.brand-logo { width: auto !important; height: auto !important; max-height: 60px; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: var(--font-head);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: .04em;
    line-height: 1.35;
    margin: 0;
    color: var(--text);
}
.brand-title a { color: inherit; background-image: linear-gradient(var(--accent), var(--accent)); }
.brand-desc {
    margin: .25rem 0 0;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--text);
    font-family: var(--font-head);
    font-size: .92rem;
    padding: .5rem .9rem;
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
}
.main-nav a {
    font-family: var(--font-head);
    font-size: .96rem;
    letter-spacing: .03em;
    color: var(--text);
    background-image: linear-gradient(var(--accent), var(--accent));
}
.main-nav a:hover { color: var(--accent); }
.main-nav .current-menu-item > a { color: var(--accent); background-size: 100% 1.5px; }

/* =============================================================
   3. Кнопки
   ============================================================= */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .8rem 1.7rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--accent);
    background: var(--accent);
    background-image: none;
    color: #fff;
    cursor: pointer;
    transition: background-color .22s ease, transform .18s ease, color .22s ease;
}
.btn:hover, .btn:focus-visible {
    background-color: rgba(123, 107, 158, .82);
    transform: translateY(1px);
    color: #fff;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
}
.btn-outline:hover, .btn-outline:focus-visible {
    background-color: rgba(123, 107, 158, .12);
    color: var(--accent);
    transform: translateY(1px);
}

/* =============================================================
   4. Раскладки и заголовки секций
   ============================================================= */
.site-main { padding: 2.6rem 0 4.2rem; }

.layout-single {
    display: block;
    max-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; }

.section-head { margin-bottom: 2.2rem; }
.section-head .rule {
    display: block;
    width: 96px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1.1rem;
}
.section-head h2, .section-head h1 { margin: 0 0 .5rem 2.2rem; }
.section-head p {
    margin: 0 0 0 2.2rem;
    color: var(--muted);
    max-width: 62ch;
}

.page-title { margin-bottom: 1.6rem; }

/* тактильная точка перед H2/H3 в тексте */
.entry-content h2::before,
.entry-content h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(123, 107, 158, .7);
    box-shadow: 0 0 0 3px rgba(123, 107, 158, .16);
    margin-right: 12px;
    margin-left: -18px;
    vertical-align: middle;
}

/* =============================================================
   5. Хлебные крошки
   ============================================================= */
.crumbs {
    font-size: .86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}
.crumbs a { color: var(--muted); background-image: linear-gradient(var(--accent), var(--accent)); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { margin: 0 .35rem; color: var(--line); }

/* =============================================================
   6. Карточки записей
   ============================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}
.layout-with-sidebar .card-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 35, 46, .06);
    transition: transform .22s ease, box-shadow .22s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
    z-index: 2;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(30, 35, 46, .11); }
.card:hover::before { transform: scaleX(1); }

.card-thumb { position: relative; display: block; overflow: hidden; }
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 42%;
    background: linear-gradient(to bottom, rgba(28, 33, 43, 0), rgba(28, 33, 43, .22));
    pointer-events: none;
}
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform .4s ease;
}
.card:hover .card-thumb img { transform: scale(1.03); }
.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    background: linear-gradient(135deg, #E8EDF5 0%, #DCE3ED 60%, #D9D6E6 100%);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.5rem 1.6rem;
    min-width: 0;
}
.card-date {
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: .55rem;
}
.card-title {
    font-size: 1.22rem;
    line-height: 1.32;
    margin: 0 0 .7rem;
}
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #4A505C; font-size: .96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .04em;
    color: var(--accent);
    align-self: flex-start;
}

/* =============================================================
   7. Главная — блоки
   ============================================================= */
.front-section { padding: 4.6rem 0; }
.front-section.is-alt { background: var(--bg-alt); }
.front-inner { width: 85%; margin-left: auto; margin-right: auto; }

/* 7.1 Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: #DDE3EC;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(242, 245, 249, .95) 0%, rgba(242, 245, 249, .82) 45%, rgba(232, 237, 245, .35) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 0 6.4rem;
    text-align: left;
}
.hero-inner h1 { max-width: 20ch; margin-bottom: 1.4rem; }
.hero-rule {
    display: block;
    width: 110px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1.6rem;
}
.hero-sub {
    max-width: 56ch;
    color: #4A505C;
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
}

/* 7.2 Таймлайн */
.timeline { position: relative; margin-top: 1rem; }
.timeline::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    width: 1px;
    background: #A9B4C4;
    transform: translateX(-.5px);
}
.tl-step {
    position: relative;
    width: 46%;
    margin-bottom: 2.6rem;
    min-width: 0;
}
.tl-step:nth-child(odd) { margin-right: auto; text-align: right; padding-right: 3.6rem; }
.tl-step:nth-child(even) { margin-left: auto; text-align: left; padding-left: 3.6rem; }
.tl-num {
    position: absolute;
    top: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.tl-step:nth-child(odd) .tl-num { right: -23px; }
.tl-step:nth-child(even) .tl-num { left: -23px; }
.tl-step h3 { margin: .4rem 0 .5rem; font-size: 1.22rem; }
.tl-step p { margin: 0; color: #4A505C; font-size: .97rem; }

/* 7.3 Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}
.stat { min-width: 0; }
.stat-num {
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: .01em;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: .6rem;
}
.stat-label { color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* 7.4 Рубрикатор */
.topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 1rem;
}
.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.9rem 1.5rem;
    border: 1px solid var(--accent-2);
    border-radius: var(--radius-btn);
    background: transparent;
    background-image: none;
    color: var(--text);
    transition: background-color .22s ease, transform .2s ease;
}
.topic-tile:hover, .topic-tile:focus-visible {
    background-color: rgba(123, 107, 158, .1);
    transform: translateY(-4px);
    color: var(--text);
}
.topic-tile svg { display: block; width: 40px; height: 40px; margin-bottom: 1.1rem; }
.topic-tile .topic-name {
    font-family: var(--font-head);
    font-size: 1.12rem;
    letter-spacing: .03em;
    display: block;
    margin-bottom: .4rem;
}
.topic-tile .topic-note { color: var(--muted); font-size: .9rem; line-height: 1.5; }

/* 7.5 Последние записи + CTA */
.front-cta {
    margin-top: 2.6rem;
    display: flex;
    justify-content: center;
}
.accent-plate {
    background: linear-gradient(to bottom, var(--bg-accent-a), var(--bg-accent-b));
    border-radius: var(--radius);
    padding: 2.6rem 2.4rem;
}

/* =============================================================
   8. Контент записи и страницы
   ============================================================= */
.entry-header { margin-bottom: 1.8rem; }
.entry-header h1 { font-size: 2.6rem; margin-bottom: .8rem; }
.entry-meta {
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.entry-thumb { margin-bottom: 1.8rem; border-radius: var(--radius); overflow: hidden; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content { font-size: 1.03rem; }
.entry-content h2 { font-size: 1.75rem; margin: 2.2rem 0 .9rem; }
.entry-content h3 { font-size: 1.32rem; margin: 1.8rem 0 .7rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.entry-content li { margin-bottom: .5em; }
.entry-content img { border-radius: var(--radius); display: block; }
.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(to bottom, var(--bg-accent-a), var(--bg-accent-b));
    border-radius: var(--radius);
    font-size: 1.1rem;
    color: #333A47;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6em;
    border: 1px solid var(--line);
    background: var(--surface);
}
.entry-content th, .entry-content td {
    border: 1px solid var(--line);
    padding: .7rem .9rem;
    text-align: left;
}
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }
.entry-content code {
    background: var(--bg-alt);
    padding: .1em .4em;
    border-radius: 4px;
    font-size: .92em;
}

.entry-tags { margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.entry-tags a { margin-right: .5rem; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: .95rem;
}

/* =============================================================
   9. Сайдбар и виджеты
   ============================================================= */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(30, 35, 46, .06);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--text);
}
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    color: var(--text);
    letter-spacing: .03em;
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li {
    padding: .55rem 0 .55rem 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--bg-alt);
    line-height: 1.5;
}
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.15em;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(123, 107, 158, .55);
}
.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: .84rem; }
.sidebar .widget p { color: #4A505C; }

/* =============================================================
   10. Подвал
   ============================================================= */
.site-footer {
    background: var(--footer-bg);
    color: #C6CCD8;
    padding: 3.4rem 0 1.8rem;
    margin-top: 3rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.6rem; color: #C6CCD8; }
.site-footer .widget-title {
    font-size: 1.02rem;
    letter-spacing: .06em;
    color: #F1F3F7;
    margin: 0 0 1rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer .widget p { color: #B4BBC9; font-size: .95rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: .4rem 0; line-height: 1.5; }
.site-footer .widget a {
    color: #D6DBE5;
    background-image: linear-gradient(#B7A7DA, #B7A7DA);
}
.site-footer .widget a:hover { color: #C4B4E4; }
.site-footer .widget .post-date { color: #8A929F; font-size: .84rem; display: block; }

.footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .88rem;
    color: #8A929F;
}

/* =============================================================
   11. Пагинация
   ============================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--surface);
    background-image: none;
    color: var(--text);
    font-family: var(--font-head);
    font-size: .95rem;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    background-color: rgba(123, 107, 158, .08);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border: 0;
    background: none;
    color: var(--muted);
    min-width: auto;
}

/* =============================================================
   12. Формы поиска и комментарии
   ============================================================= */
.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.search-form label { flex: 1 1 200px; min-width: 0; }
.search-form input[type="search"] {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .98rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button { flex: 0 0 auto; }

.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.5rem; margin-bottom: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 4px 14px rgba(30, 35, 46, .05);
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.1rem;
}
.comment-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-date { color: var(--muted); font-size: .85rem; }
.comment-actions { font-size: .9rem; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .35rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font-body);
    font-size: .98rem;
    margin-bottom: 1rem;
}
.comment-form textarea { min-height: 150px; }
.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .8rem 1.7rem;
    border-radius: var(--radius-btn);
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background-color .22s ease, transform .18s ease;
}
.comment-form .submit:hover { background-color: rgba(123, 107, 158, .82); transform: translateY(1px); }

/* =============================================================
   13. Cookie-баннер
   ============================================================= */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    background: rgba(28, 33, 43, .96);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #DBE0EA;
    padding: 1.1rem 1.6rem;
    font-size: .92rem;
    line-height: 1.55;
}
.cookie-banner p { margin: 0; max-width: 76ch; }
.cookie-banner a { color: #C4B4E4; background-image: linear-gradient(#C4B4E4, #C4B4E4); }
.cookie-banner .btn { flex: 0 0 auto; }

/* =============================================================
   14. 404 и поиск
   ============================================================= */
.notfound { padding: 1rem 0 2rem; }
.notfound h1 { font-size: 4.6rem; margin-bottom: .4rem; }
.notfound .search-form { margin: 1.8rem 0; max-width: 520px; }
.no-results { color: #4A505C; }

/* =============================================================
   15. Адаптив
   ============================================================= */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; }
    .layout-single { max-width: 100%; }
    .front-inner, .hero-inner { width: 100%; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-toggle { display: inline-flex; }
    .main-nav {
        flex-basis: 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
    }
    .main-nav li { padding: .5rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }
    .site-main { padding: 1.8rem 0 3rem; }
    .front-section { padding: 3rem 0; }
    .hero-inner { padding: 3.6rem 0 3.8rem; }
    .hero-sub { font-size: 1rem; }
    .section-head h2, .section-head h1, .section-head p { margin-left: 0; }
    .entry-content h2::before, .entry-content h3::before { margin-left: 0; }
    .stats { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .stat-num { font-size: 2.6rem; }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .accent-plate { padding: 1.8rem 1.4rem; }
    .entry-content blockquote { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .timeline::before { left: 22px; }
    .tl-step,
    .tl-step:nth-child(odd),
    .tl-step:nth-child(even) {
        width: 100%;
        margin: 0 0 2.2rem;
        text-align: left;
        padding-left: 4rem;
        padding-right: 0;
    }
    .tl-step:nth-child(odd) .tl-num,
    .tl-step:nth-child(even) .tl-num { left: 0; right: auto; width: 44px; height: 44px; }
    .comment-list .children { margin-left: .8rem; }
}
