/*
Theme Name: dds_posobieguru.ru
Theme URI: https://posobieguru.ru/
Author: Дмитрий Воронов
Description: Тема «Career Graph» для информационно-аналитического портала о карьерных траекториях PosobieGuru: тёмная графитово-синяя палитра, янтарно-медный и бирюзовый акценты.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
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: pgguru
*/

/* ---------- Управляемые через hidden элементы ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #12141c;
    --bg-alt: #1a1d29;
    --bg-head: #0e1017;
    --bg-foot: #0b0d13;
    --bg-side: #171a24;
    --text: #e8eaf0;
    --text-soft: #b8bdca;
    --heading: #f3f4f8;
    --amber: #f0a848;
    --amber-hi: #ffc46b;
    --teal: #5ec4b6;
    --muted: #7a8090;
    --line: #262a38;
    --f-head: "Unbounded", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Golos Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --f-quote: "Lora", Georgia, "Times New Roman", serif;
    --glow: 0 0 0 4px rgba(240, 168, 72, .14), 0 0 26px rgba(255, 196, 107, .45);
}

/* ---------- Сброс и основа ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 420'%3E%3Cpolyline points='20,390 110,320 180,345 270,230 340,258 430,140 500,162 580,40' fill='none' stroke='%23f0a848' stroke-opacity='.08' stroke-width='3' stroke-linejoin='round'/%3E%3Cg fill='%23f0a848' fill-opacity='.08'%3E%3Ccircle cx='20' cy='390' r='7'/%3E%3Ccircle cx='110' cy='320' r='7'/%3E%3Ccircle cx='180' cy='345' r='7'/%3E%3Ccircle cx='270' cy='230' r='7'/%3E%3Ccircle cx='340' cy='258' r='7'/%3E%3Ccircle cx='430' cy='140' r='7'/%3E%3Ccircle cx='500' cy='162' r='7'/%3E%3Ccircle cx='580' cy='40' r='11'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(30, 34, 48, .3) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(30, 34, 48, .3) 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right -30px top 150px, 0 0, 0 0;
    background-size: min(560px, 70%) auto, auto, auto;
}

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

p {
    margin: 0 0 1.1em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.22;
    color: var(--heading);
    margin: 1.7em 0 .65em;
    letter-spacing: -.01em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.18rem; }
h4 { font-size: 1.04rem; }
h5, h6 { font-size: .95rem; }

h2 {
    position: relative;
    padding-left: .8em;
}
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .02em;
    width: 3px;
    height: 1.2em;
    border-radius: 2px;
    background: var(--amber);
}

a {
    color: var(--teal);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, color .2s ease;
}
a:hover,
a:focus-visible { background-size: 100% 1px; }

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

hr {
    border: 0;
    height: 1px;
    width: 60%;
    margin: 2.5em auto;
    background: var(--line);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.5em;
    border: 1px solid #343a4e;
    font-size: .95rem;
}
th,
td {
    border: 1px solid #343a4e;
    padding: .6em .85em;
    text-align: left;
    vertical-align: top;
}
th {
    background: var(--bg-alt);
    color: var(--heading);
    font-weight: 600;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.3em 1.5em;
    border-left: 4px solid var(--amber);
    border-radius: 0 12px 12px 0;
    background: linear-gradient(90deg, rgba(240, 168, 72, .09), rgba(26, 29, 41, .35));
    font-family: var(--f-quote);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--heading);
}
blockquote p:last-child { margin-bottom: 0; }
blockquote cite {
    display: block;
    margin-top: .7em;
    font-family: var(--f-body);
    font-style: normal;
    font-size: .9rem;
    color: var(--muted);
}

pre {
    background: var(--bg-head);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1em 1.2em;
    overflow-x: auto;
    font-size: .9rem;
}
code {
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
    font-size: .92em;
}
:not(pre) > code {
    background: rgba(94, 196, 182, .1);
    padding: .1em .35em;
    border-radius: 4px;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 1rem;
    z-index: 200;
    padding: .7em 1.1em;
    border-radius: 10px;
    background: var(--amber);
    color: var(--bg);
    font-weight: 600;
}
.skip-link:focus {
    left: 1rem;
}

.site-main:focus { outline: none; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .85em 1.5em;
    border: 1.5px solid transparent;
    border-radius: 10px;
    background: none;
    color: var(--amber);
    font-family: var(--f-head);
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.btn-fill {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--bg);
}
.btn-fill:hover,
.btn-fill:focus-visible {
    background: var(--amber-hi);
    border-color: var(--amber-hi);
    color: var(--bg);
    box-shadow: var(--glow);
}
.btn-ghost {
    background: transparent;
    border-color: var(--amber);
    color: var(--amber);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: var(--amber-hi);
    border-color: var(--amber-hi);
    color: var(--bg);
    box-shadow: var(--glow);
}
.btn-ghost-teal {
    background: transparent;
    border-color: var(--teal);
    color: var(--teal);
}
.btn-ghost-teal:hover,
.btn-ghost-teal:focus-visible {
    background: rgba(94, 196, 182, .12);
    border-color: #86dccf;
    color: #86dccf;
    box-shadow: 0 0 0 4px rgba(94, 196, 182, .12), 0 0 24px rgba(94, 196, 182, .35);
}

/* ---------- Шапка ---------- */
.horizon {
    height: 3px;
    background: linear-gradient(90deg, var(--amber), var(--teal));
}

.masthead {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text);
    background: none;
}
.brand:hover .brand-name { color: var(--amber-hi); }

.brand-mark {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}
.brand-logo,
.brand-svg {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.brand-name {
    font-family: var(--f-head);
    font-size: .74rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--heading);
    max-width: 64ch;
    overflow-wrap: break-word;
    hyphens: auto;
    transition: color .2s ease;
}
.brand-tagline {
    display: none;
    margin-top: .3rem;
    max-width: 82ch;
    font-size: .8rem;
    line-height: 1.5;
    color: var(--muted);
}

.nav-toggle {
    flex: 0 0 auto;
    padding: .55em 1em;
    border: 1.5px solid var(--amber);
    border-radius: 10px;
    background: transparent;
    color: var(--amber);
    font-family: var(--f-head);
    font-size: .78rem;
    font-weight: 600;
    cursor: pointer;
}
.nav-toggle[aria-expanded="true"] {
    background: var(--amber);
    color: var(--bg);
}

.primary-nav {
    display: none;
    border-top: 1px solid var(--line);
}
.primary-nav.is-open { display: block; }

.nav-list {
    list-style: none;
    margin: 0;
    padding: .4rem 0 .8rem;
    display: flex;
    flex-direction: column;
}
.nav-list li { min-width: 0; }
.nav-list a {
    display: inline-block;
    padding: .65rem 0;
    color: var(--text);
    font-family: var(--f-head);
    font-size: .82rem;
    font-weight: 500;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-position: 0 calc(100% - .4rem);
}
.nav-list a:hover,
.nav-list a:focus-visible { color: var(--amber-hi); }
.nav-list .current-menu-item > a,
.nav-list .current_page_item > a { color: var(--amber); }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    padding: 1.6rem 0 0;
    font-size: .86rem;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.breadcrumbs .sep {
    margin: 0 .45em;
    color: var(--amber);
}
.crumb-current { color: var(--text-soft); }

/* ---------- Раскладки ---------- */
.layout-with-sidebar,
.layout-single {
    padding: 1rem 0 4.5rem;
}
.layout-single { display: block; }
.content-area { min-width: 0; }

.sidebar {
    min-width: 0;
    margin-top: 3rem;
}

/* ---------- Заголовки страниц ---------- */
.page-head {
    margin: 1.4rem 0 2.2rem;
}
.page-title,
.entry-title {
    margin: 0 0 .7rem;
}
.page-lead {
    margin: 0;
    max-width: 44rem;
    color: var(--text-soft);
}
.page-lead p:last-child { margin-bottom: 0; }

.empty-note {
    padding: 1.4rem 1.5rem;
    border: 1px dashed var(--line);
    border-radius: 14px;
    color: var(--text-soft);
}
.empty-block .search-form { margin-top: 1rem; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 30px -8px rgba(10, 12, 16, .8);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 168, 72, .6);
    box-shadow: 0 22px 44px -10px rgba(10, 12, 16, .95);
}

.card-thumb {
    position: relative;
}
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(180deg, rgba(23, 26, 36, 0), var(--bg-side));
    pointer-events: none;
}
.card-thumb a {
    display: block;
    background: none;
}
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-thumb .card-thumb-blank {
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 180'%3E%3Cpath d='M30 150H290M30 110H290M30 70H290M30 30H290' stroke='%23262a38' stroke-width='1'/%3E%3Cpolyline points='30,150 85,118 130,128 180,84 225,96 290,36' fill='none' stroke='%23f0a848' stroke-width='2.5' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cg fill='%2312141c' stroke='%23f0a848' stroke-width='2'%3E%3Ccircle cx='85' cy='118' r='4'/%3E%3Ccircle cx='180' cy='84' r='4'/%3E%3Ccircle cx='225' cy='96' r='4'/%3E%3C/g%3E%3Ccircle cx='290' cy='36' r='6' fill='%235ec4b6'/%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(38, 42, 56, .45) 0 1px, transparent 1px 18px);
    background-repeat: no-repeat, repeat;
    background-position: center, 0 0;
    background-size: 72% auto, auto;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.15rem 1.4rem 1.45rem;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem .8rem;
    margin-bottom: .75rem;
    font-size: .8rem;
    color: var(--muted);
}

.tag-chip {
    display: inline-block;
    padding: .2em .65em;
    border-radius: 6px;
    background: rgba(94, 196, 182, .15);
    color: var(--teal);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
    transition: background-color .2s ease;
}
.tag-chip:hover,
.tag-chip:focus-visible {
    background: rgba(94, 196, 182, .26);
}

.sticky-badge {
    display: inline-block;
    padding: .2em .65em;
    border-radius: 6px;
    background: rgba(240, 168, 72, .16);
    color: var(--amber);
    font-size: .78rem;
    font-weight: 500;
    line-height: 1.5;
}

.card-title {
    margin: 0 0 .7rem;
    padding-left: 0;
    font-size: 1.06rem;
    line-height: 1.38;
}
.card-title::before { display: none; }
.card-title a { color: var(--heading); }
.card-title a:hover,
.card-title a:focus-visible { color: var(--amber-hi); }

.card-excerpt {
    flex: 1;
    font-size: .95rem;
    line-height: 1.65;
    color: var(--text-soft);
    overflow-wrap: break-word;
    hyphens: auto;
}
.card-excerpt p {
    margin: 0 0 .5em;
    background: none;
}

.card-more {
    align-self: flex-start;
    margin-top: .7rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--amber);
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin: 3rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 .85rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-side);
    color: var(--text);
    font-family: var(--f-head);
    font-size: .8rem;
    font-weight: 500;
    transition: border-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.pager a.page-numbers:hover,
.pager a.page-numbers:focus-visible {
    border-color: var(--amber);
    color: var(--amber-hi);
}
.pager .page-numbers.current {
    background: var(--amber);
    border-color: var(--amber);
    color: var(--bg);
    box-shadow: 0 0 18px rgba(240, 168, 72, .35);
}
.pager .page-numbers.dots {
    min-width: auto;
    padding: 0 .3rem;
    border: 0;
    background: none;
    color: var(--muted);
}

/* ---------- Запись и страница ---------- */
.entry-head {
    margin: 1.4rem 0 1.9rem;
}
.entry-cats {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1rem;
}
.entry-meta {
    font-size: .88rem;
    color: var(--muted);
}

.entry-thumb {
    margin: 0 0 2.2rem;
}
.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.entry-content {
    overflow-wrap: break-word;
    hyphens: auto;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content ul,
.entry-content ol {
    margin: 0 0 1.2em;
    padding-left: 1.35em;
}
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--amber); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption,
.wp-caption-text {
    margin-top: .5em;
    font-size: .86rem;
    color: var(--muted);
}
.entry-content img { border-radius: 10px; }
.entry-content iframe { max-width: 100%; }

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

.page-links {
    margin: 2rem 0 0;
    font-size: .92rem;
    color: var(--muted);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 2.2rem;
}
.entry-tags a {
    display: inline-block;
    padding: .25em .7em;
    border-radius: 6px;
    background: rgba(94, 196, 182, .15);
    color: var(--teal);
    font-size: .82rem;
}
.entry-tags a:hover { background: rgba(94, 196, 182, .26); }

.post-navigation {
    margin: 3rem 0 0;
}
.post-navigation .nav-links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}
.post-navigation a {
    display: block;
    height: 100%;
    padding: 1.1rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-side);
    transition: border-color .2s ease, transform .25s ease;
}
.post-navigation a:hover,
.post-navigation a:focus-visible {
    border-color: rgba(240, 168, 72, .6);
    transform: translateY(-2px);
}
.nav-label {
    display: block;
    margin-bottom: .3rem;
    font-size: .78rem;
    color: var(--muted);
}
.nav-title {
    display: block;
    color: var(--heading);
    font-weight: 600;
    line-height: 1.4;
}
.nav-next { text-align: right; }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 3.5rem;
    padding-top: 2.2rem;
    border-top: 1px solid var(--line);
}
.comments-title,
.comment-reply-title {
    margin-top: 0;
    font-size: 1.3rem;
}
.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.comment-list .children {
    margin-left: .6rem;
    padding-left: 1.3rem;
    border-left: 1px dashed rgba(240, 168, 72, .35);
}
.comment-card {
    margin-bottom: 1rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-side);
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .8rem;
    margin-bottom: .6rem;
}
.comment-head img {
    display: block;
    border-radius: 50%;
}
.comment-author {
    font-weight: 600;
    color: var(--heading);
}
.comment-head time {
    font-size: .82rem;
    color: var(--muted);
}
.comment-pending {
    font-size: .88rem;
    color: var(--amber);
}
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply {
    margin-top: .6rem;
    font-size: .86rem;
}
.comment-reply a { color: var(--amber); }
.comments-closed { color: var(--muted); }

.comment-respond { margin-top: 2.2rem; }
.comment-reply-title small {
    display: block;
    margin-top: .4rem;
    font-family: var(--f-body);
    font-size: .85rem;
    font-weight: 400;
}
.comment-notes,
.logged-in-as,
.must-log-in {
    font-size: .9rem;
    color: var(--muted);
}
.comment-form p { margin-bottom: 1rem; }
.comment-form label {
    display: block;
    margin-bottom: .35rem;
    font-size: .9rem;
    color: var(--text-soft);
}
.comment-form .required { color: var(--amber); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-field {
    width: 100%;
    padding: .78em .95em;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg-head);
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(240, 168, 72, .18);
}
.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
}
.comment-form-cookies-consent input { margin-top: .35em; }
.comment-form-cookies-consent label {
    display: inline;
    margin: 0;
}

/* ---------- Поиск ---------- */
.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}
.search-form .search-field {
    flex: 1 1 200px;
    width: auto;
    min-width: 0;
}
.search-form .search-submit { flex: 0 0 auto; }

/* ---------- Виджеты: сайдбар ---------- */
.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.5rem 1.45rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-side);
    color: #d3d6df;
    font-size: .95rem;
}
.widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: .8em;
    font-size: .95rem;
    line-height: 1.35;
    color: var(--heading);
}
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .05em;
    width: 3px;
    height: 1.2em;
    border-radius: 2px;
    background: var(--amber);
}
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget li {
    padding: .55rem 0;
    border-bottom: 1px solid var(--line);
    line-height: 1.5;
}
.widget li:first-child { padding-top: 0; }
.widget li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.sidebar .widget a { color: var(--teal); }
.sidebar .widget a:hover { color: #86dccf; }
.widget .post-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
}
.widget p:last-child { margin-bottom: 0; }

/* ---------- Подвал ---------- */
.colophon {
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    color: #b9becb;
}
.colophon .route-divider { margin-top: 2.4rem; }

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.4rem;
    padding: 2.6rem 0 2.8rem;
}
.footer-col { min-width: 0; }
.colophon .widget {
    color: #b9becb;
    font-size: .94rem;
}
.colophon .widget-title { color: var(--heading); }
.colophon .widget a { color: var(--teal); }
.colophon .widget a:hover { color: #86dccf; }
.colophon .widget li { border-bottom-color: #1d2130; }
.colophon .widget .post-date { color: #8a90a0; }

.footer-bottom {
    border-top: 1px solid #1d2130;
    padding: 1.3rem 0;
    font-size: .86rem;
    color: #8a90a0;
}
.footer-bottom p { margin: 0; }

/* ---------- Разделитель-маршрут ---------- */
.route-divider {
    width: 60%;
    height: 10px;
    margin: 0 auto;
    background:
        radial-gradient(circle, var(--amber) 1.6px, transparent 2.2px) center / 16px 10px repeat-x,
        linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat;
    opacity: .85;
}

/* ---------- Главная: общие ---------- */
.fp-section {
    position: relative;
    padding: 4.2rem 0;
}
.fp-section--alt {
    background-color: var(--bg-alt);
}

.sec-head {
    max-width: 46rem;
    margin: 0 0 2.4rem;
}
.sec-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    max-width: none;
}
.sec-head--row > div {
    min-width: 0;
    max-width: 46rem;
}
.sec-title {
    margin: 0 0 .6rem;
    font-size: 1.55rem;
}
.sec-lead {
    margin: 0;
    color: var(--muted);
}

/* ---------- Блок 1: hero ---------- */
.fp-hero {
    padding: 3.6rem 0 4rem;
    border-bottom: 1px solid var(--line);
    background-color: var(--bg-head);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cpath d='M0 170 L45 140 L80 150 L125 100 L180 78' fill='none' stroke='%23f0a848' stroke-opacity='.07' stroke-width='1.5'/%3E%3Cpath d='M0 80 L50 60 L95 68 L140 30 L180 18' fill='none' stroke='%235ec4b6' stroke-opacity='.06' stroke-width='1.2'/%3E%3C/svg%3E"),
        linear-gradient(160deg, #0e1017 0%, #1a1d29 100%);
    background-repeat: repeat, no-repeat;
}

.fp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}
.fp-hero-copy { min-width: 0; }
.fp-hero-title {
    margin: 0 0 1.2rem;
    font-size: 2.1rem;
    line-height: 1.14;
}
.fp-hero-lead {
    max-width: 36rem;
    margin: 0 0 2rem;
    font-size: 1.1rem;
    color: #a9afbd;
}
.fp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}
.fp-hero-art {
    min-width: 0;
}
.fp-hero-art svg {
    display: block;
    width: 100%;
    max-width: 520px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}
.pg-trace {
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    animation: pg-draw 2.4s cubic-bezier(.45, .05, .25, 1) .3s forwards;
}
@keyframes pg-draw {
    to { stroke-dashoffset: 0; }
}

/* ---------- Блок 2: статистика ---------- */
.fp-stats {
    background-image: radial-gradient(ellipse at 50% 60%, rgba(240, 168, 72, .07), transparent 65%);
}
.stats-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.stat {
    min-width: 0;
    padding: 1.6rem 1rem;
    text-align: center;
}
.stat:nth-child(even) { border-left: 1px solid var(--line); }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat-num {
    font-family: var(--f-head);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--amber);
    text-shadow: 0 0 22px rgba(240, 168, 72, .4), 0 0 48px rgba(240, 168, 72, .18);
}
.stat-label {
    margin-top: .8rem;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--muted);
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ---------- Последние записи на главной ---------- */
.fp-latest + .route-divider { margin-top: 0; }

/* ---------- Блок 3: рубрики ---------- */
.fp-topics {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}
.topic {
    min-width: 0;
    padding: 1.8rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg-side);
    box-shadow: 0 12px 30px -10px rgba(10, 12, 16, .8);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.topic:hover {
    transform: translateY(-3px);
    border-color: rgba(240, 168, 72, .6);
    box-shadow: 0 22px 44px -12px rgba(10, 12, 16, .95);
}
.topic-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(94, 196, 182, .35);
    border-radius: 50%;
    background: rgba(94, 196, 182, .13);
    color: var(--teal);
}
.topic-icon svg { display: block; }
.topic-title {
    margin: 0 0 .55rem;
    font-size: 1.05rem;
}
.topic-text {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
    color: var(--text-soft);
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ---------- Блок 4: цитата ---------- */
.fp-quote {
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(30, 34, 48, .45) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(-45deg, rgba(30, 34, 48, .45) 0 1px, transparent 1px 24px),
        linear-gradient(180deg, #1a1d29 0%, #12141c 100%);
}
.quote-card {
    max-width: 58rem;
    margin: 0;
    padding: 2rem 1.6rem;
    border-left: 6px solid var(--amber);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, rgba(240, 168, 72, .08), rgba(18, 20, 28, 0) 75%);
}
.quote-card .quote-text {
    margin: 0 0 1.4rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    font-family: var(--f-quote);
    font-style: italic;
    font-size: 1.55rem;
    line-height: 1.45;
    color: var(--heading);
}
.quote-card .quote-text p { margin: 0; }
.quote-cite {
    font-size: .95rem;
    color: var(--muted);
}

/* ---------- 404 ---------- */
.err-wrap {
    padding-top: 1rem;
}
.err-code {
    margin: 1rem 0 .4rem;
    font-family: var(--f-head);
    font-size: 6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--amber);
    text-shadow: 0 0 30px rgba(240, 168, 72, .35);
}
.err-wrap .page-lead { margin-bottom: 1.8rem; }
.err-home { margin-top: 1.8rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 150;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(240, 168, 72, .45);
    border-radius: 14px;
    background: var(--bg-head);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .6);
}
.cookie-text {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #c8ccd6;
}

/* ---------- Брейкпоинт ~600px ---------- */
@media (min-width: 600px) {
    .brand-tagline { display: block; }

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

    .post-navigation .nav-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .post-navigation .nav-previous:only-child { grid-column: 1; }
    .post-navigation .nav-next:only-child { grid-column: 2; }

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

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

    .quote-card { padding: 2.4rem 2.4rem; }
    .quote-card .quote-text { font-size: 1.9rem; }

    .stat-num { font-size: 3rem; }
    .err-code { font-size: 8rem; }
}

/* ---------- Брейкпоинт ~960px ---------- */
@media (min-width: 960px) {
    h1 { font-size: 3.4rem; }
    h2 { font-size: 1.85rem; }

    .nav-toggle { display: none; }
    .primary-nav { display: block; }
    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .2rem 2.2rem;
        padding: .25rem 0;
    }

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

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        align-items: start;
    }
    .layout-single .content-area {
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }
    .sidebar { margin-top: 1.4rem; }

    .layout-single .card-grid,
    .card-grid--three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 3rem;
    }

    .fp-section { padding: 5.5rem 0; }
    .sec-title { font-size: 2.1rem; }

    .fp-hero { padding: 5rem 0 5.5rem; }
    .fp-hero-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
        gap: 3rem;
    }
    .fp-hero-title { font-size: 3.4rem; }

    .stats-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .stat { padding: 1.4rem 1.2rem; }
    .stat:nth-child(n+3) { border-top: 0; }
    .stat + .stat { border-left: 1px solid var(--line); }
    .stat-num { font-size: 3.4rem; }

    .fp-topics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .quote-card { padding: 2.8rem 3rem; }
    .quote-card .quote-text { font-size: 2.3rem; }
}

/* ---------- Мобильные уточнения ---------- */
@media (max-width: 599px) {
    .quote-card { padding: 1.6rem 1.3rem; }
    .cookie-banner { padding: 1rem 1.15rem; }
    .cookie-banner .btn { width: 100%; }
    .sidebar .widget { padding: 1.3rem 1.2rem; }
    .alignleft,
    .alignright {
        float: none;
        margin: 1em 0;
    }
}

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
    .pg-trace { stroke-dashoffset: 0 !important; }
    .card:hover,
    .topic:hover,
    .post-navigation a:hover { transform: none; }
}
