/*
Theme Name: dds_evrovorota-ufa.ru
Author: Артём Валиев
Description: Тема для образовательной онлайн-платформы по инженерным системам ограждений и автоматизации.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rigel
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */

:root {
    --bg: #F2F5F9;
    --bg-alt: #E8EDF5;
    --dark: #0B1A2F;
    --text: #1A2634;
    --accent: #E94F37;
    --accent-dark: #C43A26;
    --amber: #F6A73C;
    --muted: #6B7A8F;
    --line: #CDD6E3;
    --hard-shadow: #D0D8E3;
    --hard-shadow-hover: #B0BCCF;
    --panel: #FFFFFF;
    --light-text: #C6D2E0;
    --font-head: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
    --font-body: "Roboto", "Open Sans", "Segoe UI", Arial, sans-serif;
    --gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23D0D8E3' stroke-opacity='0.06' stroke-width='6'%3E%3Ccircle cx='50' cy='50' r='30'/%3E%3Ccircle cx='50' cy='50' r='12'/%3E%3Cpath d='M50 6v16M50 78v16M6 50h16M78 50h16M19 19l11 11M70 70l11 11M81 19L70 30M30 70l-11 11'/%3E%3C/g%3E%3C/svg%3E");
}

/* Скрытие элементов, управляемых через атрибут hidden */
.cookie-banner[hidden] { display: none !important; }
[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.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(107, 122, 143, 0.15) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(107, 122, 143, 0.15) 0 1px, transparent 1px 40px);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.12;
    letter-spacing: 0.01em;
    margin: 0 0 0.7em;
}

p { margin: 0 0 1.1em; }

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

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

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.85rem 1.7rem;
    border-radius: 0;
    cursor: pointer;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
    border: 2px solid var(--accent);
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(2px);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: #FFFFFF;
}

.entry-content a,
.widget a,
.trail a,
.card-title a,
.brand-name a,
.nav-list a {
    position: relative;
    text-decoration: none;
}

.entry-content a::after,
.card-title a::after,
.nav-list a::after,
.widget a::after {
    content: "";
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -3px;
    height: 2px;
    background: var(--amber);
    transition: left 0.25s ease, right 0.25s ease;
}

.entry-content a:hover::after,
.card-title a:hover::after,
.nav-list a:hover::after,
.widget a:hover::after {
    left: 0;
    right: 0;
}

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

.site-head {
    background: var(--dark);
    border-bottom: 3px solid var(--accent);
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.brand-name a { color: #FFFFFF; }

.brand-tagline {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--light-text);
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    padding: 0.6rem 0.9rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 0;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle-label { margin-left: 6px; }

.nav-toggle.is-active { background: var(--accent); }
.nav-toggle.is-active .nav-toggle-bar { background: #FFFFFF; }

.site-nav {
    display: none;
    width: 100%;
}

.site-nav.is-open { display: block; }

.nav-list {
    list-style: none;
    margin: 0.8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.nav-list li { min-width: 0; }

.nav-list a {
    display: block;
    padding: 0.6rem 0;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.nav-list .current-menu-item > a { color: var(--amber); }

.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding-left: 0.9rem;
}

/* =========================================================
   4. Заголовки секций и разделители
   ========================================================= */

.sect-title {
    position: relative;
    display: inline-block;
    font-size: 2.1rem;
    letter-spacing: 0.02em;
    padding-bottom: 8px;
    margin-bottom: 2.4rem;
}

.sect-title::after {
    content: "";
    position: absolute;
    left: -12px;
    bottom: 0;
    width: calc(100% + 24px);
    height: 2px;
    background: var(--accent);
}

.sect-title-light { color: #FFFFFF; }

.sect-divider {
    width: 40%;
    height: 1px;
    background: var(--line);
    margin: 0 auto;
}

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

.fs {
    position: relative;
    padding: 120px 0;
    background: var(--bg);
    background-image: var(--gear);
    background-repeat: no-repeat;
    background-position: right 4% bottom 8%;
    background-size: 200px 200px;
}

.fs .shell { width: min(85%, 1180px); }

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

/* Hero */
.fs-hero {
    padding: 110px 0 120px;
    background-color: var(--dark);
    background-image: none;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(7px);
    opacity: 0.5;
}

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 26, 47, 0.55) 0%, rgba(11, 26, 47, 0.95) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.hero-text { flex: 1 1 420px; min-width: 0; }

.hero-title {
    font-size: 2.5rem;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-sub {
    margin: 0;
    max-width: 46rem;
    color: var(--light-text);
    font-size: 1.05rem;
}

.hero-action { flex: 0 0 auto; }

/* Шаги */
.steps-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.step { min-width: 0; }

.step-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.02em;
}

.step-title {
    font-size: 1.25rem;
    margin: 0.9rem 0 0.6rem;
    padding-top: 0.9rem;
    border-top: 2px solid var(--amber);
}

.step-text {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

/* Чек-лист */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    column-gap: 3rem;
}

.check-item {
    position: relative;
    min-width: 0;
    padding: 1rem 0 1rem 2.4rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
}

.check-item::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 1.35rem;
    width: 12px;
    height: 7px;
    border-left: 3px solid var(--amber);
    border-bottom: 3px solid var(--amber);
    transform: rotate(-45deg);
}

/* Статистика */
.fs-stats {
    background-color: var(--dark);
    background-image: none;
    clip-path: polygon(0 0, calc(100% - 54px) 0, 100% 54px, 100% 100%, 0 100%);
}

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

.stat {
    min-width: 0;
    padding: 0 1.2rem 0 0;
    border-left: 2px solid rgba(233, 79, 55, 0.5);
    padding-left: 1.2rem;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--accent);
    letter-spacing: 0.01em;
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    color: var(--light-text);
    font-size: 0.92rem;
    line-height: 1.5;
}

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

.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border: 0;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 6px 6px 0 var(--hard-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 6px 6px 0 var(--hard-shadow-hover);
}

.card:hover::before { opacity: 1; }

.card-thumb { display: block; }

.card-thumb a { display: block; }

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

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem 1.5rem 1.7rem;
    border-top: 1px solid var(--line);
}

.card-title {
    font-size: 1.22rem;
    margin: 0 0 0.6rem;
    padding-left: 10px;
}

.card-title::before {
    content: "◇";
    color: var(--amber);
    font-size: 8px;
    vertical-align: middle;
    margin-right: 10px;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

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

.card-excerpt { color: var(--text); font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.6rem 1.2rem;
    font-size: 0.88rem;
}

.empty-note {
    padding: 1.5rem 1.6rem;
    background: var(--panel);
    border-left: 3px solid var(--accent);
    color: var(--muted);
}

/* =========================================================
   7. Раскладки внутренних страниц
   ========================================================= */

.page-shell { padding: 2.4rem 0 4.5rem; }

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-title {
    font-size: 2rem;
    letter-spacing: 0.02em;
    margin-bottom: 1rem;
}

.trail {
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.trail a { color: var(--muted); }
.trail a:hover { color: var(--accent); }
.trail-sep { color: var(--line); margin: 0 0.2rem; }

.archive-note { margin-bottom: 1.6rem; color: var(--muted); }

/* =========================================================
   8. Запись и контент
   ========================================================= */

.entry {
    background: var(--panel);
    padding: 2rem 2.2rem 2.4rem;
    box-shadow: 6px 6px 0 var(--hard-shadow);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-bottom: 1.6rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

.entry-cover { margin-bottom: 1.8rem; }

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

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

.entry-content h2 {
    font-size: 1.6rem;
    margin-top: 2rem;
    padding-bottom: 8px;
    position: relative;
    display: inline-block;
}

.entry-content h2::after {
    content: "";
    position: absolute;
    left: -12px;
    bottom: 0;
    width: calc(100% + 24px);
    height: 2px;
    background: var(--accent);
}

.entry-content h3 { font-size: 1.3rem; margin-top: 1.6rem; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }

.entry-content li { margin-bottom: 0.5em; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--dark);
    color: #FFFFFF;
    border: 0;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
}

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

.entry-content img { display: block; height: auto; }

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

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

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

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.tag-chip {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    color: var(--dark);
    background: var(--bg-alt);
    border: 1px solid var(--amber);
}

.tag-chip:hover { background: var(--amber); color: var(--dark); }

.entry-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    font-size: 0.92rem;
}

.entry-nav a { color: var(--dark); }
.entry-nav a:hover { color: var(--accent); }

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

.sidebar {
    min-width: 0;
    background: var(--panel);
    padding: 1.6rem 1.6rem 1.8rem;
    box-shadow: 0 4px 18px rgba(11, 26, 47, 0.08);
    align-self: start;
}

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

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.sidebar .widget-title::before {
    content: "◇";
    color: var(--amber);
    font-size: 8px;
    vertical-align: middle;
    margin-right: 10px;
}

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

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

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

.sidebar a { color: var(--text); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; color: var(--muted); font-size: 0.8rem; }
.sidebar p { color: var(--text); font-size: 0.95rem; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.5rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.6rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.92rem;
    line-height: 1.2;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pager .page-numbers:hover {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--dark);
}

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

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

.comments-pagination { margin: 1.5rem 0; }

/* =========================================================
   11. Поиск
   ========================================================= */

.search-form { margin: 1.5rem 0; }

.search-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.88rem;
    color: var(--muted);
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.search-input {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
}

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

/* =========================================================
   12. Комментарии
   ========================================================= */

.talk {
    margin-top: 2.5rem;
    background: var(--panel);
    padding: 1.8rem 2rem 2rem;
    box-shadow: 6px 6px 0 var(--hard-shadow);
}

.talk-title {
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
}

.talk-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.talk-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--line);
}

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

.talk-body {
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border-left: 3px solid var(--amber);
}

.talk-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.talk-author {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--dark);
}

.talk-date { font-size: 0.82rem; color: var(--muted); }
.talk-hold { font-size: 0.85rem; color: var(--muted); }
.talk-text p:last-child { margin-bottom: 0; }
.talk-reply { margin-top: 0.6rem; font-size: 0.88rem; }
.talk-closed { color: var(--muted); }

.comment-respond { margin-top: 1.5rem; }

.comment-reply-title { font-size: 1.2rem; }

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-family: var(--font-head);
    color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--panel);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
}

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

.comment-form .submit {
    background: var(--accent);
    color: #FFFFFF;
    border: 2px solid var(--accent);
    padding: 0.85rem 1.7rem;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%);
}

.comment-form .submit:hover { background: var(--accent-dark); }

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

.site-foot {
    background: var(--dark);
    color: var(--light-text);
    padding: 3.5rem 0 2.2rem;
    border-top: 3px solid var(--accent);
}

.foot-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(198, 210, 224, 0.2);
}

.foot-col { min-width: 0; }

.foot-col .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.foot-col .widget-title::before {
    content: "◇";
    color: var(--amber);
    font-size: 8px;
    vertical-align: middle;
    margin-right: 10px;
}

.foot-col p,
.foot-col li { color: var(--light-text); font-size: 0.92rem; }

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

.foot-col li { padding: 0.4rem 0; }

.foot-col a { color: var(--light-text); }
.foot-col a:hover { color: var(--amber); }

.foot-col .post-date { display: block; color: #93A3B8; font-size: 0.8rem; }

.foot-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    padding: 1.6rem 0 0.4rem;
}

.foot-contact-label {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #93A3B8;
    text-transform: uppercase;
}

.foot-mail { color: var(--amber); font-size: 0.98rem; }
.foot-mail:hover { color: #FFFFFF; }

.foot-copy {
    margin: 1.2rem 0 0;
    font-size: 0.85rem;
    color: #93A3B8;
}

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

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

.cookie-text {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
    font-size: 0.88rem;
    color: var(--light-text);
}

.cookie-accept { flex: 0 0 auto; }

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

@media (min-width: 600px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-title { font-size: 3.2rem; }
    .sect-title { font-size: 2.4rem; }
    .page-title { font-size: 2.4rem; }
}

@media (min-width: 960px) {
    .nav-toggle { display: none; }

    .site-nav {
        display: block;
        width: auto;
        margin-left: auto;
    }

    .nav-list {
        flex-direction: row;
        align-items: center;
        gap: 1.8rem;
        margin: 0;
    }

    .nav-list a { padding: 0.3rem 0; }

    .nav-list .sub-menu {
        position: absolute;
        display: none;
        min-width: 200px;
        padding: 0.6rem 1rem;
        background: var(--dark);
        border: 1px solid rgba(198, 210, 224, 0.2);
        z-index: 40;
    }

    .nav-list li { position: relative; }
    .nav-list li:hover > .sub-menu { display: block; }

    .hero-title { font-size: 4.2rem; }
    .hero-sub { font-size: 1.15rem; }

    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .steps-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .stat-num { font-size: 3.8rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        gap: 6%;
    }
}

@media (max-width: 959px) {
    .layout-single { width: 100%; }
    .fs .shell { width: min(92%, 1180px); }
}

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

    .fs { padding: 64px 0; background-size: 140px 140px; }
    .fs-hero { padding: 70px 0 76px; }

    .hero-title { font-size: 2.1rem; }
    .sect-title { font-size: 1.7rem; margin-bottom: 1.8rem; }
    .page-title { font-size: 1.7rem; }

    .entry { padding: 1.4rem 1.2rem 1.6rem; }
    .talk { padding: 1.3rem 1.1rem 1.5rem; }
    .sidebar { padding: 1.2rem 1.1rem 1.4rem; }
    .card-body { padding: 1.2rem 1.2rem 1.4rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .empty-note { padding: 1.1rem 1.2rem; }

    .fs-stats { clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%); }

    .entry-content blockquote { padding: 1.2rem 1.2rem; }

    .brand-mark { width: 44px; height: 44px; }
    .head-inner { padding: 1.1rem 0; }
}
