/*
Theme Name: dds_t-coating.ru
Theme URI: https://t-coating.ru/
Author: Алексей Завьялов
Description: Тема для информационного портала о промышленном производстве, инструментальном деле, покрытиях и профессиональном образовании. Швейцарский стиль, холодная стально-индиговая палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tcoat
*/

/* ---------- Служебные правила hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Переменные ---------- */
:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --head: #0F1B2D;
    --foot: #0A121F;
    --ink: #1A2433;
    --accent: #2E6FF2;
    --accent-dark: #1A4FBF;
    --accent-2: #00B4D8;
    --muted: #6B7A8F;
    --line: #D0D9E3;
    --line-side: #C5D0DC;
    --white: #FFFFFF;
    --font-head: "Manrope", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 4px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(208, 217, 227, 0.3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 217, 227, 0.3) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    right: -220px;
    bottom: -220px;
    width: 640px;
    height: 640px;
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'><g fill='none' stroke='%230F1B2D' stroke-width='6'><path d='M545.0 300.0 L579.7 313.2 L576.9 341.6 L540.3 347.8 L526.4 393.8 L526.4 393.8 L553.4 419.2 L539.9 444.4 L503.7 436.1 L473.2 473.2 L473.2 473.2 L488.4 507.1 L466.4 525.2 L436.1 503.7 L393.8 526.4 L393.8 526.4 L394.8 563.4 L367.5 571.7 L347.8 540.3 L300.0 545.0 L300.0 545.0 L286.8 579.7 L258.4 576.9 L252.2 540.3 L206.2 526.4 L206.2 526.4 L180.8 553.4 L155.6 539.9 L163.9 503.7 L126.8 473.2 L126.8 473.2 L92.9 488.4 L74.8 466.4 L96.3 436.1 L73.6 393.8 L73.6 393.8 L36.6 394.8 L28.3 367.5 L59.7 347.8 L55.0 300.0 L55.0 300.0 L20.3 286.8 L23.1 258.4 L59.7 252.2 L73.6 206.2 L73.6 206.2 L46.6 180.8 L60.1 155.6 L96.3 163.9 L126.8 126.8 L126.8 126.8 L111.6 92.9 L133.6 74.8 L163.9 96.3 L206.2 73.6 L206.2 73.6 L205.2 36.6 L232.5 28.3 L252.2 59.7 L300.0 55.0 L300.0 55.0 L313.2 20.3 L341.6 23.1 L347.8 59.7 L393.8 73.6 L393.8 73.6 L419.2 46.6 L444.4 60.1 L436.1 96.3 L473.2 126.8 L473.2 126.8 L507.1 111.6 L525.2 133.6 L503.7 163.9 L526.4 206.2 L526.4 206.2 L563.4 205.2 L571.7 232.5 L540.3 252.2 L545.0 300.0Z'/><circle cx='300' cy='300' r='170'/><circle cx='300' cy='300' r='70'/><path d='M300 130v100M300 370v100M130 300h100M370 300h100'/></g></svg>") no-repeat center / contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    font-weight: 600;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p, li, dd, td, th, blockquote, .card-title, .tile-title { overflow-wrap: break-word; hyphens: auto; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color .2s, text-decoration-color .2s;
}
a:hover, a:focus-visible {
    color: var(--accent-2);
    text-decoration-thickness: 2px;
}
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); background: var(--white); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }

blockquote {
    margin: 1.5em 0;
    padding: 1.2em 1.5em;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
}
blockquote p:last-child { margin-bottom: 0; }
code, pre { font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: .92em; }
pre { overflow-x: auto; background: var(--head); color: #E8EEF4; padding: 1.2em 1.4em; border-radius: var(--radius); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 1rem;
    top: -60px;
    z-index: 100;
    background: var(--accent);
    color: var(--white);
    padding: .6em 1em;
    border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: var(--white); }

/* ---------- Контейнер ширины (единственный) ---------- */
.shell { width: min(92%, 1280px); margin-inline: auto; }
@media (min-width: 961px) { .shell { width: min(85%, 1280px); } }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    padding: .8em 1.6em;
    border-radius: var(--radius);
    border: 2px solid var(--accent);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--accent); color: var(--white); }
.btn-solid:hover, .btn-solid:focus-visible { background: #1A4FBF; border-color: #1A4FBF; color: var(--white); text-decoration: none; }
.btn-line { background: transparent; color: var(--accent); }
.btn-line:hover, .btn-line:focus-visible { background: var(--accent); color: var(--white); text-decoration: none; }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover, .btn-ghost-light:focus-visible { background: var(--accent-2); border-color: var(--accent-2); color: var(--head); text-decoration: none; }

/* ---------- Верхняя полоса ---------- */
.gauge-strip {
    height: 4px;
    background: linear-gradient(90deg, #2E6FF2 0 70%, #00B4D8 70% 100%);
}

/* ---------- Шапка ---------- */
.masthead { background: var(--head); color: #E8EEF4; }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    color: var(--white);
    text-decoration: none;
    min-width: 0;
    flex: 1 1 420px;
}
.brand:hover { color: var(--white); text-decoration: none; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--white);
    overflow-wrap: break-word;
}
.brand-tagline {
    font-size: .8rem;
    line-height: 1.4;
    color: #9FB0C6;
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.main-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.main-nav-list a {
    display: block;
    padding: .55em .9em;
    color: #E8EEF4;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}
.main-nav-list a:hover,
.main-nav-list .current-menu-item > a { color: var(--white); border-bottom-color: var(--accent-2); }
.nav-toggle {
    display: none;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: var(--white);
    border: 1px solid #3A4C66;
    border-radius: var(--radius);
    padding: .55em .9em;
    font: 600 .95rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Заголовки секций ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 2.4rem;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    min-width: 0;
}
.section-title::before {
    content: "";
    flex: 0 0 40px;
    height: 4px;
    background: var(--accent);
}
.entry-content h2::before,
.entry-content h3::before,
.talk-title::before,
.widget-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    margin-right: .55em;
    vertical-align: .18em;
}

/* ---------- Секции главной ---------- */
.zone { padding: 80px 0; }
.zone-alt { background: var(--bg-alt); }
.zone-plain { background: var(--bg); }

/* Hero */
.lead-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--head);
}
.lead-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.lead-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 45, 0.6);
    z-index: 1;
}
.lead-hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 32px;
    width: 1px;
    height: 140px;
    background: var(--accent-2);
    z-index: 2;
}
.lead-hero-inner { position: relative; z-index: 3; padding: 80px 0; }
.lead-hero-title { color: var(--white); margin: 0 0 .4em; max-width: 16ch; font-size: clamp(2.2rem, 5.5vw, 3.5rem); }
.lead-hero-sub { color: var(--accent-2); font-size: 1.2rem; max-width: 46ch; margin: 0 0 2em; }

/* Сетка карточек-направлений */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 1.8rem;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: border-color .2s;
}
.tile:hover { border-color: var(--accent); }
.tile-icon { display: block; margin-bottom: 1.2rem; }
.tile-title { margin: 0 0 .6em; font-size: 1.25rem; }
.tile-text { color: var(--ink); flex: 1; }
.tile-link {
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px;
    padding-bottom: 2px;
    transition: background-size .3s, color .2s;
}
.tile-link:hover, .tile-link:focus-visible { background-size: 100% 2px; color: var(--accent); text-decoration: none; }

/* Последние записи */
.feed-more { margin-top: 2.4rem; }

/* Статистика */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure-cell { padding: .5rem 2rem; min-width: 0; border-left: 1px solid var(--line); }
.figure-cell:first-child { border-left: 0; padding-left: 0; }
.figure-num {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--accent);
    margin: 0 0 .35em;
    white-space: nowrap;
}
.figure-cap { color: var(--muted); font-size: .95rem; margin: 0; }

/* CTA */
.zone-call { background: var(--head); }
.call-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1rem 0 1rem 2.2rem;
}
.call-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 80px;
    background: var(--accent);
}
.call-text { min-width: 0; max-width: 62ch; }
.call-title { color: var(--white); margin: 0 0 .5em; font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.call-sub { color: var(--accent-2); margin: 0; font-size: 1.1rem; }
.call-box .btn { flex: 0 0 auto; }

/* ---------- Карточки записей ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    min-width: 0;
    transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-thumb { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.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.4rem 1.5rem 1.6rem;
    min-width: 0;
}
.card-tags, .entry-foot { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tag-chip {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.3;
    padding: .25em .6em;
    background: var(--bg-alt);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 2px;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}
.tag-chip:hover, .tag-chip:focus-visible { background: var(--accent); color: var(--white); text-decoration: none; }
.card-title { margin: 0 0 .4em; font-size: 1.2rem; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); }
.card-date { color: var(--muted); font-size: .85rem; margin-bottom: .7rem; }
.card-excerpt { color: var(--ink); font-size: .97rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .8rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
}
.empty-note { color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 80px; }
.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 2rem;
    overflow-wrap: break-word;
}
.crumbs a { color: var(--accent); }
.crumbs .sep { margin: 0 .35em; color: var(--muted); }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2rem; }
.page-title { margin: 0 0 .35em; }
.page-lead { color: var(--muted); font-size: 1.1rem; margin: 0; }

.entry {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2.4rem 2.6rem;
}
.entry-head { margin-bottom: 1.6rem; }
.entry-title { margin: 0 0 .35em; }
.entry-date { color: var(--muted); font-size: .9rem; }
.entry-cover { margin: 0 0 1.8rem; }
.entry-cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { color: var(--muted); font-size: .88rem; margin-top: .4em; }
.entry-foot { margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-inline: auto; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    background: var(--white);
    border-left: 1px solid var(--line-side);
    padding: 1.8rem 1.6rem;
    min-width: 0;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.widget-title { margin: 0 0 1rem; font-size: 1.1rem; }
.sidebar .widget-title { color: var(--ink); }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--accent); text-decoration: underline; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .6em 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar .post-date { display: block; color: var(--muted); font-size: .82rem; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.4rem 0; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    font: inherit;
    padding: .7em .9em;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--ink);
}
.seek-field:focus { border-color: var(--accent); outline: none; }
.seek-btn { padding: .7em 1.4em; }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: 2.6rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 2.6em;
    padding: .5em .85em;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    color: var(--accent);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color .2s, background-color .2s, color .2s;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; color: var(--muted); min-width: 0; }

/* ---------- Комментарии ---------- */
.talk {
    margin-top: 2.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem 2.4rem;
}
.talk-title { margin: 0 0 1.4rem; font-size: 1.4rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.6rem; border-left: 2px solid var(--bg-alt); }
.note-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.note-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .5rem; }
.note-head img { border-radius: 2px; display: block; }
.note-who { display: flex; flex-direction: column; }
.note-author { font-weight: 600; }
.note-date { font-size: .82rem; color: var(--muted); }
.note-wait { color: var(--accent); font-size: .9rem; }
.note-reply a { font-size: .9rem; font-weight: 600; }
.comment-respond { margin-top: 1.8rem; }
.comment-reply-title { font-size: 1.3rem; margin: 0 0 .8rem; }
.comment-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3em; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font: inherit;
    padding: .7em .9em;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; }
.talk-note, .talk-closed { color: var(--muted); font-size: .92rem; }

/* ---------- 404 ---------- */
.lost { max-width: 640px; }
.lost-code {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--accent);
    margin: 0 0 .1em;
}
.lost-home { margin-top: 1.4rem; }

/* ---------- Подвал ---------- */
.basement { background: var(--foot); color: #C5D0DC; }
.basement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
    padding: 64px 0 48px;
}
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.6rem; color: #C5D0DC; font-size: .95rem; }
.basement .widget-title { color: var(--white); font-size: 1.05rem; }
.basement .widget p { color: #C5D0DC; }
.basement a { color: #E8EEF4; text-decoration: none; }
.basement a:hover { color: var(--accent-2); text-decoration: underline; }
.basement ul { list-style: none; margin: 0; padding: 0; }
.basement li { padding: .35em 0; }
.basement .post-date { color: #8A9AB0; display: block; font-size: .82rem; }
.basement-legal { border-top: 1px solid #1C2A3E; }
.basement-legal p { margin: 0; padding: 1.2rem 0; font-size: .88rem; color: #8A9AB0; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    max-width: 960px;
    margin-inline: auto;
    padding: 1.1rem 1.4rem;
    background: var(--head);
    color: #E8EEF4;
    border-top: 3px solid var(--accent-2);
    border-radius: var(--radius);
}
.cookie-banner-text { margin: 0; font-size: .92rem; min-width: 0; }
.cookie-banner .btn { flex: 0 0 auto; padding: .6em 1.4em; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { flex: 1 0 100%; display: none; }
    .main-nav.is-open { display: block; }
    .main-nav-list { flex-direction: column; gap: 0; padding-bottom: .5rem; }
    .main-nav-list a { border-bottom: 1px solid #1F3048; padding: .8em 0; }
    .brand { flex: 1 1 0; }
    .tiles, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .figure-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .sidebar { border-left: 0; border-top: 3px solid var(--line-side); }
    .basement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .call-box { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .zone { padding: 56px 0; }
    .brand-tagline { display: none; }
    .brand-name { font-size: .88rem; }
    .brand-logo { width: 44px; height: 44px; }
    .tiles, .card-grid, .card-grid-two { grid-template-columns: minmax(0, 1fr); }
    .figures { grid-template-columns: minmax(0, 1fr); }
    .figure-cell { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
    .figure-cell:last-child { border-bottom: 0; }
    .figure-num { font-size: 2.4rem; }
    .lead-hero-inner { padding: 64px 0; }
    .lead-hero::after { left: 12px; height: 90px; }
    .tile { padding: 1.6rem 1.4rem; }
    .entry { padding: 1.6rem 1.3rem; }
    .talk { padding: 1.5rem 1.3rem; }
    .sidebar { padding: 1.5rem 1.3rem; }
    .call-box { padding: .5rem 0 .5rem 1.4rem; }
    .basement-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
