/*
Theme Name: dds_gold-gear.ru
Author: Алексей Смирнов
Description: Тема для экспертного проекта о строительном материаловедении и санитарных требованиях к отделке.
Version: 1.1
Text Domain: matexp
*/

/* ============================================================
   1. Переменные
   ============================================================ */

:root {
    --bg:        #F7F9F6;
    --bg-alt:    #ECF0EA;
    --bg-head:   rgba(247, 249, 246, 0.92);
    --bg-foot:   #1A2E1A;
    --bg-side:   #FFFFFF;
    --line:      #DCE5D8;
    --ink:       #1C2A1C;
    --accent:    #3B6B3B;
    --accent-2:  #C49A6C;
    --muted:     #7A8A7A;
    --rhythm:    120px;
    --font-head: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ============================================================
   2. Скрытие управляемых через JS элементов (см. A11)
   ============================================================ */

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

/* ============================================================
   3. База
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(28, 42, 28, 0.022) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(28, 42, 28, 0.018) 0 1px, transparent 1px 4px),
        radial-gradient(circle at 20% 30%, rgba(59, 107, 59, 0.03) 0 2px, transparent 3px);
    background-size: auto, auto, 90px 90px;
}

body.home::before {
    content: "";
    position: fixed;
    top: -140px;
    right: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, #3B6B3B 0%, #3B6B3B 55%, transparent 72%);
    opacity: 0.03;
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
}

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

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

p { margin: 0 0 1.15em; }

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

h1 { font-size: 4.2rem; letter-spacing: 0.03em; font-weight: 500; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

h2::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
    margin-right: 0.55em;
    vertical-align: middle;
}

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

.site-main { display: block; }

.page-shell { padding: 56px 0 var(--rhythm); }

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 0.78em 1.7em;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.75);
    color: #F4F8F2;
}

.btn-light:hover,
.btn-light:focus {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #14210F;
}

.btn-solid {
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
}

.btn-solid:hover,
.btn-solid:focus {
    background: #2F5730;
    border-color: #2F5730;
    transform: translateY(2px);
}

.entry-content a,
.widget a,
.card-title a,
.crumbs a {
    position: relative;
    color: var(--accent);
}

.entry-content a::after,
.card-title a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.entry-content a:hover::after,
.card-title a:hover::after,
.crumbs a:hover::after {
    transform: scaleX(1);
}

/* ============================================================
   5. Шапка
   ============================================================ */

.top {
    position: relative;
    background: var(--bg-head);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.top-in {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.5rem 0;
    flex-wrap: wrap;
}

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

.brand-link { display: block; line-height: 0; flex: 0 0 auto; }

.brand-logo { width: 54px; height: auto; display: block; }

.brand-mark { display: block; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: 0.02em;
}

.brand-desc {
    margin: 0.3rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 62ch;
}

.main-nav { flex: 0 1 auto; }

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

.nav-list a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--ink);
    position: relative;
    display: inline-block;
    padding-bottom: 3px;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-list a:hover::after,
.nav-list .current-menu-item > a::after { transform: scaleX(1); }

.nav-list .current-menu-item > a { color: var(--accent); }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    padding: 0.55rem 0.9rem;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--accent);
    margin: 3px 0;
}

.nav-toggle-label { margin-left: 0.4rem; }

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

.sec-t {
    font-size: 2.1rem;
    text-align: left;
    margin: 0 0 2.6rem;
    max-width: 22ch;
}

.sec-rule {
    display: block;
    height: 1px;
    background: var(--accent);
    margin-top: 0.85rem;
}

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

.front { display: block; }

.fs {
    position: relative;
    padding: var(--rhythm) 0;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(180deg, #ECF0EA 0%, #F7F9F6 100%),
        repeating-linear-gradient(0deg, rgba(28, 42, 28, 0.035) 0 1px, transparent 1px 3px);
}

.fs-alt::after {
    content: "";
    position: absolute;
    left: 6%;
    bottom: 42px;
    width: 92px;
    height: 1px;
    background: var(--accent);
    opacity: 0.55;
    transform: rotate(-24deg);
    transform-origin: left center;
    pointer-events: none;
}

/* --- Блок 1: hero --- */

.fs-hero {
    padding: 0;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(16, 34, 18, 0.92) 0%, rgba(22, 48, 26, 0.78) 44%, rgba(35, 66, 38, 0.42) 100%);
}

.hero-in {
    position: relative;
    z-index: 2;
    min-width: 0;
    padding: 8.5rem 42% 8.5rem 0;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 1.6rem;
}

.hero-title {
    color: #F4F8F2;
    margin: 0 0 1.6rem;
}

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

.hero-lead {
    color: #D8E3D5;
    font-size: 1.06rem;
    max-width: 54ch;
    margin: 0 0 2.4rem;
}

/* --- Блок 2: статистика --- */

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

.stat {
    position: relative;
    padding-left: 1.8rem;
    min-width: 0;
}

.stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1px;
    height: 40px;
    background: var(--accent);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 500;
    color: var(--bg-foot);
    letter-spacing: 0.02em;
}

.stat-cap {
    display: block;
    margin-top: 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--muted);
}

/* --- Блок 3: чек-лист --- */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 900px;
}

.check-item {
    display: flex;
    gap: 1.4rem;
    padding: 0 0 2rem 3rem;
    margin: 0 0 2rem;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.check-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.check-box {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 0.45rem;
    border: 3px solid var(--accent);
    background: transparent;
    transition: background-color 0.22s ease;
}

.check-body { min-width: 0; }

.check-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.16rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.check-text {
    display: block;
    color: var(--muted);
    font-size: 0.98rem;
}

/* --- Блок 4: рубрикатор --- */

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

.topic {
    display: block;
    min-width: 0;
    padding: 2rem 1.8rem;
    border: 1px solid var(--accent-2);
    color: var(--ink);
    background: transparent;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.topic:hover,
.topic:focus {
    transform: translateX(5px);
    border-color: var(--accent);
}

.topic-ico { display: block; margin-bottom: 1.2rem; }

.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.topic-note {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border: none;
    border-top: 2px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding-top: 1.4rem;
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    border-top-color: var(--accent);
    transform: translateY(-3px);
}

.card-thumb {
    position: relative;
    overflow: hidden;
    margin-bottom: 1.2rem;
}

.card-thumb a { display: block; }

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(26, 46, 26, 0.28) 0%, rgba(26, 46, 26, 0) 18%, rgba(26, 46, 26, 0) 82%, rgba(26, 46, 26, 0.28) 100%);
}

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

.card-meta {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.25rem;
    margin: 0 0 0.7rem;
}

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.96rem;
    margin-bottom: 1.3rem;
}

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

.card-more { align-self: flex-start; margin-top: auto; }

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

/* ============================================================
   9. Раскладки внутренних страниц
   ============================================================ */

.layout-single { display: block; }

.layout-single .content-area {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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

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

.page-head { margin-bottom: 3rem; }

.page-title { font-size: 3rem; margin-bottom: 0.5rem; }

.page-sub { color: var(--muted); max-width: 70ch; }

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

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 2.4rem;
}

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

.crumbs a:hover { color: var(--accent); }

.crumbs .sep { margin: 0 0.4rem; color: var(--accent-2); }

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

.entry-title { font-size: 3rem; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2.4rem;
}

.entry-cat a { color: var(--accent); }

.entry-thumb { margin-bottom: 2.4rem; }

.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content h2 { margin-top: 2.4em; }

.entry-content h3 { margin-top: 1.8em; }

.entry-content ul,
.entry-content ol { padding-left: 1.3em; margin: 0 0 1.4em; }

.entry-content li { margin-bottom: 0.5em; }

.entry-content img { display: block; height: auto; }

.entry-content blockquote {
    margin: 2.6em 0;
    padding: 1.8rem 2rem;
    background: var(--bg-alt);
    border-left: 2px solid var(--accent-2);
    color: var(--ink);
    font-size: 1.1rem;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.8em;
    border: 1px solid var(--line);
}

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

.entry-content th { background: var(--bg-alt); font-family: var(--font-head); }

.entry-content code,
.entry-content pre {
    background: var(--bg-alt);
    font-size: 0.92rem;
}

.entry-content pre { padding: 1rem 1.2rem; overflow-x: auto; }

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2.4rem;
}

.tag {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 2px;
    padding: 0.35rem 0.8rem;
    font-size: 0.84rem;
    color: var(--muted);
}

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

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

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

.page-links { margin-top: 1.6rem; font-size: 0.92rem; }

/* Ошибка 404 */

.err-text { max-width: 60ch; color: var(--muted); }

.err-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid rgba(220, 229, 216, 0.85);
    padding: 1.8rem 1.6rem;
}

.sidebar .widget { margin-bottom: 2.2rem; color: var(--ink); }

.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title {
    font-size: 1.02rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .widget li {
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.55;
}

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

.sidebar .widget a { color: var(--ink); }

.sidebar .widget a:hover { color: var(--accent); }

.sidebar .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.25rem;
}

.sidebar .widget p { color: var(--ink); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 3.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 1.5px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

/* ============================================================
   12. Формы поиска и комментариев
   ============================================================ */

.search-form { margin: 1.6rem 0; }

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

.search-row { display: flex; gap: 0.7rem; flex-wrap: wrap; }

.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-field:focus { outline: none; border-color: var(--accent); }

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

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

.comment-list, .comment-list .children {
    list-style: none;
    margin: 0 0 2.4rem;
    padding: 0;
}

.comment-list .children { margin-left: 1.6rem; margin-top: 1.4rem; }

.cmt-in {
    border-top: 2px solid var(--line);
    padding: 1.2rem 0 1.6rem;
}

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

.cmt-author { font-family: var(--font-head); font-weight: 600; }

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

.cmt-text p { margin-bottom: 0.7em; background: none; }

.cmt-reply { font-size: 0.9rem; }

.comment-respond { margin-top: 2rem; }

.comment-reply-title { font-size: 1.35rem; }

.cmt-notes { font-size: 0.86rem; color: var(--muted); }

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

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

.comment-form textarea { resize: vertical; }

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

.comment-form .form-submit input[type="submit"] {
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 2px;
    padding: 0.78em 1.7em;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: #2F5730;
    transform: translateY(2px);
}

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

.bottom {
    background: var(--bg-foot);
    color: #DCE6D8;
    padding: 4.6rem 0 2.4rem;
    margin-top: 0;
}

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

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

.bottom .widget { color: #DCE6D8; margin-bottom: 1.8rem; }

.bottom .widget:last-child { margin-bottom: 0; }

.bottom .widget-title {
    font-size: 0.98rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1.1rem;
}

.bottom .widget p,
.bottom .widget li,
.bottom .textwidget { color: #C6D4C2; font-size: 0.93rem; }

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

.bottom .widget li { margin-bottom: 0.7rem; }

.bottom .widget a { color: #DCE6D8; }

.bottom .widget a:hover { color: var(--accent-2); }

.copy {
    margin: 3.4rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(220, 229, 216, 0.16);
    font-size: 0.85rem;
    color: #A9BCA5;
}

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    padding: 1.2rem 2rem;
    background: var(--bg-foot);
    color: #DCE6D8;
    border-top: 1px solid rgba(196, 154, 108, 0.4);
}

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #C6D4C2;
}

.cookie-accept { flex: 0 0 auto; }

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

@media (max-width: 1100px) {
    h1 { font-size: 3.2rem; }
    .hero-in { padding: 7rem 26% 7rem 0; }
}

@media (max-width: 960px) {
    :root { --rhythm: 84px; }

    .shell { width: min(90%, 1180px); }

    h1 { font-size: 2.7rem; }
    h2, .sec-t { font-size: 1.75rem; }
    .page-title, .entry-title { font-size: 2.3rem; }

    .top-in { align-items: flex-start; }

    .nav-toggle { display: inline-flex; flex-wrap: wrap; }

    .main-nav {
        flex: 1 1 100%;
        display: none;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
        width: 100%;
    }

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

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

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

    .hero-in { padding: 6rem 8% 6rem 0; }

    .fs-hero { min-height: 520px; }

    .entry-content blockquote { padding: 1.6rem 1.6rem; }
}

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

    :root { --rhythm: 64px; }

    h1 { font-size: 2.1rem; }
    h2, .sec-t { font-size: 1.5rem; }
    .page-title, .entry-title { font-size: 1.9rem; }

    .page-shell { padding: 32px 0 var(--rhythm); }

    .brand { gap: 0.8rem; }
    .brand-logo, .brand-mark { width: 42px; height: auto; }
    .brand-desc { display: none; }

    .hero-in { padding: 4.6rem 0 4.6rem; }
    .fs-hero { min-height: 460px; }
    .hero-lead { font-size: 1rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-num { font-size: 2.8rem; }

    .topics-grid { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.6rem 1.4rem; }

    .check-item { padding: 0 0 1.6rem 0; gap: 1rem; }

    .card-grid { gap: 2rem; }

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

    .cookie-banner { padding: 1.1rem 1.2rem; gap: 1rem; }

    .entry-content blockquote { padding: 1.4rem 1.3rem; margin-left: 0; }

    .post-nav { flex-direction: column; gap: 1rem; }
    .post-nav-next { text-align: left; }
}

/* «Сломанная сетка» — акцентные цитаты выходят за колонку влево */

@media (min-width: 1101px) {
    .layout-single .entry-content blockquote { margin-left: calc(-1 * min(20%, 6vw)); }
}
