/*
Theme Name: dds_protorol.com
Theme URI: https://protorol.com/
Author: Артём Громов
Description: Тёмная индустриально-аналитическая тема «Стальной чертёж» для информационного портала о SEO и маркетинге недвижимости.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: prtrol
*/

:root {
    --bg: #0E1621;
    --bg-alt: #13202E;
    --hdr: #0A1017;
    --ftr: #080D13;
    --sb: #101B28;
    --surface: #15222F;
    --txt: #E6EDF3;
    --acc: #4EA8FF;
    --acc2: #7FFFD4;
    --mut: #7A8FA6;
    --line: #1E3A5F;
    --grid: rgba(26, 42, 61, .15);
    --head-font: "Futura", "Trebuchet MS", "Segoe UI", Tahoma, Arial, sans-serif;
    --body-font: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
    --mono-font: "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
    --cut: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    position: relative;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--txt);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px;
    background-attachment: fixed;
}

/* декоративный контур восходящего графика в правом верхнем углу */
body::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 440px;
    height: 280px;
    max-width: 60%;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: top right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 440 280'%3E%3Cg fill='none' stroke='%234EA8FF' stroke-opacity='0.08' stroke-width='2'%3E%3Cpolyline points='10,250 80,205 140,220 210,140 275,165 340,70 420,30'/%3E%3Cpolyline points='10,270 100,240 170,250 250,190 320,205 420,110' stroke-dasharray='6 8'/%3E%3C/g%3E%3Cg fill='%237FFFD4' fill-opacity='0.08'%3E%3Ccircle cx='210' cy='140' r='5'/%3E%3Ccircle cx='340' cy='70' r='5'/%3E%3Ccircle cx='420' cy='30' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

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

.shell {
    position: relative;
    z-index: 1;
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- типографика ---------- */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.22;
    color: var(--txt);
    margin: 0 0 .7em;
}

h1 { font-size: 3.2rem; letter-spacing: .06em; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }

p { margin: 0 0 1.1em; }

a { color: var(--acc); text-decoration: none; transition: color .2s ease; }

.entry-content a,
.widget a,
.breadcrumbs a,
.site-footer a,
.card-title a,
.comment-body a {
    background-image: linear-gradient(var(--acc2), var(--acc2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .3s ease, color .25s ease;
}

.entry-content a:hover,
.widget a:hover,
.breadcrumbs a:hover,
.site-footer a:hover,
.card-title a:hover,
.comment-body a:hover {
    color: var(--acc2);
    background-size: 100% 1px;
}

.entry-content h2 { position: relative; padding-left: 1.1rem; margin-top: 1.8em; }
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .58em;
    width: 7px;
    height: 7px;
    background: var(--acc2);
}
.entry-content h3 { margin-top: 1.5em; }

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    border: 0;
    border-left: 6px solid transparent;
    border-image: linear-gradient(180deg, var(--acc), var(--acc2)) 1;
    background: rgba(19, 32, 46, .72);
    backdrop-filter: blur(3px);
    color: #D6E2EC;
    font-size: 1.06rem;
}
blockquote p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: .45em; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    border: 1px solid var(--line);
    font-size: .95rem;
}
table th, table td { border: 1px solid var(--line); padding: .65rem .8rem; text-align: left; }
table th { background: #16263A; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--acc2); }

code, pre { font-family: var(--mono-font); background: #0B1422; color: var(--acc2); }
pre { padding: 1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
code { padding: .1em .35em; border-radius: 3px; }

/* ---------- кнопки ---------- */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .78rem 1.6rem;
    border-radius: 3px;
    border: 1px solid var(--acc);
    clip-path: var(--cut);
    cursor: pointer;
    transition: transform .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.btn-fill { background: var(--acc); color: #06111C; }
.btn-ghost { background: transparent; color: var(--acc); }

.btn:hover,
.btn:focus {
    transform: translate(2px, -2px);
    background: var(--acc2);
    border-color: var(--acc2);
    color: #06111C;
    box-shadow: 0 0 18px rgba(78, 168, 255, .45);
}

/* ---------- шапка ---------- */

.top-strip {
    height: 4px;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
    position: relative;
    z-index: 3;
}

.site-header {
    position: relative;
    z-index: 2;
    background: var(--hdr);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.15rem 0;
    flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: .9rem; min-width: 0; flex: 1 1 320px; }
.brand-logo { display: block; width: auto; height: 52px; }
.brand-mark { display: block; width: 52px; height: 52px; flex: none; }
.brand-text { min-width: 0; }

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--head-font);
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--txt);
    line-height: 1.35;
}
.brand-name a { color: inherit; }
.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: .2rem;
    font-size: .78rem;
    line-height: 1.45;
    color: var(--mut);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--acc);
    font-family: var(--head-font);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .55rem .9rem;
    border-radius: 3px;
    cursor: pointer;
}

.main-nav[hidden] { display: none !important; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.main-nav a {
    font-family: var(--head-font);
    font-size: .84rem;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--txt);
    padding: .3rem 0;
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.main-nav a:hover { color: var(--acc2); border-bottom-color: var(--acc2); }
.main-nav .current-menu-item > a { color: var(--acc); border-bottom-color: var(--acc); }

/* ---------- секции ---------- */

.site-main { position: relative; z-index: 1; display: block; }

.sec { padding: 4.6rem 0; position: relative; }
.sec-alt {
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(78, 168, 255, .3);
    border-bottom: 1px solid rgba(78, 168, 255, .3);
    background-image:
        linear-gradient(rgba(26, 42, 61, .28) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 42, 61, .28) 1px, transparent 1px);
    background-size: 24px 24px;
}
.sec-accent {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(rgba(26, 42, 61, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 42, 61, .3) 1px, transparent 1px),
        linear-gradient(135deg, #13202E, #1A2E44);
    background-size: 24px 24px, 24px 24px, auto;
    border-top: 1px solid rgba(78, 168, 255, .3);
    border-bottom: 1px solid rgba(78, 168, 255, .3);
}

.sec-title {
    position: relative;
    display: block;
    border-left: 2px solid var(--acc);
    padding: .1rem 0 1.1rem 1.6rem;
    margin-bottom: 1.9rem;
    font-size: 1.55rem;
    text-transform: uppercase;
    letter-spacing: .16em;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: .6rem;
    top: .68em;
    width: 7px;
    height: 7px;
    background: var(--acc2);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 1.6rem;
    bottom: .3rem;
    width: 40px;
    border-top: 1px dashed var(--acc);
}
.sec-lead { color: var(--mut); max-width: 62ch; margin-top: -.9rem; margin-bottom: 2.1rem; }

/* разделители */
.sep {
    display: flex;
    align-items: center;
    gap: .8rem;
    width: min(92%, 1180px);
    margin: 0 auto;
    padding: 1.6rem 0;
    position: relative;
    z-index: 1;
}
.sep::before, .sep::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.sep span {
    width: 9px;
    height: 9px;
    background: var(--acc2);
    transform: rotate(45deg);
    flex: none;
}

.diag {
    height: 46px;
    position: relative;
    z-index: 1;
    background-image: repeating-linear-gradient(115deg, rgba(78, 168, 255, .28) 0 12px, transparent 12px 26px);
    background-size: 100% 1px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ---------- раскладки ---------- */

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
    padding: 2.6rem 0 4rem;
}
.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 2.6rem 0 4rem;
}
.content-area { min-width: 0; }

/* ---------- хлебные крошки ---------- */

.breadcrumbs {
    position: relative;
    z-index: 1;
    width: min(92%, 1180px);
    margin: 0 auto;
    padding: 1rem 0 .2rem;
    font-size: .82rem;
    color: var(--mut);
    font-family: var(--mono-font);
}
.breadcrumbs a { color: var(--acc); }
.breadcrumbs .sep-mark { color: var(--line); margin: 0 .35rem; }

/* ---------- карточки записей ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.7rem;
}
.card-list { display: grid; gap: 1.7rem; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    border-top-left-radius: 0;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card::before {
    content: "";
    position: absolute;
    top: -9px;
    left: -9px;
    width: 24px;
    height: 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: rotate(45deg);
    z-index: 3;
    transition: border-color .25s ease;
}
.sec-alt .card::before, .sec-accent .card::before { background: var(--bg-alt); }
.card:hover {
    transform: translateY(-4px);
    border-color: var(--acc);
    box-shadow: 0 20px 34px -16px rgba(78, 168, 255, .6);
}
.card:hover::before { border-bottom-color: var(--acc); }

.card-thumb { position: relative; overflow: hidden; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .35s ease;
}
.card-thumb::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(8, 13, 19, .85));
    pointer-events: none;
}
.card:hover .card-thumb img { transform: scale(1.06); }

.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: .5rem;
    margin-bottom: .7rem;
    font-family: var(--mono-font);
    font-size: .76rem;
    color: var(--mut);
}
.card-title { font-size: 1.16rem; margin: 0 0 .6rem; letter-spacing: .02em; }
.card-title a { color: var(--txt); }
.card-excerpt { color: #C3D2DE; font-size: .95rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more { align-self: flex-start; margin-top: auto; padding: .55rem 1.1rem; font-size: .76rem; }

.cat-tag {
    display: inline-block;
    padding: .18rem .5rem;
    font-family: var(--head-font);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    border: 1px solid;
    border-radius: 2px;
}
.tone-1 { color: #4EA8FF; border-color: rgba(78, 168, 255, .55); background: rgba(78, 168, 255, .1); }
.tone-2 { color: #7FFFD4; border-color: rgba(127, 255, 212, .5); background: rgba(127, 255, 212, .08); }
.tone-3 { color: #9AB8D4; border-color: rgba(154, 184, 212, .5); background: rgba(154, 184, 212, .09); }
.tone-4 { color: #8E9BFF; border-color: rgba(142, 155, 255, .5); background: rgba(142, 155, 255, .1); }

/* ---------- главная: hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(78, 168, 255, .3);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(10, 16, 23, .95) 15%, rgba(14, 22, 33, .82) 55%, rgba(19, 32, 46, .68) 100%);
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 6rem 0;
}
.hero-text { flex: 1 1 auto; min-width: 0; max-width: 40rem; }
.hero-kicker {
    font-family: var(--mono-font);
    font-size: .78rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--acc2);
    margin-bottom: 1.1rem;
}
.hero h1 { text-transform: uppercase; margin-bottom: .55em; }
.hero-sub { color: var(--mut); font-size: 1.06rem; max-width: 46ch; margin-bottom: 2rem; }

.hero-rule { flex: none; display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: .4rem 0; }
.hero-rule i { display: block; width: 9px; height: 9px; background: var(--acc2); transform: rotate(45deg); }
.hero-rule span { display: block; width: 1px; height: 46px; background: linear-gradient(180deg, var(--acc), rgba(78, 168, 255, .1)); }

/* ---------- главная: статистика ---------- */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat { padding: .4rem 1.2rem; text-align: center; min-width: 0; border-left: 1px dashed rgba(78, 168, 255, .35); }
.stat:first-child { border-left: 0; }
.stat b {
    display: block;
    font-family: var(--head-font);
    font-size: 3.2rem;
    line-height: 1;
    color: var(--acc2);
    letter-spacing: .02em;
}
.stat span {
    display: block;
    margin-top: .6rem;
    font-size: .82rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--mut);
}

/* ---------- главная: рубрикатор ---------- */

.rubrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.7rem; }
.rubric {
    position: relative;
    min-width: 0;
    padding: 1.8rem 1.6rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.rubric:hover { border-color: var(--acc); box-shadow: 0 18px 30px -16px rgba(78, 168, 255, .6); transform: translateY(-3px); }
.rubric-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--acc);
    border-radius: 2px;
    clip-path: var(--cut);
    margin-bottom: 1.1rem;
}
.rubric-icon svg { width: 28px; height: 28px; display: block; }
.rubric h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .15em; margin-bottom: .55rem; }
.rubric p { color: var(--mut); font-size: .93rem; margin: 0; }

/* ---------- главная: FAQ ---------- */

.faq-wrap { background-image: linear-gradient(180deg, rgba(78, 168, 255, .07), transparent 65%); }
.faq { display: grid; gap: .9rem; max-width: 56rem; }
.faq details {
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(21, 34, 47, .7);
    padding: .2rem 1.4rem;
    transition: border-color .25s ease;
}
.faq details[open] { border-color: var(--acc); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.05rem 2rem 1.05rem 0;
    position: relative;
    font-family: var(--head-font);
    font-size: 1.1rem;
    letter-spacing: .03em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 0;
    top: 1.45rem;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid var(--acc2);
    transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq-answer {
    border-left: 1px solid var(--acc);
    padding: 0 0 1.1rem 1.1rem;
    margin: 0 0 .3rem;
    color: var(--mut);
    animation: faqIn .3s ease;
}
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- записи и страницы ---------- */

.entry-header { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.4rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    align-items: center;
    font-family: var(--mono-font);
    font-size: .8rem;
    color: var(--mut);
}
.entry-thumb { margin-bottom: 1.8rem; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: 4px; }

.page-head { margin-bottom: 1.8rem; }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin: 2.6rem 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
}
.post-nav span { display: block; font-family: var(--mono-font); font-size: .74rem; color: var(--mut); text-transform: uppercase; letter-spacing: .1em; }

/* ---------- пагинация ---------- */

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.6rem 0 .5rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: var(--head-font);
    font-size: .88rem;
    letter-spacing: .08em;
    color: var(--txt);
    background: var(--surface);
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.pagination a.page-numbers:hover { border-color: var(--acc); color: var(--acc2); }
.pagination .page-numbers.current { background: var(--acc); border-color: var(--acc); color: #06111C; }
.pagination .page-numbers.dots { border-color: transparent; background: transparent; color: var(--mut); }

/* ---------- сайдбар и виджеты ---------- */

.sidebar {
    min-width: 0;
    position: relative;
    background: var(--sb);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.5rem;
    color: var(--txt);
    box-shadow: inset 3px 0 12px -6px rgba(78, 168, 255, .55);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title,
.site-footer .widget-title {
    position: relative;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding-left: 1rem;
    margin-bottom: 1rem;
    color: var(--txt);
}
.sidebar .widget-title::before,
.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 7px;
    height: 7px;
    background: var(--acc2);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .5rem 0; border-bottom: 1px dashed rgba(30, 58, 95, .8); }
.widget li:last-child { border-bottom: 0; }
.sidebar .widget, .sidebar .widget li, .sidebar .widget p { color: #D3DFE9; font-size: .94rem; }
.sidebar .widget a { color: var(--acc); }
.sidebar .widget a:hover { color: var(--acc2); }
.sidebar .post-date, .sidebar .widget .post-date { color: var(--mut); font-family: var(--mono-font); font-size: .76rem; }

/* ---------- форма поиска ---------- */

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .7rem .9rem;
    background: #0B1422;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--txt);
    font-family: var(--body-font);
    font-size: .92rem;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--acc); }
.search-form .btn { padding: .7rem 1.05rem; font-size: .74rem; }

/* ---------- подвал ---------- */

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--ftr);
    border-top: 1px solid var(--line);
    color: #C6D3DE;
    margin-top: 2rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2.4rem;
    padding: 3.4rem 0 2.4rem;
}
.footer-col { min-width: 0; }
.site-footer .widget p, .site-footer .widget li, .site-footer .widget { color: #C6D3DE; font-size: .93rem; }
.site-footer .widget a { color: var(--acc); }
.site-footer .widget a:hover { color: var(--acc2); }
.site-footer .widget li { border-bottom: 1px dashed rgba(30, 58, 95, .6); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 1.3rem 0;
    font-size: .84rem;
    color: var(--mut);
    font-family: var(--mono-font);
}

/* ---------- cookie-баннер ---------- */

.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: rgba(10, 16, 23, .96);
    border-top: 1px solid var(--acc);
    color: #D3DFE9;
    font-size: .88rem;
}
.cookie-banner .btn { padding: .55rem 1.2rem; font-size: .74rem; }

/* ---------- комментарии ---------- */

.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 1.4rem; }
.comment-body {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 4px;
    border-top-left-radius: 0;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.1rem;
}
.comment-author-line { font-family: var(--head-font); letter-spacing: .06em; margin-bottom: .3rem; }
.comment-date { font-family: var(--mono-font); font-size: .76rem; color: var(--mut); }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); margin-bottom: .3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .7rem .9rem;
    background: #0B1422;
    border: 1px solid var(--line);
    border-radius: 3px;
    color: var(--txt);
    font-family: var(--body-font);
    font-size: .95rem;
    margin-bottom: 1rem;
}
.comment-form textarea:focus,
.comment-form input:focus { outline: none; border-color: var(--acc); }
.comment-form .submit {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    padding: .78rem 1.6rem;
    border-radius: 3px;
    border: 1px solid var(--acc);
    background: var(--acc);
    color: #06111C;
    clip-path: var(--cut);
    cursor: pointer;
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.comment-form .submit:hover { transform: translate(2px, -2px); background: var(--acc2); box-shadow: 0 0 18px rgba(78, 168, 255, .45); }

/* ---------- 404 и поиск ---------- */

.notice-plate {
    background: linear-gradient(135deg, #13202E, #1A2E44);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.4rem 2.2rem;
    margin-bottom: 2rem;
}
.notice-plate h1 { font-size: 2.6rem; }
.error-code { font-family: var(--head-font); font-size: 5rem; line-height: 1; color: var(--acc2); letter-spacing: .06em; }

/* ---------- адаптив ---------- */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .hero-inner { padding: 4.4rem 0; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.5rem; }
    .entry-title { font-size: 1.75rem; }
    .sec { padding: 3rem 0; }
    .sec-title { font-size: 1.25rem; letter-spacing: .12em; }
    .header-inner { padding: .9rem 0; }
    .nav-toggle { display: inline-block; margin-left: auto; }
    .main-nav { flex: 1 1 100%; }
    .main-nav ul { flex-direction: column; gap: .2rem; padding-top: .8rem; border-top: 1px solid var(--line); margin-top: .8rem; }
    .main-nav a { padding: .55rem 0; width: 100%; }
    .hero-inner { padding: 3.2rem 0; gap: 1.4rem; }
    .hero-rule { display: none; }
    .stat b { font-size: 2.4rem; }
    .notice-plate { padding: 1.7rem 1.3rem; }
    .rubric { padding: 1.4rem 1.2rem; }
    .faq details { padding: .1rem 1.1rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: .9rem 1.1rem; }
    .stats { row-gap: 1.6rem; }
}

/* ---------- колонка контента главной ---------- */

.fp-col {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

@media (max-width: 960px) {
    .fp-col { width: 100%; }
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
.search-form label { flex: 1; min-width: 0; display: block; }
.search-form label input[type="search"] { width: 100%; }
.card-thumb a { display: block; }
