/*
Theme Name: dds_nek-ug.ru
Author: Сергей Ковалёв
Description: Тема для информационно-образовательного портала о проектировании и строительстве лестниц на металлическом каркасе. Графитовая палитра с янтарно-медным акцентом, чертёжная графика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: nekstair
*/

/* ---------- Hidden-state guards (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Base ---------- */
*, *::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: none !important; }
}
body {
    margin: 0;
    overflow-x: hidden;
    border-top: 3px solid #e8a33d;
    background-color: #16181d;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='320' viewBox='0 0 360 320'%3E%3Cg fill='none' stroke='%232a2e36' stroke-width='1.4'%3E%3Cpath d='M20 300h50v-40h50v-40h50v-40h50v-40h50v-40h50V60'/%3E%3Cpath d='M20 300L340 60'/%3E%3Cpath d='M40 314L352 80'/%3E%3Cpath d='M70 300v14M120 260v54M170 220v94M220 180v134M270 140v174M320 100v214'/%3E%3Cpath d='M320 60V20h-40' stroke-dasharray='4 4'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(28, 31, 38, 0.55) 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat;
    background-position: right 12px bottom 12px, 0 0;
    background-attachment: fixed, scroll;
    color: #e8eaed;
    font-family: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 {
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: #f2f3f5;
    margin: 1.6em 0 0.6em;
    letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: #5b9bd5; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s, text-shadow .2s; }
a:hover { text-decoration-color: #e8a33d; text-shadow: 0 0 8px rgba(91, 155, 213, .45); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #e8a33d; outline-offset: 2px; }
blockquote {
    margin: 1.5em 0;
    padding: 1rem 1.4rem;
    border-left: 3px solid #5b9bd5;
    background: #1e2128;
    color: #e8eaed;
}
blockquote p:last-child { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; margin: 1.4em 0; border: 1px solid #2a2e36; }
th, td { border: 1px solid #2a2e36; padding: .55rem .75rem; text-align: left; }
th { background: #1e2128; font-family: "Roboto Condensed", Arial, sans-serif; color: #e8a33d; }
pre, code { font-family: Consolas, "Liberation Mono", monospace; font-size: .92em; }
pre { background: #101216; border: 1px solid #2a2e36; padding: 1rem 1.2rem; overflow-x: auto; }
hr { border: 0; border-top: 1px solid #2a2e36; margin: 2rem 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%, 1180px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .03em;
    padding: .8rem 1.6rem;
    border-radius: 2px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; text-shadow: none; }
.btn-fill {
    background: #e8a33d linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(0, 0, 0, .08));
    color: #16181d;
    border-color: #f0b75e;
}
.btn-fill:hover { color: #16181d; box-shadow: 0 0 0 1px #e8a33d, 0 0 18px rgba(232, 163, 61, .55); }
.btn-line { background: transparent; color: #5b9bd5; border-color: #5b9bd5; }
.btn-line:hover { color: #e8eaed; background: rgba(232, 163, 61, .16); box-shadow: 0 0 14px rgba(232, 163, 61, .3); }

/* ---------- Header ---------- */
.masthead { background: #101216; border-bottom: 1px solid #2a2e36; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1rem 0; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; min-width: 0; flex: 1 1 auto; }
.brand:hover { text-shadow: none; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-svg, .brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.3;
    color: #e8eaed;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 62ch;
}
.brand-desc {
    font-size: .8rem;
    color: #8b919a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 70ch;
}
.primary-nav { flex: 0 0 auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .3rem; }
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: .55rem .9rem;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 500;
    font-size: 1.02rem;
    color: #e8eaed;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: #e8a33d; border-bottom-color: #e8a33d; text-shadow: 0 0 10px rgba(232, 163, 61, .4); }
.nav-list .sub-menu { list-style: none; margin: 0; padding: .3rem 0; position: absolute; left: 0; top: 100%; min-width: 200px; background: #101216; border: 1px solid #2a2e36; display: none; z-index: 20; }
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-toggle { display: none; background: transparent; border: 1px solid #2a2e36; border-radius: 2px; width: 44px; height: 40px; cursor: pointer; position: relative; flex: 0 0 auto; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 20px; height: 2px; background: #e8a33d; content: ""; }
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }

/* ---------- Section titles & dividers ---------- */
.sec-title, .page-heading {
    position: relative;
    margin: 0 0 1.8rem;
    padding: 0 0 .7rem 1.15rem;
    font-size: 2rem;
    text-transform: none;
}
.sec-title::before, .page-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 9px;
    height: 9px;
    background: #e8a33d;
    box-shadow: 0 0 8px rgba(232, 163, 61, .6);
}
.sec-title::after, .page-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: min(100%, 380px);
    height: 1px;
    background: linear-gradient(90deg, #e8a33d, rgba(232, 163, 61, 0));
}
.rule-diamond { position: relative; height: 1px; background: #2a2e36; margin: 3rem auto; width: 70%; }
.rule-diamond::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; background: #e8a33d; transform: translate(-50%, -50%) rotate(45deg); }
.rule-drawing { position: relative; height: 14px; margin: 3rem auto; width: 60%; background: linear-gradient(90deg, #2a2e36 50%, transparent 50%) 0 50% / 12px 1px repeat-x; }
.rule-drawing::before, .rule-drawing::after { content: ""; position: absolute; top: 0; width: 1px; height: 14px; background: #8b919a; }
.rule-drawing::before { left: 0; }
.rule-drawing::after { right: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #101216; border-bottom: 1px solid #2a2e36; min-height: 540px; display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16, 18, 22, .96) 0%, rgba(16, 18, 22, .78) 48%, rgba(16, 18, 22, .25) 100%); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; width: min(85%, 1180px); margin-inline: auto; padding: 4.5rem 0; }
.hero-corner { position: absolute; top: 2rem; right: 0; width: 64px; height: 64px; border-top: 3px solid #e8a33d; border-right: 3px solid #e8a33d; box-shadow: 4px -4px 14px -6px rgba(232, 163, 61, .6); }
.hero-corner::after { content: ""; position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-top: 1px solid #8b919a; border-right: 1px solid #8b919a; }
.hero-kicker { color: #e8a33d; font-family: "Roboto Condensed", Arial, sans-serif; font-weight: 500; font-size: 1.05rem; margin: 0 0 .9rem; }
.hero-title { font-size: 3.2rem; font-weight: 800; line-height: 1.08; margin: 0 0 1.2rem; max-width: 17ch; color: #f4f5f7; text-shadow: 0 2px 0 #000; }
.hero-sub { color: #c9cdd3; font-size: 1.15rem; max-width: 56ch; margin: 0 0 2rem; }

/* ---------- Front sections ---------- */
.front-wrap { width: min(85%, 1180px); padding: 3.5rem 0 4rem; }
.front-section { margin: 0; }
.figures {
    background-color: #1e2128;
    background-image: radial-gradient(#2a2e36 1px, transparent 1.5px);
    background-size: 12px 12px;
    border: 1px solid #2a2e36;
    padding: 2.6rem 2.4rem;
}
.figures-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.figure-cell { display: flex; flex-direction: column; align-items: center; text-align: center; padding: .6rem 1rem; border-left: 1px solid #2a2e36; min-width: 0; }
.figure-cell:first-child { border-left: 0; }
.figure-num { font-family: "Roboto Condensed", Arial, sans-serif; font-weight: 800; font-size: 3.4rem; line-height: 1; color: #e8a33d; text-shadow: 0 0 22px rgba(232, 163, 61, .35); }
.figure-cap { margin-top: .5rem; color: #8b919a; font-size: 1rem; }

.latest-more { margin: 2rem 0 0; text-align: center; }
.empty-note { color: #8b919a; }

.steps { padding: 2.6rem 0 0; }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; position: relative; }
.steps-row::before { content: ""; position: absolute; left: 3%; right: 3%; top: 2.55rem; height: 1px; background: linear-gradient(90deg, #8b919a 50%, transparent 50%) 0 0 / 10px 1px repeat-x; }
.step { position: relative; background: #1a1d23; border: 1px solid #2a2e36; border-radius: 4px; padding: 1.4rem 1.3rem 1.5rem; min-width: 0; box-shadow: 0 8px 22px rgba(0, 0, 0, .28); }
.step-num { display: flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; background: #e8a33d; color: #16181d; font-family: "Roboto Condensed", Arial, sans-serif; font-weight: 800; font-size: 1.35rem; border-radius: 2px; box-shadow: 0 0 12px rgba(232, 163, 61, .45); margin-bottom: 1rem; }
.step-title { margin: 0 0 .5rem; font-size: 1.2rem; }
.step p { margin: 0; color: #b9bec5; font-size: .96rem; }

.cta { margin-top: 3.5rem; }
.cta-plate {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
    padding: 3rem 3rem;
    background-color: #1e2128;
    background-image:
        radial-gradient(ellipse at 40% 50%, rgba(232, 163, 61, .20), rgba(232, 163, 61, 0) 65%),
        radial-gradient(#2a2e36 1px, transparent 1.5px);
    background-size: 100% 100%, 12px 12px;
    clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}
.cta-title { margin: 0 0 1rem; font-size: 2.2rem; text-shadow: 0 0 24px rgba(232, 163, 61, .25); }
.cta-text p { color: #c9cdd3; max-width: 52ch; margin-bottom: 1.6rem; }
.cta-art { display: block; width: 100%; max-width: 320px; height: auto; justify-self: center; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.card-grid-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .card-grid-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #1c1f25;
    border: 1px solid #2a2e36;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
    transition: transform .25s, box-shadow .25s, border-color .25s;
    min-width: 0;
}
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #e8a33d; box-shadow: 0 0 12px #e8a33d; opacity: 0; transition: opacity .25s; z-index: 2; }
.card:hover { transform: translateY(-4px); border-color: #e8a33d; box-shadow: 0 16px 30px rgba(0, 0, 0, .45); }
.card:hover::before { opacity: 1; }
.card-thumb { background: #101216; border-bottom: 1px solid #2a2e36; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1.414 / 1; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.4rem; min-width: 0; }
.card-title { margin: .7rem 0 .4rem; font-size: 1.22rem; overflow-wrap: anywhere; }
.card-title a { color: #f2f3f5; text-decoration: none; }
.card-title a:hover { color: #e8a33d; text-shadow: none; }
.card-meta { color: #8b919a; font-size: .85rem; margin-bottom: .6rem; }
.card-excerpt { color: #b9bec5; 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: "Roboto Condensed", Arial, sans-serif; font-weight: 700; }

.tag-plate {
    display: inline-block;
    align-self: flex-start;
    padding: .2rem .75rem;
    background: #2a2e36;
    color: #e8a33d;
    border: 1px solid #3a3f49;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: .8rem;
    font-weight: 500;
    text-decoration: none;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.tag-plate:hover { color: #16181d; background: #e8a33d; text-shadow: none; }

/* ---------- Layouts ---------- */
.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; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.crumbs { padding: 1.3rem 0 1.4rem; font-size: .9rem; color: #8b919a; overflow-wrap: anywhere; }
.crumbs a { color: #5b9bd5; }
.crumbs-sep { color: #e8a33d; margin: 0 .25rem; }

.entry { background: #1a1d23; border: 1px solid #2a2e36; border-radius: 4px; padding: 2rem 2.2rem 2.2rem; }
.entry-head { margin-bottom: 1.4rem; }
.entry-title { font-size: 2.4rem; margin: .6rem 0 .5rem; overflow-wrap: anywhere; }
.entry-meta { color: #8b919a; font-size: .9rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.entry-tags-foot { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid #2a2e36; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { display: block; width: 100%; height: auto; border: 1px solid #2a2e36; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { position: relative; padding-left: 1rem; }
.entry-content h2::before { content: ""; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; background: #e8a33d; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: #e8a33d; }
.entry-content img { display: block; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figcaption { color: #8b919a; font-size: .88rem; margin-top: .4rem; }
.alignleft { float: left; margin: .3rem 1.4rem 1rem 0; }
.alignright { float: right; margin: .3rem 0 1rem 1.4rem; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .4rem; margin: 2.4rem 0 0; align-items: center; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .8rem;
    border: 1px solid #2a2e36;
    border-radius: 2px;
    background: #1a1d23;
    color: #e8eaed;
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-weight: 500;
    text-decoration: none;
}
.pager a.page-numbers:hover { border-color: #e8a33d; color: #e8a33d; text-shadow: none; box-shadow: 0 0 10px rgba(232, 163, 61, .3); }
.pager .page-numbers.current { background: #e8a33d; border-color: #e8a33d; color: #16181d; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Sidebar & widgets ---------- */
.sidebar { background: #1a1d23; border: 1px solid #2a2e36; border-radius: 4px; padding: 1.5rem 1.5rem .6rem; min-width: 0; color: #e8eaed; }
.widget { margin-bottom: 1.8rem; }
.widget-title { position: relative; margin: 0 0 1rem; padding: 0 0 .5rem .9rem; font-size: 1.15rem; }
.widget-title::before { content: ""; position: absolute; left: 0; top: .4em; width: 7px; height: 7px; background: #e8a33d; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 90px; height: 1px; background: #e8a33d; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .5rem 0; border-bottom: 1px dashed #2a2e36; }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget-title { color: #f2f3f5; }
.sidebar .widget a { color: #9cc3e8; text-decoration: none; }
.sidebar .widget a:hover { color: #e8a33d; }
.sidebar .widget .post-date { display: block; color: #8b919a; font-size: .82rem; margin-top: .15rem; }
.sidebar .widget p, .sidebar .textwidget { color: #c9cdd3; }

/* ---------- Footer ---------- */
.basement { background: #0d0e12; border-top: 1px solid #2a2e36; color: #c9cdd3; padding: 3rem 0 1.4rem; }
.basement-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.basement-col { min-width: 0; }
.basement .widget-title { color: #f2f3f5; }
.basement .widget, .basement .textwidget, .basement .widget p { color: #b9bec5; font-size: .95rem; }
.basement .widget a { color: #9cc3e8; text-decoration: none; }
.basement .widget a:hover { color: #e8a33d; }
.basement .widget .post-date { color: #8b919a; }
.basement .widget li { border-bottom-color: #22252c; }
.copyline { margin: 2.4rem 0 0; padding-top: 1.2rem; border-top: 1px solid #2a2e36; color: #8b919a; font-size: .88rem; }

/* ---------- Search, 404 ---------- */
.finder { display: flex; gap: .5rem; margin: 1.2rem 0; max-width: 520px; }
.finder-input { flex: 1; min-width: 0; padding: .75rem .9rem; background: #101216; border: 1px solid #2a2e36; border-radius: 2px; color: #e8eaed; font: inherit; }
.finder-input::placeholder { color: #8b919a; }
.finder-btn { padding: .7rem 1.2rem; }
.sidebar .finder { flex-wrap: wrap; }
.lost { text-align: left; padding: 2rem 0 1rem; }
.lost-code { font-family: "Roboto Condensed", Arial, sans-serif; font-weight: 800; font-size: 7rem; line-height: 1; color: #e8a33d; margin: 0 0 .5rem; text-shadow: 0 0 30px rgba(232, 163, 61, .3); }

/* ---------- Comments ---------- */
.discussion { margin-top: 2.5rem; background: #1a1d23; border: 1px solid #2a2e36; border-radius: 4px; padding: 2rem 2.2rem; }
.discussion .sec-title { font-size: 1.5rem; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-left: 1.6rem; border-left: 1px solid #2a2e36; }
.note-body { padding: 1rem 0; border-bottom: 1px dashed #2a2e36; }
.note-head { display: flex; gap: .8rem; flex-wrap: wrap; align-items: baseline; margin-bottom: .4rem; }
.note-author { font-weight: 600; color: #e8eaed; }
.note-date { color: #8b919a; font-size: .85rem; }
.note-wait { color: #e8a33d; font-size: .9rem; }
.comment-reply-link { font-size: .88rem; }
.comment-respond { margin-top: 1.8rem; }
.comment-form label { display: block; margin-bottom: .3rem; color: #c9cdd3; font-size: .92rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .7rem .85rem; background: #101216; border: 1px solid #2a2e36; border-radius: 2px; color: #e8eaed; font: inherit;
}
.comment-form p { margin-bottom: 1rem; }
.comment-form-cookies-consent label { display: inline; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1rem 1.4rem;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    background: #101216;
    border: 1px solid #2a2e36;
    border-left: 3px solid #e8a33d;
    border-radius: 2px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
}
.cookie-text { margin: 0; font-size: .92rem; color: #c9cdd3; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .masthead-row { flex-wrap: wrap; }
    .brand { flex: 1 1 0; }
    .primary-nav { display: none; flex: 1 1 100%; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid #2a2e36; padding-top: .4rem; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding-left: 1rem; }
    .hero-title { font-size: 2.5rem; }
    .figures-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
    .figure-cell:nth-child(3) { border-left: 0; }
    .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-row::before { display: none; }
    .card-grid, .layout-single .card-grid-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .cta-plate { grid-template-columns: minmax(0, 1fr); padding: 2.4rem 2.2rem; }
    .cta-art { max-width: 240px; }
    .basement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body { background-attachment: scroll; background-image: repeating-linear-gradient(45deg, rgba(28, 31, 38, 0.55) 0 1px, transparent 1px 24px); }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: .85rem; }
    .hero { min-height: 460px; }
    .hero-inner { width: 90%; padding: 3.2rem 0; }
    .hero-corner { width: 40px; height: 40px; top: 1.2rem; }
    .hero-corner::after { width: 20px; height: 20px; }
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .front-wrap { width: 92%; padding-top: 2.4rem; }
    .figures { padding: 1.8rem 1.4rem; }
    .figure-num { font-size: 2.5rem; }
    .steps-row { grid-template-columns: minmax(0, 1fr); }
    .card-grid, .card-grid-feed, .layout-single .card-grid-feed { grid-template-columns: minmax(0, 1fr); }
    .sec-title, .page-heading { font-size: 1.6rem; }
    .cta-plate { padding: 2rem 1.4rem; }
    .cta-title { font-size: 1.7rem; }
    .entry { padding: 1.4rem 1.2rem; }
    .entry-title { font-size: 1.8rem; }
    .discussion { padding: 1.4rem 1.2rem; }
    .basement-grid { grid-template-columns: minmax(0, 1fr); }
    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .finder { flex-wrap: wrap; }
    .lost-code { font-size: 5rem; }
}
