/*
Theme Name: dds_sharrymania.ru
Theme URI: https://sharrymania.ru/
Author: Артём Воронов
Description: Circuit Grid — тема информационно-аналитического портала об электронной коммерции, финтехе и карьере в цифровой торговле. Швейцарский техно-минимализм в холодной палитре.
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: shrmn
*/

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

/* ---------- Переменные ---------- */
:root {
    --bg: #F4F7FA;
    --bg-alt: #E4EBF2;
    --ink-bg: #0B1D33;
    --side-bg: #EDF2F7;
    --text: #101C2B;
    --accent: #0066FF;
    --accent-2: #00D1B2;
    --violet: #7B61FF;
    --muted: #5A6B7F;
    --line: #D0DCE8;
    --white: #FFFFFF;
    --font-head: "Inter Tight", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
    --shadow: 0 4px 12px rgba(0, 102, 255, 0.08);
    --shadow-hover: 0 12px 24px rgba(0, 102, 255, 0.12);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::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;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    overflow-wrap: break-word;
}
body::after {
    content: "";
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 340px;
    height: 340px;
    max-width: 50%;
    pointer-events: none;
    z-index: 40;
    opacity: 0.03;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%230066FF' stroke-width='3'%3E%3Crect x='55' y='55' width='90' height='90' rx='4'/%3E%3Crect x='80' y='80' width='40' height='40'/%3E%3Cpath d='M70 55V20M90 55V10M110 55V10M130 55V20M70 145v35M90 145v45M110 145v45M130 145v35M55 70H20M55 90H10M55 110H10M55 130H20M145 70h35M145 90h45M145 110h45M145 130h35'/%3E%3Ccircle cx='70' cy='16' r='5'/%3E%3Ccircle cx='130' cy='184' r='5'/%3E%3Ccircle cx='184' cy='70' r='5'/%3E%3Ccircle cx='16' cy='130' r='5'/%3E%3C/svg%3E") no-repeat center / contain;
}
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    margin: 1.6em 0 0.6em;
    color: var(--text);
    hyphens: auto;
}
h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
a { color: var(--accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--white);
    border-radius: 2px;
}
.skip-link:focus { top: 12px; }

/* Ссылки в тексте: подчёркивание слева направо */
.entry-content a,
.page-sub a,
.comment-text a,
.sidebar .widget a,
.cookie-text a,
.notfound-text a {
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .3s var(--ease), color .2s;
    padding-bottom: 1px;
}
.entry-content a:hover,
.page-sub a:hover,
.comment-text a:hover,
.sidebar .widget a:hover,
.cookie-text a:hover,
.notfound-text a:hover { background-size: 100% 2px; }

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

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 0.8em 1.6em;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    text-align: center;
    border-radius: 2px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-filled { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-filled:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-bg); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-bg); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-ghost-light:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-bg); }
.btn-light { background: var(--white); color: var(--accent); border-color: var(--white); }
.btn-light:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-bg); }

/* ---------- Шапка ---------- */
.topline { height: 4px; background: linear-gradient(90deg, #0066FF, #00D1B2); }
.masthead { background: var(--ink-bg); color: var(--white); position: relative; z-index: 20; }
.masthead-row { padding: 1.4rem 0 1.2rem; }
.brand { display: flex; align-items: center; gap: 1rem; color: var(--white); max-width: 900px; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.brand-name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--white);
}
.brand-desc { font-size: 0.84rem; line-height: 1.5; color: #B0C4DE; max-width: 72ch; }
.brand:hover .brand-name { color: #CFE0FF; }

.navbar { border-top: 1px solid rgba(176, 196, 222, 0.16); }
.navbar-row { display: flex; align-items: center; gap: 1.5rem; min-height: 58px; }
.primary-nav { flex: 1 1 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: 1rem 0;
    color: #DCE6F2;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.98rem;
    position: relative;
}
.nav-list > li > a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 10px;
    width: 100%; height: 2px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--white); }
.nav-list > li > a:hover::after, .nav-list > .current-menu-item > a::after { transform: scaleX(1); }
.nav-list .sub-menu {
    list-style: none; margin: 0; padding: 0.5rem 0;
    position: absolute; left: 0; top: 100%;
    min-width: 220px;
    background: #12294A;
    border-top: 2px solid var(--accent);
    opacity: 0; visibility: hidden;
    transition: opacity .2s;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.nav-list .sub-menu a { padding: 0.5rem 1rem; }

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.9rem;
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(176, 196, 222, 0.4);
    border-radius: 2px;
    font: 600 0.95rem var(--font-head);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--white); 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; }

.navbar-search { flex: 0 1 280px; min-width: 0; }
.navbar-search .search-form { display: flex; }
.navbar-search .search-field {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(176, 196, 222, 0.3);
    color: var(--white);
}
.navbar-search .search-field::placeholder { color: #8FA6C2; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0; max-width: 520px; }
.search-field {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--line);
    border-right: 0;
    border-radius: 2px 0 0 2px;
}
.search-submit {
    padding: 0.6rem 1rem;
    font: 600 0.95rem var(--font-head);
    color: var(--white);
    background: var(--accent);
    border: 0;
    border-radius: 0 2px 2px 0;
    cursor: pointer;
    transition: background-color .25s;
}
.search-submit:hover { background: var(--accent-2); color: var(--ink-bg); }

/* ---------- Заголовки секций ---------- */
.section-title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 2.1rem;
    margin: 0 0 2.6rem;
}
.section-title::before {
    content: "";
    flex: 0 0 40px;
    height: 2px;
    background: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0B1D33 0%, #0066FF 100%);
    color: var(--white);
    padding: 110px 0 120px;
}
.hero-dots {
    position: absolute;
    right: -20px; top: -10px;
    width: 300px; height: 300px;
    opacity: 0.22;
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-title {
    color: var(--white);
    font-size: 3.2rem;
    line-height: 1.08;
    margin: 0 0 1.4rem;
    max-width: 17ch;
}
.hero-lead { color: #B0C4DE; font-size: 1.2rem; max-width: 58ch; margin: 0 0 2.2rem; }

/* ---------- Секции главной ---------- */
.front-section { padding: 80px 0; }
.front-section--alt { background: var(--bg-alt); }

/* Сетка рубрик */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.topic-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2.2rem 2rem 2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.topic-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-hover); }
.topic-dot { position: absolute; top: 16px; left: 16px; width: 8px; height: 8px; transition: transform .3s var(--ease); }
.topic-card:hover .topic-dot { transform: scale(1.6); }
.topic-dot--ecom { background: #0066FF; }
.topic-dot--fintech { background: #00D1B2; }
.topic-dot--career { background: #7B61FF; }
.topic-icon { width: 48px; height: 48px; margin-bottom: 1.3rem; }
.topic-name { margin: 0 0 0.6rem; font-size: 1.35rem; }
.topic-text { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Статистика */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.4rem 1.8rem; min-width: 0; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--font-head); font-weight: 700; font-size: 3rem; line-height: 1; color: var(--accent); letter-spacing: -0.03em; }
.fact-label { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* CTA */
.cta-plate {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 3.4rem 3.2rem 3.4rem 3.6rem;
    color: var(--white);
    background:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, #0066FF 0%, #00D1B2 100%);
    border-radius: 2px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 48px 100%, 0 calc(100% - 48px));
}
.cta-copy { min-width: 0; max-width: 680px; }
.cta-title { color: var(--white); font-size: 2.2rem; margin: 0 0 0.8rem; }
.cta-text { margin: 0; font-size: 1.08rem; color: #EAF6FF; }
.cta-plate .btn { flex: 0 0 auto; }

.section-actions { margin-top: 2.4rem; }
.empty-note { color: var(--muted); }

/* ---------- Карточки записей ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .card-grid--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.card-thumb { position: relative; background: var(--ink-bg); }
.card-thumb > a { display: block; }
.card-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.card-tag {
    position: absolute;
    top: 12px; left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    background: var(--white);
    border-radius: 2px;
    color: var(--text);
    font: 600 0.78rem/1.2 var(--font-head);
}
.card-tag-dot { flex: 0 0 8px; width: 8px; height: 8px; background: #0066FF; transition: transform .3s var(--ease); }
.card:hover .card-tag-dot, .card-tag:hover .card-tag-dot { transform: scale(1.6); }
.card-tag--fintech .card-tag-dot { background: #00D1B2; }
.card-tag--career .card-tag-dot { background: #7B61FF; }
.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; gap: 0.8rem; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.5rem; }
.card-pin { color: var(--accent); font-weight: 600; }
.card-title { font-size: 1.18rem; margin: 0 0 0.6rem; line-height: 1.3; }
.card-title a { color: var(--text); transition: color .2s; }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--muted); font-size: 0.94rem; line-height: 1.6; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font: 600 0.92rem var(--font-head);
    color: var(--accent);
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 2px;
    transition: background-size .3s var(--ease);
}
.card-more:hover { background-size: 100% 2px; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 80px; }
.crumbs { font-size: 0.88rem; color: var(--muted); margin-bottom: 2.2rem; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { color: var(--text); }
.crumbs-sep { margin: 0 0.35rem; color: #9AAABD; }
.crumbs-current { color: var(--muted); }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    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; }

.page-head { margin-bottom: 2.4rem; }
.page-title { margin: 0; font-size: 2.8rem; }
.page-sub { margin-top: 0.6rem; color: var(--muted); }

.entry {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.6rem 2.8rem;
}
.entry-head { margin-bottom: 1.8rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.9rem; }
.entry-cat { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font: 600 0.85rem var(--font-head); }
.entry-cat:hover .card-tag-dot { transform: scale(1.6); }
.entry-title { margin: 0; font-size: 2.5rem; }
.entry-cover { margin: 0 0 2rem; }
.entry-cover img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.entry-content { max-width: 72ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.8rem; }
.entry-content h3 { font-size: 1.35rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    border-left: 3px solid var(--accent-2);
    background: var(--bg);
    color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 2px; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.entry-content pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--ink-bg);
    color: #DCE6F2;
    border-radius: 2px;
    font-size: 0.9rem;
}
.entry-content code { font-size: 0.92em; background: var(--bg-alt); padding: 0.1em 0.35em; border-radius: 2px; }
.entry-content pre code { background: none; padding: 0; }
.entry-content table, .comment-text table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; border: 1px solid var(--line); }
.entry-content th, .entry-content td, .comment-text th, .comment-text td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 600; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-tags a { padding: 0.25rem 0.7rem; border: 1px solid var(--line); border-radius: 2px; font-size: 0.85rem; color: var(--muted); }
.entry-tags a:hover { border-color: var(--accent); color: var(--accent); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 2rem 0; }
.post-nav-link {
    display: flex; flex-direction: column; gap: 0.3rem;
    padding: 1.2rem 1.4rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    min-width: 0;
    transition: border-color .25s, transform .25s var(--ease);
}
.post-nav-link span { font: 500 0.8rem var(--font-body); color: var(--muted); }
.post-nav-link:hover { border-color: var(--accent); transform: translateY(-2px); }
.post-nav-next { grid-column: 2; text-align: right; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 2.8rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--text);
    font: 600 0.95rem var(--font-head);
    transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease);
}
.pager a.page-numbers:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-bg); transform: translateY(-1px); }
.pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.2rem; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.8rem 1.6rem;
    color: var(--text);
}
.sidebar .widget { margin-bottom: 2.2rem; color: var(--text); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 1rem;
    font-size: 1.1rem;
    color: var(--text);
}
.sidebar .widget-title::before { content: ""; flex: 0 0 24px; height: 2px; background: var(--accent); }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; line-height: 1.45; color: var(--text); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: #0B4FC2; }
.sidebar .widget .post-date, .sidebar .widget .rss-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar .widget p { color: var(--text); }

/* ---------- Подвал ---------- */
.colophon { background: var(--ink-bg); color: #C9D6E6; margin-top: 0; position: relative; z-index: 1; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding: 64px 0 48px; }
.colophon-col { min-width: 0; }
.colophon .widget { color: #C9D6E6; margin-bottom: 1.6rem; font-size: 0.95rem; }
.colophon .widget-title { color: var(--white); font-size: 1.05rem; margin: 0 0 1rem; display: flex; align-items: center; gap: 12px; }
.colophon .widget-title::before { content: ""; flex: 0 0 24px; height: 2px; background: var(--accent-2); }
.colophon .widget p, .colophon .textwidget { color: #C9D6E6; }
.colophon .widget a { color: #DCE6F2; }
.colophon .widget a:hover { color: var(--accent-2); }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { padding: 0.35rem 0; color: #C9D6E6; }
.colophon .widget .post-date { color: #8FA6C2; }
.colophon-base { border-top: 1px solid rgba(176, 196, 222, 0.15); padding: 1.3rem 0; }
.colophon-base p { margin: 0; font-size: 0.85rem; color: #8FA6C2; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 2.2rem 2.4rem; }
.comments-title { margin-top: 0; font-size: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 2px solid var(--bg-alt); }
.comment-box { padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.6rem; }
.comment-head img { border-radius: 2px; }
.comment-who { display: flex; flex-direction: column; }
.comment-author-name { font: 600 0.98rem var(--font-head); }
.comment-who time { font-size: 0.8rem; color: var(--muted); }
.comment-awaiting { font-size: 0.88rem; color: var(--violet); }
.comment-reply a { font: 600 0.85rem var(--font-head); color: var(--accent); }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.35rem; margin-top: 0; }
.comment-reply-title small { margin-left: 0.8rem; font-size: 0.85rem; font-weight: 500; }
.comment-form label { display: block; font: 600 0.88rem var(--font-head); margin-bottom: 0.35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 2px;
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; font-family: var(--font-body); }
.comment-notes, .logged-in-as { font-size: 0.88rem; color: var(--muted); }
.form-submit .submit {
    padding: 0.8em 1.6em;
    font: 600 1rem var(--font-head);
    color: var(--white);
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.form-submit .submit:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink-bg); transform: translateY(-1px); }
.required { color: #D93A3A; }

/* ---------- 404 ---------- */
.notfound { padding: 1rem 0 2rem; }
.notfound-code { font: 700 7rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 2px var(--accent); margin: 0 0 1rem; letter-spacing: -0.04em; }
.notfound-text { color: var(--muted); max-width: 60ch; margin: 1rem 0 1.6rem; }
.notfound .search-form { margin-bottom: 1.6rem; }
.empty-block .search-form { margin-top: 1rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 20px; right: 20px; bottom: 20px;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    background: var(--ink-bg);
    color: #DCE6F2;
    border-top: 3px solid var(--accent-2);
    border-radius: 2px;
    box-shadow: 0 12px 32px rgba(11, 29, 51, 0.3);
}
.cookie-text { margin: 0; font-size: 0.9rem; line-height: 1.5; color: #DCE6F2; }
.cookie-text a { color: #7FD8FF; }
.cookie-banner .btn { flex: 0 0 auto; padding: 0.6em 1.3em; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1, .hero-title { font-size: 2.5rem; }
    .page-title, .entry-title { font-size: 2.1rem; }
    .section-title { font-size: 1.75rem; }
    .navbar-row { flex-wrap: wrap; gap: 0.8rem; padding: 0.7rem 0; }
    .nav-toggle { display: inline-flex; }
    .primary-nav { order: 3; flex-basis: 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; border-top: 1px solid rgba(176, 196, 222, 0.16); }
    .nav-list a { padding: 0.75rem 0; }
    .nav-list > li > a::after { bottom: 6px; width: 40px; }
    .nav-list .sub-menu { position: static; opacity: 1; visibility: visible; background: transparent; border: 0; padding: 0 0 0 1rem; }
    .navbar-search { flex: 1 1 200px; }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .home .site-main .shell { width: min(92%, 1240px); }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .fact:nth-child(3) { border-left: 0; padding-left: 0; }
    .cta-plate { flex-direction: column; align-items: flex-start; padding: 2.8rem 2.4rem 3.4rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .entry { padding: 2rem 1.8rem; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1, .hero-title { font-size: 2rem; }
    .page-title, .entry-title { font-size: 1.75rem; }
    .section-title { font-size: 1.45rem; gap: 12px; }
    .section-title::before { flex-basis: 28px; }
    .brand-logo { width: 42px; height: 42px; }
    .brand-name { font-size: 0.98rem; }
    .brand-desc { font-size: 0.78rem; }
    .hero { padding: 72px 0 80px; }
    .hero-dots { width: 180px; height: 180px; }
    .front-section { padding: 56px 0; }
    .card-grid, .card-grid--list, .layout-single .card-grid--list { grid-template-columns: minmax(0, 1fr); }
    .facts { grid-template-columns: minmax(0, 1fr); }
    .fact { border-left: 0; padding: 0 0 1.4rem; border-bottom: 1px solid var(--line); }
    .fact:last-child { border-bottom: 0; padding-bottom: 0; }
    .fact-num { font-size: 2.6rem; }
    .cta-plate { padding: 2.2rem 1.5rem 3rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 32px 100%, 0 calc(100% - 32px)); }
    .cta-title { font-size: 1.6rem; }
    .entry { padding: 1.5rem 1.2rem; }
    .comments { padding: 1.5rem 1.2rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; text-align: left; }
    .sidebar { padding: 1.5rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; left: 12px; right: 12px; bottom: 12px; padding: 1rem 1.1rem; }
    .notfound-code { font-size: 5rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
