/*
Theme Name: dds_thepovod.ru
Theme URI: https://thepovod.ru/
Author: Екатерина Верес
Description: Тема для афиши и контент-платформы образовательных событий POVOD: лекции, мастер-классы, воркшопы и сообщество участников.
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: povod
*/

/* ---------- Переменные ---------- */
:root {
    --bg: #F7F9FA;
    --bg-alt: #E6F4F4;
    --bg-accent-end: #D0EDED;
    --ink-dark: #0A2E36;
    --text: #10333A;
    --teal: #00B8A9;
    --teal-dark: #009B8E;
    --coral: #FF6B5E;
    --gold: #F4B942;
    --lavender: #9B8EC4;
    --muted: #6B8A8F;
    --line: #D9ECEC;
    --radius-btn: 6px;
    --radius-card: 10px;
    --glow: 0 6px 22px rgba(0, 184, 169, .14);
    --glow-strong: 0 14px 34px rgba(0, 184, 169, .26);
    --font-head: "Unbounded", "Montserrat", "Arial Black", system-ui, sans-serif;
    --font-body: "Nunito", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(217, 236, 236, .4) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(217, 236, 236, .4) 0 1px, transparent 1px 24px);
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.22;
    margin: 1.6em 0 .6em;
    font-weight: 700;
    letter-spacing: -.01em;
}
h1, h2 { text-transform: uppercase; }
h1 { font-size: 3.2rem; font-weight: 800; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5, h6 { font-size: 1rem; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--coral);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-style: italic;
}
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid #B9DCDC; }
th, td { border: 1px solid #B9DCDC; padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 700; }
pre { overflow-x: auto; background: #0A2E36; color: #E6F4F4; padding: 1rem 1.2rem; border-radius: 8px; }
code { font-size: .92em; }
hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }

a { color: var(--teal-dark); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--coral); }

/* Анимированное подчёркивание текстовых ссылок */
.entry-content a,
.page-intro a,
.crumbs a,
.sidebar .widget a,
.basement .widget a,
.card-title a,
.talk a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .3s ease, color .25s ease;
    padding-bottom: 1px;
}
.entry-content a:hover,
.page-intro a:hover,
.crumbs a:hover,
.sidebar .widget a:hover,
.basement .widget a:hover,
.card-title a:hover,
.talk a:hover { background-size: 100% 2px; color: var(--coral); }

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

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .8rem 1.5rem;
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .03em;
    line-height: 1.2;
    border-radius: var(--radius-btn);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.btn-fill { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-fill:hover, .btn-fill:focus-visible { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 184, 169, .35); }
.btn-line { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-line:hover, .btn-line:focus-visible { background: var(--coral); color: #fff; box-shadow: 0 10px 22px rgba(255, 107, 94, .35); }

/* ---------- Цветные точки-метки ---------- */
.topic-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: .55em;
    vertical-align: middle;
    position: relative;
    top: -.12em;
    flex: none;
}
.dot-teal { background: var(--teal); }
.dot-coral { background: var(--coral); }
.dot-gold { background: var(--gold); }
.dot-lavender { background: var(--lavender); }

/* ---------- Полоса-гирлянда ---------- */
.garland {
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 36px, var(--coral) 36px 72px);
}

/* ---------- Шапка ---------- */
.masthead {
    position: relative;
    background: var(--ink-dark);
    color: #E6F4F4;
    overflow: hidden;
    z-index: 5;
}
.masthead-blob {
    position: absolute;
    top: -90px;
    right: -70px;
    width: 320px;
    height: 260px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Cpath fill='%2300B8A9' d='M152 18c30 16 50 52 38 86s-58 58-100 54S10 128 6 92 26 20 64 8s58-6 88 10z'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: .28;
    pointer-events: none;
}
.masthead-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
}
.brand { display: flex; align-items: center; gap: .9rem; color: #fff; min-width: 0; flex: 1 1 auto; }
.brand:hover { color: #fff; }
.brand-mark { flex: none; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 560px; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .8rem;
    line-height: 1.35;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-size: .78rem;
    line-height: 1.4;
    color: #9FC4C8;
    margin-top: .2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    background: transparent;
    border: 2px solid var(--teal);
    color: #fff;
    border-radius: var(--radius-btn);
    padding: .5rem .8rem;
    font: 700 .8rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
    content: "";
}
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.topnav { flex: none; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; flex-wrap: wrap; }
.topnav-list li { position: relative; }
.topnav-list a {
    display: block;
    padding: .55rem .9rem;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 500;
    color: #E6F4F4;
    border-radius: var(--radius-btn);
    transition: background-color .25s ease, color .25s ease;
}
.topnav-list a:hover { background: rgba(0, 184, 169, .18); color: #fff; }
.topnav-list .current-menu-item > a,
.topnav-list .current_page_item > a { background: var(--teal); color: #fff; }
.topnav-list .sub-menu { list-style: none; margin: 0; padding: .4rem; position: absolute; top: 100%; left: 0; min-width: 200px; background: #0F3C46; border-radius: 8px; display: none; }
.topnav-list li:hover > .sub-menu, .topnav-list li:focus-within > .sub-menu { display: block; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 1.4rem 0 0; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--teal-dark); }
.crumb-sep { color: var(--coral); margin: 0 .25rem; }

/* ---------- Раскладки ---------- */
.site-main { display: block; padding-bottom: 3.5rem; }
.home .site-main { padding-bottom: 0; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-top: 1.5rem;
}
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; padding-top: 1.5rem; }
.content-area { min-width: 0; }

.page-head { margin-bottom: 1.8rem; }
.page-title, .entry-title { margin-top: .4rem; font-size: 2.4rem; overflow-wrap: anywhere; }
.page-intro { color: var(--muted); }
.empty-note { color: var(--muted); font-style: italic; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: #FFFFFF;
    border-left: 3px solid var(--teal);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    padding: 1.6rem 1.5rem;
    box-shadow: var(--glow);
    color: var(--text);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 1rem; font-size: .95rem; text-transform: uppercase; color: var(--text); }
.sidebar .widget ul { list-style: none; padding: 0; margin: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed var(--line); line-height: 1.45; }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--text); font-weight: 600; }
.sidebar .widget a:hover { color: var(--coral); }
.sidebar .widget .post-date { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.sidebar .widget p { color: var(--text); }

/* ---------- Заголовки секций ---------- */
.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 1rem;
    font-size: 1.9rem;
}
.section-title::before {
    content: "";
    flex: none;
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--teal);
}
.on-dark .section-title, .basement .section-title { color: #fff; }
.on-dark .section-title::before { background: var(--coral); }
.section-lead { max-width: 62ch; color: var(--muted); margin-bottom: 2.2rem; }

/* ---------- Секции главной ---------- */
.front-section { padding: 4.5rem 0; position: relative; }
.zone-main { background: transparent; }
.zone-alt { background: var(--bg-alt); }
.zone-accent {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(217, 236, 236, .25) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(217, 236, 236, .25) 0 1px, transparent 1px 24px),
        linear-gradient(135deg, #E6F4F4 0%, #D0EDED 100%);
}

.spark-divider {
    position: relative;
    width: 60%;
    height: 12px;
    margin: 0;
}
.spark-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px dashed var(--teal);
    opacity: .6;
}
.spark-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 5px var(--bg);
}

/* Hero */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ink-dark);
    color: #fff;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 46, 54, .94) 0%, rgba(10, 46, 54, .78) 48%, rgba(10, 46, 54, .38) 100%);
}
.hero-mark {
    position: absolute;
    right: 6%;
    bottom: 12%;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 10px rgba(255, 107, 94, .25), 0 0 0 22px rgba(255, 107, 94, .1);
}
.hero-inner { position: relative; padding: 5rem 0; }
.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    letter-spacing: .04em;
    color: var(--ink-dark);
    background: var(--teal);
    padding: .35rem .8rem;
    border-radius: var(--radius-btn);
    margin-bottom: 1.4rem;
}
.hero-title { color: #fff; font-size: 3.2rem; max-width: 15ch; margin: 0 0 1.2rem; }
.hero-sub { font-size: 1.15rem; color: #CFE7E8; max-width: 52ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .btn-line { color: #FF8B80; border-color: var(--coral); }
.hero .btn-line:hover { color: #fff; }

/* Таймлайн */
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: var(--teal);
    border-radius: 2px;
}
.path-step { position: relative; width: 50%; padding: 0 2.6rem 2.2rem 0; }
.path-step:nth-child(even) { margin-left: 50%; padding: 0 0 2.2rem 2.6rem; }
.path-step::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    right: -9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 5px #E3F3F3;
}
.path-step:nth-child(even)::after { right: auto; left: -9px; }
.path-card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1.4rem 1.6rem;
    box-shadow: var(--glow);
    border: 1px solid transparent;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.path-card:hover { transform: translateY(-4px); box-shadow: var(--glow-strong); border-color: var(--teal); }
.path-when { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.path-name { margin: .35rem 0 .5rem; font-size: 1.2rem; display: flex; align-items: center; }
.path-card p { margin: 0; }

/* Статистика */
.facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.fact {
    min-width: 0;
    padding: .6rem 1.4rem;
    text-align: center;
    border-left: 2px dashed rgba(0, 184, 169, .45);
}
.fact:first-child { border-left: 0; }
.fact-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1.05;
    color: var(--teal);
}
.fact-label { display: block; margin-top: .5rem; color: var(--muted); font-weight: 600; }

/* Рубрикатор */
.topics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}
.topic {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .4rem;
    min-width: 0;
    min-height: 170px;
    padding: 1.4rem 1.4rem;
    background: #fff;
    border: 1px solid #C9E6E6;
    border-radius: var(--radius-card);
    color: var(--text);
    transition: background-color .3s ease, color .3s ease, transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.topic:nth-child(1) { grid-column: 1 / span 2; grid-row: 1; }
.topic:nth-child(3) { grid-column: 3; grid-row: 1; }
.topic:nth-child(4) { grid-column: 4; grid-row: 1; }
.topic:nth-child(5) { grid-column: 1; grid-row: 2; }
.topic:nth-child(6) { grid-column: 2; grid-row: 2; }
.topic:nth-child(2) { grid-column: 3 / span 2; grid-row: 2; }
.topic-big { min-height: 230px; }
.topic-icon {
    width: 44px;
    height: 44px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: auto;
    transition: stroke .3s ease;
}
.hover-coral .topic-icon { stroke: var(--coral); }
.topic-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; overflow-wrap: anywhere; }
.topic-big .topic-name { font-size: 1.45rem; }
.topic-note { font-size: .92rem; color: var(--muted); transition: color .3s ease; }
.topic:hover { color: #fff; transform: translateY(-4px); }
.hover-teal:hover { background: var(--teal); border-color: var(--teal); box-shadow: var(--glow-strong); }
.hover-coral:hover { background: var(--coral); border-color: var(--coral); box-shadow: 0 14px 34px rgba(255, 107, 94, .3); }
.topic:hover .topic-icon { stroke: #fff; }
.topic:hover .topic-note { color: #fff; }

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

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.card-grid-feed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid transparent;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--glow);
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--glow-strong); border-color: var(--teal); }
.card-thumb { position: relative; overflow: hidden; background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(10, 46, 54, .45), transparent);
    pointer-events: none;
}
.card-thumb-empty span {
    display: block;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 78% 30%, rgba(255, 107, 94, .55) 0 18px, transparent 19px),
        repeating-linear-gradient(45deg, rgba(0, 184, 169, .18) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, #E6F4F4, #BFE6E3);
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.35rem 1.4rem; min-width: 0; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: .82rem; color: var(--muted); }
.card-tag {
    display: inline-block;
    padding: .15rem .55rem;
    font-size: .75rem;
    font-weight: 700;
    color: #fff;
    background: var(--coral);
    border-radius: 4px;
}
.card-tag:hover { color: #fff; background: #E9564A; }
.card-title { margin: .6rem 0 .5rem; font-size: 1.08rem; text-transform: none; line-height: 1.35; overflow-wrap: anywhere; }
.card-title a { color: var(--text); }
.card-excerpt { color: #3E5E64; font-size: .96rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: .6rem;
    font-family: var(--font-head);
    font-size: .76rem;
    font-weight: 700;
    color: var(--teal-dark);
}
.card-more::after { content: " →"; transition: margin-left .25s ease; }
.card-more:hover { color: var(--coral); }

/* ---------- Запись ---------- */
.entry { min-width: 0; }
.entry-head { margin-bottom: 1.4rem; }
.entry-title { display: block; }
.entry-cover { margin: 0 0 1.8rem; border-radius: var(--radius-card); overflow: hidden; }
.entry-cover img { width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h2::before, .entry-content h3::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: .55em;
    vertical-align: middle;
}
.entry-content h3::before { background: var(--coral); }
.entry-content img { border-radius: 8px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .85rem; color: var(--muted); margin-top: .4rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.6rem; align-items: center; }
.pager .page-numbers,
.pager > span,
.pager > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .85rem;
    font-family: var(--font-head);
    font-size: .8rem;
    font-weight: 700;
    color: var(--text);
    background: #fff;
    border: 1px solid #C9E6E6;
    border-radius: var(--radius-btn);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.pager a.page-numbers:hover { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--teal); border-color: var(--teal); color: #fff; }
.pager .page-numbers.dots { background: none; border: 0; min-width: auto; padding: 0 .2rem; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 3rem; padding-top: 2rem; border-top: 2px dashed var(--line); }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 2rem; }
.talk-body { background: #fff; border-radius: var(--radius-card); padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--glow); }
.talk-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.talk-head img { border-radius: 50%; }
.talk-author { display: block; }
.talk-date, .talk-wait, .talk-note, .talk-closed { font-size: .85rem; color: var(--muted); }
.talk-reply a { font-size: .85rem; font-weight: 700; }
.comment-respond { margin-top: 2rem; background: #fff; border-radius: var(--radius-card); padding: 1.6rem 1.6rem; box-shadow: var(--glow); }
.comment-reply-title { margin-top: 0; font-size: 1.2rem; }
.comment-form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.seek-field {
    width: 100%;
    padding: .75rem .9rem;
    font: inherit;
    color: var(--text);
    background: var(--bg);
    border: 1px solid #C9E6E6;
    border-radius: var(--radius-btn);
    transition: border-color .25s ease, box-shadow .25s ease;
}
.comment-form input:focus, .comment-form textarea:focus, .seek-field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0, 184, 169, .2); }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- Поиск и 404 ---------- */
.seek { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.2rem 0; align-items: center; }
.seek-label { flex-basis: 100%; font-weight: 700; font-size: .9rem; }
.seek-field { flex: 1 1 220px; width: auto; min-width: 0; }
.lost { text-align: left; padding: 2rem 0; }
.lost-code { font-family: var(--font-head); font-size: 6rem; font-weight: 800; line-height: 1; margin: 0; color: var(--teal); text-shadow: 6px 6px 0 rgba(255, 107, 94, .35); }

/* ---------- Подвал ---------- */
.basement {
    position: relative;
    overflow: hidden;
    background: var(--ink-dark);
    color: #CFE3E5;
    padding: 3.5rem 0 1.6rem;
}
.basement::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--teal) 0 36px, var(--coral) 36px 72px);
}
.basement-blob {
    position: absolute;
    left: -90px;
    bottom: -110px;
    width: 380px;
    height: 320px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 160'%3E%3Cpath fill='%23FF6B5E' d='M48 12c34-14 86-10 118 18s36 76 8 104-84 32-122 14S2 92 6 60 14 26 48 12z'/%3E%3C/svg%3E") no-repeat center / contain;
    opacity: .15;
    pointer-events: none;
}
.basement .shell { position: relative; }
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basement-col { min-width: 0; }
.basement .widget { margin-bottom: 1.6rem; color: #CFE3E5; }
.basement .widget-title { margin: 0 0 1rem; font-size: .9rem; text-transform: uppercase; color: #FFFFFF; }
.basement .widget p, .basement .widget .textwidget { color: #CFE3E5; }
.basement .widget ul { list-style: none; margin: 0; padding: 0; }
.basement .widget li { padding: .3rem 0; }
.basement .widget a { color: #7FE3D9; }
.basement .widget a:hover { color: #FF8B80; }
.basement .widget .post-date { color: #8FB3B7; font-size: .8rem; }
.basement-copy {
    margin: 2rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(0, 184, 169, .35);
    font-size: .88rem;
    color: #8FB3B7;
}

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 1.2rem;
    transform: translateX(-50%);
    width: min(92%, 760px);
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--ink-dark);
    color: #E6F4F4;
    border-radius: var(--radius-card);
    border-top: 3px solid var(--coral);
    box-shadow: 0 16px 40px rgba(10, 46, 54, .35);
}
.cookie-text { margin: 0; font-size: .92rem; line-height: 1.5; flex: 1; min-width: 0; color: #E6F4F4; }
.cookie-accept { flex: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1, .hero-title { font-size: 2.4rem; }
    .page-title, .entry-title { font-size: 2rem; }
    .section-title { font-size: 1.5rem; }
    .nav-toggle { display: inline-flex; flex: none; }
    .masthead-row { flex-wrap: wrap; }
    .topnav { flex-basis: 100%; display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; padding: .4rem 0 .6rem; }
    .topnav-list .sub-menu { position: static; display: block; background: transparent; padding-left: 1rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single { width: 100%; }
    .shell.front-width { width: min(92%, 1180px); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-grid-feed { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .fact:nth-child(3) { border-left: 0; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic:nth-child(n) { grid-column: auto; grid-row: auto; }
    .topic:nth-child(1), .topic:nth-child(2) { grid-column: 1 / -1; }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .spark-divider { width: 80%; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .hero-title { font-size: 1.85rem; }
    .page-title, .entry-title { font-size: 1.6rem; }
    h2, .section-title { font-size: 1.25rem; }
    .brand-desc { display: none; }
    .brand-logo { width: 44px; height: 44px; }
    .front-section { padding: 3rem 0; }
    .hero { min-height: 520px; }
    .hero-mark { display: none; }
    .hero-inner { padding: 3.5rem 0; }
    .hero-shade { background: rgba(10, 46, 54, .82); }
    .hero-actions .btn { flex: 1 1 100%; }
    .path::before { left: 9px; margin-left: 0; }
    .path-step, .path-step:nth-child(even) { width: 100%; margin-left: 0; padding: 0 0 1.6rem 2.4rem; }
    .path-step::after, .path-step:nth-child(even)::after { left: 1px; right: auto; }
    .path-card { padding: 1.2rem 1.2rem; }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .fact { border-left: 0; border-top: 2px dashed rgba(0, 184, 169, .45); padding: 1rem 1rem .4rem; }
    .fact:first-child { border-top: 0; }
    .fact-num { font-size: 2.6rem; }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .topic:nth-child(n) { grid-column: auto; min-height: 140px; padding: 1.2rem 1.2rem; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comment-respond, .talk-body { padding: 1.2rem 1.1rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; text-align: left; }
    .spark-divider { width: 100%; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
