/*
Theme Name: dds_skippybeanteam.com
Author: Дмитрий Воронов
Description: Тема для информационно-аналитического портала о юридической проверке недвижимости.
Version: 1.1
Text Domain: sbteam
*/

:root {
    --page: #F8F7FC;
    --page-alt: #EEEDF5;
    --deep: #2B1B4D;
    --deeper: #1A103C;
    --footer: #0D0820;
    --ink: #1E1731;
    --gold: #D4AF37;
    --gold-soft: #E3C563;
    --amethyst: #6C4F9E;
    --muted: #8A7B9C;
    --grid: #E2DCF0;
    --shell: min(92%, 1180px);
    --head-font: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    --body-font: "IBM Plex Sans", "Inter", "Segoe UI", Arial, sans-serif;
}

/* скрытие через атрибут hidden — раньше основных стилей */
.cookie-note[hidden] { display: none !important; }
.main-nav[hidden] { display: none !important; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--page);
    background-image:
        linear-gradient(to right, rgba(226, 220, 240, 0.45) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(226, 220, 240, 0.45) 1px, transparent 1px),
        radial-gradient(circle, rgba(108, 79, 158, 0.22) 1.4px, transparent 1.5px);
    background-size: 48px 48px, 48px 48px, 48px 48px;
    background-position: 0 0, 0 0, 0 0;
}

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

.shell { width: var(--shell); margin-inline: auto; }

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

h1, h2, h3, h4, h5 {
    font-family: var(--head-font);
    color: var(--ink);
    line-height: 1.24;
    letter-spacing: -0.01em;
    text-align: left;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.05em; }

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

.entry-body a,
.widget-area a,
.card-excerpt a {
    border-bottom: 1px dotted var(--amethyst);
    transition: border-color .2s ease, color .2s ease;
}

.entry-body a:hover,
.card-excerpt a:hover {
    color: var(--ink);
    border-bottom: 1px solid var(--gold);
}

ul, ol { padding-left: 1.2em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--page-alt);
    border-left: 4px solid var(--gold);
    color: #2A2140;
}

code, pre {
    font-family: "IBM Plex Mono", Consolas, monospace;
    background: var(--page-alt);
}

pre { padding: 1rem 1.2rem; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    font-size: 0.96rem;
}

table th, table td {
    border: 1px solid #CFC6E2;
    padding: 0.65rem 0.8rem;
    text-align: left;
}

table th { background: var(--page-alt); font-family: var(--head-font); }

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

.btn,
.btn-ghost {
    display: inline-block;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    border-radius: 0;
    border: 1px solid var(--gold);
    transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn {
    background: var(--gold);
    color: #241A0A;
}

.btn:hover {
    background: var(--gold-soft);
    box-shadow: inset 0 -3px 0 rgba(36, 26, 10, 0.25);
}

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

.btn-ghost:hover { background: var(--gold); color: #241A0A; }

/* ---------- заголовки секций ---------- */

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

.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: -1.4rem;
    top: 0.42em;
    width: 2.3rem;
    height: 3px;
    background: var(--gold);
}

.sec-sub {
    color: var(--amethyst);
    font-size: 1.02rem;
    margin: 0;
    max-width: 62ch;
}

.marked {
    background: linear-gradient(to top, rgba(108, 79, 158, 0.28) 42%, transparent 42%);
    padding: 0 0.15em;
}

/* геодезическая линия */
.geo-line {
    position: relative;
    height: 1px;
    background: rgba(212, 175, 55, 0.4);
    margin: 3.4rem 0;
}

.geo-line::before,
.geo-line::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--page);
}

.geo-line::before { left: 0; }
.geo-line::after { right: 0; }

/* золотая печать */
.seal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.16);
    font-family: var(--head-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--gold);
    flex: 0 0 auto;
}

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

.site-head {
    position: relative;
    background: linear-gradient(120deg, var(--deep) 0%, var(--deeper) 100%);
    color: #EFEAF8;
    border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.site-head::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.head-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem 0;
    background: rgba(43, 27, 77, 0.28);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    flex: 1 1 auto;
}

.brand-logo { display: block; width: 54px; height: 54px; flex: 0 0 auto; }

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-weight: 800;
    font-size: 1.06rem;
    line-height: 1.35;
    color: #FFFFFF;
    max-height: 2.7em;
    overflow: hidden;
}

.brand-desc {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #B9A9DA;
    max-height: 2.9em;
    overflow: hidden;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--head-font);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    border-radius: 0;
}

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

.main-nav a {
    font-family: var(--head-font);
    font-size: 0.94rem;
    font-weight: 600;
    color: #EFEAF8;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav .current-menu-item > a { color: var(--gold); border-bottom-color: var(--gold); }

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

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1.1rem 0 0.2rem;
}

.crumbs a { color: var(--amethyst); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: var(--gold); margin: 0 0.35rem; }

/* ---------- макеты ---------- */

.site-main { padding: 1.6rem 0 3.4rem; }

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

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

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

/* ---------- сайдбар ---------- */

.sidebar {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid rgba(75, 45, 120, 0.1);
    padding: 1.5rem 1.4rem;
}

.sidebar .widget { margin-bottom: 1.9rem; }
.sidebar .widget:last-child { margin-bottom: 0; }

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--gold);
    margin-bottom: 1rem;
}

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

.sidebar li {
    padding: 0.55rem 0 0.55rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed #E0D8EE;
    color: var(--ink);
}

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 6px;
    height: 6px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.sidebar li a { color: var(--ink); font-weight: 600; }
.sidebar li a:hover { color: var(--amethyst); }
.sidebar .post-date { display: block; color: var(--muted); font-size: 0.82rem; }
.sidebar p { color: var(--ink); }

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 12px 22px -10px rgba(30, 23, 49, 0.28);
    transition: box-shadow .22s ease, transform .22s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(212, 175, 55, 0.65);
    transition: width .22s ease, background .22s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 34px -12px rgba(30, 23, 49, 0.38);
}

.card:hover::before { width: 7px; background: var(--gold); }

.card-thumb-wrap {
    display: block;
    background: var(--deeper);
    overflow: hidden;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.12) brightness(0.95);
    mix-blend-mode: luminosity;
    transition: filter .25s ease;
}

.card:hover .card-thumb-wrap img { filter: grayscale(60%) contrast(1.05); }

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

.card-meta {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.card-title { font-size: 1.16rem; margin: 0 0 0.6rem; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--amethyst); }

.card-excerpt { color: #4A4160; font-size: 0.96rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    align-self: flex-start;
    margin-top: 0.9rem;
    font-family: var(--head-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--amethyst);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

.card-more:hover { color: var(--gold); }

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

.hero {
    position: relative;
    background: linear-gradient(125deg, var(--deep) 0%, var(--deeper) 70%, #140C2E 100%);
    color: #F2EDFC;
    overflow: hidden;
    padding: 3.6rem 0 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    padding-bottom: 2.4rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.1rem;
    color: #CBBCE8;
    max-width: 52ch;
    margin-bottom: 1.8rem;
}

.hero-visual { position: relative; min-width: 0; }

.hero-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.hero-plan {
    position: absolute;
    right: -4%;
    bottom: -12%;
    width: 62%;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

.hero-facts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 2px solid var(--gold);
}

.hero-facts div {
    min-width: 0;
    padding: 1.1rem 1.2rem;
    font-family: var(--head-font);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.86rem;
    color: var(--gold);
    border-right: 1px solid rgba(212, 175, 55, 0.28);
}

.hero-facts div:last-child { border-right: 0; }

.front-section { padding: 3.6rem 0; }
.front-section.alt { background: var(--page-alt); }

.arch-divider { display: block; width: 100%; height: 34px; color: var(--footer); opacity: 0.16; }

/* таймлайн */
.timeline { position: relative; margin-top: 2.2rem; padding-left: 1.2rem; }

.timeline::before {
    content: "";
    position: absolute;
    left: 37px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: rgba(108, 79, 158, 0.45);
}

.tl-step {
    position: relative;
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.tl-step:last-child { margin-bottom: 0; }

.tl-num {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--page);
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: var(--head-font);
    font-weight: 800;
    font-size: 1.15rem;
}

.tl-step.amethyst .tl-num { border-color: var(--amethyst); color: var(--amethyst); }

.tl-body { min-width: 0; padding-top: 0.2rem; }
.tl-body h3 { margin-bottom: 0.35rem; }
.tl-body p { margin: 0; color: #4A4160; }

.tl-mark {
    position: absolute;
    left: 25px;
    top: 62px;
    width: 9px;
    height: 9px;
    border: 1px solid var(--amethyst);
    border-radius: 50%;
    background: var(--page);
}

/* статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.stat {
    min-width: 0;
    padding: 1.7rem 1.4rem;
    background: linear-gradient(140deg, var(--deep), var(--deeper));
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.stat b {
    display: block;
    font-family: var(--head-font);
    font-size: 2.9rem;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat span { display: block; color: #C6B6E4; font-size: 0.93rem; }

/* рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
    margin-top: 2rem;
}

.topic-card {
    position: relative;
    min-width: 0;
    display: block;
    padding: 1.8rem 1.6rem 2.1rem;
    background: #FFFFFF;
    border: 1px solid rgba(75, 45, 120, 0.25);
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.topic-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.topic-card:hover { border-color: var(--gold); box-shadow: 0 14px 26px -14px rgba(30, 23, 49, 0.4); }
.topic-card:hover::after { transform: scaleX(1); }

.topic-card svg { display: block; width: 40px; height: 40px; color: var(--amethyst); margin-bottom: 1rem; }
.topic-card h3 { margin-bottom: 0.45rem; }
.topic-card p { margin: 0; color: #4A4160; font-size: 0.95rem; }

.front-latest .card-grid { margin-top: 2rem; }
.btn-row { margin-top: 1.8rem; }
.front-cta { margin-top: 2.2rem; }

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

.entry-head { margin-bottom: 1.6rem; }
.entry-head h1 { font-size: 2.5rem; }

.entry-meta {
    font-size: 0.83rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-thumb { margin: 0 0 1.8rem; }

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.entry-body h2 { margin-top: 2rem; }
.entry-body h3 { margin-top: 1.5rem; }
.entry-body img { display: block; height: auto; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(108, 79, 158, 0.25);
    font-size: 0.9rem;
    color: var(--muted);
}

.entry-tags a { color: var(--amethyst); }

.archive-head { margin-bottom: 2rem; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid rgba(108, 79, 158, 0.4);
    border-radius: 0;
    font-family: var(--head-font);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--amethyst);
    background: #FFFFFF;
}

.pager a.page-numbers:hover { border-color: var(--gold); color: var(--ink); background: rgba(212, 175, 55, 0.14); }

.pager .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: #241A0A;
}

.pager .page-numbers.dots { border-color: transparent; background: transparent; }

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

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

.search-form { display: flex; gap: 0; max-width: 460px; }

.search-form label { flex: 1 1 auto; min-width: 0; display: block; }

.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(108, 79, 158, 0.4);
    border-right: 0;
    border-radius: 0;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--ink);
    background: #FFFFFF;
}

.search-form button {
    padding: 0.75rem 1.3rem;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: #241A0A;
    font-family: var(--head-font);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 0;
}

.search-form button:hover { background: var(--gold-soft); }

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

.comments-area { margin-top: 3rem; }

.comments-area .comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }

.comments-area .comment-list li {
    background: #FFFFFF;
    border-left: 3px solid var(--gold);
    box-shadow: 0 10px 20px -14px rgba(30, 23, 49, 0.35);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.1rem;
    list-style: none;
}

.comment-head { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-head b { color: var(--ink); font-family: var(--head-font); }

.comment-respond {
    background: var(--page-alt);
    padding: 1.6rem 1.6rem;
    border: 1px solid rgba(108, 79, 158, 0.2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid rgba(108, 79, 158, 0.4);
    border-radius: 0;
    font-family: var(--body-font);
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--ink);
}

.comment-form p { margin-bottom: 1rem; }

.comment-form label {
    display: block;
    font-family: var(--head-font);
    font-size: 0.86rem;
    margin-bottom: 0.35rem;
}

.comment-reply a {
    font-family: var(--head-font);
    font-size: 0.84rem;
    color: var(--amethyst);
    border-bottom: 1px solid var(--gold);
}

.comment-form .submit {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #241A0A;
    font-family: var(--head-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.8rem 1.6rem;
    border-radius: 0;
    cursor: pointer;
}

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

.err-code {
    font-family: var(--head-font);
    font-size: 6rem;
    line-height: 1;
    color: var(--gold);
    margin: 0 0 0.6rem;
}

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

.site-foot {
    background: var(--footer);
    color: #CFC3E6;
    padding: 3rem 0 1.6rem;
    border-top: 3px solid var(--gold);
}

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

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

.site-foot .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding-bottom: 0.55rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.45);
}

.site-foot p,
.site-foot li,
.site-foot .textwidget { color: #CFC3E6; font-size: 0.94rem; }

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

.site-foot li { padding: 0.4rem 0 0.4rem 1rem; position: relative; }

.site-foot li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1em;
    width: 5px;
    height: 5px;
    border: 1px solid var(--gold);
    border-radius: 50%;
}

.site-foot a { color: #E7DEF7; }
.site-foot a:hover { color: var(--gold); }
.site-foot .post-date { display: block; color: #9C8CBE; font-size: 0.82rem; }

.copyright {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(212, 175, 55, 0.25);
    font-size: 0.86rem;
    color: #9C8CBE;
}

/* ---------- cookie ---------- */

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.4rem;
    background: rgba(13, 8, 32, 0.96);
    border-top: 2px solid var(--gold);
    color: #DCD2F0;
    font-size: 0.9rem;
}

.cookie-note p { margin: 0; flex: 1 1 320px; min-width: 0; }

.cookie-note button {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: #241A0A;
    font-family: var(--head-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.82rem;
    padding: 0.7rem 1.4rem;
    border-radius: 0;
    cursor: pointer;
}

.cookie-note button:hover { background: var(--gold-soft); }

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

@media (max-width: 960px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .nav-toggle { display: inline-block; }
    .head-inner { flex-wrap: wrap; }
    .main-nav { flex: 1 1 100%; }
    .main-nav ul { flex-direction: column; gap: 0.2rem; padding-top: 0.8rem; }
    .main-nav li { border-bottom: 1px solid rgba(212, 175, 55, 0.18); padding: 0.55rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .hero { padding-top: 2.4rem; }
    .hero h1 { font-size: 2.05rem; }
    .entry-head h1 { font-size: 1.85rem; }
    .front-section { padding: 2.4rem 0; }
    .hero-facts { grid-template-columns: minmax(0, 1fr); }
    .hero-facts div { border-right: 0; border-bottom: 1px solid rgba(212, 175, 55, 0.28); }
    .hero-facts div:last-child { border-bottom: 0; }
    .stat { padding: 1.4rem 1.2rem; }
    .topic-card { padding: 1.5rem 1.3rem 1.8rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .comment-respond { padding: 1.3rem 1.2rem; }
    .cookie-note { padding: 1rem 1.1rem; }
    .timeline { padding-left: 0; }
    .timeline::before { left: 26px; }
    .tl-step { gap: 1rem; }
    .tl-num { width: 46px; height: 46px; font-size: 1rem; }
    .tl-mark { display: none; }
}
