/*
Theme Name: dds_forkliftnesia.com
Description: Тема информационного сайта о вилочных погрузчиках и складской технике.
Author: Дмитрий Крылов
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fklnes
*/

/* ============================================================
   1. Базовые переменные и сброс
   ============================================================ */

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --dark: #0B1C2E;
    --dark-2: #1A3B4C;
    --ink: #1E293B;
    --muted: #64748B;
    --accent: #2A9D8F;
    --accent-2: #E9C46A;
    --line: #D1D9E0;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(30, 41, 59, 0.045) 0 1px, transparent 1px 64px),
        repeating-linear-gradient(90deg, rgba(30, 41, 59, 0.045) 0 1px, transparent 1px 64px);
    background-attachment: fixed;
}

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

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

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;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.45em;
}

/* ============================================================
   2. Ссылки и кнопки
   ============================================================ */

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

.entry-content a,
.widget a,
.crumbs a {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size 0.28s ease;
}

.entry-content a:hover,
.widget a:hover,
.crumbs a:hover {
    background-size: 100% 1px;
}

.btn {
    display: inline-block;
    padding: 0.72rem 1.6rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.3;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(11, 28, 46, 0.22);
    color: var(--white);
}

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

.btn-ghost:hover {
    background: var(--accent);
    color: var(--white);
}

.btn-light {
    border-color: var(--white);
    background: transparent;
    color: var(--white);
}

.btn-light:hover {
    background: var(--white);
    color: var(--dark);
}

/* ============================================================
   3. Каркас
   ============================================================ */

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

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

.layout-single {
    display: block;
}

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

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

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

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

.site-header {
    position: static;
    background: var(--dark);
    color: var(--white);
    border-bottom: 3px solid var(--accent);
}

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

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

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
    display: block;
    width: 52px;
    height: 52px;
}

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

.brand-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: 0.01em;
    color: var(--white);
    max-width: 34ch;
}

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

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.79rem;
    line-height: 1.45;
    color: #9CB0C2;
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: transparent;
    color: var(--white);
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--white);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

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

.crumbs {
    padding: 1rem 0 0.2rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

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

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

/* ============================================================
   6. Заголовки секций и типографика контента
   ============================================================ */

.section-title {
    position: relative;
    margin: 0 0 1.5rem;
    text-align: left;
}

.section-title::after {
    content: "";
    display: block;
    width: 5.5rem;
    height: 2px;
    margin-top: 0.7rem;
    background: var(--accent);
}

.section-title.on-dark,
.on-dark .section-title {
    color: var(--white);
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.9em;
}

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 0.2rem 0 0.2rem 1.3rem;
    border-left: 3px solid var(--accent);
    font-size: 1.08rem;
    color: var(--ink);
}

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

.entry-content img {
    display: block;
    height: auto;
    border-radius: 6px;
}

.entry-content table,
.comment-text table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}

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

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

.entry-content code {
    padding: 0.1rem 0.35rem;
    background: var(--bg-alt);
    border-radius: 3px;
    font-size: 0.92em;
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 4px solid var(--bg-alt);
    border-radius: 6px;
    transition: border-color 0.2s ease;
}

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

.card-thumb {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}

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

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.25rem 1.35rem;
}

.card-title {
    margin: 0 0 0.55rem;
    font-size: 1.16rem;
    line-height: 1.32;
}

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

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

.card-meta {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.card-excerpt {
    color: #3E4C5E;
    font-size: 0.95rem;
}

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

.card-foot {
    margin-top: auto;
    padding-top: 0.9rem;
}

.card-more {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.card-more:hover {
    color: var(--dark-2);
}

/* Бирка рубрики: левые углы скруглены, правые прямые */
.tagline {
    display: inline-block;
    margin-bottom: 0.7rem;
    padding: 0.2rem 0.75rem 0.24rem 0.7rem;
    border-radius: 12px 0 0 12px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.tagline:hover {
    background: var(--dark-2);
    color: var(--white);
}

/* Лента записей раздела */
.list-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}

/* ============================================================
   8. Главная страница
   ============================================================ */

.front-section {
    padding: 3rem 0;
}

.front-section + .front-section {
    border-top: 1px solid var(--line);
}

.front-alt {
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* 8.1 Hero */
.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    padding: 3.6rem 2.4rem;
    background-color: var(--dark);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 48px),
        linear-gradient(120deg, #0B1C2E 0%, #1A3B4C 100%);
    color: var(--white);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.4rem;
    align-items: center;
}

.hero h1 {
    margin: 0 0 1.1rem;
    color: var(--white);
    font-size: 3.5rem;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent-2);
}

.hero-lead {
    max-width: 58ch;
    margin-bottom: 1.7rem;
    font-size: 1.06rem;
    color: #C6D5E2;
}

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

.hero-art {
    min-width: 0;
}

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

.hero-index {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #8FA6BA;
}

/* 8.2 Рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.topic-tile {
    position: relative;
    display: block;
    min-width: 0;
    padding: 1.6rem 1.5rem 1.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.topic-icon {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 34px;
    height: 34px;
    color: var(--accent);
}

.topic-tile h3 {
    margin: 0 0 0.5rem;
    padding-right: 2.6rem;
    font-size: 1.2rem;
}

.topic-tile p {
    margin: 0;
    font-size: 0.94rem;
    color: var(--muted);
}

.topic-tile .topic-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.03em;
}

/* 8.3 Цитата / акцентный тезис */
.thesis {
    position: relative;
    overflow: hidden;
    padding: 2.8rem 2.4rem;
    border-left: 5px solid var(--accent);
    border-radius: 0 6px 6px 0;
    background-color: var(--ink);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 14px);
    color: var(--white);
}

.thesis p {
    position: relative;
    max-width: 34ch;
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
}

.thesis p em {
    font-style: normal;
    color: var(--accent-2);
}

.thesis .thesis-sub {
    max-width: 60ch;
    margin-top: 1.4rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: #C2CEDB;
    letter-spacing: 0;
}

/* 8.4 Чек-лист «Путь специалиста» */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.checklist li {
    display: flex;
    gap: 1.1rem;
    align-items: flex-start;
    margin: 0;
    padding: 1.1rem 0.2rem;
    border-bottom: 1px solid var(--line);
    min-width: 0;
}

.check-mark {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    margin-top: 0.15rem;
    color: var(--accent);
}

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

.check-title {
    display: block;
    font-weight: 600;
    font-size: 1.04rem;
    color: var(--ink);
}

.check-note {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.check-note::before {
    content: "·";
    margin-right: 0.45rem;
    color: var(--accent);
    font-weight: 700;
}

/* Блок последних записей */
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.latest-head .section-title {
    margin-bottom: 1.1rem;
}

/* ============================================================
   9. Записи и страницы
   ============================================================ */

.entry-header {
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.entry-header h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.03em;
}

.entry-meta span + span::before {
    content: "•";
    margin: 0 0.5rem;
    color: var(--line);
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

.page-head {
    margin-bottom: 1.8rem;
    padding: 1.8rem 2rem;
    border-radius: 6px;
    background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--white);
}

.page-head h1 {
    margin: 0;
    font-size: 2.4rem;
    color: var(--white);
}

.page-head p {
    max-width: 68ch;
    margin: 0.7rem 0 0;
    color: #C2D3E0;
    font-size: 0.98rem;
}

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

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

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    margin-bottom: 1.5rem;
    padding: 1.3rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 0.95rem;
}

.sidebar .widget-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--accent);
    font-size: 1.05rem;
    color: var(--ink);
}

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

.sidebar .widget li {
    margin: 0;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
}

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

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

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

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

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

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    background-color: var(--dark);
    color: #C2D3E0;
    border-top: 3px solid var(--accent);
}

.site-footer::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -30px;
    width: 420px;
    height: 240px;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 140' fill='none' stroke='%232A9D8F' stroke-width='3'%3E%3Cpath d='M30 110h150M60 110a16 16 0 1 0 0-.1M160 110a16 16 0 1 0 0-.1'/%3E%3Cpath d='M52 94V54h56v40M108 62h26l16 32h-42'/%3E%3Cpath d='M150 94V20M150 20h34M184 20v74M162 94h34'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.footer-cols {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding: 2.6rem 0 2rem;
}

.site-footer .widget {
    min-width: 0;
    font-size: 0.94rem;
    color: #C2D3E0;
}

.site-footer .widget-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 1.02rem;
    color: var(--white);
}

.site-footer .widget p {
    color: #C2D3E0;
}

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

.site-footer .widget li {
    margin: 0;
    padding: 0.32rem 0;
}

.site-footer .widget a {
    color: #DCE7F0;
}

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

.site-footer .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #8FA6BA;
}

.footer-bottom {
    position: relative;
    padding: 1.1rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.86rem;
    color: #8FA6BA;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.2rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 600;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.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-color: transparent;
    background: transparent;
    color: var(--muted);
}

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

.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.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: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    padding: 0.62rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-form button:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(11, 28, 46, 0.22);
}

.comments-area {
    margin-top: 2.6rem;
    padding: 1.6rem 1.7rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
}

.comments-area .comments-title,
.comments-area .comment-reply-title {
    margin-top: 0;
    font-size: 1.3rem;
}

.comment-list {
    margin: 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

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

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

.comment-head {
    display: flex;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.comment-author {
    font-weight: 700;
}

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

.comment-actions a {
    font-size: 0.86rem;
    font-weight: 600;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

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

.comment-form .form-submit input[type="submit"] {
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(11, 28, 46, 0.22);
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--dark);
    color: #DCE7F0;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 76ch;
    min-width: 0;
}

.cookie-banner a {
    color: var(--accent-2);
}

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.55rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cookie-accept:hover {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

/* ============================================================
   15. Страница 404 и служебные блоки
   ============================================================ */

.notice-plate {
    padding: 2rem 2.1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 0 6px 6px 0;
}

.notice-plate h1 {
    font-size: 2.4rem;
}

.notice-plate .search-form {
    max-width: 480px;
    margin: 1.2rem 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero h1 { font-size: 2.6rem; }

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

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

    .layout-single > .content-area {
        width: 100%;
    }

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

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

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

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.55rem; }

    .hero {
        padding: 2.2rem 1.3rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .thesis {
        padding: 1.8rem 1.4rem;
    }

    .thesis p {
        font-size: 1.5rem;
    }

    .page-head {
        padding: 1.4rem 1.2rem;
    }

    .page-head h1 {
        font-size: 1.8rem;
    }

    .notice-plate,
    .comments-area {
        padding: 1.4rem 1.2rem;
    }

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

    .header-inner {
        align-items: flex-start;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        width: 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .main-nav a {
        display: block;
        padding: 0.6rem 0;
    }

    .cookie-banner {
        padding: 0.9rem 1.1rem;
    }
}

@media (min-width: 601px) {
    .main-nav[hidden] {
        display: block !important;
    }
}

/* Ширина контента главной — 85% контейнера */
.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

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