/*
Theme Name: dds_electricsign.ru
Theme URI: https://electricsign.ru/
Author: Попова Виктория Попова Виктория
Description: Тема информационного сайта о налогах на недвижимость, имущественных вычетах и льготах. Дизайн-концепция «Аметистовый фискал».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: nalogdom
*/

:root {
    --bg: #F8F6FC;
    --bg-alt: #EFEBF6;
    --ink: #1E1A2B;
    --ink-soft: #4A4459;
    --muted: #8C84A3;
    --accent: #7B5BFF;
    --accent-2: #C79DFF;
    --dark: #1A1726;
    --dark-2: #2B2342;
    --line: #E0D7EB;
    --white: #FFFFFF;
    --on-dark: #EFEBF6;
    --on-dark-muted: #A79FBC;
}

/* скрытие управляемых через JS элементов */
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, rgba(217, 208, 232, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(217, 208, 232, 0.2) 1px, transparent 1px);
    background-size: 26px 26px;
    font-family: Inter, Manrope, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.22;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: 1.9rem; letter-spacing: 0.01em; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; }

.screen-reader-text {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Контейнер и раскладки
------------------------------------------------------------------ */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main {
    position: relative;
    z-index: 1;
    padding: 2.4rem 0 3.6rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    column-gap: 6%;
    row-gap: 2.6rem;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.content-area { min-width: 0; }

/* ------------------------------------------------------------------
   Верхняя полоса и шапка
------------------------------------------------------------------ */

.topbar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.site-header {
    background: var(--dark);
    color: var(--on-dark);
    padding: 1.3rem 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    max-width: 560px;
    color: var(--on-dark);
}

.brand-logo { display: block; max-height: 58px; width: auto; }

.brand-mark { display: block; width: 46px; height: 46px; flex: 0 0 46px; }

.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-size: 1.02rem;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.35;
}

.brand-desc {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--on-dark-muted);
    line-height: 1.4;
}

.nav-toggle {
    display: none;
    border: 1px solid rgba(199, 157, 255, 0.5);
    background: transparent;
    color: var(--on-dark);
    border-radius: 30px;
    padding: 0.5rem 1.1rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--on-dark);
    font-weight: 500;
    font-size: 0.98rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }

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

.breadcrumbs {
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    word-break: break-word;
}

.breadcrumbs a { color: var(--accent); }
.breadcrumbs a:hover { color: var(--dark-2); }
.breadcrumbs .sep { color: var(--accent-2); margin: 0 0.35rem; }

/* ------------------------------------------------------------------
   Кнопки и ссылки
------------------------------------------------------------------ */

.btn {
    display: inline-block;
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 0.78rem 1.7rem;
    background: var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(123, 91, 255, 0.75);
    color: #FFFFFF;
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}

.btn-ghost:hover { background: var(--accent); color: #FFFFFF; }

.btn-light {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(199, 157, 255, 0.7);
}

.btn-light:hover { background: var(--accent); border-color: var(--accent); }

.entry-content a,
.card-excerpt a,
.widget-area a.inline-link {
    position: relative;
    color: var(--accent);
}

.entry-content a::after,
.card-excerpt a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.entry-content a:hover::after,
.card-excerpt a:hover::after { transform: scaleX(1); }

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.7rem;
    box-shadow: 0 10px 30px -10px rgba(123, 91, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px -12px rgba(123, 91, 255, 0.35);
}

.card-inner {
    display: flex;
    flex: 1;
    min-width: 0;
}

.card-thumb-wrap {
    flex: 0 0 270px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.7rem;
}

.card-title { margin: 0 0 0.45rem; font-size: 1.24rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }

.card-meta {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.card-excerpt { color: var(--ink-soft); font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin-top: auto; padding-top: 1.1rem; }

.card-more .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* ------------------------------------------------------------------
   Заголовки секций и разделители
------------------------------------------------------------------ */

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding-left: 2.6rem;
    margin: 0 0 1.7rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: 0.5;
    transform: translateY(-50%);
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.section-title.on-dark { color: #FFFFFF; }
.section-title.on-dark::after { background: rgba(199, 157, 255, 0.35); }

.sep-dots {
    height: 16px;
    margin: 2.8rem 0;
    background-image:
        radial-gradient(circle at 3px 3px, rgba(199, 157, 255, 0.65) 2px, transparent 2.5px),
        radial-gradient(circle at 11px 11px, rgba(199, 157, 255, 0.35) 2px, transparent 2.5px);
    background-size: 16px 16px;
}

.grad-text {
    background: linear-gradient(90deg, #7B5BFF, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ------------------------------------------------------------------
   Главная: фоновый blob
------------------------------------------------------------------ */

.blob-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob-layer span {
    position: absolute;
    right: -110px;
    bottom: -130px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.05;
    filter: blur(30px);
    animation: nd-pulse 9s ease-in-out infinite;
}

@keyframes nd-pulse {
    0%, 100% { transform: scale(1); opacity: 0.05; }
    50% { transform: scale(1.12); opacity: 0.08; }
}

@media (prefers-reduced-motion: reduce) {
    .blob-layer span { animation: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------
   Главная: Hero
------------------------------------------------------------------ */

.front-wrap {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs-hero {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #1A1726 0%, #2B2342 62%, #3A2E5C 100%);
    color: #F1EEFA;
    padding: 3.8rem 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.6rem;
    align-items: center;
}

.hero-title { color: #FFFFFF; margin: 0 0 1rem; font-weight: 800; }
.hero-lead { color: #D6D0E8; font-size: 1.06rem; margin: 0 0 1.1rem; }
.hero-author { font-size: 1.15rem; font-weight: 700; margin: 0 0 1.7rem; }
.hero-art img { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------------------
   Главная: таймлайн
------------------------------------------------------------------ */

.front-section { padding: 3rem 0 0.6rem; }

.timeline { position: relative; padding: 0.6rem 0 0; }

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 1.6rem;
    width: 2px;
    background: var(--accent);
    opacity: 0.35;
    transform: translateX(-50%);
}

.tl-item {
    position: relative;
    width: 50%;
    min-width: 0;
    padding: 0 2.9rem 2.2rem;
}

.tl-item:nth-child(odd) { text-align: right; }
.tl-item:nth-child(even) { margin-left: 50%; }

.tl-num {
    position: absolute;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-2);
    background: var(--bg);
    color: var(--accent);
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-item:nth-child(odd) .tl-num { right: -24px; }
.tl-item:nth-child(even) .tl-num { left: -24px; }

.tl-item h3 { margin: 0.4rem 0 0.4rem; }
.tl-item p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* ------------------------------------------------------------------
   Главная: последние записи
------------------------------------------------------------------ */

.fs-latest { padding-top: 1rem; }
.latest-more { text-align: center; margin-top: 1.4rem; }

/* ------------------------------------------------------------------
   Главная: цитата
------------------------------------------------------------------ */

.fs-quote {
    background: var(--bg-alt);
    border-left: 6px solid var(--accent);
    border-radius: 0 16px 16px 0;
    padding: 2.4rem 2.5rem;
    margin: 3rem 0 1rem;
}

.fs-quote blockquote {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.42rem;
    line-height: 1.5;
    color: var(--ink);
}

.fs-quote cite {
    display: block;
    margin-top: 1.1rem;
    font-style: normal;
    font-size: 0.94rem;
    color: var(--muted);
}

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

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.rubric {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.6rem;
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 10px 30px -10px rgba(123, 91, 255, 0.15);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.rubric:hover {
    transform: translateY(-5px);
    background: rgba(199, 157, 255, 0.2);
    box-shadow: 0 20px 44px -12px rgba(123, 91, 255, 0.35);
    color: var(--ink);
}

.rubric svg { display: block; width: 40px; height: 40px; margin-bottom: 0.9rem; }
.rubric strong { display: block; font-size: 1.08rem; margin-bottom: 0.35rem; }
.rubric span { display: block; font-size: 0.9rem; color: var(--ink-soft); }

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

.entry {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 30px -10px rgba(123, 91, 255, 0.15);
}

.entry-header { margin-bottom: 1.3rem; }
.entry-title { margin: 0 0 0.6rem; }
.entry-meta { font-size: 0.87rem; color: var(--muted); }

.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: 12px; }

.entry-content h2 { margin: 1.9rem 0 0.8rem; font-size: 1.6rem; }
.entry-content h3 { margin: 1.5rem 0 0.7rem; }
.entry-content img { border-radius: 12px; display: block; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }

.entry-content ul { list-style: none; padding-left: 0; }

.entry-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5em;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--accent);
    transform: rotate(45deg);
}

.entry-content ol li { margin-bottom: 0.5em; }

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--accent);
    border-radius: 0 12px 12px 0;
}

.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
    font-size: 0.95rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

.entry-content th { background: var(--bg-alt); font-weight: 700; }

.entry-content code {
    background: var(--bg-alt);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.92em;
}

.entry-content pre {
    background: var(--dark);
    color: var(--on-dark);
    padding: 1.1rem;
    border-radius: 12px;
    overflow-x: auto;
}

.page-links { margin-top: 1.5rem; font-size: 0.95rem; }

.entry-tags { margin-top: 1.6rem; font-size: 0.9rem; color: var(--muted); }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.8rem;
}

.post-nav a {
    flex: 1 1 240px;
    min-width: 0;
    background: var(--white);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    box-shadow: 0 10px 30px -14px rgba(123, 91, 255, 0.3);
    color: var(--ink);
    font-size: 0.95rem;
}

.post-nav a span { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 0.25rem; }
.post-nav a:hover { color: var(--accent); }

.archive-head { margin-bottom: 1.6rem; }
.archive-head h1 { margin-bottom: 0.3rem; }
.archive-head p { color: var(--muted); margin: 0; }

.nothing-found {
    background: var(--white);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 30px -10px rgba(123, 91, 255, 0.15);
}

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.08rem;
    margin: 0 0 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 2px solid var(--accent-2);
    color: var(--ink);
}

.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
}

.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget p { color: var(--ink-soft); font-size: 0.95rem; }

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.15rem;
}

/* ------------------------------------------------------------------
   Формы: поиск и комментарии
------------------------------------------------------------------ */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    flex: 1 1 180px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    padding: 0.7rem 1rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: 2px solid var(--accent-2);
    outline-offset: 1px;
}

.comment-form textarea { width: 100%; border-radius: 14px; }

.comments-area {
    margin-top: 2rem;
    background: var(--white);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 30px -10px rgba(123, 91, 255, 0.15);
}

.comments-area .comment-list,
.comments-area .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comments-area .children { padding-left: 1.4rem; }

.comments-area .comment-body {
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
}

.comments-area .comment-author img { border-radius: 50%; margin-right: 0.6rem; vertical-align: middle; }
.comments-area .comment-metadata { font-size: 0.82rem; color: var(--muted); }
.comments-area .comment-metadata a { color: var(--muted); }
.comments-area .reply { font-size: 0.88rem; }

.comment-form .form-submit input[type="submit"],
.comment-form input[type="submit"] {
    border: 1px solid transparent;
    border-radius: 30px;
    padding: 0.78rem 1.7rem;
    background: var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.comment-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -10px rgba(123, 91, 255, 0.75);
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0.5rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    color: var(--ink);
    font-size: 0.94rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 10px 20px -10px rgba(123, 91, 255, 0.8);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--muted);
}

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

.site-footer {
    position: relative;
    z-index: 1;
    background: var(--dark);
    color: var(--on-dark);
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.footer-col { min-width: 0; }

.site-footer .widget { margin-bottom: 1.4rem; color: var(--on-dark); }

.site-footer .widget-title {
    color: var(--accent-2);
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
}

.site-footer .widget p,
.site-footer .widget li,
.site-footer .widget div { color: var(--on-dark); font-size: 0.95rem; }

.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }

.site-footer .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(199, 157, 255, 0.18);
}

.site-footer .widget li:last-child { border-bottom: none; }

.site-footer .widget a { color: var(--on-dark); }
.site-footer .widget a:hover { color: var(--accent-2); }

.site-footer .widget .post-date { display: block; color: var(--on-dark-muted); font-size: 0.8rem; }

.footer-bottom {
    margin-top: 1.8rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(199, 157, 255, 0.2);
    font-size: 0.86rem;
    color: var(--on-dark-muted);
    line-height: 1.5;
}

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: var(--dark);
    color: var(--on-dark);
    border-top: 3px solid var(--accent);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-banner p { margin: 0; max-width: 760px; }
.cookie-banner a { color: var(--accent-2); }
.cookie-banner .btn { padding: 0.55rem 1.4rem; font-size: 0.9rem; }

/* ------------------------------------------------------------------
   404
------------------------------------------------------------------ */

.error-box {
    background: var(--white);
    border-radius: 16px;
    padding: 2.2rem 2.3rem;
    box-shadow: 0 10px 30px -10px rgba(123, 91, 255, 0.15);
}

.error-code {
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.6rem;
    background: linear-gradient(90deg, #7B5BFF, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.error-actions { margin-top: 1.6rem; }

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single { width: 100%; }
    .front-wrap { width: 100%; }
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .hero-art { order: -1; max-width: 420px; }
    .nav-toggle { display: inline-block; }
    .site-nav { flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0.4rem; padding-top: 0.9rem; }
    .site-nav a::after { display: none; }
    .timeline::before { left: 20px; }
    .tl-item { width: 100%; padding: 0 0 2rem 3.9rem; text-align: left; }
    .tl-item:nth-child(odd) { text-align: left; }
    .tl-item:nth-child(even) { margin-left: 0; }
    .tl-item:nth-child(odd) .tl-num,
    .tl-item:nth-child(even) .tl-num { left: 0; right: auto; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-main { padding: 1.8rem 0 2.6rem; }
    .card-inner { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-body { padding: 1.2rem 1.25rem; }
    .entry { padding: 1.5rem 1.3rem; }
    .comments-area { padding: 1.4rem 1.25rem; }
    .error-box { padding: 1.6rem 1.4rem; }
    .nothing-found { padding: 1.4rem 1.3rem; }
    .fs-hero { padding: 2.6rem 0; }
    .fs-quote { padding: 1.8rem 1.4rem; margin: 2.2rem 0 0.6rem; }
    .fs-quote blockquote { font-size: 1.18rem; }
    .rubric { padding: 1.4rem 1.3rem; }
    .front-section { padding: 2.2rem 0 0.4rem; }
    .sep-dots { margin: 2rem 0; }
    .section-title { font-size: 1.5rem; padding-left: 2.1rem; }
    .section-title::before { width: 22px; height: 22px; }
    .sidebar .widget { padding: 1.2rem 1.25rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; font-size: 0.85rem; }
    .brand-desc { display: none; }
}
