/*
Theme Name: dds_tltweb.su
Theme URI: https://tltweb.su/
Author: Алексей Колесников
Description: Тема образовательной платформы об урбанистике, локальном бизнесе и развитии территорий. Стиль «Urban blueprint»: холодная чертёжная палитра, строгая сетка, бирюзовый акцент.
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: tltweb
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E6EDF3;
    --head: #0E1B2A;
    --foot: #0A1420;
    --side: #EDF2F7;
    --ink: #12202E;
    --teal: #00B8A9;
    --indigo: #3D5AFE;
    --muted: #6B7C8F;
    --line: #D3DEE8;
    --font-head: "Inter Tight", "Archivo", "Arial Narrow", Arial, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
    --shadow: 0 6px 18px rgba(14, 27, 42, .08);
    --shadow-deep: 0 12px 28px rgba(14, 27, 42, .14);
}

/* ---------- Сброс и база ---------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 210'%3E%3Cpath d='M0 210V150H30V120H55V135H70V90H78V70H80V90H95V110H120V60H150V110H165V140H190V100H200V80H204V48H206V80H215V100H240V130H265V75H300V130H320V115H345V95H360V38H362V95H380V120H410V85H440V125H460V105H480V145H510V120H535V160H560V210' fill='none' stroke='%233D5AFE' stroke-opacity='.06' stroke-width='1.5'/%3E%3C/svg%3E"),
        linear-gradient(rgba(211, 222, 232, .25) 1px, transparent 1px),
        linear-gradient(90deg, rgba(211, 222, 232, .25) 1px, transparent 1px);
    background-size: 620px auto, 24px 24px, 24px 24px;
    background-position: right 0 bottom 0, 0 0, 0 0;
    background-repeat: no-repeat, repeat, repeat;
    background-attachment: fixed, scroll, scroll;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal);
    z-index: 1000;
}
body.admin-bar::before { top: 32px; }
@media (max-width: 782px) { body.admin-bar::before { top: 46px; } }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 1.6em 0 .6em;
    font-weight: 700;
    overflow-wrap: break-word;
}
h1 { font-size: 2.3rem; line-height: 1.1; }
h2 { font-size: 1.8rem; position: relative; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: -.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
}

p { margin: 0 0 1.1em; }

a {
    color: var(--indigo);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s, color .2s;
}
a:hover {
    text-decoration-color: var(--teal);
    text-decoration-thickness: 2px;
}

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: .35em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    background: var(--side);
    border-left: 3px solid var(--teal);
    border-radius: 0 6px 6px 0;
    font-size: 1.12rem;
}
blockquote p:last-child { margin-bottom: 0; }

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

pre { overflow-x: auto; background: var(--head); color: #E6EDF3; padding: 1rem 1.2rem; border-radius: 6px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

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

/* ---------- Контейнер ---------- */

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .78rem 1.4rem;
    border-radius: 4px;
    border: 1px solid transparent;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 0 -1px rgba(0, 184, 169, .55), 0 8px 16px -8px rgba(0, 184, 169, .6);
    text-decoration: none;
}
.btn--fill { background: var(--teal); color: var(--head); border-color: var(--teal); }
.btn--fill:hover { color: var(--head); }
.btn--line { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn--line:hover { color: var(--indigo); }
.btn--on-dark { color: #C9D3FF; border-color: #6D83FF; }
.btn--on-dark:hover { color: #fff; }

/* ---------- Шапка ---------- */

.masthead { background: var(--head); color: #E6EDF3; padding: 1.15rem 0; }

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

.brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex: 1 1 320px;
    min-width: 0;
    color: #E6EDF3;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; gap: .15rem; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .98rem;
    line-height: 1.3;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    display: none;
    font-size: .82rem;
    line-height: 1.4;
    color: #8FA1B3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    background: transparent;
    color: #E6EDF3;
    border: 1px solid #2A4058;
    border-radius: 4px;
    padding: .55rem .9rem;
    font: 600 .95rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--teal);
    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 { display: none; flex-basis: 100%; }
.main-nav.is-open { display: block; }

.main-nav-list { list-style: none; margin: 0; padding: .5rem 0 0; border-top: 1px solid #1E3A5F; }
.main-nav-list li { margin: 0; position: relative; }
.main-nav-list a {
    display: block;
    padding: .7rem .2rem;
    color: #D8E2EC;
    font-family: var(--font-head);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.main-nav-list a:hover { color: #fff; border-bottom-color: var(--teal); text-decoration: none; }
.main-nav-list .current-menu-item > a,
.main-nav-list .current_page_item > a { color: var(--teal); }
.main-nav-list .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1rem; }

@media (min-width: 960px) {
    .brand-desc { display: -webkit-box; }
    .nav-toggle { display: none; }
    .masthead-inner { flex-wrap: nowrap; }
    .main-nav { display: block; flex: 0 0 auto; flex-basis: auto; }
    .main-nav-list { display: flex; gap: 1.4rem; padding: 0; border-top: 0; }
    .main-nav-list a { padding: .45rem 0; }
    .main-nav-list .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: -1rem;
        min-width: 220px;
        background: var(--head);
        padding: .5rem 1rem;
        border: 1px solid #1E3A5F;
        border-radius: 4px;
        z-index: 20;
    }
    .main-nav-list li:hover > .sub-menu,
    .main-nav-list li:focus-within > .sub-menu { display: block; }
}

/* ---------- Заголовки секций ---------- */

.sec-title {
    position: relative;
    margin: 0 0 2.4rem;
    padding-left: 1.15rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.2;
    max-width: 30ch;
}
.sec-title::before { left: -2px; top: -12px; }
.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 2.4em;
    background: var(--teal);
}

/* ---------- Главная ---------- */

.shell--front { width: 92%; }
@media (min-width: 960px) { .shell--front { width: 85%; } }

.fs { padding: 4rem 0; }
@media (min-width: 960px) { .fs { padding: 6rem 0; } }

.fs-hero,
.fs-accent {
    background-color: var(--head);
    background-image:
        linear-gradient(rgba(30, 58, 95, .4) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, .4) 1px, transparent 1px);
    background-size: 24px 24px;
    color: #C3CFDB;
}

.fs-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.fs-hero-text { min-width: 0; }
.fs-hero-title { color: #fff; margin: 0 0 1.2rem; font-size: 2.4rem; letter-spacing: -.02em; max-width: 14ch; }
.fs-hero-lead { color: #9FB0C2; font-size: 1.15rem; max-width: 46ch; margin: 0 0 2rem; }
.fs-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.fs-hero-art { margin: 0; min-width: 0; }
.fs-hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 560 / 460; }

@media (min-width: 960px) {
    .fs-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 4rem; }
    .fs-hero-title { font-size: 3.5rem; }
}

.fs-stats { background: var(--bg-alt); }
.fs-stats-plate {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.2rem 1.4rem;
}
.stat { display: flex; flex-direction: column; gap: .5rem; padding: 0 1.1rem; min-width: 0; border-left: 1px solid var(--line); }
.stat:nth-child(2n+1) { border-left: 0; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: 2.2rem; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat-label { font-size: .92rem; line-height: 1.45; color: var(--muted); }

@media (max-width: 600px) {
    .fs-stats-plate { grid-template-columns: minmax(0, 1fr); padding: 1.8rem 1.4rem; row-gap: 1.6rem; }
    .stat { border-left: 0; padding: 0; }
    .stat + .stat { border-top: 1px solid var(--line); padding-top: 1.6rem; }
}
@media (min-width: 960px) {
    .fs-stats-plate { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 2.8rem 2rem; }
    .stat { padding: 0 1.6rem; }
    .stat:nth-child(2n+1) { border-left: 1px solid var(--line); }
    .stat:first-child { border-left: 0; padding-left: .4rem; }
    .stat-num { font-size: 3rem; }
}

.fs-latest { background: transparent; }
.fs-latest-all { margin: 2.4rem 0 0; }
.empty-note { color: var(--muted); }

.fs-zigzag { background: var(--bg-alt); }
.zz-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: center; }
.zz-row + .zz-row { margin-top: 3.5rem; }
.zz-text { min-width: 0; }
.zz-text h3 { margin-top: 0; font-size: 1.6rem; }
.zz-text p { max-width: 60ch; }
.zz-media {
    margin: 0;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.2rem;
}
.zz-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }

@media (min-width: 960px) {
    .zz-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
    .zz-row + .zz-row { margin-top: 5rem; }
    .zz-row--rev .zz-media { order: -1; }
}

.fs-faq { background: transparent; }
.faq-list { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.faq-item[open] { box-shadow: inset 2px 0 0 var(--teal); }
.faq-item summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    padding: 1.2rem 3rem 1.2rem 1.2rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--teal);
    line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { color: var(--indigo); }
.faq-answer { padding: 0 1.2rem 1.3rem; color: var(--ink); }
.faq-answer p { margin: 0; max-width: 70ch; }

/* ---------- Карточки ---------- */

.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
@media (min-width: 601px) {
    .card-grid--two, .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
    .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-deep); border-color: var(--teal); }

.card-thumb { position: relative; background: var(--bg-alt); }
.card-thumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--teal);
    z-index: 2;
}
.card-thumb a { display: block; line-height: 0; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-thumb-plan {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--head);
    background-image:
        linear-gradient(rgba(30, 58, 95, .6) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 58, 95, .6) 1px, transparent 1px),
        linear-gradient(135deg, transparent 48%, rgba(0, 184, 169, .35) 49%, rgba(0, 184, 169, .35) 51%, transparent 52%);
    background-size: 24px 24px, 24px 24px, 100% 100%;
}

.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.card-cat {
    align-self: flex-start;
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: .5rem;
}
.card-cat:hover { color: var(--indigo); }
.card-title { margin: 0 0 .7rem; font-size: 1.22rem; line-height: 1.3; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--indigo); }
.card-excerpt { color: #3A4B5C; font-size: .98rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .9rem;
    border-top: 1px solid var(--line);
    font-size: .88rem;
}
.card-date { color: var(--muted); }
.card-more { font-weight: 600; font-family: var(--font-head); }

/* ---------- Внутренние страницы ---------- */

.site-main { padding-bottom: 4.5rem; }

.breadcrumbs { margin: 2rem 0 1.6rem; font-size: .92rem; color: var(--muted); overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--indigo); }
.breadcrumbs .sep { color: var(--teal); margin: 0 .25rem; }
.breadcrumbs span:last-child { color: var(--ink); }

.layout-with-sidebar { display: block; }
.layout-single { display: block; }
.layout-single .content-area { width: 100%; }
.content-area { min-width: 0; }

@media (min-width: 960px) {
    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
}

.list-head { margin-bottom: 2rem; }
.list-title { margin: 0 0 .6rem; }
.list-desc { color: var(--muted); max-width: 64ch; }
.list-desc p { margin: 0; }

.entry-plate {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 1.6rem 1.3rem;
    min-width: 0;
}
@media (min-width: 601px) { .entry-plate { padding: 2.4rem 2.6rem; } }

.entry-head { margin-bottom: 1.6rem; }
.entry-title { margin: 0 0 .7rem; hyphens: auto; }
@media (min-width: 960px) { h1, .entry-title, .list-title { font-size: 3.5rem; } }
.entry-meta { color: var(--muted); font-size: .92rem; }
.entry-meta .sep { margin: 0 .4rem; color: var(--line); }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: 4px; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; }
.entry-content img { display: block; border-radius: 4px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); margin-top: .4rem; }
.entry-pages { margin-top: 1.5rem; font-weight: 600; }
.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a {
    display: inline-block;
    padding: .3rem .7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: .85rem;
    text-decoration: none;
    color: var(--ink);
}
.entry-tags a:hover { border-color: var(--teal); color: var(--indigo); }

.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    margin-top: 3rem;
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.8rem 1.5rem;
    color: var(--ink);
}
@media (min-width: 960px) { .sidebar { margin-top: 0; } }
.sidebar .widget + .widget { margin-top: 2.2rem; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-left: .8rem;
    border-left: 2px solid var(--teal);
    font-size: 1.1rem;
    color: var(--ink);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .6rem 0; margin: 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; font-weight: 600; }
.sidebar .widget a:hover { color: var(--indigo); text-decoration: underline; text-decoration-color: var(--teal); }
.sidebar .widget .post-date { display: block; font-size: .82rem; color: var(--muted); margin-top: .15rem; }
.sidebar .widget p { color: var(--ink); }

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

.tlt-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.6rem 0 0; }
.tlt-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, border-color .2s, box-shadow .2s;
}
.tlt-pager a.page-numbers:hover {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px -6px rgba(0, 184, 169, .7);
}
.tlt-pager .page-numbers.current { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.tlt-pager .page-numbers.dots { border: 0; background: transparent; min-width: auto; padding: 0 .3rem; }

/* ---------- Поиск ---------- */

.seek { display: flex; gap: .5rem; margin: 1.2rem 0; max-width: 560px; }
.seek-field {
    flex: 1;
    min-width: 0;
    padding: .75rem .9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}
.seek-field:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(61, 90, 254, .15); }
.seek-btn { flex: 0 0 auto; }

.lost-code { font-family: var(--font-head); font-weight: 700; font-size: 4.5rem; line-height: 1; color: var(--teal); margin: 0 0 .5rem; }
.lost-home { margin-top: 1.5rem; }

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

.talk {
    margin-top: 2.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.3rem;
}
@media (min-width: 601px) { .talk { padding: 2.2rem 2.6rem; } }
.talk-title { margin-top: .6rem; font-size: 1.5rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.talk-item { margin: 0 0 1.4rem; }
.talk-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.talk-head img { display: block; border-radius: 4px; }
.talk-who { display: flex; flex-direction: column; }
.talk-author { font-weight: 600; font-family: var(--font-head); }
.talk-date { font-size: .82rem; color: var(--muted); }
.talk-wait { color: var(--muted); font-style: italic; }
.talk-reply a { font-size: .9rem; font-weight: 600; }
.comment-respond { margin-top: 1.5rem; }
.comment-reply-title { font-size: 1.35rem; margin-top: 0; }
.comment-form label { display: block; font-weight: 600; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    color: var(--ink);
    background: var(--bg);
}
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.talk-note, .talk-closed { color: var(--muted); font-size: .92rem; }

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

.site-footer { background: var(--foot); color: #B8C6D4; padding: 4rem 0 0; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 601px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col { min-width: 0; }
.site-footer .widget + .widget { margin-top: 2rem; }
.site-footer .widget-title { color: #FFFFFF; font-size: 1.1rem; margin: 0 0 1rem; }
.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget .textwidget { color: #B8C6D4; font-size: .96rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { margin: 0 0 .55rem; }
.site-footer .widget a { color: #7FE3DA; text-decoration: none; }
.site-footer .widget a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--teal); }
.site-footer .widget .post-date { color: #8C9DB0; font-size: .82rem; display: block; }
.footer-base { margin-top: 3rem; padding: 1.4rem 0 1.6rem; border-top: 1px solid #1B2B3D; }
.footer-base p { margin: 0; color: #8C9DB0; font-size: .88rem; }

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

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

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1rem 1.4rem;
    flex-wrap: wrap;
    background: var(--head);
    color: #D8E2EC;
    border: 1px solid #1E3A5F;
    border-left: 3px solid var(--teal);
    border-radius: 6px;
    padding: 1.1rem 1.4rem;
    box-shadow: 0 14px 30px rgba(10, 20, 32, .35);
}
.cookie-text { margin: 0; flex: 1 1 280px; min-width: 0; font-size: .92rem; line-height: 1.5; color: #D8E2EC; }
.cookie-text a { color: #7FE3DA; }
.cookie-accept { flex: 0 0 auto; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
