/*
Theme Name: dds_bars-prom.ru
Theme URI: https://bars-prom.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: brsprm
*/

/* ---------- Правила для [hidden] (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --bg-alt-2: #DCE6F0;
    --head: #0F1B2D;
    --foot: #0A1421;
    --ink: #1B2A3A;
    --muted: #6B7F93;
    --accent: #00B8D9;
    --accent-2: #6C5CE7;
    --blue: #4A90E2;
    --slate: #2C3E50;
    --line: #D0DCE6;
    --white: #FFFFFF;
    --ff-head: "Manrope", "Inter Tight", "Segoe UI", Roboto, Arial, sans-serif;
    --ff-body: "Inter", "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;
    --r-btn: 10px;
    --r-card: 14px;
    --shadow-card: 0 4px 16px rgba(15, 27, 45, 0.06);
    --shadow-card-h: 0 8px 24px rgba(0, 184, 217, 0.12);
    --sec-pad: 80px;
}

/* ---------- Основа ---------- */
*, *::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-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--ff-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 220'%3E%3Cpath d='M0 220V150h100V80h100V0h100v220z' fill='rgba(108,92,231,0.04)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(0, 184, 217, 0.03) 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat;
    background-position: right bottom, 0 0;
    background-size: min(38%, 460px) auto, auto;
    background-attachment: fixed, scroll;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ff-head);
    color: var(--head);
    line-height: 1.22;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
}
h1 { font-size: 3.2rem; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.2s ease;
}
a:hover { background-size: 100% 1px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); background: var(--white); }
th, td { border: 1px solid var(--line); padding: 0.65em 0.85em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--ff-head); color: var(--head); }

blockquote { margin: 1.5em 0; padding: 1.1em 1.4em; border-left: 3px solid var(--accent); background: rgba(255, 255, 255, 0.7); border-radius: 0 10px 10px 0; }
blockquote p:last-child { margin-bottom: 0; }

pre { overflow-x: auto; background: var(--head); color: #E8EEF4; padding: 1em 1.2em; border-radius: 10px; font-size: 0.9rem; }
code { font-size: 0.92em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.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-to {
    position: absolute; left: 1rem; top: -60px; z-index: 100;
    background: var(--accent); color: var(--white); padding: 0.6rem 1rem; border-radius: 8px;
}
.skip-to:focus { top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.4em;
    padding: 0.8em 1.5em;
    border-radius: var(--r-btn);
    font-family: var(--ff-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
    cursor: pointer;
    border: 1.5px solid var(--accent);
    background-image: none;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}
.btn:hover { background-size: 0 0; }
.btn-solid { background-color: var(--accent); color: var(--white); }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 184, 217, 0.3); color: var(--white); }
.btn-line { background-color: transparent; color: var(--accent); }
.btn-line:hover { background-color: var(--accent); color: var(--white); }
.btn-line-light { color: #E6F9FC; border-color: rgba(0, 184, 217, 0.9); }

/* ---------- Шапка ---------- */
.top-ribbon { height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.masthead {
    background: rgba(15, 27, 45, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #E8EEF4;
}
.masthead-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
}
.brand {
    display: flex; align-items: center; gap: 0.9rem;
    color: var(--white);
    min-width: 0;
    background-image: none;
}
.brand-mark { flex: 0 0 auto; }
.brand-logo { width: 48px; height: 48px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--ff-head); font-weight: 700; font-size: 1rem; line-height: 1.3;
    color: var(--white);
    max-width: 40ch;
}
.brand-desc {
    font-size: 0.8rem; line-height: 1.4; color: #9FB2C4;
    max-width: 60ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center; gap: 0.55rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    padding: 0.55rem 0.9rem;
    border-radius: var(--r-btn);
    font: 600 0.95rem var(--ff-body);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; 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; }

.primary-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.nav-list li { margin: 0; }
.nav-list a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    color: #DCE6F0;
    font-weight: 500;
    background-image: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.nav-list a:hover { background-color: rgba(255, 255, 255, 0.07); color: var(--white); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--accent); background-color: rgba(0, 184, 217, 0.1); }

/* ---------- Заголовки секций ---------- */
.sec-title,
.entry-content h2 {
    display: flex; align-items: center;
}
.sec-title { font-size: 2rem; margin: 0 0 0.5em; }
.sec-title::before {
    content: "";
    order: -2;
    flex: 0 0 3px;
    align-self: stretch;
    background: var(--accent);
    border-radius: 2px;
    margin-right: 12px;
}
.sec-title::after,
.entry-content h2::before {
    content: "";
    order: -1;
    flex: 0 0 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 10px;
}
.sec-lead { color: var(--muted); max-width: 62ch; margin-bottom: 2rem; }

/* ---------- Главная ---------- */
.fp-section { padding: var(--sec-pad) 0; }
.fp-alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(0, 184, 217, 0.05) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, var(--bg-alt), var(--bg-alt-2));
}
.fp-wrap { width: 85%; margin-left: auto; margin-right: auto; }

/* Hero */
.fp-hero {
    position: relative;
    overflow: hidden;
    background: var(--head);
    color: var(--white);
    padding: 110px 0 90px;
}
.fp-hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.fp-hero::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(15, 27, 45, 0.6);
    z-index: 1;
}
.fp-hero-inner {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    align-items: end;
    gap: 3rem;
}
.fp-hero-copy { min-width: 0; max-width: 720px; }
.fp-hero-title { color: var(--white); margin: 0 0 0.45em; font-size: 3.2rem; line-height: 1.15; letter-spacing: -0.02em; }
.fp-hero-lead { color: #D6E2EC; font-size: 1.15rem; max-width: 58ch; margin-bottom: 2rem; }
.fp-hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.fp-hero-glass {
    min-width: 0;
    justify-self: end;
    padding: 1.4rem 1.5rem;
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    display: flex; flex-direction: column; gap: 0.35rem;
}
.fp-hero-glass-label { font-size: 0.82rem; color: #9FB2C4; }
.fp-hero-glass-mail { font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; color: var(--white); }
.fp-hero-glass-mail:hover { color: var(--accent); }
.fp-hero-glass-note { font-size: 0.85rem; color: #C3D1DD; line-height: 1.45; }

/* Статистика */
.fp-rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 40px; }
.stat-row {
    list-style: none; margin: 0; padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat-cell {
    margin: 0;
    padding: 0.5rem 1.6rem;
    border-left: 1px solid var(--line);
    display: flex; flex-direction: column; gap: 0.3rem;
    min-width: 0;
}
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    font-family: var(--ff-head);
    font-weight: 800;
    font-size: 3.4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--head);
}
.stat-cap { color: var(--muted); font-size: 0.98rem; }

/* Последние записи */
.empty-note, .empty-state p { color: var(--muted); }

/* Карточки направлений */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.topic-card {
    min-width: 0;
    padding: 2rem 1.8rem;
    border-radius: var(--r-card);
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-card);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); border-color: rgba(0, 184, 217, 0.45); }
.topic-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 50%;
    background: var(--accent); color: var(--white);
    margin-bottom: 1.2rem;
}
.topic-icon svg { display: block; }
.topic-title { margin: 0 0 0.5rem; font-size: 1.25rem; }
.topic-text { margin: 0; color: var(--muted); }

/* Цитата */
.fp-quote {
    position: relative;
    background-color: var(--head);
    background-image:
        radial-gradient(circle, rgba(0, 184, 217, 0.18) 1.5px, transparent 2px),
        radial-gradient(circle, rgba(0, 184, 217, 0.18) 1.5px, transparent 2px);
    background-size: 18px 18px, 18px 18px;
    background-repeat: repeat, repeat;
    background-position: 0 0, 100% 100%;
    color: var(--bg);
}
.fp-quote::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, var(--head) 55%, rgba(15, 27, 45, 0.6) 100%);
    pointer-events: none;
}
.quote-block { position: relative; margin: 0; padding: 0.5rem 0 0.5rem 2rem; border-left: 2px solid var(--accent); max-width: 860px; }
.quote-block blockquote { margin: 0; padding: 0; border: 0; background: none; border-radius: 0; }
.quote-block blockquote p {
    font-family: var(--ff-head);
    font-weight: 600;
    font-size: 2.2rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--bg);
    margin: 0 0 1.4rem;
}
.quote-block figcaption { color: var(--muted); font-size: 1rem; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-h); border-color: rgba(0, 184, 217, 0.4); }
.card-thumb { border-radius: var(--r-card) var(--r-card) 0 0; overflow: hidden; }
.card-thumb a { display: block; background-image: none; }
.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;
    padding: 1.3rem 1.4rem 1.4rem;
    min-width: 0;
}
.card-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
    font-size: 0.85rem; color: var(--muted);
    margin-bottom: 0.7rem;
}
.topic-chip {
    display: inline-block;
    padding: 0.2em 0.65em;
    border-radius: 6px;
    background-color: var(--chip, var(--accent));
    background-image: none;
    color: var(--white);
    opacity: 0.9;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.5;
}
.topic-chip:hover { opacity: 1; color: var(--white); }
.card-pin { color: var(--accent-2); font-weight: 600; }
.card-title { margin: 0 0 0.6rem; font-size: 1.2rem; line-height: 1.3; }
.card-title a { color: var(--head); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #3B4C5E; font-size: 0.97rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: 0.8rem; font-weight: 600; font-size: 0.95rem; }

/* ---------- Внутренние страницы ---------- */
.page-pad { padding: 2rem 0 4.5rem; }

.crumbs {
    font-size: 0.88rem; color: var(--muted);
    margin-bottom: 1.8rem;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs-sep { margin: 0 0.35rem; color: var(--accent); }
.crumbs span:last-child { color: var(--ink); }

.layout-single { width: 85%; margin-left: auto; margin-right: auto; display: block; }
.layout-with-sidebar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0;
}
.layout-with-sidebar .content-area { flex: 0 0 67%; max-width: 67%; min-width: 0; }
.layout-with-sidebar .sidebar { flex: 0 0 27%; max-width: 27%; min-width: 0; }

.page-title { margin: 0 0 0.6em; font-size: 2.6rem; }
.list-head { margin-bottom: 2rem; }
.list-desc { color: var(--muted); max-width: 65ch; }

.entry {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
    padding: 2.4rem 2.6rem;
}
.entry-head .card-meta { margin-bottom: 1rem; }
.entry-cover { margin: 0 0 2rem; border-radius: 12px; overflow: hidden; }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content h2 { font-size: 1.7rem; }
.entry-content img { border-radius: 10px; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.4em; }
.entry-content .alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.entry-tags a { padding: 0.25em 0.7em; border: 1px solid var(--line); border-radius: 6px; font-size: 0.88rem; background-image: none; }
.entry-tags a:hover { border-color: var(--accent); }
.entry-pages { margin-top: 1.4rem; }

.entry-nav {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem;
    margin-top: 2rem;
}
.entry-nav a {
    display: flex; flex-direction: column; gap: 0.25rem;
    padding: 1.1rem 1.3rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--head);
    font-family: var(--ff-head); font-weight: 600;
    background-image: none;
    min-width: 0;
}
.entry-nav a span { font-family: var(--ff-body); font-weight: 400; font-size: 0.82rem; color: var(--muted); }
.entry-nav a:hover { border-color: var(--accent); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--r-card);
    box-shadow: 0 6px 22px rgba(74, 144, 226, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem; font-size: 1.1rem; color: var(--head);
    padding-left: 12px; border-left: 3px solid var(--accent);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid #E3EAF1; margin: 0; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar p { color: var(--ink); }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem;
    margin-top: 2.5rem;
}
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px;
    padding: 0 0.85rem;
    border-radius: var(--r-btn);
    border: 1.5px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-weight: 600;
    background-image: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.2rem; }

/* ---------- Поиск ---------- */
.find-form { display: flex; gap: 0.5rem; max-width: 520px; margin: 1.2rem 0; }
.find-field {
    flex: 1; min-width: 0;
    padding: 0.75em 1em;
    border: 1.5px solid var(--line);
    border-radius: var(--r-btn);
    background: var(--white);
    font: inherit; color: var(--ink);
}
.find-field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(0, 184, 217, 0.18); }

/* ---------- 404 ---------- */
.lost-page {
    width: 85%; margin-left: auto; margin-right: auto;
    padding: 2.5rem 2.6rem 3rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}
.lost-code {
    font-family: var(--ff-head); font-weight: 800;
    font-size: 6rem; line-height: 1; margin: 0 0 0.5rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Комментарии ---------- */
.talk {
    margin-top: 2.5rem;
    padding: 2rem 2.2rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-card);
}
.talk-title { margin-top: 0; font-size: 1.5rem; }
.talk-list, .talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { padding-left: 1.6rem; }
.talk-item { margin: 0 0 1.2rem; }
.talk-body { padding: 1rem 1.2rem; border: 1px solid #E3EAF1; border-radius: 12px; background: var(--white); }
.talk-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.talk-head img { border-radius: 50%; }
.talk-author { display: block; font-weight: 600; color: var(--head); }
.talk-date { font-size: 0.82rem; color: var(--muted); }
.talk-wait { color: var(--accent-2); font-size: 0.9rem; }
.talk-reply a { font-size: 0.9rem; font-weight: 600; }
.comment-respond label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.92rem; }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: 0.7em 0.9em;
    border: 1.5px solid var(--line);
    border-radius: var(--r-btn);
    font: inherit; color: var(--ink);
    background: var(--white);
}
.comment-respond .comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-respond .submit {
    padding: 0.8em 1.6em;
    border: 1.5px solid var(--accent);
    background: var(--accent);
    color: var(--white);
    border-radius: var(--r-btn);
    font: 700 0.98rem var(--ff-head);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.comment-respond .submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 184, 217, 0.3); }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 0.9rem; }

/* ---------- Подвал ---------- */
.site-foot {
    background-color: var(--foot);
    background-image: repeating-linear-gradient(45deg, rgba(0, 184, 217, 0.035) 0 1px, transparent 1px 24px);
    color: #B7C6D4;
    padding: 64px 0 0;
    margin-top: 0;
}
.foot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1.5rem; color: #B7C6D4; }
.site-foot .widget-title {
    color: var(--white);
    font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
}
.site-foot p, .site-foot .textwidget { color: #B7C6D4; font-size: 0.95rem; }
.site-foot a { color: #7FDDED; }
.site-foot a:hover { color: var(--white); }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 0.55rem; }
.site-foot li a { color: #C9D6E2; }
.site-foot li a:hover { color: var(--accent); }
.site-foot .post-date { color: #8094A8; font-size: 0.8rem; }
.foot-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.3rem 0 1.5rem;
}
.foot-bottom p { margin: 0; font-size: 0.88rem; color: #8094A8; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 90;
    max-width: 760px;
    margin-left: auto; margin-right: auto;
    display: flex; align-items: center; gap: 1.2rem;
    padding: 1.1rem 1.4rem;
    border-radius: var(--r-card);
    background: rgba(15, 27, 45, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(10, 20, 33, 0.3);
    color: #DCE6F0;
}
.cookie-text { margin: 0; font-size: 0.92rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    :root { --sec-pad: 60px; }
    h1, .fp-hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2.1rem; }
    .sec-title { font-size: 1.7rem; }

    .nav-toggle { display: inline-flex; }
    .masthead-row { flex-wrap: wrap; }
    .primary-nav { display: none; flex-basis: 100%; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0.2rem; padding-bottom: 0.5rem; }

    .fp-wrap { width: 100%; }
    .fp-hero { padding: 80px 0 64px; }
    .fp-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .fp-hero-glass { justify-self: start; }

    .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }

    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .layout-with-sidebar { flex-direction: column; gap: 2rem; }
    .layout-with-sidebar .content-area,
    .layout-with-sidebar .sidebar { flex: none; max-width: 100%; width: 100%; }
    .layout-single, .lost-page { width: 100%; }

    .quote-block blockquote p { font-size: 1.75rem; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    :root { --sec-pad: 48px; }
    body { font-size: 1rem; }
    h1, .fp-hero-title { font-size: 2rem; }
    .page-title { font-size: 1.75rem; }
    .sec-title { font-size: 1.45rem; }

    .brand-desc { display: none; }
    .brand-name { font-size: 0.9rem; }
    .brand-logo { width: 40px; height: 40px; }

    .fp-hero-lead { font-size: 1.02rem; }
    .stat-num { font-size: 2.5rem; }
    .stat-cell { padding: 0.3rem 1rem; }

    .card-grid, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .card-body { padding: 1.1rem 1.15rem 1.25rem; }

    .entry, .talk, .lost-page { padding: 1.5rem 1.3rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: 1; text-align: left; }

    .quote-block { padding-left: 1.2rem; }
    .quote-block blockquote p { font-size: 1.4rem; }

    .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }

    .find-form { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.1rem; }
    .cookie-accept { width: 100%; }
}
