/*
Theme Name: dds_dianareganrealestate.com
Author: Диана Реган
Description: Тема для информационного проекта о флиппинге квартир: кейсы, стратегии, аналитика рынка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: flipdom
*/

:root {
    --bg: #F4F6F9;
    --bg-alt: #E8ECF2;
    --head: #1A1E26;
    --foot: #10131A;
    --text: #1F2633;
    --acc: #C8742B;
    --acc2: #4A6FA5;
    --muted: #7A8599;
    --line: #D0D7E3;
    --shell: min(92%, 1180px);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cpath d='M20 0 L40 20 L20 40 L0 20 Z' fill='none' stroke='%234A6FA5' stroke-width='0.5' opacity='0.06'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--text);
    font-family: "Source Sans Pro", "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
}

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

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

h1 { font-size: 2.3rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.28rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.15em; }

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

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

.cookie-bar[hidden] { display: none !important; }
.nav-list[hidden] { display: none !important; }

/* ---------- Шапка ---------- */
.site-head {
    background: var(--head);
    border-bottom: 4px solid var(--acc);
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 auto;
    text-decoration: none;
}

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

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

.brand-name {
    display: block;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.28;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #9AA6B8;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid #3A4250;
    border-radius: 4px;
    color: #FFFFFF;
    font: inherit;
    font-size: 0.9rem;
    padding: 0.45rem 0.9rem;
    cursor: pointer;
}

.site-nav { flex: 0 0 auto; }

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

.nav-list a {
    color: #DCE2EB;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ---------- Раскладки ---------- */
.site-main { padding: 2.6rem 0 3.4rem; }

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

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

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

/* ---------- Хлебные крошки ---------- */
.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding: 0.55rem 0.9rem;
    border-left: 4px solid var(--acc2);
    background: rgba(255, 255, 255, 0.62);
}

.crumbs a { color: var(--acc2); }
.crumbs a:hover { color: var(--acc); }
.crumbs-sep { color: var(--line); margin: 0 0.15rem; }

/* ---------- Заголовки секций и ромб ---------- */
.section-title {
    position: relative;
    border-left: 4px solid var(--acc);
    padding-left: 1.5rem;
    margin-bottom: 1.7rem;
    font-size: 1.9rem;
}

.section-title::before {
    content: "◆";
    display: inline-block;
    color: var(--acc);
    font-size: 0.62em;
    margin-right: 0.55rem;
    vertical-align: 0.16em;
    transition: transform 0.35s ease;
}

.front-section:hover .section-title::before,
.entry-content h2:hover::before,
.entry-content h3:hover::before { transform: rotate(90deg); }

.entry-content h2::before,
.entry-content h3::before {
    content: "◆";
    display: inline-block;
    color: var(--acc);
    font-size: 0.6em;
    margin-right: 0.5rem;
    vertical-align: 0.16em;
    transition: transform 0.35s ease;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    padding: 0.75rem 1.6rem;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.btn-filled { background: var(--acc2); color: #FFFFFF; border-color: var(--acc2); }
.btn-filled:hover { background: #37567F; border-color: #37567F; transform: translateY(2px); }

.btn-outline { background: transparent; color: var(--acc); border-color: var(--acc); }
.btn-outline:hover { background: var(--acc); color: #FFFFFF; }

.btn-light { background: transparent; color: #F4F6F9; border-color: rgba(244, 246, 249, 0.55); }
.btn-light:hover { background: #F4F6F9; color: var(--head); border-color: #F4F6F9; }

/* ---------- Ссылки в тексте ---------- */
.entry-content a,
.card-excerpt a,
.widget .textwidget a {
    color: var(--acc);
    background-image: linear-gradient(to right, var(--acc) 40%, transparent 40%);
    background-position: 0 100%;
    background-repeat: repeat-x;
    background-size: 0 1px;
    transition: background-size 0.35s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget .textwidget a:hover { background-size: 6px 1px; }

/* ---------- Карточки записей ---------- */
.card-list { margin-bottom: 2.4rem; }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #FFFFFF;
    padding: 1.5rem;
    margin-bottom: 2.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { border-color: var(--acc); box-shadow: 4px 4px 0 0 rgba(26, 30, 38, 0.08); }

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1.2rem;
    height: 1px;
    background: var(--line);
}

.card:last-child { margin-bottom: 1.6rem; }

.card-inner {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.card-thumb-wrap { flex: 0 0 132px; }

.card-thumb-wrap a { display: block; width: 132px; height: 132px; }

.card-thumb-wrap img {
    display: block;
    width: 132px;
    height: 132px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--acc);
}

.card-thumb-fallback {
    display: block;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    border: 2px solid var(--acc);
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(74, 111, 165, 0.16) 0 4px, transparent 4px 10px);
}

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

.card-title { font-size: 1.24rem; margin: 0 0 0.5rem; }
.card-title a { color: var(--head); transition: color 0.2s ease; }
.card-title a:hover { color: var(--acc); }

.card-excerpt { color: #46505F; font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
    letter-spacing: 0.03em;
}

.post-tagline {
    border-left: 4px solid var(--acc);
    padding: 0.1rem 0.55rem;
    background: var(--bg-alt);
    color: #3C4756;
    font-weight: 600;
}

.card-more {
    display: inline-block;
    margin-top: 0.7rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--acc);
    letter-spacing: 0.03em;
}

.card-more:hover { text-decoration: underline; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover { border-color: var(--acc); color: var(--acc); }

.pager .page-numbers.current {
    background: var(--acc);
    border-color: var(--acc);
    color: #FFFFFF;
}

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

/* ---------- Секции главной ---------- */
.front-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.front-section .shell-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section.alt { background: var(--bg-alt); }

.front-section.alt::after,
.front-section.plain::after {
    content: "";
    position: absolute;
    right: 4%;
    bottom: 4%;
    width: 220px;
    height: 150px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 150'%3E%3Cpath d='M10 140 L10 70 L110 10 L210 70 L210 140 Z M60 140 L60 95 L160 95 L160 140' fill='none' stroke='%23C8742B' stroke-width='6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
}

.hatch-split {
    height: 6px;
    background-image: repeating-linear-gradient(45deg, rgba(200, 116, 43, 0.2) 0 3px, transparent 3px 8px);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 108px 0;
    background-color: var(--head);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(26, 30, 38, 0.6);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

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

.hero-sub {
    color: #D6DDE8;
    font-size: 1.08rem;
    font-weight: 300;
    max-width: 42em;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero .btn-outline { color: #E9B27A; border-color: var(--acc); }
.hero .btn-outline:hover { background: var(--acc); color: #FFFFFF; }

/* ---------- Таймлайн ---------- */
.flow { position: relative; padding-left: 2.4rem; }

.flow::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--acc2);
}

.flow-step {
    position: relative;
    padding: 0.4rem 0 0.4rem 0.4rem;
    margin-bottom: 1.9rem;
    transition: transform 0.25s ease;
}

.flow-step:last-child { margin-bottom: 0; }
.flow-step:hover { transform: translateX(10px); }

.flow-step::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 1rem;
    width: 14px;
    height: 14px;
    margin-left: 0;
    background: var(--acc);
    transform: rotate(45deg);
}

.flow-num {
    display: block;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: var(--acc2);
    margin-bottom: 0.25rem;
}

.flow-step h3 { margin-bottom: 0.35rem; }
.flow-step p { margin: 0; color: #46505F; }

/* ---------- Статистика ---------- */
.stats-plate {
    padding: 3rem 2.4rem;
    color: #F4F6F9;
    background-color: #1A1E26;
    background-image:
        repeating-linear-gradient(135deg, rgba(244, 246, 249, 0.05) 0 1px, transparent 1px 9px),
        linear-gradient(135deg, #1A1E26 0%, #2A3344 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.stats-plate .section-title { color: #FFFFFF; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
}

.stat-cell {
    min-width: 0;
    padding: 0.4rem 1.4rem;
    border-left: 1px solid var(--acc2);
    text-align: center;
}

.stat-cell:first-child { border-left: none; }

.stat-num {
    display: block;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--acc);
    letter-spacing: -0.03em;
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #C3CCDA;
}

/* ---------- Рубрикатор ---------- */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.9rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #FFFFFF;
    color: var(--text);
    text-align: left;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.topic-tile svg { display: block; width: 38px; height: 38px; margin-bottom: 1rem; }
.topic-tile svg path,
.topic-tile svg rect,
.topic-tile svg circle,
.topic-tile svg line,
.topic-tile svg polyline { stroke: var(--acc); }

.topic-name {
    display: block;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.topic-note { display: block; font-size: 0.9rem; color: var(--muted); }

.topic-tile:hover { background: var(--head); border-color: var(--acc); color: #FFFFFF; }
.topic-tile:hover .topic-note { color: #B4BFCE; }

/* ---------- Лента последних записей на главной ---------- */
.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.latest-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid var(--line);
    background: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.latest-card:hover { border-color: var(--acc); box-shadow: 4px 4px 0 0 rgba(26, 30, 38, 0.08); }

.latest-thumb { display: block; width: 100%; }

.latest-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.latest-body { flex: 1; min-width: 0; padding: 1.4rem; }
.latest-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.latest-body h3 a { color: var(--head); }
.latest-body h3 a:hover { color: var(--acc); }
.latest-body .card-excerpt { font-size: 0.93rem; }

.section-foot { margin-top: 2rem; }

/* ---------- Контент ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.05rem; }

.entry-thumb { margin-bottom: 1.8rem; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 1.9rem; }
.entry-content h3 { margin-top: 1.5rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content img { display: block; height: auto; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--acc);
    background: var(--bg-alt);
    color: #364150;
}

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

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

.entry-content th { background: var(--bg-alt); color: var(--head); }

.entry-content code, .entry-content pre {
    background: var(--bg-alt);
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
}

.entry-content pre { padding: 1rem; overflow-x: auto; }

.entry-foot {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}

.entry-foot a { color: var(--acc2); }

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

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }

.sidebar .widget {
    background: #FFFFFF;
    box-shadow: 0 2px 12px rgba(26, 30, 38, 0.07);
    padding: 1.5rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--text);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.sidebar .widget-title {
    font-size: 1.06rem;
    color: var(--head);
    border-left: 4px solid var(--acc);
    padding-left: 0.8rem;
    margin-bottom: 1rem;
}

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

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

.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget a { color: #2A3444; }
.sidebar .widget a:hover { color: var(--acc); }
.sidebar .widget .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar .widget p { color: #46505F; font-size: 0.95rem; }

/* ---------- Форма поиска ---------- */
.search-form { display: flex; gap: 0.5rem; }

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus { outline: 2px solid var(--acc2); outline-offset: 1px; }

.search-form button {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--acc);
    border-radius: 4px;
    background: var(--acc);
    color: #FFFFFF;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.search-form button:hover { background: #A85E20; border-color: #A85E20; transform: translateY(2px); }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

.comments-title { font-size: 1.35rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.5rem; padding: 0; }

.comment-item {
    border: 1px solid var(--line);
    background: #FFFFFF;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: baseline; margin-bottom: 0.5rem; }
.comment-author { font-weight: 700; color: var(--head); }
.comment-date { font-size: 0.82rem; color: var(--muted); }
.comment-hold { font-size: 0.88rem; color: var(--acc); }
.comment-text p { margin: 0 0 0.6em; }
.comment-reply a { font-size: 0.88rem; font-weight: 600; color: var(--acc2); }

.comment-respond {
    border: 1px solid var(--line);
    background: #FFFFFF;
    padding: 1.6rem 1.5rem;
}

.comment-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    font: inherit;
    font-size: 0.95rem;
    background: #FFFFFF;
    color: var(--text);
}

.comment-form textarea { min-height: 140px; }
.comment-form p { margin-bottom: 1rem; }

.comment-form .submit {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--acc2);
    border-radius: 4px;
    background: var(--acc2);
    color: #FFFFFF;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.comment-form .submit:hover { background: #37567F; transform: translateY(2px); }

/* ---------- 404 ---------- */
.notfound { padding: 1rem 0 2rem; }
.notfound-code { font-size: 4.2rem; color: var(--acc); line-height: 1; margin-bottom: 0.4rem; }
.notfound .search-form { max-width: 26rem; margin: 1.6rem 0; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--foot);
    color: #C3CCDA;
    padding: 3rem 0 1.8rem;
    border-top: 4px solid var(--acc);
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
}

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

.site-foot .widget { margin-bottom: 1.4rem; color: #C3CCDA; }
.site-foot .widget:last-child { margin-bottom: 0; }

.site-foot .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    border-left: 4px solid var(--acc);
    padding-left: 0.8rem;
    margin-bottom: 0.9rem;
}

.site-foot .widget p { color: #AAB6C6; font-size: 0.94rem; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }

.site-foot .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #212733;
    font-size: 0.94rem;
}

.site-foot .widget li:last-child { border-bottom: none; }
.site-foot .widget a { color: #D8DFE9; }
.site-foot .widget a:hover { color: var(--acc); }
.site-foot .widget .post-date { display: block; font-size: 0.8rem; color: #8792A3; }

.foot-note {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid #212733;
    font-size: 0.86rem;
    color: #8792A3;
}

/* ---------- Cookie ---------- */
.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: #1A1E26;
    border-top: 3px solid var(--acc);
    color: #DCE2EB;
    font-size: 0.9rem;
}

.cookie-bar p { margin: 0; min-width: 0; }
.cookie-bar a { color: var(--acc); }

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.55rem 1.4rem;
    border: 2px solid var(--acc);
    border-radius: 4px;
    background: var(--acc);
    color: #FFFFFF;
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.cookie-accept:hover { background: #A85E20; border-color: #A85E20; transform: translateY(2px); }

/* ---------- Адаптив ---------- */
@media (min-width: 960px) {
    h1 { font-size: 3rem; }
    .hero h1 { font-size: 4.2rem; }
    .section-title { margin-left: -1.5rem; }
}

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single { width: 100%; }
    .front-section .shell-inner, .hero-inner { width: 100%; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
    .stat-cell:nth-child(3) { border-left: none; }
}

@media (max-width: 782px) {
    .nav-toggle { display: block; }
    .site-nav { flex: 1 1 100%; }
    .nav-list { flex-direction: column; gap: 0.2rem; }
    .nav-list li { border-bottom: 1px solid #262D38; }
    .nav-list a { display: block; padding: 0.6rem 0; border-bottom: none; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .hero { padding: 68px 0; }
    .hero h1 { font-size: 1.85rem; }
    .front-section { padding: 52px 0; }
    .section-title { font-size: 1.5rem; padding-left: 1rem; }
    .latest-grid { grid-template-columns: minmax(0, 1fr); }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-grid { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: none; border-top: 1px solid var(--acc2); padding-top: 1.2rem; }
    .stat-cell:first-child { border-top: none; }
    .stats-plate { padding: 2rem 1.4rem; }
    .foot-grid { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 1.2rem; }
    .card-inner { flex-direction: column; }
    .card-thumb-wrap { flex: none; width: 100%; }
    .card-thumb-wrap a, .card-thumb-wrap img, .card-thumb-fallback { width: 132px; height: 132px; }
    .entry-title { font-size: 1.6rem; }
    .flow { padding-left: 1.9rem; }
    .flow-step::before { left: -1.9rem; }
    .comment-list .children { margin-left: 0.8rem; }
    .cookie-bar { padding: 0.9rem 1rem; }
}

/* ---------- Служебные ---------- */
.hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.archive-note { color: var(--muted); font-size: 0.95rem; }
.comment-note { font-size: 0.88rem; color: var(--muted); }
