/*
Theme Name: dds_radiatorlux.ru
Author: Олег Баранов
Description: Индустриальный минимализм с медным акцентом. Тема для информационного сайта об отопительных приборах в интерьере.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: radlux
*/

:root {
    --bg: #F2F4F6;
    --bg-alt: #FFFFFF;
    --bg-alt2: #E8ECF0;
    --head: #1A2026;
    --foot: #101418;
    --aside: #E5E9ED;
    --ink: #1F262E;
    --copper: #A65F2B;
    --copper-dark: #8A4E23;
    --steel: #4A6A7A;
    --muted: #6F7B85;
    --line: #C8D0D6;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --text: "Roboto", "Noto Sans", "PT Sans", "Segoe UI", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--text);
    font-size: 17px;
    line-height: 1.72;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(221, 226, 230, 0.3) 0 1px, rgba(221, 226, 230, 0) 1px 11px);
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 460px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 280'%3E%3Cg fill='%231F262E'%3E%3Crect x='0' y='0' width='200' height='22'/%3E%3Crect x='0' y='40' width='200' height='22'/%3E%3Crect x='0' y='80' width='200' height='22'/%3E%3Crect x='0' y='120' width='200' height='22'/%3E%3Crect x='0' y='160' width='200' height='22'/%3E%3Crect x='0' y='200' width='200' height='22'/%3E%3Crect x='0' y='240' width='200' height='22'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

h1 { font-size: 3.2rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.15em; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--copper); }

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

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt2);
    border-left: 3px solid var(--copper);
    border-radius: 4px;
}
blockquote p:last-child { margin-bottom: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    background: #fff;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.65rem 0.8rem;
    text-align: left;
}
th { background: var(--bg-alt2); font-family: var(--sans); }

code, pre {
    font-family: "SFMono-Regular", "Consolas", monospace;
    font-size: 0.92em;
    background: var(--bg-alt2);
}
pre { padding: 1rem; overflow-x: auto; border-radius: 4px; }

/* --- контейнеры --- */

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

.layout-with-sidebar {
    width: min(92%, 1180px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3.4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}
.layout-single {
    width: min(85%, 1180px);
    margin-inline: auto;
    display: block;
    position: relative;
    z-index: 1;
}
.content-area { min-width: 0; }

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

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

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.87rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.78rem 1.7rem;
    border: 2px solid var(--copper);
    border-radius: 4px;
    color: var(--copper);
    background: transparent;
    cursor: pointer;
    transition: background-color 0.22s, color 0.22s, transform 0.18s;
}
.btn:hover { background: var(--copper); color: #fff; }

.btn--solid { background: var(--copper); color: #fff; }
.btn--solid:hover { background: var(--copper-dark); color: #fff; transform: translateY(-2px); }

/* --- текстовые ссылки в контенте --- */

.entry-content a,
.crumbs a,
.card-title a,
.widget a {
    position: relative;
    color: var(--steel);
}
.entry-content a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 1px;
    background: var(--copper);
    transition: left 0.24s ease, right 0.24s ease;
}
.entry-content a:hover,
.card-title a:hover { color: var(--copper); }
.entry-content a:hover::after,
.card-title a:hover::after { left: 0; right: 0; }

/* --- шапка --- */

.site-header { background: var(--head); position: relative; }
.pipe { height: 4px; width: 100%; background: linear-gradient(90deg, var(--copper) 0%, #C1784A 50%, var(--copper) 100%); }

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

.brand { display: flex; align-items: center; gap: 0.95rem; min-width: 0; text-decoration: none; }
.brand-logo { display: block; max-height: 58px; width: auto; }
.brand-mark { display: block; width: 46px; height: 46px; flex: 0 0 46px; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.3;
    color: #fff;
    letter-spacing: 0.02em;
}
.brand-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9EAAB4;
    margin-top: 0.25rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid var(--copper);
    border-radius: 4px;
    color: var(--copper);
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

.main-nav[hidden] { display: none !important; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.7rem; flex-wrap: wrap; }
.main-nav li { margin: 0; }
.main-nav a {
    font-family: var(--sans);
    font-size: 0.86rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #DCE3E8;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    display: inline-block;
}
.main-nav a:hover,
.main-nav .current-menu-item > a { color: #fff; border-bottom-color: var(--copper); }

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

.crumbs {
    font-size: 0.83rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}
.crumbs a { color: var(--steel); }
.crumbs a:hover { color: var(--copper); }
.crumbs .sep { color: var(--line); margin: 0 0.25rem; }

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

.section-title {
    position: relative;
    padding-left: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.35;
    font-size: 1.55rem;
    margin-bottom: 1.7rem;
}
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 3px;
    background: var(--copper);
}
.section-title--light { color: #fff; }

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

.rule {
    height: 1px;
    border: 0;
    margin: 0 auto;
    width: min(92%, 1180px);
    background: linear-gradient(90deg, var(--line) 0 44%, transparent 44% 56%, var(--line) 56% 100%);
}

.seam {
    height: 14px;
    width: min(92%, 1180px);
    margin: 0 auto;
    opacity: 0.75;
    background-image: linear-gradient(135deg, var(--line) 25%, transparent 25%), linear-gradient(225deg, var(--line) 25%, transparent 25%);
    background-size: 14px 14px;
    background-position: 0 0;
}

/* --- чертёжные уголки --- */

.corners { position: relative; }
.corners::before,
.corners::after {
    content: "";
    position: absolute;
    width: 13px;
    height: 13px;
    border: 2px solid var(--steel);
    pointer-events: none;
}
.corners::before { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.corners::after { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

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

.front-section { padding: 3.8rem 0; }
.front-section--alt { background: var(--bg-alt); }
.front-section--alt2 { background: var(--bg-alt2); }

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

.hero {
    position: relative;
    background: #1A2026;
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    opacity: 0.55;
}
.hero-inner {
    position: relative;
    z-index: 2;
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 5.5rem 0 5rem;
}
.hero-plate {
    background: rgba(26, 32, 38, 0.86);
    border-radius: 4px;
    border-top: 4px solid var(--copper);
    padding: 2.6rem 2.4rem;
    max-width: 720px;
}
.hero-plate h1 { color: #fff; margin-bottom: 0.5em; }
.hero-kicker {
    display: block;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--copper);
    margin-bottom: 1rem;
}
.hero-sub { color: #C6D0D8; font-size: 1.06rem; margin-bottom: 1.8rem; }
.hero .corners::before, .hero .corners::after { border-color: rgba(198, 208, 216, 0.55); }

/* --- блок 2: таймлайн --- */

.road { list-style: none; margin: 0; padding: 0; }
.road-step {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px minmax(0, 96px);
    align-items: stretch;
}
.road-text { grid-column: 1; grid-row: 1; text-align: right; padding: 0 0 2.4rem; min-width: 0; }
.road-text h3 { text-transform: uppercase; letter-spacing: 0.05em; font-size: 1.08rem; margin-bottom: 0.4em; }
.road-text p { margin: 0; color: #46525C; font-size: 0.96rem; }
.road-mark { grid-column: 2; grid-row: 1; position: relative; }
.road-mark::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--line);
}
.road-step:first-child .road-mark::before { top: 10px; }
.road-step:last-child .road-mark::before { bottom: auto; height: 10px; }
.road-mark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 4px;
    width: 13px;
    height: 13px;
    margin-left: -6.5px;
    border-radius: 50%;
    background: var(--copper);
    box-shadow: 0 0 0 4px rgba(166, 95, 43, 0.14);
}
.road-num {
    grid-column: 3;
    grid-row: 1;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--steel);
    letter-spacing: 0.04em;
    padding-top: 0.05rem;
}

/* --- блок 3: статистика --- */

.facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.4rem 1.8rem;
    box-shadow: 4px 6px 0 rgba(26, 32, 38, 0.1);
}
.fact { text-align: center; padding: 0.4rem 1.2rem; min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact-num {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 3.1rem;
    line-height: 1.05;
    color: var(--steel);
}
.fact-label {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--copper);
}
.fact-note { display: block; margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted); }

/* --- блок 4: карта тем --- */

.topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.3rem;
}
.topic {
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg-alt);
    padding: 1.7rem 1.5rem;
    min-width: 0;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.topic:hover {
    border-color: var(--copper);
    transform: translateY(-4px);
    box-shadow: 4px 6px 0 rgba(26, 32, 38, 0.1);
}
.topic svg { display: block; width: 40px; height: 40px; margin-bottom: 1rem; }
.topic-name {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink);
    margin-bottom: 0.5rem;
}
.topic-desc { display: block; font-size: 0.9rem; color: var(--muted); line-height: 1.55; }

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

.cards { display: block; }
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 4px 6px 0 rgba(26, 32, 38, 0.1);
    overflow: hidden;
    margin-bottom: 1.9rem;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: 8px 12px 0 rgba(26, 32, 38, 0.15); border-color: var(--copper); }

.card-inner { display: flex; flex-direction: row; align-items: stretch; }

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt2);
}
.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(0.85) contrast(1.03);
    transition: filter 0.25s;
}
.card:hover .card-thumb-wrap img { filter: grayscale(0.35); }

.card-body { flex: 1; min-width: 0; padding: 1.5rem 1.7rem; display: flex; flex-direction: column; }
.card-title { font-size: 1.24rem; margin-bottom: 0.5rem; }
.card-title a { color: var(--ink); }
.card-meta {
    font-family: var(--sans);
    font-size: 0.76rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.75rem;
}
.card-excerpt { color: #47535D; font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--sans);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--copper);
    align-self: flex-start;
}
.card-more:hover { color: var(--copper-dark); }

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

.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.35rem; margin-bottom: 0.5rem; }
.entry-meta {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--muted);
}
.entry-thumb { margin-bottom: 1.7rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 1.02rem; }
.entry-content h2 {
    position: relative;
    padding-left: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1.5rem;
    margin-top: 1.8em;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: var(--copper);
}
.entry-content h3 { margin-top: 1.6em; }
.entry-content img { border-radius: 4px; }

.entry-tags { margin-top: 2rem; font-size: 0.85rem; color: var(--muted); }
.entry-tags a { color: var(--steel); }

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

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

.sidebar { min-width: 0; }
.widget {
    background: var(--aside);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.5rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}
.widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    position: relative;
    padding-left: 0.9rem;
    margin-bottom: 1rem;
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 3px;
    background: var(--copper);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { margin-bottom: 0.7rem; padding-bottom: 0.7rem; border-bottom: 1px solid rgba(31, 38, 46, 0.1); }
.widget li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--copper); }
.widget .post-date { display: block; font-size: 0.78rem; color: #5D6971; margin-top: 0.2rem; }
.widget p { color: #333C44; font-size: 0.95rem; }
.widget p:last-child { margin-bottom: 0; }

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

.site-footer { background: var(--foot); color: #B9C4CC; margin-top: 3rem; border-top: 4px solid var(--copper); }
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 3.2rem 0 2.4rem;
}
.foot-col { min-width: 0; }
.site-footer .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    color: #B9C4CC;
}
.site-footer .widget-title { color: #FFFFFF; }
.site-footer .widget p { color: #B9C4CC; }
.site-footer .widget a { color: #D3DBE1; }
.site-footer .widget a:hover { color: var(--copper); }
.site-footer .widget li { border-bottom-color: rgba(185, 196, 204, 0.16); }
.site-footer .widget .post-date { color: #8C99A3; }

.foot-bottom {
    border-top: 1px solid rgba(185, 196, 204, 0.18);
    padding: 1.3rem 0 1.6rem;
    font-size: 0.85rem;
    color: #8C99A3;
}

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

.pager { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2.4rem 0 0; }
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--steel);
    background: var(--bg-alt);
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}
.pager .page-numbers:hover { border-color: var(--copper); color: var(--copper); }
.pager .page-numbers.current { background: var(--copper); border-color: var(--copper); color: #fff; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; }

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

.search-form { display: flex; gap: 0.6rem; }
.search-form label { flex: 1; min-width: 0; }
.search-form input[type="search"] {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}
.search-form input[type="search"]:focus { outline: 2px solid var(--copper); outline-offset: 1px; }
.search-form .btn { padding: 0.62rem 1.15rem; }

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

.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item { margin-bottom: 1.2rem; }
.comment-body {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.2rem 1.4rem;
}
.comment-head { display: flex; gap: 1rem; align-items: baseline; margin-bottom: 0.5rem; flex-wrap: wrap; }
.comment-author { font-family: var(--sans); font-weight: 700; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-reply a { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); }
.comment-wait { font-size: 0.85rem; color: var(--muted); }

.comment-respond { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 1.6rem 1.6rem 1.2rem; }
.comment-respond .comment-reply-title { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.comment-form label { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.62rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
    margin-bottom: 1rem;
}
.comment-form textarea { min-height: 140px; }
.comment-form .submit {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 700;
    font-size: 0.87rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding: 0.78rem 1.7rem;
    border: 2px solid var(--copper);
    border-radius: 4px;
    background: var(--copper);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.22s, transform 0.18s;
}
.comment-form .submit:hover { background: var(--copper-dark); transform: translateY(-2px); }

/* --- 404 --- */

.notfound { text-align: center; padding: 2.5rem 0 3rem; }
.notfound .code {
    font-family: var(--sans);
    font-weight: 700;
    font-size: 5.4rem;
    line-height: 1;
    color: var(--steel);
    letter-spacing: 0.05em;
}
.notfound .search-form { max-width: 460px; margin: 1.8rem auto 1.6rem; }

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

.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--head);
    border-top: 4px solid var(--copper);
    color: #C6D0D8;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
}
.cookie-banner p { margin: 0; max-width: 70ch; }
.cookie-banner .btn { padding: 0.55rem 1.4rem; }

/* --- служебное --- */

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

.archive-head { margin-bottom: 2rem; }
.archive-head h1 { font-size: 2.1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.nothing { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 4px; padding: 1.8rem 1.8rem; }

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

@media (max-width: 960px) {
    body { font-size: 16px; }
    h1 { font-size: 2.4rem; }
    .hero-inner { padding: 4rem 0 3.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: min(92%, 1180px); }
    .front-section .shell { width: min(92%, 1180px); }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}

@media (max-width: 600px) {
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.5rem; }
    .site-main { padding: 1.8rem 0 2.6rem; }
    .front-section { padding: 2.6rem 0; }

    .nav-toggle { display: inline-block; }
    .main-nav { width: 100%; }
    .main-nav ul { flex-direction: column; gap: 0.9rem; padding-top: 0.4rem; }

    .hero-plate { padding: 1.8rem 1.4rem; }
    .hero-inner { padding: 2.8rem 0 2.6rem; }

    .road-step { grid-template-columns: 34px minmax(0, 1fr); }
    .road-text { grid-column: 2; grid-row: 2; text-align: left; padding-bottom: 1.9rem; }
    .road-num { grid-column: 2; grid-row: 1; font-size: 1.15rem; margin-bottom: 0.3rem; }
    .road-mark { grid-column: 1; grid-row: 1 / span 2; }

    .facts { grid-template-columns: minmax(0, 1fr); padding: 1.6rem 1.4rem; }
    .fact + .fact { border-left: 0; border-top: 1px solid var(--line); margin-top: 1.3rem; padding-top: 1.5rem; }
    .fact-num { font-size: 2.5rem; }

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

    .card-inner { 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-body { padding: 1.2rem 1.2rem; }

    .cookie-banner { padding: 1rem 1.1rem; gap: 0.9rem; }
    .notfound .code { font-size: 3.8rem; }
}
