/*
Theme Name: dds_daumendesigns.com
Description: Информационная тема для отраслевого цифрового агентства полного цикла для строительного бизнеса. Оформление Lavender Tech.
Author: Артём Звягинцев
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ddsdaumen
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */
:root {
    --bg:        #F6F5FC;
    --bg-alt:    #EEF0FA;
    --bg-side:   #FCFCFF;
    --footer-bg: #181825;
    --ink:       #1F1E2E;
    --accent:    #8B7FCE;
    --accent-dp: #6F63B5;
    --accent-2:  #C2B6E6;
    --muted:     #9A93AB;
    --line:      #DCD7E9;
    --card-bd:   #E6E1F2;
    --card-sh:   #D5D0E6;
    --grid:      #E8E3F2;
    --head-font: "Segoe UI Semibold", "Trebuchet MS", "PT Sans Narrow", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --text-font: "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--text-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 520'%3E%3Cg fill='none' stroke='%238B7FCE' stroke-width='6'%3E%3Cpath d='M60 400 L180 90 L430 150 L470 380 L250 470 Z'/%3E%3Cpath d='M180 90 L250 470'/%3E%3Cpath d='M60 400 L430 150'/%3E%3Cpath d='M180 90 L470 380'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(to right, var(--grid) 0.5px, transparent 0.5px),
        linear-gradient(to bottom, var(--grid) 0.5px, transparent 0.5px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -70px top 30px, 0 0, 0 0;
    background-size: 520px 520px, 24px 24px, 24px 24px;
    background-attachment: fixed, scroll, scroll;
}

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

a { color: var(--accent-dp); text-decoration: none; }

.entry-content a,
.widget a,
.crumbs a,
.site-footer a {
    text-decoration-color: var(--accent);
}

.entry-content a {
    text-decoration: underline dotted transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
    transition: text-decoration-color .2s ease, text-underline-offset .2s ease, color .2s ease;
}

.entry-content a:hover,
.entry-content a:focus {
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    color: var(--accent-dp);
}

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

h1 { font-size: 3.2rem; letter-spacing: .035em; }
h2 { font-size: 2.1rem; letter-spacing: .02em; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.18rem; }

p { margin: 0 0 1.15em; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, #EEF0FA, #E1DBF5);
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
    border-radius: 0 8px 8px 0;
    font-size: 1.05rem;
}

blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "Cascadia Mono", Consolas, "Liberation Mono", monospace;
    background: #EEF0FA;
    border-radius: 4px;
}
code { padding: .12em .4em; font-size: .92em; }
pre { padding: 1rem 1.2rem; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5rem;
    border: 1px solid var(--card-bd);
    background: #fff;
}
th, td {
    border: 1px solid var(--card-bd);
    padding: .7rem .9rem;
    text-align: left;
}
th { background: var(--bg-alt); font-family: var(--head-font); letter-spacing: .02em; }

hr { border: 0; border-top: 1px solid var(--line); opacity: .5; margin: 2.5rem 0; }

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

/* =========================================================
   2. Контейнер и раскладки
   ========================================================= */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
    padding: 3rem 0 4.5rem;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 0 4.5rem;
}

.content-area { min-width: 0; }

/* =========================================================
   3. Кнопки
   ========================================================= */
.btn {
    display: inline-block;
    padding: .78rem 1.6rem;
    border-radius: 6px;
    font-family: var(--head-font);
    font-size: 1rem;
    letter-spacing: .04em;
    line-height: 1.3;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

.btn-fill {
    background: var(--accent);
    color: #fff;
}
.btn-fill:hover,
.btn-fill:focus {
    background: var(--accent-dp);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(139, 127, 206, .32);
    color: #fff;
}

.btn-line {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent-dp);
}
.btn-line:hover,
.btn-line:focus {
    background: rgba(139, 127, 206, .1);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(139, 127, 206, .18);
}

/* =========================================================
   4. Шапка
   ========================================================= */
.site-header {
    position: relative;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(220, 215, 233, .6);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
}

.brand-logo,
.brand-mark {
    display: block;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.brand-text { min-width: 0; }

.brand-title {
    display: block;
    font-family: var(--head-font);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.25;
    color: var(--ink);
    max-width: 30ch;
}

.brand-desc {
    display: block;
    margin-top: .3rem;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1rem;
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 6px;
    color: var(--accent-dp);
    font-family: var(--head-font);
    font-size: .95rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 1rem;
    letter-spacing: .03em;
    color: var(--ink);
    padding: .25rem 0;
    border-bottom: 2px dotted transparent;
    transition: border-color .2s ease, color .2s ease;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a {
    color: var(--accent-dp);
    border-bottom-color: var(--accent);
}

/* =========================================================
   5. Хлебные крошки
   ========================================================= */
.crumbs {
    padding: 1.1rem 0 0;
    font-size: .87rem;
    color: var(--muted);
}
.crumbs a { color: var(--accent-dp); }
.crumbs a:hover { text-decoration: underline dotted; text-decoration-thickness: 2px; }
.crumbs-sep { color: var(--accent-2); margin: 0 .25rem; }

/* =========================================================
   6. Заголовки секций и разделители
   ========================================================= */
.sec-title {
    font-size: 2.1rem;
    margin-bottom: 1.4rem;
}

.sec-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 14px;
    vertical-align: .4em;
}

.sec-sub {
    color: var(--muted);
    max-width: 68ch;
    margin-top: -.5rem;
    margin-bottom: 2rem;
}

.front-section {
    position: relative;
    padding: 84px 0;
    border-bottom: 1px solid rgba(220, 215, 233, .5);
}

.front-section.alt-bg { background: var(--bg-alt); }

.front-section.diag-edge::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 46px;
    background: var(--bg-alt);
    clip-path: polygon(0 100%, 100% 24%, 100% 100%);
    pointer-events: none;
}

.front-inner {
    width: min(85%, 1180px);
    margin-inline: auto;
    min-width: 0;
}

/* =========================================================
   7. Главная — блок 1: Hero
   ========================================================= */
.fs-hero {
    padding: 0;
    border-bottom: 1px solid rgba(220, 215, 233, .5);
}

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    min-height: 460px;
    display: flex;
    align-items: center;
}

.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(24, 24, 37, .86) 0%, rgba(31, 30, 46, .66) 52%, rgba(139, 127, 206, .28) 100%);
}

.hero-body {
    position: relative;
    z-index: 2;
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 76px 0;
    min-width: 0;
}

.hero-body h1 {
    color: #fff;
    max-width: 18ch;
    margin-bottom: 1.1rem;
}

.hero-body h1::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: 16px;
    vertical-align: .5em;
}

.hero-lead {
    color: #E4E0F2;
    font-size: 1.1rem;
    max-width: 58ch;
    margin-bottom: 2rem;
}

/* =========================================================
   8. Главная — блок 2: таймлайн
   ========================================================= */
.tline {
    position: relative;
    margin: 0;
    padding: .5rem 0 0 0;
    list-style: none;
}

.tline::before {
    content: "";
    position: absolute;
    left: 26px;
    top: 12px;
    bottom: 12px;
    width: 0;
    border-left: 2px dashed var(--accent);
}

.tline li {
    position: relative;
    display: flex;
    gap: 1.6rem;
    padding: 0 0 2.2rem 0;
    margin: 0;
    min-width: 0;
}

.tline li:last-child { padding-bottom: 0; }

.tline-num {
    position: relative;
    z-index: 2;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: #FFFFFF;
    color: var(--accent-dp);
    font-family: var(--head-font);
    font-size: 1.2rem;
    letter-spacing: .04em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tline-body { min-width: 0; padding-top: .35rem; }
.tline-body h3 { margin-bottom: .35rem; }
.tline-body p { margin-bottom: 0; color: #3A374C; }

/* =========================================================
   9. Главная — блок 3: статистика
   ========================================================= */
.fs-stats { background: linear-gradient(140deg, #EEF0FA 0%, #E1DBF5 100%); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.stat-cell {
    min-width: 0;
    padding: 1.6rem 1.4rem;
    background: rgba(255, 255, 255, .55);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
}

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 2.9rem;
    line-height: 1.05;
    letter-spacing: .01em;
    color: var(--ink);
}

.stat-cap {
    display: block;
    margin-top: .55rem;
    font-size: .92rem;
    line-height: 1.5;
    color: var(--muted);
}

/* =========================================================
   10. Главная — блок 4: рубрикатор
   ========================================================= */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.rubric-tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem;
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--ink);
    transition: background-color .2s ease, box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.rubric-tile:hover,
.rubric-tile:focus {
    background: rgba(139, 127, 206, .08);
    border-color: var(--accent);
    box-shadow: 0 10px 12px var(--card-sh);
    transform: translateY(-2px);
}

.rubric-ico {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
    color: var(--accent);
}

.rubric-tile h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.rubric-tile p { margin: 0; font-size: .93rem; color: var(--muted); }

/* =========================================================
   11. Текстово-акцентные вставки
   ========================================================= */
.accent-note {
    border-left: 4px solid transparent;
    border-image: linear-gradient(180deg, var(--accent), var(--accent-2)) 1;
    padding: 1.3rem 1.5rem;
    background: rgba(255, 255, 255, .6);
    margin: 1.8rem 0 0;
}
.accent-note p { margin: 0; color: #3A374C; }

/* =========================================================
   12. Карточки записей
   ========================================================= */
.cards { display: grid; gap: 1.6rem; }

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    box-shadow: 0 6px 12px var(--card-sh);
    transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease;
}

.card:hover {
    box-shadow: 0 10px 20px var(--card-sh);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-row { flex-direction: row; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-thumb-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #EEF0FA, #E1DBF5);
    color: var(--accent);
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: .5rem;
}
.card-title a { color: var(--ink); transition: color .2s ease; }
.card-title a:hover { color: var(--accent-dp); }

.card-excerpt { color: #454158; font-size: .97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-foot { margin-top: auto; padding-top: 1rem; }

.post-meta {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: .6rem;
}
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent-dp); }

.meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-2);
    vertical-align: .18em;
    margin: 0 .4rem;
}

/* =========================================================
   13. Одиночная запись и страница
   ========================================================= */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.5rem; letter-spacing: .02em; }

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--card-bd);
}
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content h2,
.entry-content h3 { margin-top: 1.9rem; }

.entry-content img { border-radius: 8px; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
}
.entry-tags a {
    display: inline-block;
    margin: 0 .35rem .4rem 0;
    padding: .2rem .65rem;
    border: 1px solid var(--card-bd);
    border-radius: 6px;
    color: var(--accent-dp);
}
.entry-tags a:hover { background: rgba(139, 127, 206, .1); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 2rem;
    font-size: .95rem;
}
.post-nav span { display: block; color: var(--muted); font-size: .8rem; }

.page-heading { margin-bottom: 2rem; }

/* =========================================================
   14. Сайдбар и виджеты
   ========================================================= */
.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-side);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 6px 12px rgba(213, 208, 230, .5);
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: .9rem;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
    vertical-align: .32em;
}

.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px solid rgba(220, 215, 233, .6);
    color: var(--ink);
}
.sidebar .widget li:last-child { border-bottom: 0; }

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent-dp); }
.sidebar .widget .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar .widget p { color: var(--ink); }

/* =========================================================
   15. Подвал
   ========================================================= */
.site-footer {
    background: var(--footer-bg);
    color: #D8D4E6;
    padding: 3.4rem 0 1.6rem;
    margin-top: 0;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}

.footer-col { min-width: 0; }

.site-footer .widget { margin-bottom: 1.4rem; }

.site-footer .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: .85rem;
}

.site-footer .widget-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: 10px;
    vertical-align: .32em;
}

.site-footer p,
.site-footer li,
.site-footer .textwidget { color: #C7C2D9; }

.site-footer a { color: #D8D4E6; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline dotted; text-decoration-thickness: 2px; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .35rem 0; }

.footer-contacts { font-size: .93rem; }

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(216, 212, 230, .18);
    font-size: .86rem;
    color: #9A93AB;
}

/* =========================================================
   16. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid var(--card-bd);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--head-font);
    letter-spacing: .03em;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    background: rgba(139, 127, 206, .1);
    transform: translateY(-2px);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

/* =========================================================
   17. Форма поиска
   ========================================================= */
.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: .72rem .95rem;
    border: 1px solid var(--card-bd);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--text-font);
    font-size: 1rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 127, 206, .16);
}

/* =========================================================
   18. Комментарии
   ========================================================= */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 1.5rem; }

.comment-item {
    background: #FFFFFF;
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 6px 12px rgba(213, 208, 230, .45);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

.comment-author { font-family: var(--head-font); letter-spacing: .02em; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-hold { font-size: .88rem; color: var(--muted); }
.comment-reply { font-size: .9rem; }

.comment-respond {
    background: var(--bg-alt);
    border: 1px solid var(--card-bd);
    border-radius: 8px;
    padding: 1.6rem 1.7rem;
}

.comment-respond label { display: block; font-size: .9rem; margin-bottom: .3rem; }

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--card-bd);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: var(--text-font);
    font-size: 1rem;
    color: var(--ink);
}

.comment-respond textarea { min-height: 140px; }

.comment-respond .form-submit input[type="submit"],
.search-form button[type="submit"] {
    display: inline-block;
    padding: .78rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--head-font);
    font-size: 1rem;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.comment-respond .form-submit input[type="submit"]:hover,
.search-form button[type="submit"]:hover {
    background: var(--accent-dp);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(139, 127, 206, .32);
}

/* =========================================================
   19. 404
   ========================================================= */
.notfound { text-align: left; padding: 1rem 0 2rem; }
.notfound .big404 {
    font-family: var(--head-font);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-2);
    letter-spacing: .05em;
}
.notfound .search-form { margin: 1.6rem 0; max-width: 480px; }

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.6rem;
    background: rgba(24, 24, 37, .96);
    color: #D8D4E6;
    border-top: 1px solid rgba(139, 127, 206, .5);
    font-size: .92rem;
}

.cookie-banner p { margin: 0; min-width: 0; max-width: 76ch; }
.cookie-banner a { color: var(--accent-2); }

.cookie-accept {
    flex: 0 0 auto;
    padding: .6rem 1.4rem;
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--head-font);
    font-size: .95rem;
    letter-spacing: .04em;
    cursor: pointer;
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.cookie-accept:hover {
    background: var(--accent-dp);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(139, 127, 206, .32);
}

/* =========================================================
   21. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2, .sec-title { font-size: 1.75rem; }
    .entry-title { font-size: 2rem; }

    .layout-with-sidebar {
        display: block;
        width: 100%;
    }
    .sidebar { margin-top: 2.6rem; }
    .layout-single { width: 100%; }
    .front-inner, .hero-body { width: min(92%, 1180px); }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rubric-grid { 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: 1 1 100%;
        display: none;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        padding-top: .8rem;
    }
    .main-nav li { border-bottom: 1px solid rgba(220, 215, 233, .7); }
    .main-nav a { display: block; padding: .6rem 0; border-bottom: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; letter-spacing: .02em; }
    h2, .sec-title { font-size: 1.5rem; }
    .entry-title { font-size: 1.7rem; }

    .front-section { padding: 52px 0; }
    .hero { min-height: 0; }
    .hero-body { padding: 52px 0; }
    .hero-body h1 { max-width: none; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .rubric-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); }

    .card-row { flex-direction: column; }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-thumb-ph {
        position: static;
        aspect-ratio: 16 / 9;
        width: 100%;
    }

    .card-body { padding: 1.2rem 1.2rem; }

    .tline::before { left: 21px; }
    .tline li { gap: 1.1rem; }
    .tline-num { flex: 0 0 44px; width: 44px; height: 44px; font-size: 1.05rem; }

    .stat-cell { padding: 1.3rem 1.2rem; }
    .rubric-tile { padding: 1.4rem 1.3rem; }
    .accent-note { padding: 1.1rem 1.2rem; }
    .comment-respond { padding: 1.2rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.2rem; }
    blockquote { padding: 1.1rem 1.2rem; }

    .post-nav { flex-direction: column; gap: .8rem; }
}
