/*
Theme Name: dds_businessbookletsinternational.com
Author: Алексей Руднев
Description: Тема для аналитического портала о коммерческой недвижимости: оценка объектов через клиентский поток и устойчивость арендатора.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bbint
*/

/* ============================================================
   1. Переменные и базовый сброс
   ============================================================ */

:root {
    --page-bg: #F5F3F7;
    --alt-bg: #EEEAFA;
    --top-bg: #2A1B38;
    --bottom-bg: #1E1428;
    --ink: #1A1520;
    --accent: #8B5CF6;
    --accent-deep: #6D28D9;
    --accent-soft: #C4B5FD;
    --muted: #7A729B;
    --line: #E2D9F3;
    --shadow-soft: 0 8px 20px rgba(75, 30, 130, 0.10);
    --shadow-lift: 0 16px 34px rgba(109, 40, 217, 0.20);
    --font-head: "Inter", "Nunito Sans", "Segoe UI", system-ui, sans-serif;
    --font-body: "Roboto", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
    color: var(--ink);
    background-color: var(--page-bg);
    background-image:
        repeating-linear-gradient(-45deg, rgba(232, 224, 245, 0.30) 0, rgba(232, 224, 245, 0.30) 1px, transparent 1px, transparent 40px);
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: -160px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(196, 181, 253, 0.15), rgba(196, 181, 253, 0) 70%);
    filter: blur(18px);
    pointer-events: none;
    z-index: 0;
}

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

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

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

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.42rem; font-weight: 700; }
h4 { font-size: 1.18rem; font-weight: 700; }

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.45em;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.6rem 1.8rem;
    background: var(--alt-bg);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #2A2338;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

pre {
    padding: 1.2rem 1.4rem;
    background: #2A1B38;
    color: #EDE8F7;
    border-radius: var(--radius);
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    background: #fff;
    border: 1px solid var(--line);
}

th, td {
    border: 1px solid var(--line);
    padding: 0.75rem 0.9rem;
    text-align: left;
}

th {
    background: var(--alt-bg);
    font-family: var(--font-head);
    font-weight: 700;
}

/* ============================================================
   2. Контейнеры и раскладки
   ============================================================ */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.site-main {
    display: block;
    min-height: 40vh;
    position: relative;
    z-index: 1;
}

.page-shell {
    padding: 2.4rem 0 4.5rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.5rem;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

/* ============================================================
   3. Аналитическая полоса, шапка
   ============================================================ */

.market-line {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #C4B5FD 0%, #8B5CF6 45%, #4338CA 100%);
    position: relative;
    z-index: 2;
}

.site-top {
    background: var(--top-bg);
    color: #F1ECF9;
    position: relative;
    z-index: 2;
    padding: 1.5rem 0;
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1.4rem;
}

.brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1 1 320px;
    min-width: 0;
}

.brand-link {
    flex: 0 0 auto;
    display: block;
    margin-top: 4px;
}

.brand-logo {
    max-height: 64px;
    width: auto;
}

.brand-mark svg {
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.45;
    color: #FFFFFF;
    max-width: 62ch;
}

.brand-name:hover {
    color: var(--accent-soft);
}

.brand-desc {
    margin: 0.5rem 0 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #B3A6CC;
    max-width: 70ch;
}

.nav-switch {
    display: none;
    align-items: center;
    gap: 0.55rem;
    background: transparent;
    border: 1px solid rgba(196, 181, 253, 0.55);
    border-radius: 4px;
    color: #F1ECF9;
    font-family: var(--font-head);
    font-size: 0.92rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.nav-switch-bar {
    width: 18px;
    height: 2px;
    background: var(--accent-soft);
    box-shadow: 0 5px 0 var(--accent-soft), 0 -5px 0 var(--accent-soft);
    display: block;
}

.primary-nav {
    flex: 0 0 auto;
    margin-left: auto;
}

.primary-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0.3rem 0 0;
    padding: 0;
}

.primary-menu li {
    margin: 0;
    position: relative;
}

.primary-menu a {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    color: #EDE7F8;
    border-bottom: 1px dotted rgba(196, 181, 253, 0.7);
    padding-bottom: 2px;
    display: inline-block;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
    color: #FFFFFF;
    border-bottom: 1px solid var(--accent);
}

.primary-menu .sub-menu {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0.4rem 0 0;
    display: none;
}

.primary-menu li:hover > .sub-menu {
    display: block;
}

/* ============================================================
   4. Кнопки и ссылки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-main {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #FFFFFF;
}

.btn-main:hover {
    transform: scale(1.02);
    box-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
    color: #FFFFFF;
}

.btn-ghost {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

.btn-ghost:hover {
    transform: scale(1.02);
    box-shadow: 0 0 18px rgba(196, 181, 253, 0.45);
    color: #FFFFFF;
}

.btn-ghost-dark {
    border: 1px solid var(--accent);
    color: var(--accent-deep);
    background: transparent;
}

.btn-ghost-dark:hover {
    color: var(--accent-deep);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

.entry a,
.page-intro a,
.card-excerpt a {
    position: relative;
    color: var(--accent-deep);
    border-bottom: 1px dashed var(--accent-soft);
    padding-bottom: 1px;
}

.entry a::after,
.page-intro a::after,
.card-excerpt a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.28s ease;
}

.entry a:hover::after,
.page-intro a:hover::after,
.card-excerpt a:hover::after {
    width: 100%;
}

/* ============================================================
   5. Заголовки секций
   ============================================================ */

.strip-title,
.plate-title,
.widget-title,
.comments-title {
    position: relative;
    padding-left: 1.1rem;
    font-weight: 800;
}

.strip-title::before,
.plate-title::before,
.widget-title::before,
.comments-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -5px;
    width: 4px;
    height: 1.1em;
    background: var(--accent);
}

.strip-title {
    font-size: 2rem;
    margin-bottom: 2.2rem;
}

/* ============================================================
   6. Секции главной
   ============================================================ */

.strip {
    padding: 5.5rem 0;
    background: var(--page-bg);
    position: relative;
}

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

.strip-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(139, 92, 246, 0.10) 1.6px, transparent 1.7px);
    background-size: 34px 34px;
    opacity: 0.55;
    pointer-events: none;
}

.strip > .shell {
    position: relative;
    z-index: 1;
}

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

.strip-more {
    margin: 2.4rem 0 0;
}

.empty-note {
    color: var(--muted);
}

/* Hero */

.hero {
    position: relative;
    background: var(--top-bg);
    overflow: hidden;
    padding: 6rem 0 5.4rem;
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.55;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(42, 27, 56, 0.96) 0%, rgba(42, 27, 56, 0.82) 42%, rgba(30, 27, 75, 0.55) 100%);
}

.hero-shell {
    position: relative;
    z-index: 2;
}

.hero-body {
    width: 72%;
    margin-right: auto;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-soft);
    margin-bottom: 1.2rem;
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    margin-bottom: 1.3rem;
}

.hero-accent {
    color: var(--accent-soft);
}

.hero-lead {
    color: #D8D0EA;
    font-size: 1.08rem;
    max-width: 60ch;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Табло статистики */

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

.figure-cell {
    min-width: 0;
    padding: 0.4rem 0.2rem;
}

.figure-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--accent-deep);
    padding-bottom: 0.7rem;
    border-bottom: 2px dashed var(--accent-soft);
    margin-bottom: 0.9rem;
}

.figure-cap {
    display: block;
    font-size: 0.94rem;
    color: #3A3350;
    line-height: 1.55;
}

/* Чек-лист + акцентная плашка */

.checkgrid {
    display: grid;
    grid-template-columns: minmax(0, 58%) minmax(0, 38%);
    justify-content: space-between;
    gap: 2.6rem;
    align-items: start;
}

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

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 1.05rem;
    font-size: 1.02rem;
}

.checklist li::before {
    content: "♦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-size: 0.95rem;
}

.checkgrid-plate {
    min-width: 0;
    margin-top: 2.4rem;
    padding: 2.4rem 2.2rem;
    background: linear-gradient(135deg, #2A1B38 0%, #1E1B4B 100%);
    border-radius: var(--radius);
    color: #E9E3F6;
}

.checkgrid-plate .plate-title {
    color: #FFFFFF;
    font-size: 1.35rem;
}

.checkgrid-plate .plate-title::before {
    background: var(--accent-soft);
}

.checkgrid-plate p {
    font-size: 0.98rem;
    color: #C9C0E0;
}

/* Карта тем */

.rubrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
}

.rubric {
    display: block;
    min-width: 0;
    padding: 2.2rem 2rem;
    border: 3px solid var(--accent);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.rubric-icon {
    display: block;
    color: var(--accent);
    margin-bottom: 1.1rem;
    transition: color 0.25s ease;
}

.rubric-icon svg {
    display: block;
}

.rubric-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.rubric-note {
    display: block;
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.6;
    transition: color 0.25s ease;
}

.rubric:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-4px);
}

.rubric:hover .rubric-icon,
.rubric:hover .rubric-note {
    color: #FFFFFF;
}

/* ============================================================
   7. Карточки записей
   ============================================================ */

.cards {
    display: block;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    margin-bottom: 1.8rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

@media (min-width: 601px) {
    .card {
        flex-direction: row;
        align-items: stretch;
    }
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.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-body {
    flex: 1;
    min-width: 0;
    padding: 1.7rem 1.9rem;
}

.card-title {
    font-size: 1.36rem;
    margin-bottom: 0.5rem;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--accent-deep);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.9rem;
    font-family: var(--font-head);
}

.post-meta a {
    color: var(--muted);
}

.post-meta a:hover {
    color: var(--accent-deep);
}

.meta-sep {
    color: var(--accent-soft);
    margin: 0 0.2rem;
}

.card-excerpt {
    color: #3A3350;
    font-size: 0.98rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin: 1rem 0 0;
}

.card-link {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--accent-deep);
    border-bottom: 1px dashed var(--accent-soft);
    padding-bottom: 1px;
}

.card-link:hover {
    border-bottom: 1px solid var(--accent);
}

/* ============================================================
   8. Внутренние страницы
   ============================================================ */

.trail {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.trail a {
    color: var(--muted);
    border-bottom: 1px dotted var(--accent-soft);
}

.trail a:hover {
    color: var(--accent-deep);
    border-bottom: 1px solid var(--accent);
}

.trail-sep {
    color: var(--accent-soft);
    margin: 0 0.25rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-intro {
    color: #3A3350;
    margin-bottom: 2rem;
}

.single-thumb {
    margin: 1.6rem 0 2rem;
}

.single-thumb img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}

.entry {
    font-size: 1.03rem;
}

.entry h2 {
    font-size: 1.75rem;
    margin-top: 1.9em;
}

.entry h3 {
    font-size: 1.32rem;
    margin-top: 1.6em;
}

.entry img {
    border-radius: var(--radius);
    margin: 1.2rem 0;
}

.entry ul,
.entry ol {
    padding-left: 1.5em;
}

.entry ul li::marker {
    color: var(--accent);
}

.page-links {
    margin: 1.5rem 0;
    font-family: var(--font-head);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.tag-chip {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 50px;
    background: #FFFFFF;
    font-size: 0.86rem;
    color: var(--accent-deep);
}

.tag-chip:hover {
    border-color: var(--accent);
}

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

.post-nav-cell {
    min-width: 0;
    flex: 1 1 40%;
}

.post-nav-next {
    text-align: right;
}

.err-lead {
    font-size: 1.06rem;
    color: #3A3350;
    margin-bottom: 1.8rem;
}

.err-actions {
    margin-top: 1.8rem;
}

/* ============================================================
   9. Сайдбар и виджеты
   ============================================================ */

.sidebar {
    min-width: 0;
    position: relative;
}

.sidebar .widget {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow-soft);
}

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

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #2C2540;
}

.sidebar .widget a {
    color: #2C2540;
    border-bottom: 1px dotted var(--accent-soft);
}

.sidebar .widget a:hover {
    color: var(--accent-deep);
    border-bottom: 1px solid var(--accent);
}

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

.sidebar .widget li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

.sidebar .widget li:last-child {
    border-bottom: none;
}

.sidebar .widget li::before {
    content: "♦";
    position: absolute;
    left: 0;
    top: 0.5rem;
    color: var(--accent);
    font-size: 0.7rem;
}

.sidebar .post-date {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ============================================================
   10. Подвал
   ============================================================ */

.site-bottom {
    background: var(--bottom-bg);
    color: #CFC6E4;
    padding: 3.6rem 0 2rem;
    position: relative;
    z-index: 1;
    margin-top: 0;
}

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

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

.site-bottom .widget-title {
    color: #FFFFFF;
    font-size: 1.08rem;
    margin-bottom: 1rem;
}

.site-bottom .widget-title::before {
    background: var(--accent-soft);
}

.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .widget li,
.site-bottom .textwidget {
    color: #CFC6E4;
    font-size: 0.95rem;
}

.site-bottom .widget a {
    color: #E4DCF3;
    border-bottom: 1px dotted rgba(196, 181, 253, 0.6);
}

.site-bottom .widget a:hover {
    color: #FFFFFF;
    border-bottom: 1px solid var(--accent-soft);
}

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

.site-bottom .widget li {
    padding: 0.42rem 0 0.42rem 1.1rem;
    position: relative;
}

.site-bottom .widget li::before {
    content: "♦";
    position: absolute;
    left: 0;
    top: 0.42rem;
    color: var(--accent);
    font-size: 0.7rem;
}

.site-bottom .post-date {
    display: block;
    font-size: 0.82rem;
    color: #A093BD;
}

.copyright {
    margin: 2.8rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(196, 181, 253, 0.22);
    font-size: 0.88rem;
    color: #A093BD;
}

/* ============================================================
   11. Пагинация
   ============================================================ */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.6rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent-deep);
}

.pager .page-numbers.current {
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
    color: #FFFFFF;
}

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

.comments .pagination,
.comments .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.4rem 0;
    font-family: var(--font-head);
}

/* ============================================================
   12. Поиск
   ============================================================ */

.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.7rem;
    margin: 1.4rem 0;
}

.search-field-wrap {
    flex: 1 1 260px;
    min-width: 0;
}

.search-label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.search-input {
    width: 100%;
    padding: 0.72rem 1rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
}

.search-input:focus {
    outline: 2px solid var(--accent-soft);
    outline-offset: 1px;
}

.sidebar .search-box {
    margin: 0;
}

/* ============================================================
   13. Комментарии
   ============================================================ */

.comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.6rem;
}

.comment-item {
    margin-bottom: 1.2rem;
}

.comment-body {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.3rem 1.5rem;
    box-shadow: var(--shadow-soft);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}

.comment-date {
    font-size: 0.84rem;
    color: var(--muted);
}

.comment-actions {
    font-family: var(--font-head);
    font-size: 0.9rem;
}

.comment-actions a {
    color: var(--accent-deep);
    border-bottom: 1px dashed var(--accent-soft);
}

.comment-respond {
    background: var(--alt-bg);
    border-radius: var(--radius);
    padding: 1.8rem 1.9rem;
}

.comment-reply-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    margin-top: 0;
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
    color: #3A3350;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--ink);
}

.comment-form p {
    margin-bottom: 1rem;
}

.comment-form .form-submit {
    margin-bottom: 0;
}

.comments-closed {
    color: var(--muted);
}

/* ============================================================
   14. Cookie-баннер
   ============================================================ */

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: rgba(30, 20, 40, 0.97);
    color: #E6DFF3;
    border-top: 2px solid var(--accent);
}

.cookie-text {
    margin: 0;
    font-size: 0.92rem;
    max-width: 78ch;
    min-width: 0;
}

.cookie-accept {
    padding: 0.65rem 1.6rem;
    font-size: 0.92rem;
}

/* ============================================================
   15. Адаптив
   ============================================================ */

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }

    .hero-title { font-size: 2.5rem; }

    .hero-body { width: 100%; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .layout-single {
        width: 100%;
    }

    .front-inner {
        width: 100%;
    }

    .figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.8rem;
    }

    .checkgrid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .checkgrid-plate {
        margin-top: 0;
    }

    .nav-switch {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-nav {
        flex: 1 1 100%;
        margin-left: 0;
        display: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-menu {
        flex-direction: column;
        gap: 0.9rem;
        margin-top: 1.2rem;
        padding-top: 1.2rem;
        border-top: 1px solid rgba(196, 181, 253, 0.25);
    }

    .foot-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    body { font-size: 16px; }

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.6rem; }

    .page-title { font-size: 1.9rem; }

    .strip { padding: 3.4rem 0; }

    .strip-title { font-size: 1.6rem; margin-bottom: 1.6rem; }

    .hero { padding: 3.6rem 0 3.2rem; }

    .hero-title { font-size: 2.05rem; }

    .figures {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .figure-num { font-size: 2.5rem; }

    .rubrics {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .rubric { padding: 1.7rem 1.4rem; }

    .checkgrid-plate {
        padding: 1.8rem 1.4rem;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

    .cookie-note {
        padding: 1rem 1.1rem;
    }

    .post-nav-next { text-align: left; }

    .comment-respond { padding: 1.4rem 1.2rem; }

    blockquote { padding: 1.2rem 1.2rem; }
}
