/*
Theme Name: dds_tc-albi.ru
Theme URI: https://tc-albi.ru/
Author: Дмитрий Волков
Description: Информационная тема в стиле cold editorial tech: строгая типографика, холодная стальная палитра и журнальная подача практических руководств.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: albitc
*/

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

:root {
    --paper: #F4F7FC;
    --paper-alt: #E8EDF5;
    --head-bg: #FFFFFF;
    --deep: #0A192F;
    --plate: #13273E;
    --ink: #1A2634;
    --steel: #2B6C9E;
    --flame: #E74C3C;
    --mute: #6B7A8F;
    --line: #D1D9E6;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Literata", "Merriweather", Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image: radial-gradient(rgba(43, 108, 158, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

figure {
    margin: 1.8rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.18;
    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.15em;
}

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

li {
    margin-bottom: 0.4em;
}

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

/* Анимированное подчёркивание текстовых ссылок */
.entry-content a:not(.btn),
.widget a,
.trail a,
.comment-text a {
    position: relative;
    display: inline;
}

.entry-content a:not(.btn)::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: currentColor;
    opacity: 0;
    transform: translateY(4px);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.entry-content a:not(.btn):hover::after,
.comment-text a:hover::after {
    opacity: 1;
    transform: translateY(0);
}

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

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

.site-main {
    display: block;
    padding-bottom: 3.5rem;
}

/* ---------------------------------------------------------------
   2. Кнопки
   --------------------------------------------------------------- */

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 0.85rem 1.6rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

.btn-solid:hover,
.btn-solid:focus {
    background: var(--flame);
    border-color: var(--flame);
    color: #FFFFFF;
}

.btn-outline {
    background: transparent;
    border-color: var(--steel);
    color: var(--steel);
}

.btn-outline:hover,
.btn-outline:focus {
    border-color: var(--flame);
    color: var(--flame);
}

.btn-ghost-light {
    background: transparent;
    border-color: #FFFFFF;
    color: #FFFFFF;
}

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

/* ---------------------------------------------------------------
   3. Верхняя полоса, шапка, меню
   --------------------------------------------------------------- */

.market-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--steel) 0%, var(--flame) 100%);
}

.masthead {
    background: var(--head-bg);
    border-bottom: 1px solid rgba(209, 217, 230, 0.9);
}

.masthead-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.3rem 0;
}

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

.brand-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo {
    max-height: 56px;
    width: auto;
    display: block;
}

.brand-mark {
    display: block;
    width: 46px;
    height: 46px;
}

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

.brand-name {
    display: block;
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    max-width: 46ch;
}

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

.brand-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--mute);
    max-width: 60ch;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 4px;
    padding: 0.55rem 0.9rem;
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
}

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

.nav-toggle-bar + .nav-toggle-bar {
    margin-left: -14px;
}

.nav-toggle.is-active {
    border-color: var(--steel);
}

.primary-nav {
    flex: 1 1 100%;
    display: none;
}

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

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

.nav-list li {
    margin: 0;
}

.nav-list a {
    display: block;
    padding: 0.7rem 0.2rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.nav-list a:hover {
    color: var(--steel);
}

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

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

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

    .primary-nav {
        display: block;
        flex: 0 0 auto;
    }

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

    .nav-list > li {
        position: relative;
    }

    .nav-list a {
        border-bottom: 2px solid transparent;
        padding: 0.35rem 0;
    }

    .nav-list a:hover {
        border-bottom-color: var(--flame);
    }

    .nav-list .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 20;
        min-width: 220px;
        background: #FFFFFF;
        border: 1px solid var(--line);
        padding: 0.4rem 0.8rem;
    }

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

/* ---------------------------------------------------------------
   4. Секции главной
   --------------------------------------------------------------- */

.band {
    padding: 3.4rem 0;
    background: transparent;
}

.band-alt {
    background: var(--paper-alt);
}

.sec-title {
    position: relative;
    padding-left: 56px;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 40px;
    height: 2px;
    background: var(--steel);
}

.sec-lead {
    max-width: 68ch;
    color: var(--mute);
    margin: 0 0 2rem;
    padding-left: 56px;
}

.sec-divider {
    padding: 2.2rem 0 0;
    text-align: center;
}

.sec-dots {
    display: block;
    font-family: var(--sans);
    letter-spacing: 0.5em;
    color: var(--steel);
    font-size: 0.8rem;
    padding-bottom: 0.6rem;
}

.sec-divider::after {
    content: "";
    display: block;
    height: 1px;
    background: var(--line);
}

.band-more {
    margin: 2.2rem 0 0;
}

.empty-note {
    color: var(--mute);
    font-style: italic;
}

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: var(--plate);
    padding: 5rem 0 4.4rem;
    color: #FFFFFF;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(120deg, rgba(10, 25, 47, 0.93) 0%, rgba(19, 39, 62, 0.82) 45%, rgba(43, 108, 158, 0.55) 100%);
}

.hero-blob {
    position: absolute;
    right: -70px;
    bottom: -110px;
    width: 420px;
    height: 420px;
    z-index: 2;
    opacity: 0.05;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 3;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--flame);
    padding: 0.35rem 0.8rem;
    border-radius: 4px;
    margin-bottom: 1.4rem;
}

.hero-title {
    color: #FFFFFF;
    font-size: clamp(1.75rem, 4.2vw, 3.5rem);
    max-width: 22ch;
    margin-bottom: 0.6em;
}

.hero-lead {
    color: rgba(255, 255, 255, 0.88);
    max-width: 62ch;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* Статистика */

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

.figure {
    padding: 0.4rem 0 0.4rem 1.4rem;
    border-left: 1px solid var(--line);
    min-width: 0;
}

.figure-num {
    display: block;
    font-family: var(--sans);
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1;
    color: var(--steel);
    letter-spacing: -0.03em;
}

.figure-cap {
    display: block;
    margin-top: 0.6rem;
    font-family: var(--serif);
    font-size: 0.9rem;
    color: var(--mute);
}

@media (min-width: 600px) {
    .figures {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .figures {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 2rem;
    }
}

/* Таймлайн */

.timeline {
    position: relative;
    padding-left: 26px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: var(--mute);
    opacity: 0.5;
}

.tl-item {
    position: relative;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -26px;
    top: 1.5rem;
    width: 11px;
    height: 11px;
    background: var(--flame);
}

.tl-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.5rem 1.6rem;
    min-width: 0;
}

.tl-step {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 0.5rem;
}

.tl-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tl-card p {
    margin: 0;
    font-size: 0.96rem;
    color: var(--ink);
}

@media (min-width: 960px) {
    .timeline {
        padding-left: 0;
    }

    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .tl-item {
        width: 47%;
        margin-bottom: 2rem;
    }

    .tl-item.tl-left {
        margin-right: auto;
    }

    .tl-item.tl-right {
        margin-left: auto;
    }

    .tl-item.tl-left::before {
        left: auto;
        right: calc(-6.38% - 5.5px);
    }

    .tl-item.tl-right::before {
        left: calc(-6.38% - 5.5px);
    }
}

/* FAQ */

.faq {
    border-top: 1px solid var(--line);
}

.faq-item {
    border-bottom: 1px solid var(--line);
    background: transparent;
    transition: background-color 0.2s ease;
}

.faq-item[open] {
    background: var(--paper-alt);
}

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 1.2rem;
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q:hover {
    color: var(--steel);
}

.faq-sign {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.faq-sign::before,
.faq-sign::after {
    content: "";
    position: absolute;
    background: var(--steel);
    transition: opacity 0.2s ease;
}

.faq-sign::before {
    left: 0;
    top: 8px;
    width: 18px;
    height: 2px;
}

.faq-sign::after {
    left: 8px;
    top: 0;
    width: 2px;
    height: 18px;
}

.faq-item[open] .faq-sign::after {
    opacity: 0;
}

.faq-a {
    border-left: 4px solid var(--flame);
    margin: 0 1.2rem 1.3rem;
    padding: 0.2rem 1.2rem;
}

.faq-a p {
    margin: 0;
    color: var(--ink);
}

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

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

@media (min-width: 600px) {
    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    .cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 0;
    box-shadow: 4px 4px 0 var(--line);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--steel);
    box-shadow: 6px 8px 0 #BFC9DA;
}

.card-thumb {
    overflow: hidden;
}

.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;
    min-width: 0;
    padding: 1.3rem 1.4rem 1.4rem;
}

.tagline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--plate);
    color: #FFFFFF;
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    border-radius: 2px;
}

.tag-chip:hover {
    background: var(--steel);
    color: #FFFFFF;
}

.tag-chip i {
    display: block;
    width: 8px;
    height: 8px;
}

.card-title {
    font-size: 1.22rem;
    margin-bottom: 0.6rem;
}

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

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

.card-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: var(--ink);
    min-width: 0;
}

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

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--line);
}

.card-date {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--mute);
}

.card-link {
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--steel);
    border-bottom: 2px solid transparent;
}

.card-link:hover {
    color: var(--flame);
    border-bottom-color: var(--flame);
}

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

.page-shell {
    padding: 2rem 0 1rem;
}

.layout-single {
    display: block;
}

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

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

.layout-with-sidebar > * {
    min-width: 0;
}

@media (min-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: 67% 27%;
        justify-content: space-between;
        gap: 3%;
    }
}

@media (max-width: 600px) {
    .layout-single .content-area {
        width: 100%;
    }
}

.trail {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--mute);
    margin-bottom: 1.6rem;
}

.trail a {
    color: var(--steel);
}

.trail a:hover {
    color: var(--flame);
}

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

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

.page-title {
    position: relative;
    font-size: 2.6rem;
    padding-left: 56px;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 40px;
    height: 2px;
    background: var(--steel);
}

.page-sub {
    color: var(--mute);
    padding-left: 56px;
    max-width: 70ch;
}

/* Запись и страница */

.entry {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 2.2rem 2.2rem 2.4rem;
    margin-bottom: 2.4rem;
}

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

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--mute);
}

.meta-sep {
    margin: 0 0.4rem;
}

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

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

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

.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--plate);
    color: #FFFFFF;
    border-left: 6px solid var(--flame);
}

.entry-content blockquote p {
    margin: 0 0 0.6em;
    color: #FFFFFF;
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 1.4em;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    font-size: 0.95rem;
}

.entry-content table,
.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
}

.entry-content th,
.entry-content td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

.page-links {
    font-family: var(--sans);
    font-size: 0.9rem;
    margin-top: 1.4rem;
}

.entry-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.4rem;
}

@media (min-width: 600px) {
    .entry-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.entry-nav-item {
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.1rem 1.3rem;
    min-width: 0;
}

.entry-nav-item:hover {
    border-color: var(--steel);
}

.entry-nav-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.35rem;
}

.entry-nav-title {
    display: block;
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink);
}

.entry-nav-next {
    text-align: right;
}

.error-block {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 2.6rem 2.2rem;
    text-align: center;
}

.error-code {
    display: block;
    font-family: var(--sans);
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--flame);
    margin-bottom: 0.6rem;
}

.error-block .page-title,
.error-block .page-sub {
    padding-left: 0;
}

.error-block .page-title::before {
    display: none;
}

.error-block .page-sub {
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    margin: 1.6rem 0 0;
}

/* ---------------------------------------------------------------
   7. Пагинация
   --------------------------------------------------------------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 1rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.pager a.page-numbers:hover {
    border-color: var(--steel);
    color: var(--steel);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--mute);
}

/* ---------------------------------------------------------------
   8. Сайдбар и виджеты
   --------------------------------------------------------------- */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    position: relative;
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink);
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px dotted var(--line);
    font-size: 0.94rem;
    color: var(--ink);
}

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

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

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

.sidebar .widget .post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--mute);
    margin-top: 0.2rem;
}

.searchform {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: flex-end;
}

.searchform-row {
    display: block;
    flex: 1 1 220px;
    min-width: 0;
}

.searchform-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.35rem;
}

.searchform-field {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--serif);
    font-size: 0.95rem;
    color: var(--ink);
}

.searchform-field:focus {
    outline: none;
    border-color: var(--steel);
}

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

/* ---------------------------------------------------------------
   9. Подвал
   --------------------------------------------------------------- */

.site-footer {
    background: var(--deep);
    color: #C7D2E0;
    padding: 3.2rem 0 2rem;
    font-size: 0.95rem;
}

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

@media (min-width: 960px) {
    .footer-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.6rem;
    }
}

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

.site-footer .widget {
    margin-bottom: 1.4rem;
    color: #C7D2E0;
}

.site-footer .widget-title {
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    padding-left: 52px;
    margin-bottom: 1rem;
}

.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 40px;
    height: 2px;
    background: var(--flame);
}

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

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

.site-footer .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(199, 210, 224, 0.15);
}

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

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

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

.site-footer .widget .post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: #8FA1B6;
}

.footer-base {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(199, 210, 224, 0.18);
    text-align: center;
}

.footer-dots {
    display: block;
    letter-spacing: 0.5em;
    color: var(--steel);
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
}

.copyright {
    margin: 0;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: #8FA1B6;
}

/* ---------------------------------------------------------------
   10. Комментарии
   --------------------------------------------------------------- */

.comments {
    background: #FFFFFF;
    border: 1px solid var(--line);
    padding: 2rem 2.1rem 2.2rem;
    margin-bottom: 2.4rem;
}

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

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    padding-left: 1.4rem;
    border-left: 2px solid var(--line);
    margin-top: 1rem;
}

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

.comment-inner {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 1.1rem 1.3rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-family: var(--sans);
    font-weight: 700;
    color: var(--ink);
}

.comment-date {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--mute);
}

.comment-hold {
    font-style: italic;
    color: var(--mute);
}

.comment-text p {
    margin: 0 0 0.8em;
}

.comment-actions {
    font-family: var(--sans);
    font-size: 0.85rem;
}

.comment-actions a {
    color: var(--steel);
    font-weight: 600;
}

.comment-actions a:hover {
    color: var(--flame);
}

.comments-closed {
    color: var(--mute);
    font-style: italic;
}

.comment-respond {
    margin-top: 2rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

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

.comment-note {
    color: var(--mute);
    font-size: 0.9rem;
}

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.35rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--steel);
}

.comment-form .form-submit {
    margin-top: 1rem;
}

.comment-form .submit {
    background: var(--steel);
    border: 2px solid var(--steel);
    border-radius: 4px;
    color: #FFFFFF;
    font-family: var(--sans);
    font-weight: 600;
    padding: 0.85rem 1.6rem;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--flame);
    border-color: var(--flame);
}

/* ---------------------------------------------------------------
   11. Cookie-баннер
   --------------------------------------------------------------- */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--plate);
    border-top: 4px solid var(--flame);
    color: #FFFFFF;
    padding: 1.1rem 0;
}

.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.9rem;
    color: #DCE4EF;
}

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

/* ---------------------------------------------------------------
   12. Служебное и адаптив
   --------------------------------------------------------------- */

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text,
.wp-block-image figcaption {
    font-size: 0.85rem;
    color: var(--mute);
    font-family: var(--sans);
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }
    .page-title { font-size: 2.1rem; }
}

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

    .home .shell,
    .shell {
        width: 90%;
    }

    h2, .sec-title { font-size: 1.6rem; }

    .sec-title {
        padding-left: 34px;
    }

    .sec-title::before {
        width: 24px;
    }

    .sec-lead,
    .page-sub {
        padding-left: 34px;
    }

    .page-title {
        font-size: 1.85rem;
        padding-left: 34px;
    }

    .page-title::before {
        width: 24px;
    }

    .site-footer .widget-title {
        padding-left: 34px;
    }

    .site-footer .widget-title::before {
        width: 24px;
    }

    .band {
        padding: 2.4rem 0;
    }

    .hero {
        padding: 3.4rem 0 3rem;
    }

    .entry,
    .comments {
        padding: 1.5rem 1.3rem 1.6rem;
    }

    .error-block {
        padding: 2rem 1.3rem;
    }

    .tl-card {
        padding: 1.2rem 1.2rem;
    }

    .faq-q {
        padding: 1rem 0.9rem;
        font-size: 1rem;
    }

    .faq-a {
        margin: 0 0.9rem 1.1rem;
        padding: 0.2rem 1rem;
    }

    .cookie-banner {
        padding: 1rem 0;
    }

    .figure-num {
        font-size: 2.4rem;
    }

    .entry-nav-next {
        text-align: left;
    }
}
