/*
Theme Name: dds_yitoki.com
Author: Алексей Воронов
Description: Chalk & Beam — тема образовательной онлайн-платформы об архитектуре, строительстве и дизайне интерьера. Холодная сине-серая гамма с медным акцентом, чертёжная сетка и архитектурная графика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: chalkbeam
*/

:root {
    --bg: #F3F6FA;
    --bg-alt: #E4EBF3;
    --head: #0E2A47;
    --foot: #0A1C30;
    --panel: #FFFFFF;
    --ink: #1B2A3A;
    --accent: #2F6FED;
    --accent-dark: #1F56C4;
    --copper: #C97B4A;
    --muted: #6B7C93;
    --line: #D3DEEA;
    --grid: #DCE5EF;
    --font-head: "Trebuchet MS", "Segoe UI", "PT Sans", Tahoma, sans-serif;
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* служебные правила скрытия — до основных стилей элементов */
.cookie-banner[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

*, *::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.68;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* контурный силуэт стропильной фермы в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: -20px;
    bottom: -10px;
    width: 420px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    opacity: .06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300' fill='none' stroke='%232F6FED' stroke-width='3'%3E%3Cpath d='M20 230 H400 M20 230 L210 70 L400 230 M60 198 L210 110 L360 198 M210 110 V230 M135 154 V230 M285 154 V230 M100 230 V170 M320 230 V170'/%3E%3Cpath d='M210 70 L210 40 M170 250 H250'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
}

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

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

.entry-content a,
.widget a,
.crumbs a,
.card-title a {
    position: relative;
}

.entry-content a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--copper);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .18s ease;
}

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

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

h1 { font-size: 3.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

/* -------------------------------------------------- каркас */

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

.site-main { padding: 0 0 4rem; }

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
}

/* -------------------------------------------------- верхняя полоса и шапка */

.topline {
    height: 4px;
    background: linear-gradient(to right,
        var(--accent) 0 38%,
        var(--copper) 38% 62%,
        var(--accent) 62% 100%);
}

.site-top {
    background-color: var(--head);
    background-image:
        linear-gradient(to right, #1E3A5C 1px, transparent 1px),
        linear-gradient(to bottom, #1E3A5C 1px, transparent 1px);
    background-size: 24px 24px;
    color: #FFFFFF;
    position: static;
}

.site-top-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

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

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

.brand-mark { display: block; flex: 0 0 52px; }

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #FFFFFF;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-desc {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    line-height: 1.45;
    color: #A9BCD2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--copper);
    background: transparent;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .04em;
    padding: .55rem .9rem;
    border-radius: 2px;
    cursor: pointer;
}

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

.main-nav a {
    color: #DCE6F2;
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .02em;
    padding: .3rem 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

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

@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; }
    .main-nav ul { flex-direction: column; gap: .2rem; }
    .main-nav a { padding: .55rem 0; width: 100%; }
}

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

.btn {
    display: inline-block;
    border-radius: 2px;
    font-family: var(--font-head);
    font-size: .98rem;
    letter-spacing: .03em;
    padding: .78rem 1.6rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, color .16s ease;
}

.btn-fill {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(47, 111, 237, .18);
}

.btn-fill:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(47, 111, 237, .28);
    color: #FFFFFF;
}

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

.btn-ghost:hover {
    background: var(--copper);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 123, 74, .26);
}

.fs-dark .btn-ghost { color: #F0D7C6; }
.fs-dark .btn-ghost:hover { color: #FFFFFF; }

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

.crumbs {
    font-size: .88rem;
    color: var(--muted);
    padding: 1.6rem 0 1.3rem;
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--copper); margin: 0 .35rem; }

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

.sec-title {
    position: relative;
    padding-left: 72px;
    margin: 0 0 1.6rem;
    font-size: 2rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 48px;
    height: 2px;
    background: var(--copper);
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 56px;
    top: calc(.62em - 3px);
    width: 8px;
    height: 8px;
    background: var(--copper);
}

.fs-dark .sec-title { color: #FFFFFF; }

.entry-content h2,
.entry-content h3,
.widget-title {
    position: relative;
    padding-left: 18px;
}

.entry-content h2::before,
.entry-content h3::before,
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 8px;
    height: 8px;
    background: var(--copper);
}

/* -------------------------------------------------- разделители */

.rule {
    position: relative;
    height: 1px;
    background: var(--line);
    margin: 0;
}

.rule::after {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(to right,
        var(--copper) 0 14px,
        transparent 14px 86px);
}

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

.fs {
    padding: 4.2rem 0;
    position: relative;
}

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

@media (max-width: 960px) {
    .front-inner { width: 100%; }
}

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

.fs-deep { background-color: var(--foot); }

.fs-dark {
    background-color: var(--head);
    background-image:
        radial-gradient(ellipse at 50% 30%, rgba(90, 140, 200, .22), transparent 68%),
        linear-gradient(to right, #1E3A5C 1px, transparent 1px),
        linear-gradient(to bottom, #1E3A5C 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
    color: #E6EEF8;
}

.fs-dark h1, .fs-dark h2, .fs-dark h3 { color: #FFFFFF; }

/* hero */

.fs-hero { padding: 4.6rem 0 4.4rem; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--copper);
    border-left: 3px solid var(--copper);
    padding-left: .8rem;
    margin-bottom: 1rem;
}

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

.hero-lead {
    color: #C4D3E5;
    font-size: 1.08rem;
    max-width: 34em;
    margin-bottom: 1.8rem;
}

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

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

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .hero-title { font-size: 2.3rem; }
    h1 { font-size: 2.3rem; }
}

/* шаги */

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

.step {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    border-left: 1px solid var(--line);
    position: relative;
}

.step:first-child { border-left: none; }

.step-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--copper);
    line-height: 1;
    display: block;
    margin-bottom: .2rem;
}

.step-node {
    display: block;
    width: 100%;
    height: 9px;
    margin: .8rem 0 1rem;
    background-image:
        radial-gradient(circle at 5px 4px, var(--copper) 3px, transparent 4px),
        linear-gradient(to right, var(--copper) 0 100%);
    background-repeat: no-repeat, no-repeat;
    background-size: 10px 9px, 100% 1px;
    background-position: left center, left center;
}

.step h3 { margin-bottom: .4rem; font-size: 1.22rem; }
.step p { margin: 0; color: #46586C; font-size: .96rem; }

@media (max-width: 960px) {
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step:nth-child(3) { border-left: none; }
    .step { border-top: 1px solid var(--line); }
    .step:nth-child(-n+2) { border-top: none; }
}

@media (max-width: 600px) {
    .steps { grid-template-columns: minmax(0, 1fr); }
    .step { border-left: none; border-top: 1px solid var(--line); padding: 1.3rem 0; }
    .step:first-child { border-top: none; }
}

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

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

.stat { min-width: 0; text-align: left; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.05;
}

.stat-bar {
    display: block;
    width: 52px;
    height: 2px;
    background: var(--copper);
    margin: .7rem 0 .8rem;
}

.stat-label { color: #94A9C0; font-size: .95rem; }

@media (max-width: 960px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stats { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; } }

/* карта тем */

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

.topic {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.25rem 1.3rem;
    color: var(--ink);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.topic::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background: var(--copper);
}

.topic svg { flex: 0 0 34px; stroke: var(--ink); transition: stroke .16s ease; }

.topic span {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.08rem;
    min-width: 0;
}

.topic:hover {
    border-color: var(--copper);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(47, 111, 237, .10);
}

.topic:hover svg { stroke: var(--accent); }

@media (max-width: 960px) { .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .topics { grid-template-columns: minmax(0, 1fr); } }

/* лента последних записей на главной */

.front-latest { padding: 4.2rem 0; }

.front-latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

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

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

.cards-list { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(47, 111, 237, .08);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(47, 111, 237, .14);
    border-color: var(--copper);
}

.card-thumb {
    display: block;
    border-bottom: 1px solid var(--copper);
}

.card-thumb a { display: block; }

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

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

.card-meta {
    font-size: .82rem;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: .5rem;
}

.card-title {
    font-size: 1.24rem;
    margin: 0 0 .6rem;
    padding-left: 0;
}

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

.card-excerpt { color: #44576C; font-size: .96rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }

.card-more { align-self: flex-start; margin-top: auto; padding: .6rem 1.2rem; }

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: .95rem;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}

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

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

.pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* -------------------------------------------------- контент */

.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.5rem; margin-bottom: .5rem; }
.entry-meta { color: var(--muted); font-size: .9rem; }

.entry-thumb { margin: 0 0 1.8rem; border-bottom: 2px solid var(--copper); }
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.04rem; }
.entry-content h2 { margin-top: 2rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem 1.4rem 2.6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--copper);
    border-radius: 4px;
    position: relative;
}

.entry-content blockquote::before {
    content: "’";
    position: absolute;
    left: .7rem;
    top: .1rem;
    font-family: var(--font-head);
    font-size: 3rem;
    line-height: 1;
    color: var(--copper);
}

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

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
}

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

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

.table-scroll { overflow-x: auto; }

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

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

/* -------------------------------------------------- сайдбар и виджеты */

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

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

.widget-title {
    font-size: 1.12rem;
    margin-bottom: .9rem;
}

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

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

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

.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .96rem;
}

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

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

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

.site-foot {
    background-color: var(--foot);
    background-image:
        linear-gradient(to right, #14293F 1px, transparent 1px),
        linear-gradient(to bottom, #14293F 1px, transparent 1px);
    background-size: 24px 24px;
    color: #C6D5E5;
    padding: 3.2rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 960px) { .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; } }

.site-foot .widget-title { color: #FFFFFF; font-size: 1.05rem; }
.site-foot .widget-title::before { background: var(--copper); }

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

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

.site-foot .widget li {
    padding: .35rem 0;
    border-bottom: 1px solid #16304A;
}

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

.site-foot .widget a { color: #DCE7F3; }
.site-foot .widget a:hover { color: var(--copper); }
.site-foot .post-date { display: block; color: #8FA5BD; font-size: .82rem; }

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid #16304A;
    font-size: .88rem;
    color: #8FA5BD;
}

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

.search-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.search-form .search-field {
    flex: 1 1 180px;
    min-width: 0;
    padding: .7rem .9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: .95rem;
}

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

.search-form .search-submit { flex: 0 0 auto; }

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

.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

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

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

.comment-item {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-left: 3px solid var(--copper);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

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

.comment-author { font-family: var(--font-head); font-weight: 800; }
.comment-date { color: var(--muted); font-size: .85rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: .6rem; font-size: .9rem; }
.comment-hold { color: var(--copper); font-size: .9rem; }

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

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

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

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

/* -------------------------------------------------- 404 */

.nf-box {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.4rem 2.2rem;
    text-align: left;
}

.nf-code {
    font-family: var(--font-head);
    font-size: 4.4rem;
    font-weight: 800;
    color: var(--copper);
    line-height: 1;
    margin-bottom: .4rem;
}

.nf-actions { margin-top: 1.4rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.nf-search { margin-top: 1.6rem; max-width: 460px; }

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--head);
    border-top: 3px solid var(--copper);
    color: #DCE7F3;
    padding: 1rem 1.6rem;
    font-size: .93rem;
}

.cookie-banner p { margin: 0; min-width: 0; flex: 1 1 320px; }
.cookie-banner a { color: #9EC2F5; }

/* -------------------------------------------------- прочее */

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

.section-note { color: var(--muted); font-size: .95rem; }

.no-posts {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.8rem;
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    body::after { display: none; }
    .fs { padding: 3rem 0; }
    .front-latest { padding: 3rem 0; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .nf-box { padding: 1.8rem 1.4rem; }
    .entry-title { font-size: 1.9rem; }
    .sec-title { font-size: 1.6rem; padding-left: 58px; }
    .sec-title::after { left: 46px; }
    .stat-num { font-size: 2.5rem; }
    .entry-content blockquote { padding: 1.2rem 1.2rem 1.2rem 2.4rem; }
}
