/*
Theme Name: dds_seneka-vl.ru
Theme URI: https://seneka-vl.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: senekavl
*/

:root {
    --bg: #141416;
    --bg-alt: #1c1c1f;
    --bg-head: #0e0e10;
    --bg-foot: #0a0a0c;
    --bg-side: #18181b;
    --ink: #e8e6e1;
    --amber: #e8912a;
    --amber-deep: #d4820a;
    --copper: #b87333;
    --ash: #8a8780;
    --line: #2a2a2e;
    --shade: #0a0a0c;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --f-body: "Fira Sans", "PT Sans", "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Сброс и база ---------- */
*, *::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: .01ms !important; animation-duration: .01ms !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, transparent 0, transparent 23px, #1a1a1d 23px, #1a1a1d 24px);
}
body::after {
    content: "";
    position: fixed;
    right: 2vmin;
    bottom: 2vmin;
    width: 340px;
    height: 240px;
    pointer-events: none;
    z-index: 0;
    opacity: .04;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 240' fill='none' stroke='%23e8912a' stroke-width='3'%3E%3Cpath d='M10 40h210c20 0 60 6 110 30-40 14-80 18-120 20v30c0 18-14 30-34 34v26h40v40H50v-40h40v-26c-20-4-34-16-34-34V90C30 88 10 70 10 40z'/%3E%3Cpath d='M60 60h140M110 150h60'/%3E%3C/svg%3E") no-repeat center / contain;
}
.site-main, .masthead, .basement { position: relative; z-index: 1; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
a { color: var(--copper); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 1.6em 0 .6em;
    color: var(--ink);
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
ul, ol { padding-left: 1.4em; margin: 0 0 1.1em; }
li { margin-bottom: .35em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.5em;
    border-left: 3px solid var(--amber);
    background: var(--bg-alt);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: #202024; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
pre { overflow-x: auto; background: var(--bg-foot); padding: 1em 1.2em; border: 1px solid var(--line); }
code { font-size: .92em; }
hr { border: 0; height: 1px; background: 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;
}

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

/* ---------- Ссылки в тексте ---------- */
.entry-content a, .page-desc a, .widget a, .crumbs a, .card-title a, .card-more, .basement a, .talk a {
    background-image: linear-gradient(var(--amber), var(--amber));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .28s ease, color .2s ease;
}
.entry-content a:hover, .page-desc a:hover, .widget a:hover, .crumbs a:hover, .card-title a:hover, .card-more:hover, .basement a:hover, .talk a:hover {
    background-size: 100% 1px;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: .8em 1.6em;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    line-height: 1.2;
    transition: transform .12s ease, background-color .15s ease, box-shadow .12s ease, color .15s ease, border-color .15s ease;
}
.btn-fill { background: var(--amber); color: #141416; box-shadow: 4px 4px 0 var(--shade); }
.btn-fill:hover { background: var(--copper); color: #141416; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--copper); box-shadow: 4px 4px 0 var(--shade); }
.btn-line:hover { background: var(--copper); color: #141416; transform: translate(2px, 2px); box-shadow: 2px 2px 0 #000; }
.btn:active { transform: translate(4px, 4px); box-shadow: none; }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--bg-head);
    border-top: 3px solid var(--amber);
    border-bottom: 1px solid var(--amber-deep);
}
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.1rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); min-width: 0; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; max-height: 64px; width: auto; }
.brand-svg { display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .98rem;
    line-height: 1.3;
    max-width: 62ch;
}
.brand-desc { color: var(--ash); font-size: .82rem; line-height: 1.45; margin-top: .3rem; max-width: 80ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nav-toggle {
    display: none;
    align-items: center; gap: .6rem;
    background: transparent; color: var(--ink);
    border: 2px solid var(--copper); border-radius: 2px;
    padding: .5rem .8rem; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--amber); 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; }
.topnav { border-top: 1px solid var(--line); }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.topnav-list li { margin: 0; }
.topnav-list a {
    display: block;
    padding: .85rem 1.3rem;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .95rem;
    border-bottom: 3px solid transparent;
    transition: color .15s ease, border-color .15s ease;
}
.topnav-list li:first-child a { padding-left: 0; }
.topnav-list a:hover, .topnav-list .current-menu-item > a { color: var(--amber); border-bottom-color: var(--amber); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 1.6rem 0 4rem; }
.crumbs { font-size: .88rem; color: var(--ash); margin-bottom: 1.8rem; }
.crumbs-sep { color: var(--copper); margin: 0 .35em; }
.crumbs span:last-child { color: var(--ink); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 1.8rem; }
.page-title { font-size: 2.6rem; margin: 0; letter-spacing: .05em; }
.page-desc { color: var(--ash); margin-top: .8rem; }
.entry-meta { color: var(--ash); font-size: .9rem; margin-top: .6rem; }
.entry-cover { margin: 0 0 2rem; border: 1px solid var(--line); box-shadow: 4px 4px 0 var(--shade); }
.entry-cover img { display: block; width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content h2, .entry-content h3 { position: relative; padding-left: 1.3rem; }
.entry-content h2::before, .entry-content h3::before {
    content: ""; position: absolute; left: 0; top: .42em;
    width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg);
}
.entry-content img { display: block; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { color: var(--ash); font-size: .88rem; margin-top: .4em; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.empty-note { color: var(--ash); }

/* ---------- Заголовки секций ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 2rem;
    letter-spacing: .1em;
    margin: 0 0 1.4rem;
}
.section-title::before { content: ""; flex: 0 0 48px; height: 3px; background: var(--amber); }
.section-lead { color: var(--ash); max-width: 68ch; margin-bottom: 2.2rem; }

/* ---------- Плашки рубрик ---------- */
.card-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.tag-plate {
    display: inline-block;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .72rem;
    font-weight: 500;
    padding: .25em .7em;
    border-radius: 2px;
    color: #141416;
    background-image: none !important;
    transition: filter .15s ease;
}
.tag-plate:hover { filter: brightness(1.12); color: #141416; }
.tone-a { background-color: #e8912a; }
.tone-b { background-color: #b87333; }
.tone-c { background-color: #d4820a; }
.tone-d { background-color: #c9a15b; }
.tone-e { background-color: #9c5a2a; color: #e8e6e1; }
.tone-e:hover { color: #e8e6e1; }

/* ---------- Карточки ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.cards-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards-grid-two { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 4px 4px 0 var(--shade);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--amber); opacity: 0; transition: opacity .2s ease; z-index: 2;
}
.card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--shade); border-color: var(--copper); }
.card:hover::before { opacity: 1; }
.card-thumb { overflow: hidden; background: #101012; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; filter: saturate(.85); transition: filter .25s ease; }
.card:hover .card-thumb img { filter: saturate(1.05); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.card-title { font-size: 1.2rem; margin: 0 0 .5rem; letter-spacing: .05em; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--amber); }
.card-meta { color: var(--ash); font-size: .82rem; margin-bottom: .7rem; }
.card-excerpt { color: #c9c6c0; font-size: .96rem; margin-bottom: 1rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    font-family: var(--f-head);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .85rem;
}
.card-more:hover { color: var(--amber); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.6rem; }
.pager .page-numbers, .pager > a, .pager > span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; height: 2.6rem; padding: 0 .9rem;
    border: 1px solid var(--line); border-radius: 2px;
    background: var(--bg-alt); color: var(--ink);
    font-family: var(--f-head); letter-spacing: .08em; text-transform: uppercase; font-size: .9rem;
    transition: border-color .15s ease, color .15s ease, transform .12s ease;
}
.pager a.page-numbers:hover { border-color: var(--copper); color: var(--amber); transform: translate(1px, 1px); }
.pager .page-numbers.current { background: var(--amber); border-color: var(--amber); color: #141416; box-shadow: 3px 3px 0 var(--shade); }
.pager .page-numbers.dots { border-color: transparent; background: transparent; min-width: auto; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-top: 3px solid var(--copper);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}
.widget { margin-bottom: 2rem; }
.widget:last-child { margin-bottom: 0; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin: 0; padding: .6rem 0; border-bottom: 1px dashed var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget-title {
    position: relative;
    padding-left: 1.3rem;
    font-size: 1.05rem;
    letter-spacing: .12em;
    margin: 0 0 1rem;
}
.widget-title::before {
    content: ""; position: absolute; left: 0; top: .38em;
    width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg);
}
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget, .sidebar .widget p { color: #cfccc6; }
.sidebar .widget a { color: var(--copper); }
.sidebar .widget a:hover { color: var(--amber); }
.sidebar .post-date { display: block; color: var(--ash); font-size: .8rem; margin-top: .15rem; }

/* ---------- Поиск ---------- */
.seek { display: flex; gap: .5rem; margin: 1.2rem 0; max-width: 560px; }
.seek-field, .talk input[type="text"], .talk input[type="email"], .talk input[type="url"], .talk textarea {
    flex: 1; min-width: 0;
    background: #0e0e10; color: var(--ink);
    border: 1px solid var(--line); border-radius: 2px;
    padding: .75rem .9rem; font: inherit;
}
.seek-field:focus, .talk input:focus, .talk textarea:focus { border-color: var(--copper); outline: none; }
.seek-btn { box-shadow: none; }

/* ---------- Навигация по записям ---------- */
.post-navigation { margin-top: 3rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-navigation a {
    display: block;
    background: var(--bg-alt); border: 1px solid var(--line); border-radius: 2px;
    padding: 1rem 1.2rem; color: var(--ink);
    transition: border-color .15s ease;
}
.post-navigation a:hover { border-color: var(--copper); }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.postnav-label { display: block; color: var(--ash); font-size: .8rem; }
.postnav-title { display: block; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Комментарии ---------- */
.talk { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.talk-list, .talk-list .children { list-style: none; padding: 0; margin: 0; }
.talk-list .children { margin-left: 2rem; }
.forge-comment-body { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 2px; padding: 1.1rem 1.3rem; margin-bottom: 1rem; }
.forge-comment-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.forge-comment-head img { border-radius: 2px; display: block; }
.forge-comment-author { display: block; }
.forge-comment-date { color: var(--ash); font-size: .82rem; }
.forge-comment-wait { color: var(--amber); font-size: .9rem; }
.forge-comment-reply a { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.4rem; margin-top: 0; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; color: var(--ash); font-size: .9rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; }
.comment-form .comment-form-cookies-consent label { display: inline; }
.comment-notes { color: var(--ash); font-size: .88rem; }

/* ---------- 404 ---------- */
.lost { text-align: left; padding: 2rem 0; }
.lost-code {
    display: block; font-family: var(--f-head); font-weight: 700;
    font-size: 8rem; line-height: 1; color: transparent;
    -webkit-text-stroke: 2px var(--amber); letter-spacing: .08em; margin-bottom: 1rem;
}

/* ---------- Главная: общее ---------- */
.fs-block { padding: 5rem 0; }
.ruler { width: 60%; margin: 0 auto; height: 1px; background: var(--line); border: 0; }
.spark-trail {
    width: 40%;
    height: 4px;
    margin: 0 auto;
    background-image: radial-gradient(circle, var(--amber) 1.3px, transparent 1.6px);
    background-size: 14px 4px;
    background-repeat: repeat-x;
    opacity: .7;
}

/* Hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    display: flex;
    align-items: center;
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
}
.fs-hero-bg {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}
.fs-hero::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(14,14,16,.95) 0%, rgba(14,14,16,.8) 45%, rgba(14,14,16,.3) 100%);
}
.fs-hero-inner { position: relative; z-index: 2; padding: 5rem 0; }
.fs-hero-copy { max-width: 640px; }
.fs-hero-title {
    font-size: 3.2rem;
    letter-spacing: .08em;
    line-height: 1.08;
    margin: 0 0 1.3rem;
    padding-left: 1.4rem;
    border-left: 6px solid var(--amber);
}
.fs-hero-lead { color: #d3d0c9; font-size: 1.15rem; max-width: 56ch; margin-bottom: 2rem; }
.fs-hero-hammer {
    position: absolute; right: 3%; bottom: 1rem; z-index: 2;
    width: 190px; height: 190px; opacity: .55; pointer-events: none;
}

/* Шаги */
.steps-rail {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    max-width: 880px;
}
.steps-rail::before {
    content: "";
    position: absolute;
    left: 31px;
    top: 32px;
    bottom: 32px;
    border-left: 2px dashed var(--amber);
    opacity: .6;
}
.step-plate {
    position: relative;
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    margin: 0 0 1.4rem;
}
.step-plate:last-child { margin-bottom: 0; }
.step-num {
    position: relative; z-index: 1;
    flex: 0 0 64px; height: 64px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg);
    border: 2px solid var(--copper);
    outline: 1px solid var(--copper);
    outline-offset: 4px;
    color: var(--amber);
    font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; letter-spacing: .06em;
}
.step-text {
    flex: 1; min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 4px 4px 0 var(--shade);
    padding: 1.3rem 1.6rem;
}
.step-text h3 { position: relative; padding-left: 1.2rem; margin: 0 0 .5rem; font-size: 1.15rem; }
.step-text h3::before {
    content: ""; position: absolute; left: 0; top: .4em;
    width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg);
}
.step-text p { margin: 0; color: #c9c6c0; }

/* Последние записи */
.fs-latest { background: var(--bg-alt); padding: 5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fs-latest .card { background: var(--bg); }
.fs-latest-more { margin-top: 2.6rem; }

/* Статистика */
.fs-stats {
    margin-top: 5rem;
    margin-bottom: 5rem;
    padding: 3.5rem 3rem;
    background-color: #1c1c1f;
    background-image:
        radial-gradient(circle, #2a2a2e 1px, transparent 1.4px),
        linear-gradient(160deg, #1c1c1f 0%, #141416 100%);
    background-size: 18px 18px, 100% 100%;
    border: 1px solid var(--line);
    border-radius: 2px;
}
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-cell {
    min-width: 0;
    display: flex; flex-direction: column; gap: .4rem;
    padding: .5rem 1.6rem;
    border-left: 1px solid var(--copper);
}
.stat-cell:first-child { border-left: 0; padding-left: 0; }
.stat-num {
    font-family: var(--f-head); font-weight: 700;
    font-size: 4rem; line-height: 1; color: var(--amber); letter-spacing: .02em;
}
.stat-label { color: var(--ash); text-transform: lowercase; font-size: 1rem; }

/* Рубрикатор */
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.topic-plate {
    position: relative;
    min-width: 0;
    display: flex; flex-direction: column; gap: .5rem;
    padding: 1.8rem 1.6rem 1.7rem;
    background: linear-gradient(180deg, #202024 0%, #18181b 100%);
    border: 1px solid var(--line);
    border-radius: 2px;
    box-shadow: 4px 4px 0 var(--shade), inset 0 1px 0 rgba(232,230,225,.05);
    color: var(--ink);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.topic-plate::after {
    content: ""; position: absolute; top: 10px; right: 10px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--line);
    transition: background-color .2s ease;
}
.topic-plate svg { width: 44px; height: 44px; fill: none; stroke: var(--amber); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; margin-bottom: .4rem; }
.topic-name { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.15rem; }
.topic-note { color: var(--ash); font-size: .92rem; }
.topic-plate:hover {
    transform: translateY(-3px);
    border-color: var(--copper);
    box-shadow: 6px 6px 0 var(--shade), 0 0 22px rgba(184,115,51,.28), inset 0 1px 0 rgba(232,145,42,.25);
    color: var(--ink);
}
.topic-plate:hover::after { background: var(--amber); }

/* ---------- Подвал ---------- */
.basement {
    background: var(--bg-foot);
    border-top: 2px solid var(--amber);
    color: #cfccc6;
    padding: 3.5rem 0 1.5rem;
}
.basement-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.basement-col { min-width: 0; }
.basement .widget-title { color: var(--ink); }
.basement .widget, .basement .widget p { color: #bdbab3; font-size: .95rem; }
.basement .widget a { color: var(--copper); }
.basement .widget a:hover { color: var(--amber); }
.basement .widget li { border-bottom-color: #1e1e22; }
.basement-copy {
    margin: 3rem 0 0; padding-top: 1.4rem;
    border-top: 1px solid #1e1e22;
    color: var(--ash); font-size: .85rem;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem; right: 1rem; bottom: 1rem;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    max-width: 980px; margin: 0 auto;
    background: var(--bg-head);
    border: 1px solid var(--copper);
    border-top: 3px solid var(--amber);
    border-radius: 2px;
    box-shadow: 6px 6px 0 #000;
    padding: 1.1rem 1.4rem;
}
.cookie-banner-text { margin: 0; font-size: .92rem; color: #d3d0c9; min-width: 0; }
.cookie-banner-btn { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
    .layout-single { width: 100%; }
    .cards-grid, .layout-single .cards-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }
    .basement-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-hero-title { font-size: 2.6rem; }
    .front .shell { width: min(92%, 1240px); }
    .brand-desc { display: none; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .topnav { display: none; }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; }
    .topnav-list a, .topnav-list li:first-child a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-name { font-size: .82rem; }
    .brand-svg { width: 44px; height: 44px; }
    .page-title { font-size: 1.9rem; }
    .section-title { font-size: 1.5rem; gap: .7rem; }
    .section-title::before { flex-basis: 32px; }
    .cards-grid, .cards-grid-two, .layout-single .cards-grid-two { grid-template-columns: minmax(0, 1fr); }
    .card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .topics-grid { grid-template-columns: minmax(0, 1fr); }
    .fs-block { padding: 3.2rem 0; }
    .fs-latest { padding: 3.2rem 0; }
    .fs-stats { padding: 2.2rem 1.5rem; margin-top: 3.2rem; margin-bottom: 3.2rem; }
    .stats-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.4rem; }
    .stat-cell, .stat-cell:first-child, .stat-cell:nth-child(3) { border-left: 3px solid var(--copper); padding: .2rem 0 .2rem 1rem; }
    .stat-num { font-size: 3rem; }
    .fs-hero { min-height: 460px; }
    .fs-hero-inner { padding: 3.5rem 0; }
    .fs-hero-title { font-size: 2rem; padding-left: 1rem; border-left-width: 4px; }
    .fs-hero-hammer { width: 110px; height: 110px; opacity: .35; }
    .steps-rail::before { left: 23px; }
    .step-plate { gap: 1rem; }
    .step-num { flex-basis: 48px; height: 48px; font-size: 1.1rem; outline-offset: 3px; }
    .step-text { padding: 1.1rem 1.2rem; }
    .basement-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .post-navigation .nav-links { grid-template-columns: minmax(0, 1fr); }
    .post-navigation .nav-next { grid-column: auto; }
    .seek { flex-direction: column; }
    .lost-code { font-size: 5rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    body::after { width: 180px; height: 130px; }
}
