/*
Theme Name: dds_bsu-st.ru
Description: Индивидуальная тема информационного сайта о бетонных заводах и производственном оборудовании.
Author: Артём Захаров
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: bsugid
*/

:root {
    --bg: #F2F4F8;
    --bg-alt: #E8ECF4;
    --head: #1A202C;
    --foot: #0F151E;
    --side: #FFFFFF;
    --ink: #1E293B;
    --ochre: #D97A22;
    --steel: #4A6FA5;
    --muted: #64748B;
    --line: #CBD5E1;
    --grid: #E2E8F0;
    --yellow: #F2C230;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Charter", "PT Serif", "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, var(--grid) 0 1px, transparent 1px 26px),
        repeating-linear-gradient(90deg, var(--grid) 0 1px, transparent 1px 26px);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.68;
    overflow-x: hidden;
}

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

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

/* ---------- Типографика ---------- */

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--steel);
    text-decoration: none;
    position: relative;
}

.entry-text a::after,
.widget-block a::after,
.site-note a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--ochre);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .22s ease;
}

.entry-text a:hover::after,
.widget-block a:hover::after,
.site-note a:hover::after { transform: scaleX(1); }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--ochre);
    font-size: 1.06rem;
}

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

code, pre {
    font-family: "JetBrains Mono", "Consolas", monospace;
    background: var(--bg-alt);
    font-size: .92rem;
}

pre { padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line);
    font-size: .96rem;
}

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

th { background: var(--bg-alt); font-family: var(--sans); }

.entry-text ul { list-style: none; padding-left: 0; }

.entry-text ul li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .5rem;
}

.entry-text ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 12px;
    height: 13px;
    background: var(--ochre);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.entry-text ol { padding-left: 1.3rem; }
.entry-text ol li { margin-bottom: .5rem; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: .78rem 1.6rem;
    border-radius: 0;
    border: 3px solid var(--ochre);
    background: var(--ochre);
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:hover {
    background: var(--head);
    border-color: var(--head);
    color: var(--ochre);
}

.btn-ghost {
    background: transparent;
    color: var(--ochre);
    border-color: var(--ochre);
}

.btn-ghost:hover {
    background: var(--ochre);
    border-color: var(--ochre);
    color: #fff;
}

/* ---------- Заголовки секций ---------- */

.sec-title {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 58px;
    height: 2px;
    background: var(--ochre);
}

.sec-title--light { color: #fff; }

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

.site-top {
    background: var(--head);
    color: #fff;
    padding: 1.4rem 0 1.5rem;
    border-bottom: 3px solid var(--ochre);
}

.top-row {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

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

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

.brand-mark { flex: 0 0 auto; }

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

.brand-name {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.12rem;
    line-height: 1.25;
    color: #fff;
    display: block;
}

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

.brand-desc {
    display: block;
    font-size: .8rem;
    line-height: 1.4;
    color: #94A3B8;
    margin-top: .3rem;
    max-width: 60ch;
}

.top-search { flex: 0 0 auto; }

.nav-toggle {
    display: none;
    font-family: var(--sans);
    font-weight: 700;
    background: transparent;
    color: var(--ochre);
    border: 2px solid var(--ochre);
    padding: .5rem 1rem;
    cursor: pointer;
    border-radius: 0;
}

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

.main-nav { margin-top: 1.2rem; }

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

.main-nav a {
    font-family: var(--sans);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #E2E8F0;
    padding-bottom: .35rem;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

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

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

.search-line { display: flex; }

.search-line input[type="search"] {
    font-family: var(--sans);
    font-size: .92rem;
    padding: .55rem .8rem;
    border: 2px solid var(--line);
    border-right: none;
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    min-width: 0;
    width: 190px;
}

.search-line button {
    font-family: var(--sans);
    font-weight: 700;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .55rem 1rem;
    border: 2px solid var(--ochre);
    background: var(--ochre);
    color: #fff;
    cursor: pointer;
    border-radius: 0;
}

.search-line button:hover { background: var(--head); border-color: var(--head); color: var(--ochre); }

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

.site-main { padding: 2.4rem 0 3.4rem; }

.layout-single { display: block; }

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

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

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

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

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

.trail {
    font-family: var(--sans);
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--line);
}

.trail a { color: var(--steel); }
.trail a:hover { color: var(--ochre); }
.trail-sep { color: var(--ochre); margin: 0 .3rem; }

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

.card-feed { display: flex; flex-direction: column; gap: 2rem; }

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--line);
    transition: box-shadow .22s ease;
}

.card:hover { box-shadow: -4px -4px 0 var(--ochre); }

.card-row {
    display: flex;
    flex: 1;
    min-width: 0;
}

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

.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;
    filter: grayscale(1) contrast(1.08) brightness(.96);
    transition: filter .25s ease;
}

.card:hover .card-thumb-wrap img { filter: grayscale(.35) contrast(1.05); }

.card-thumb-blank {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(135deg, rgba(74,111,165,.28) 0 10px, transparent 10px 20px),
        var(--head);
}

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

.card-title {
    font-size: 1.3rem;
    margin: 0 0 .55rem;
}

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

.card-meta {
    font-family: var(--sans);
    font-size: .8rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem;
}

.card-meta a { color: var(--steel); }
.card-meta a:hover { color: var(--ochre); }
.card-meta .meta-cat::before { content: "//"; color: var(--ochre); margin: 0 .45rem 0 .2rem; }

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

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

.card-more .btn { padding: .58rem 1.2rem; font-size: .82rem; border-width: 2px; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    font-family: var(--sans);
    font-weight: 700;
    font-size: .92rem;
    min-width: 44px;
    text-align: center;
    padding: .58rem .9rem;
    border: 2px solid var(--line);
    background: #fff;
    color: var(--head);
    border-radius: 0;
}

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

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

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

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

.entry-head { margin-bottom: 1.6rem; }

.entry-head h1 { font-size: 2.6rem; margin-bottom: .6rem; }

.entry-meta {
    font-family: var(--sans);
    font-size: .82rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-meta a { color: var(--steel); }
.entry-meta .meta-cat::before { content: "//"; color: var(--ochre); margin: 0 .45rem 0 .2rem; }

.entry-cover {
    margin-bottom: 1.8rem;
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--line);
}

.entry-cover img { width: 100%; display: block; }

.entry-text {
    background: #fff;
    border: 1px solid var(--line);
    padding: 2rem 2.2rem;
}

.entry-text h2 { font-size: 1.65rem; margin-top: 1.8rem; }
.entry-text h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.entry-text img { margin: 1.2rem 0; }

.entry-tags {
    margin-top: 1.6rem;
    font-family: var(--sans);
    font-size: .85rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--line);
    padding: .25rem .7rem;
    margin: .2rem .3rem .2rem 0;
    color: var(--steel);
}

.entry-tags a:hover { border-color: var(--ochre); color: var(--ochre); }

.post-switch {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 2rem;
    font-family: var(--sans);
    font-size: .92rem;
}

.post-switch a { color: var(--steel); }
.post-switch a:hover { color: var(--ochre); }

/* ---------- Сайдбар ---------- */

.sidebar {
    background: var(--side);
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--line);
    padding: 1.6rem 1.5rem;
    min-width: 0;
}

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

.sidebar .widget-caption {
    font-size: 1.05rem;
    color: var(--head);
    text-transform: uppercase;
    letter-spacing: .05em;
    padding-bottom: .55rem;
    border-bottom: 2px solid var(--ochre);
    margin-bottom: .9rem;
}

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

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

.sidebar .widget-block li {
    padding: .48rem 0 .48rem 1.5rem;
    border-bottom: 1px dashed var(--line);
    position: relative;
    font-size: .97rem;
}

.sidebar .widget-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 10px;
    height: 11px;
    background: var(--ochre);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

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

.sidebar .widget-block a { color: var(--steel); }
.sidebar .widget-block a:hover { color: var(--ochre); }

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

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

.site-foot {
    background: var(--foot);
    color: #CBD5E1;
    border-top: 3px solid var(--ochre);
    padding: 3rem 0 1.6rem;
}

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

.site-foot .widget-caption {
    font-size: 1rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .9rem;
    display: flex;
    align-items: center;
    gap: .7rem;
}

.site-foot .widget-caption::before {
    content: "";
    flex: 0 0 26px;
    height: 2px;
    background: var(--ochre);
}

.site-foot .widget-block,
.site-foot .widget-block p,
.site-foot .widget-block li { color: #B6C2D2; font-size: .95rem; }

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

.site-foot .widget-block li {
    padding: .35rem 0 .35rem 1.4rem;
    position: relative;
}

.site-foot .widget-block li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .95em;
    width: 9px;
    height: 10px;
    background: var(--ochre);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.site-foot .widget-block a { color: #DCE4EE; }
.site-foot .widget-block a:hover { color: var(--ochre); }

.foot-contact {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 3px dashed rgba(217, 122, 34, .55);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    font-family: var(--sans);
    font-size: .88rem;
    color: #8A98AA;
}

.foot-contact a { color: var(--ochre); }

.foot-copy {
    margin-top: 1.2rem;
    font-family: var(--sans);
    font-size: .85rem;
    color: #7D8B9C;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--head);
    border-top: 3px solid var(--ochre);
    color: #DCE4EE;
    padding: 1rem 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-family: var(--sans);
    font-size: .9rem;
}

.cookie-banner p { margin: 0; max-width: 74ch; }
.cookie-banner a { color: var(--ochre); }
.cookie-banner .btn { padding: .55rem 1.3rem; font-size: .82rem; border-width: 2px; }

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

.front-section { padding: 3.2rem 2.2rem; }

.front-section + .front-section { border-top: 3px dashed var(--ochre); }

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

.fs-hero {
    background-color: var(--head);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='400' viewBox='0 0 420 400'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='6'%3E%3Ccircle cx='210' cy='200' r='120'/%3E%3Ccircle cx='210' cy='200' r='62'/%3E%3Cpath d='M210 40v50M210 310v50M40 200h50M330 200h50M90 80l36 36M330 80l-36 36M90 320l36-36M330 320l-36-36'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -60px bottom -70px;
    background-size: 420px auto;
    color: #fff;
    padding: 3.6rem 2.6rem;
    display: flex;
    gap: 2.6rem;
    align-items: center;
}

.fs-hero-text { flex: 1 1 55%; min-width: 0; }

.fs-hero h1 { color: #fff; margin-bottom: 1rem; }

.fs-hero-lead {
    color: #A8BBD1;
    font-size: 1.12rem;
    max-width: 60ch;
    margin-bottom: 1.8rem;
}

.hero-mail {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem;
    background: var(--yellow);
    color: #1A202C;
    font-family: var(--sans);
    font-weight: 700;
    padding: .85rem 1.4rem;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.hero-mail span {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4A3608;
}

.hero-mail a { color: #1A202C; font-size: 1.02rem; }
.hero-mail a:hover { color: #7A4A00; }

.fs-hero-art {
    flex: 0 0 38%;
    min-width: 0;
}

.fs-hero-art img {
    width: 100%;
    height: auto;
    display: block;
}

/* Чек-лист */

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

.check-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.1rem 1.3rem;
    background: #fff;
    border: 1px solid var(--line);
    margin-bottom: 1rem;
    min-width: 0;
}

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

.check-nut {
    flex: 0 0 42px;
    height: 46px;
    background: var(--ochre);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.15rem;
}

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

.check-body h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.check-body p { margin: 0; font-size: .98rem; color: #33455C; }

/* Последние записи */

.fs-latest .card-feed { gap: 1.6rem; }

.fs-latest-more { margin-top: 1.8rem; }

/* Статистика */

.fs-stats {
    background: var(--head);
    color: #fff;
    padding: 2.8rem 2.2rem;
    border-top: 3px dashed var(--ochre);
    border-bottom: 3px dashed var(--ochre);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1.4rem;
}

.stat-cell { min-width: 0; border-left: 3px solid var(--ochre); padding-left: 1.2rem; }

.stat-num {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 1;
    color: #fff;
    display: block;
}

.stat-cap {
    display: block;
    margin-top: .6rem;
    font-family: var(--sans);
    font-size: .88rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #E0A96B;
}

.stat-note { margin-top: .5rem; font-size: .95rem; color: #A8BBD1; }

/* Таймлайн */

.timeline {
    position: relative;
    padding-left: 2.6rem;
    margin-top: 1.6rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 6px;
    background: var(--ochre);
}

.tl-step {
    display: flex;
    gap: 1.4rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.1rem;
    min-width: 0;
    box-shadow: 4px 4px 0 var(--line);
}

.tl-step:last-child { margin-bottom: 0; }

.tl-num {
    flex: 0 0 54px;
    height: 54px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--ink);
}

.tl-body { min-width: 0; }
.tl-body h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.tl-body p { margin: 0; font-size: .98rem; }

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

.blank-state {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 4px 4px 0 var(--line);
    padding: 2.4rem 2.2rem;
}

.blank-state h1 { font-size: 3rem; }

.blank-state .search-line { margin: 1.4rem 0; }

.blank-state .search-line input[type="search"] { width: min(100%, 320px); border-color: var(--line); }

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

.comments-box {
    margin-top: 2.6rem;
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.8rem 2rem;
}

.comments-box h2 { font-size: 1.4rem; }

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

.note-item { margin-bottom: 1.4rem; }

.note-body {
    border-left: 3px solid var(--ochre);
    padding: .9rem 1.2rem;
    background: var(--bg-alt);
}

.note-head {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: baseline;
    font-family: var(--sans);
    margin-bottom: .5rem;
}

.note-author { font-weight: 700; color: var(--head); }
.note-date { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.note-hold { font-size: .9rem; color: var(--ochre); }
.note-text p:last-child { margin-bottom: 0; }

.note-reply { margin-top: .6rem; font-family: var(--sans); font-size: .88rem; }
.note-reply a { color: var(--steel); }
.note-reply a:hover { color: var(--ochre); }

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: .86rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    font-family: var(--serif);
    font-size: 1rem;
    padding: .65rem .8rem;
    border: 2px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    margin-bottom: 1rem;
}

.comment-form textarea { min-height: 150px; }

.comment-form input:focus,
.comment-form textarea:focus,
.search-line input:focus { outline: 2px solid var(--ochre); outline-offset: 1px; }

.comment-form .submit {
    font-family: var(--sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: .78rem 1.6rem;
    border: 3px solid var(--ochre);
    background: var(--ochre);
    color: #fff;
    border-radius: 0;
    cursor: pointer;
}

.comment-form .submit:hover { background: var(--head); border-color: var(--head); color: var(--ochre); }

.comments-closed { font-size: .95rem; color: var(--muted); }

/* ---------- Страница списка ---------- */

.list-head { margin-bottom: 1.8rem; }
.list-head h1 { font-size: 2.6rem; margin-bottom: .4rem; }
.list-head p { color: var(--muted); margin: 0; }

.nothing-found {
    background: #fff;
    border: 1px solid var(--line);
    padding: 1.6rem 1.8rem;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .fs-hero { flex-direction: column; align-items: flex-start; padding: 2.8rem 1.8rem; }
    .fs-hero-art { flex: 1 1 auto; width: 100%; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single .content-area { width: 100%; }
    .front-area { width: 100%; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
    .stat-grid { gap: 1.4rem; }
    .stat-num { font-size: 2.6rem; }
    .card-thumb-wrap { flex: 0 0 210px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .sec-title { font-size: 1.45rem; gap: .8rem; }
    .sec-title::before { flex-basis: 32px; }

    .nav-toggle { display: inline-block; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: .9rem; }
    .top-row { gap: 1rem; }
    .top-search { width: 100%; }
    .search-line input[type="search"] { width: 100%; }

    .front-section { padding: 2.2rem 1.2rem; }
    .fs-hero { padding: 2.2rem 1.3rem; background-size: 280px auto; }
    .fs-hero h1 { font-size: 2rem; }
    .fs-stats { padding: 2rem 1.3rem; }
    .stat-grid { grid-template-columns: minmax(0, 1fr); }
    .entry-text { padding: 1.4rem 1.2rem; }
    .comments-box { padding: 1.3rem 1.2rem; }
    .blank-state { padding: 1.6rem 1.3rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .timeline { padding-left: 1.6rem; }
    .tl-step { flex-direction: column; gap: .8rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { padding: .9rem 1.1rem; font-size: .85rem; }

    .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-blank { position: static; aspect-ratio: 16 / 9; }
    .card-body { padding: 1.2rem 1.2rem; }
    .check-item { padding: 1rem 1.1rem; }
}
