/*
Theme Name: dds_profitns.ru
Theme URI: https://profitns.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: prfns
*/

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

/* ---------- Токены ---------- */
:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --bg-accent-end: #DCE6F0;
    --head: #0F2A43;
    --foot: #0A1E30;
    --ink: #1B2A3A;
    --teal: #1E9E8F;
    --teal-dark: #157A6E;
    --steel: #3A6EA5;
    --muted: #6B7F94;
    --rule: #D0DCE8;
    --pattern: rgba(224, 232, 240, 0.3);
    --shadow: 0 4px 12px rgba(15, 42, 67, 0.08);
    --shadow-deep: 0 10px 24px rgba(15, 42, 67, 0.14);
    --font-head: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

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: repeating-linear-gradient(45deg, var(--pattern) 0, var(--pattern) 1px, transparent 1px, transparent 12px);
}

/* Полупрозрачный щит в правом нижнем углу */
body::after {
    content: "";
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 150px;
    height: 175px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 140'%3E%3Cpath d='M60 6 L110 24 V64 C110 96 88 120 60 132 C32 120 10 96 10 64 V24 Z' fill='%231E9E8F' fill-opacity='.25' stroke='%231E9E8F' stroke-width='4'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 40;
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--head);
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2rem; margin-top: 0; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
@media (min-width: 960px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 1.8rem; }
}

/* Бирюзовая точка перед H2 и H3 */
h2::before, h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: 0.55em;
    vertical-align: 0.2em;
}

a { color: var(--teal); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* Анимированное подчёркивание текстовых ссылок */
.entry-content a, .text-link, .widget a, .crumbs a, .card-more, .archive-desc a, .talk a, .cookie-banner-text a {
    background-image: linear-gradient(currentColor, currentColor);
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}
.entry-content a:hover, .text-link:hover, .widget a:hover, .crumbs a:hover, .card-more:hover, .archive-desc a:hover, .talk a:hover, .cookie-banner-text a:hover {
    background-size: 100% 1px;
}

ul, ol { padding-left: 1.3em; }

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

blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.4em;
    background: #fff;
    border-left: 4px solid var(--teal);
    border-radius: 0 10px 10px 0;
    box-shadow: var(--shadow);
}
blockquote p:last-child { margin-bottom: 0; }

pre { overflow-x: auto; background: #fff; padding: 1em 1.2em; border-radius: 8px; border: 1px solid var(--rule); }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    background: var(--teal);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-left: auto; margin-right: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.3;
    text-align: center;
    padding: 0.8em 1.7em;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    white-space: normal;
}
.btn-fill { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-fill:hover { background: #157A6E; border-color: #157A6E; color: #fff; box-shadow: 0 6px 14px rgba(21, 122, 110, 0.28); }
.btn-ghost { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-ghost:hover { background: var(--teal); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost-light:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Шапка ---------- */
.masthead { background: var(--head); color: #fff; }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 0 0.9rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
    min-width: 0;
}
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; max-width: 760px; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
    color: #fff;
    overflow-wrap: break-word;
}
.brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A9BCCF;
    overflow-wrap: break-word;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    font: 600 0.9rem var(--font-head);
    cursor: pointer;
    flex: 0 0 auto;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    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; }

.main-nav { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.main-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem 1.8rem;
}
.main-nav-list li { position: relative; }
.main-nav-list a {
    display: block;
    padding: 0.85rem 0;
    color: #DCE6F0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav-list a:hover,
.main-nav-list .current-menu-item > a { color: #fff; border-bottom-color: var(--teal); }
.main-nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 220px;
    background: var(--head);
    box-shadow: var(--shadow-deep);
    border-radius: 0 0 8px 8px;
    display: none;
    z-index: 30;
}
.main-nav-list li:hover > .sub-menu, .main-nav-list li:focus-within > .sub-menu { display: block; }
.main-nav-list .sub-menu a { padding: 0.5rem 1rem; }

.tide-line { height: 3px; background: var(--teal); width: 100%; }

/* ---------- Хлебные крошки ---------- */
.crumbs {
    font-size: 0.88rem;
    color: var(--muted);
    padding: 1.4rem 0 0.4rem;
    overflow-wrap: break-word;
}
.crumbs a { color: var(--steel); }
.crumbs-sep { margin: 0 0.3em; color: var(--teal); }

/* ---------- Раскладки ---------- */
.page-wrap { padding-bottom: 4rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
    margin-top: 1.2rem;
}
@media (min-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 6%; }
}
.layout-single { display: block; margin-top: 1.2rem; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 1.8rem; }
.page-title { margin-bottom: 0.4rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    color: var(--muted);
    font-size: 0.9rem;
}
.entry-meta a { color: var(--steel); }
.archive-desc { color: var(--muted); }

.entry-content { overflow-wrap: break-word; hyphens: auto; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.4em; }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.entry-tags a {
    font-size: 0.85rem;
    color: var(--steel);
    background: var(--bg-alt);
    padding: 0.3em 0.75em;
    border-radius: 8px;
}
.entry-tags a:hover { background: var(--teal); color: #fff; }

.empty-note {
    background: #fff;
    padding: 1.6rem 1.8rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}
@media (min-width: 600px) {
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .layout-with-sidebar .card-grid-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    min-width: 0;
}
.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: transparent;
    transition: background-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); }
.card:hover::after { background: var(--teal); }

.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: saturate(0.82) hue-rotate(-6deg) brightness(0.98);
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.35rem 1.5rem;
    min-width: 0;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}
.card-cat { color: var(--steel); }
.card-title {
    font-size: 1.12rem;
    margin: 0 0 0.6rem;
    overflow-wrap: break-word;
    hyphens: auto;
}
.card-title a { color: var(--head); transition: color 0.2s ease; }
.card-title a:hover { color: var(--teal); }
.card-excerpt { font-size: 0.95rem; color: #34475A; overflow-wrap: break-word; hyphens: auto; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 0.6rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--teal);
}

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 2.6rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.pager .page-numbers.current { background: var(--teal); color: #fff; }
.pager .page-numbers.dots { background: none; box-shadow: none; min-width: auto; padding: 0.5rem 0.3rem; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.sidebar .widget {
    background: #FFFFFF;
    color: var(--ink);
    padding: 1.4rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 42, 67, 0.07);
}
.sidebar .widget-title {
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
    color: var(--head);
    border-left: 4px solid var(--teal);
    padding-left: 0.7rem;
}
.sidebar .widget-title::before { display: none; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.55rem 0; border-bottom: 1px solid var(--rule); color: var(--ink); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--teal); }
.sidebar .widget .post-date { display: block; font-size: 0.82rem; color: var(--muted); }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.2rem 0; }
.seek-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 2px solid var(--rule);
    border-radius: 8px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
.seek-field:focus { border-color: var(--teal); outline: none; }
.seek-btn { flex: 0 0 auto; }

/* ---------- Главная ---------- */
.fs-inner { width: 85%; margin-left: auto; margin-right: auto; }

.front-section { padding: 4.5rem 0; }
.sec-title {
    border-left: 4px solid var(--teal);
    padding-left: 0.9rem;
    margin: 0 0 2rem;
    font-size: 1.6rem;
}
@media (min-width: 960px) { .sec-title { font-size: 2rem; } }

.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-bottom: 2rem;
}
.fs-head .sec-title { margin-bottom: 0; }
.text-link { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; }

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 6rem 0 6.5rem;
    background: var(--head);
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 42, 67, 0.6);
    z-index: 1;
}
.hero .shell { position: relative; z-index: 2; }
.hero-inner { max-width: 820px; margin-left: 0; }
.hero-title { color: #fff; font-size: 2.2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 1rem; }
@media (min-width: 960px) { .hero-title { font-size: 2.8rem; } }
.hero-title::before { display: none; }
.hero-lead { color: #D3DEE9; font-size: 1.12rem; max-width: 640px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-shield {
    position: absolute;
    right: 4%;
    bottom: 1.5rem;
    width: 140px;
    height: auto;
    z-index: 2;
    opacity: 0.55;
}

/* Статистика */
.fs-stats { background: var(--bg-alt); }
.stats-row {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 0;
}
@media (min-width: 960px) {
    .stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0 1.4rem;
    border-left: 1px solid var(--rule);
    min-width: 0;
}
.stat:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 959px) {
    .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}
.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--head);
}
.stat-cap { color: var(--muted); font-size: 0.95rem; line-height: 1.45; overflow-wrap: break-word; }

/* Последние записи */
.fs-latest { background: var(--bg); }

/* Пунктир «маршрут» */
.route-dots {
    width: 60%;
    height: 6px;
    margin: 0 auto;
    background-image: radial-gradient(circle, var(--teal) 1.6px, transparent 2.2px);
    background-size: 14px 6px;
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.8;
}

/* Шаги */
.fs-steps { background: var(--bg); }
.steps-line {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
}
@media (min-width: 960px) {
    .steps-line { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem; }
}
.step-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.6rem 1.4rem 1.5rem;
    min-width: 0;
}
.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    border: 2px solid var(--teal);
    color: var(--teal);
    background: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}
.step-title { font-size: 1.08rem; margin: 0 0 0.5rem; }
.step-card p { font-size: 0.94rem; color: #34475A; margin: 0; overflow-wrap: break-word; hyphens: auto; }
/* соединительные пунктирные линии */
.step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 2.9rem;
    top: 100%;
    height: 2.4rem;
    border-left: 2px dashed var(--teal);
}
@media (min-width: 960px) {
    .step-card:not(:last-child)::after {
        left: calc(1.4rem + 3.2rem);
        top: calc(1.6rem + 1.6rem);
        height: 0;
        width: calc(100% - 3.2rem - 1.4rem + 1.8rem + 1.4rem);
        border-left: 0;
        border-top: 2px dashed var(--teal);
        z-index: 1;
    }
}

/* CTA */
.fs-cta { padding: 4.5rem 0 5rem; }
.cta-inner {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.8rem 2.5rem;
    background: linear-gradient(120deg, #0F2A43 0%, #1E9E8F 100%);
    color: #fff;
    border-radius: 10px;
    padding: 3rem 3rem;
    box-shadow: var(--shadow-deep);
}
.cta-text { flex: 1 1 380px; min-width: 0; position: relative; z-index: 1; }
.cta-title { color: #fff; margin: 0 0 0.7rem; font-size: 1.7rem; }
@media (min-width: 960px) { .cta-title { font-size: 2.1rem; } }
.cta-title::before { background: #fff; }
.cta-text p { color: #DDEBF2; margin: 0; max-width: 600px; }
.btn-cta { position: relative; z-index: 1; }
.cta-shield {
    position: absolute;
    right: -10px;
    bottom: -20px;
    width: 170px;
    height: auto;
    opacity: 0.35;
    pointer-events: none;
}

/* ---------- Комментарии ---------- */
.talk { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.talk-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.talk-list .children { list-style: none; padding-left: 1.6rem; margin: 0; }
.talk-body {
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
}
.talk-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.talk-head img { border-radius: 50%; }
.talk-author { display: flex; flex-direction: column; line-height: 1.3; }
.talk-author time { font-size: 0.82rem; color: var(--muted); }
.talk-wait { font-size: 0.88rem; color: var(--steel); }
.talk-text { overflow-wrap: break-word; }
.talk-reply a { font-size: 0.88rem; font-weight: 600; }
.comment-respond {
    background: #fff;
    padding: 1.6rem 1.8rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.comment-reply-title { margin-top: 0; }
.comment-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.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: 2px solid var(--rule);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
.comment-form textarea:focus, .comment-form input:focus { border-color: var(--teal); outline: none; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
    background: var(--teal);
    color: #fff;
    border: 2px solid var(--teal);
    border-radius: 8px;
    padding: 0.75em 1.6em;
    font: 600 0.95rem var(--font-head);
    cursor: pointer;
}
.comment-form .submit:hover { background: #157A6E; border-color: #157A6E; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 2rem 0 1rem; }
.lost-code {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 6rem;
    line-height: 1;
    color: var(--rule);
    margin: 0 0 0.5rem;
}
.lost .page-title::before { display: none; }
.lost .seek { max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Подвал ---------- */
.colophon { background: var(--foot); color: #C3D1DF; margin-top: 0; }
.colophon-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding: 3.2rem 0 2.6rem;
}
@media (min-width: 600px) { .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .colophon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.colophon-col { min-width: 0; }
.colophon .widget { color: #C3D1DF; font-size: 0.95rem; }
.colophon .widget + .widget { margin-top: 1.6rem; }
.colophon .widget-title {
    color: #FFFFFF;
    font-size: 1.05rem;
    margin: 0 0 1rem;
}
.colophon .widget p { color: #C3D1DF; }
.colophon .widget a { color: #8FD6CC; }
.colophon .widget a:hover { color: #FFFFFF; }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { padding: 0.35rem 0; color: #C3D1DF; }
.colophon .widget .post-date { color: #8FA3B8; font-size: 0.82rem; }
.colophon-base { border-top: 1px solid rgba(208, 220, 232, 0.12); }
.colophon-base p { margin: 0; padding: 1.2rem 0; font-size: 0.85rem; color: #8FA3B8; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.4rem;
    background: var(--head);
    color: #DCE6F0;
    border-radius: 10px;
    border-top: 3px solid var(--teal);
    box-shadow: 0 10px 30px rgba(10, 30, 48, 0.3);
}
.cookie-banner-text { margin: 0; flex: 1 1 320px; font-size: 0.9rem; min-width: 0; }
.cookie-banner-text a { color: #8FD6CC; }

/* ---------- Адаптив ---------- */
@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .main-nav { display: none; }
    .main-nav.is-open { display: block; }
    .main-nav-list { flex-direction: column; gap: 0; padding: 0.4rem 0 0.8rem; }
    .main-nav-list a { padding: 0.7rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .main-nav-list .sub-menu { position: static; display: block; box-shadow: none; padding-left: 1rem; }
    .brand-desc { font-size: 0.76rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .fs-inner, .layout-single > .content-area { width: 100%; }
    .front-section { padding: 3rem 0; }
    .hero { padding: 4rem 0 5rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-shield { width: 90px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-desc { display: block; }
    .stat { padding: 0 0.9rem; }
    .stat-num { font-size: 2rem; }
    .cta-inner { padding: 2rem 1.4rem; }
    .fs-cta { padding: 3rem 0 3.5rem; }
    .empty-note, .comment-respond { padding: 1.3rem 1.2rem; }
    .sidebar .widget { padding: 1.2rem 1.2rem; }
    .route-dots { width: 80%; }
    .lost-code { font-size: 4.5rem; }
}
