/*
Theme Name: dds_krasnogorsk-nedvizhimost.ru
Theme URI: https://krasnogorsk-nedvizhimost.ru/
Author: Дмитрий Волков
Description: Информационная тема для образовательной платформы и аналитического центра по урбанистике, инвестициям в недвижимость и управлению городскими активами. Концепция оформления — «Градостроительный чертёж».
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: urbplan
*/

/* ===============================================================
   1. Переменные и база
   =============================================================== */

:root {
    --paper: #F4F6F8;
    --paper-alt: #E8ECF0;
    --ink: #1A2433;
    --deep: #1B2A4A;
    --night: #0F1A2E;
    --mark: #E63946;
    --mark-dark: #C1121F;
    --teal: #2A9D8F;
    --mute: #6B7A8D;
    --rule: #D0D7DE;
    --dash: #B0BEC5;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        linear-gradient(to right, rgba(27, 42, 74, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(27, 42, 74, 0.04) 1px, transparent 1px);
    background-size: 8px 8px;
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 420px;
    height: 260px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 260'%3E%3Cg fill='%231B2A4A'%3E%3Crect x='10' y='150' width='54' height='110'/%3E%3Crect x='74' y='96' width='40' height='164'/%3E%3Crect x='124' y='180' width='62' height='80'/%3E%3Crect x='196' y='60' width='46' height='200'/%3E%3Crect x='252' y='130' width='70' height='130'/%3E%3Crect x='332' y='30' width='38' height='230'/%3E%3Crect x='380' y='160' width='30' height='100'/%3E%3C/g%3E%3C/svg%3E");
}

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

a {
    color: var(--mark);
    text-decoration: none;
    position: relative;
}

.entry-text a,
.side-block a,
.trail a,
.text-link {
    display: inline;
}

.entry-text a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--mark);
    transform: scaleY(0);
    transform-origin: bottom center;
    transition: transform 0.18s ease;
}

.entry-text a:hover::after,
.text-link:hover::after {
    transform: scaleY(1);
}

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

/* ===============================================================
   2. Типографика
   =============================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
    font-weight: 700;
    margin: 1.6em 0 0.6em;
}

h1 {
    font-size: 3.2rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

.entry-text h2,
.entry-text h3,
.page-head h2,
.page-head h3 {
    position: relative;
    padding-left: 15px;
}

.entry-text h2::before,
.entry-text h3::before,
.page-head h2::before,
.page-head h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    width: 3px;
    height: 1.05em;
    background: var(--mark);
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 4px solid var(--mark);
    border-radius: 4px;
    color: var(--ink);
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    padding: 1rem 1.2rem;
    background: var(--deep);
    color: #E8ECF0;
    overflow-x: auto;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    background: #fff;
    border: 1px solid var(--rule);
}

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

th {
    background: var(--paper-alt);
    font-weight: 700;
}

figure {
    margin: 1.6em 0;
}

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

/* ===============================================================
   3. Кнопки
   =============================================================== */

.btn,
.btn-ghost {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    border-radius: 2px;
    font-weight: 700;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.btn {
    background: var(--mark);
    color: #fff;
}

.btn:hover,
.btn:focus {
    background: var(--mark-dark);
    color: #fff;
    transform: translate(2px, 2px);
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--deep);
    color: #fff;
    transform: translate(2px, 2px);
}

button,
input[type="submit"] {
    font-family: var(--sans);
}

/* ===============================================================
   4. Шапка
   =============================================================== */

.top {
    background: var(--deep);
    color: #fff;
    position: relative;
}

.top::after {
    content: "";
    display: block;
    height: 4px;
    width: 100%;
    background: var(--mark);
}

.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: #fff;
    max-width: 62%;
}

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

.brand-logo {
    width: auto;
    max-height: 56px;
}

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

.brand-name {
    display: block;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    color: #fff;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tag {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--dash);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    border-radius: 2px;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

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

.main-nav a {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}

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

/* ===============================================================
   5. Каркас страницы
   =============================================================== */

.page-body {
    padding: 2.6rem 0 4rem;
    position: relative;
    z-index: 1;
}

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

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

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

.trail {
    font-size: 0.85rem;
    color: var(--mute);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

.trail a {
    color: var(--mute);
}

.trail a:hover {
    color: var(--mark);
}

.trail-sep {
    color: var(--dash);
    margin: 0 0.3rem;
}

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

.page-head h1 {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.page-lead {
    color: var(--mute);
    font-size: 1.02rem;
    max-width: 62ch;
}

/* ===============================================================
   6. Сайдбар
   =============================================================== */

.sidebar {
    min-width: 0;
}

.side-block {
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.4rem;
    color: var(--ink);
}

.side-block-title {
    font-size: 1.05rem;
    margin: 0 0 0.9rem;
    color: var(--ink);
    position: relative;
    padding-left: 15px;
}

.side-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 1em;
    background: var(--mark);
}

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

.side-block li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--rule);
    font-size: 0.95rem;
    line-height: 1.5;
}

.side-block li:last-child {
    border-bottom: none;
}

.side-block a {
    color: var(--ink);
}

.side-block a:hover {
    color: var(--mark);
}

.side-block .post-date,
.side-block .rss-date {
    display: block;
    font-size: 0.8rem;
    color: var(--mute);
}

.side-block p {
    color: var(--ink);
    font-size: 0.95rem;
}

.side-block select,
.side-block input[type="text"],
.side-block input[type="search"] {
    width: 100%;
    max-width: 100%;
}

/* ===============================================================
   7. Карточки записей
   =============================================================== */

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

.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid var(--rule);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(27, 42, 74, 0.08);
    overflow: hidden;
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(27, 42, 74, 0.14);
    border-color: var(--mark);
}

.card-thumb {
    display: block;
    border-bottom: 2px solid var(--mark);
    background: var(--paper-alt);
}

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

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

.card-title {
    font-size: 1.18rem;
    margin: 0.55rem 0 0.5rem;
    line-height: 1.32;
}

.card-title a {
    color: var(--ink);
}

.card-title a:hover {
    color: var(--mark);
}

.card-meta {
    font-size: 0.8rem;
    color: var(--mute);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card-excerpt {
    color: var(--ink);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mark);
    border-bottom: 2px solid transparent;
    transition: border-color 0.16s ease;
}

.card-more:hover {
    border-bottom-color: var(--mark);
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag-chip {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    border-radius: 0;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.5;
}

.tag-chip:hover {
    background: #218578;
    color: #fff;
}

/* ===============================================================
   8. Главная — секции
   =============================================================== */

.front-wrap {
    position: relative;
    z-index: 1;
}

.front-section {
    padding: 80px 0;
}

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

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.section-title {
    font-size: 2rem;
    margin: 0 0 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title::before {
    content: "";
    flex: 0 0 40px;
    width: 40px;
    height: 3px;
    background: var(--mark);
}

.section-lead {
    color: var(--mute);
    max-width: 68ch;
    margin: -0.7rem 0 2rem;
}

.divider {
    border: none;
    border-top: 1px dashed var(--dash);
    width: 85%;
    margin: 0 auto;
    position: relative;
}

.reper {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--mark);
    margin: 2.2rem auto;
}

/* Блок 1 — Hero */

.hero {
    background: var(--deep);
    color: #fff;
    padding: 90px 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: 24px 24px;
}

.hero-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    color: #fff;
    font-size: 3.2rem;
    margin: 0 0 1.1rem;
}

.hero p {
    color: var(--dash);
    font-size: 1.08rem;
    max-width: 52ch;
    margin-bottom: 1.8rem;
}

.hero-badge {
    display: inline-block;
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mark);
    font-weight: 700;
    margin-bottom: 1rem;
    border-left: 3px solid var(--mark);
    padding-left: 10px;
}

.hero-art {
    min-width: 0;
}

.hero-art svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Блок 2 — Статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

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

.stat-num {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--deep);
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--mute);
    line-height: 1.5;
}

/* Блок 3 — Шаги */

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 0.5rem;
}

.step {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 1.4rem;
    padding-bottom: 2.2rem;
    position: relative;
    min-width: 0;
}

.step:last-child {
    padding-bottom: 0;
}

.step::before {
    content: "";
    position: absolute;
    left: 36px;
    top: 74px;
    bottom: 0;
    border-left: 2px dashed var(--dash);
}

.step:last-child::before {
    display: none;
}

.step-num {
    width: 74px;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: 3px solid var(--mark);
    border-radius: 2px;
    color: var(--mark);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    position: relative;
    z-index: 1;
}

.step-body {
    min-width: 0;
    padding-top: 0.3rem;
}

.step-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
    color: var(--ink);
}

.step-body p {
    margin: 0;
    color: var(--mute);
}

/* Блок 4 — CTA */

.cta-plate {
    background: var(--teal);
    color: #fff;
    padding: 3rem 2.4rem;
    border-radius: 2px;
    text-align: center;
    position: relative;
}

.cta-plate::before {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    pointer-events: none;
}

.cta-plate h2 {
    color: #fff;
    font-size: 2.1rem;
    margin: 0 0 0.8rem;
    position: relative;
}

.cta-plate p {
    color: rgba(255, 255, 255, 0.92);
    max-width: 60ch;
    margin: 0 auto 1.8rem;
    position: relative;
}

.cta-btn {
    display: inline-block;
    background: #FFFFFF;
    color: var(--teal);
    border-radius: 2px;
    padding: 0.8rem 1.8rem;
    font-weight: 700;
    position: relative;
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.cta-btn:hover {
    transform: translate(2px, 2px);
    background: var(--night);
    color: #fff;
}

/* ===============================================================
   9. Запись и страница
   =============================================================== */

.entry-header {
    margin-bottom: 1.6rem;
}

.entry-header h1 {
    font-size: 2.6rem;
    margin: 0.7rem 0 0.6rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--mute);
    letter-spacing: 0.03em;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
    border-bottom: 3px solid var(--mark);
}

.entry-text {
    font-size: 1.02rem;
}

.entry-text img {
    border-radius: 4px;
}

.entry-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
    font-size: 0.93rem;
}

.entry-nav a {
    color: var(--deep);
    font-weight: 600;
}

.entry-nav a:hover {
    color: var(--mark);
}

/* ===============================================================
   10. Пагинация
   =============================================================== */

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.7rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.93rem;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

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

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

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

/* ===============================================================
   11. Формы поиска и комментарии
   =============================================================== */

.search-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
    font-family: var(--sans);
}

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

.search-form button {
    background: var(--mark);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 0 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.search-form button:hover {
    background: var(--mark-dark);
    transform: translate(2px, 2px);
}

.comments-area {
    margin-top: 3rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--rule);
}

.comments-area h2 {
    font-size: 1.5rem;
    margin-top: 0;
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0;
}

.note {
    background: #fff;
    border: 1px solid var(--rule);
    border-left: 3px solid var(--teal);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.note-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.note-author {
    font-weight: 700;
}

.note-date,
.note-hold {
    font-size: 0.83rem;
    color: var(--mute);
}

.note-reply {
    font-size: 0.88rem;
    font-weight: 600;
}

.comment-respond {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 1.6rem 1.7rem;
}

.comment-respond .comment-reply-title {
    margin-top: 0;
    font-size: 1.25rem;
}

.comment-form label {
    display: block;
    font-size: 0.88rem;
    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.7rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
}

.comment-form textarea {
    min-height: 150px;
}

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

.comment-form input[type="submit"] {
    background: var(--mark);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 0.78rem 1.6rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.comment-form input[type="submit"]:hover {
    background: var(--mark-dark);
    transform: translate(2px, 2px);
}

/* ===============================================================
   12. 404 и пустые состояния
   =============================================================== */

.empty-plate {
    background: #fff;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 2.2rem 2rem;
}

.error-code {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--mark);
    margin: 0 0 0.6rem;
    letter-spacing: -0.03em;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

/* ===============================================================
   13. Cookie-баннер
   =============================================================== */

.cookie-banner[hidden] {
    display: none !important;
}

.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: 1.2rem;
    padding: 1rem 1.4rem;
    background: var(--night);
    color: #E8ECF0;
    border-top: 3px solid var(--mark);
    font-size: 0.9rem;
    line-height: 1.55;
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-accept {
    background: var(--mark);
    color: #fff;
    border: none;
    border-radius: 2px;
    padding: 0.6rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease;
}

.cookie-accept:hover {
    background: var(--mark-dark);
    transform: translate(2px, 2px);
}

/* ===============================================================
   14. Подвал
   =============================================================== */

.bottom {
    background: var(--night);
    color: #C6D0DC;
    padding: 3.4rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

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

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

.foot-block {
    margin-bottom: 1.4rem;
    color: #C6D0DC;
    font-size: 0.93rem;
}

.foot-block p {
    color: #C6D0DC;
}

.foot-block-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin: 0 0 0.9rem;
    position: relative;
    padding-left: 15px;
}

.foot-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 1em;
    background: var(--mark);
}

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

.foot-block li {
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-block li:last-child {
    border-bottom: none;
}

.foot-block a {
    color: #DCE4EC;
}

.foot-block a:hover {
    color: var(--mark);
}

.foot-block .post-date,
.foot-block .rss-date {
    display: block;
    font-size: 0.8rem;
    color: #8B99A9;
}

.foot-note {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.84rem;
    color: #8B99A9;
}

.foot-mail {
    color: #DCE4EC;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.foot-mail:hover {
    color: var(--mark);
}

/* ===============================================================
   15. Адаптив
   =============================================================== */

@media (max-width: 960px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2.4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }

    .layout-single,
    .front-inner,
    .hero-inner,
    .divider {
        width: 100%;
    }

    .bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.2rem;
    }

    .stat-cell:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 600px) {
    .top-inner {
        padding: 1.1rem 0;
    }

    .brand {
        max-width: 100%;
    }

    .nav-toggle {
        display: inline-block;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav[hidden] {
        display: none !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 0.8rem;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-nav a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: none;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 56px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .front-section {
        padding: 52px 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .stat-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .stat-cell {
        border-left: none;
        border-top: 1px solid var(--dash);
    }

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

    .stat-num {
        font-size: 2.4rem;
    }

    .step {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 1rem;
    }

    .step-num {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    .step::before {
        left: 27px;
        top: 56px;
    }

    .cta-plate {
        padding: 2.2rem 1.5rem;
    }

    .cta-plate::before {
        inset: 10px;
    }

    .cta-plate h2 {
        font-size: 1.6rem;
    }

    .bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .comment-respond {
        padding: 1.2rem 1.1rem;
    }

    .empty-plate {
        padding: 1.5rem 1.2rem;
    }

    .cookie-banner {
        justify-content: flex-start;
        padding: 0.9rem 1rem;
        font-size: 0.85rem;
    }

    body::after {
        width: 240px;
        height: 150px;
    }
}

/* ===============================================================
   16. Точечные правки
   =============================================================== */

.main-nav[hidden] {
    display: none !important;
}

.home .page-body {
    padding-top: 0;
    padding-bottom: 0;
}

.entry-pages {
    margin-top: 1.4rem;
    font-size: 0.9rem;
    color: var(--mute);
}

.entry-text > *:first-child {
    margin-top: 0;
}

.wp-caption-text,
.entry-text figcaption {
    font-size: 0.85rem;
    color: var(--mute);
}

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.comment-navigation .page-numbers,
.comments-area .nav-links {
    font-size: 0.9rem;
}
