/*
Theme Name: dds_pokupka-kvartiri.ru
Theme URI: https://pokupka-kvartiri.ru/
Author: Дмитрий Соловьёв
Description: Тема для образовательного проекта «Школа покупателя квартиры»: уроки, шаблоны и калькуляторы по сделкам, ипотеке и документам.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pkvart
*/

:root {
    --bg: #F4F7F9;
    --bg-alt: #E4EBF0;
    --ink: #1B2A38;
    --head: #1B2A38;
    --foot: #14202B;
    --amber: #C9761F;
    --steel: #2E6E8E;
    --muted: #6B7C8A;
    --line: #C9D6DF;
    --dash: #B8C7D1;
    --quote: #EAF0F4;
    --grid: #DCE5EB;
    --f-head: "Jost", "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
    --f-body: "Golos Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --cut: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 380px;
    height: 320px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.06;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 380 320' fill='none' stroke='%232E6E8E' stroke-width='4'%3E%3Cpath d='M20 20h340v280H20z'/%3E%3Cpath d='M190 20v150M20 170h250M270 170v130M270 230h90M110 170v130'/%3E%3Cpath d='M190 120a50 50 0 0 1 50-50M110 250a40 40 0 0 0 40 40'/%3E%3Cpath d='M60 20v-8M150 20v-8M300 312v-8'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}
img { max-width: 100%; height: auto; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: 0.03em;
    margin: 1.6em 0 0.6em;
    font-weight: 600;
}
h1 { font-size: 2.3rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: 0.6em 0.8em; text-align: left; }
th { background: var(--bg-alt); font-family: var(--f-head); letter-spacing: 0.03em; }
blockquote {
    margin: 1.6em 0;
    padding: 1.1em 1.4em;
    border-left: 4px solid var(--amber);
    background: var(--quote);
    font-style: normal;
}
blockquote p:last-child { margin-bottom: 0; }
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Текстовые ссылки */
a { color: var(--steel); text-decoration: none; }
.entry-content a:not(.pk-btn),
.crumbs a,
.sidebar a,
.archive-desc a,
.discussion a,
.card-title a,
.card-more,
.empty-block a:not(.pk-btn),
.colophon a {
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 2px;
    transition: background-size 0.25s ease, color 0.2s ease;
    padding-bottom: 1px;
}
.entry-content a:not(.pk-btn):hover,
.crumbs a:hover,
.sidebar a:hover,
.archive-desc a:hover,
.discussion a:hover,
.card-title a:hover,
.card-more:hover,
.empty-block a:not(.pk-btn):hover,
.colophon a:hover { background-size: 100% 2px; }

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

/* ---------- Кнопки ---------- */
.pk-btn {
    --c: var(--amber);
    --hole: var(--bg);
    --sh: #8E5212;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8em 1.7em;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.2;
    color: #fff;
    background: none;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease, color 0.15s ease;
}
.pk-btn::before,
.pk-btn::after {
    content: "";
    position: absolute;
    clip-path: var(--cut);
    transition: background-color 0.15s ease;
}
.pk-btn::before { inset: 0; background: var(--c); z-index: -2; }
.pk-btn::after { inset: 2px; background: var(--hole); z-index: -1; display: none; clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 0 100%); }
.pk-btn:hover,
.pk-btn:focus-visible {
    transform: translate(2px, 2px);
    filter: drop-shadow(3px 3px 0 var(--sh));
}
.pk-btn-fill { color: #fff; }
.pk-btn-line { --c: var(--steel); --sh: var(--steel); color: var(--steel); }
.pk-btn-line::after { display: block; }
.pk-btn-ghost { --c: #fff; --hole: var(--amber); --sh: #8E5212; color: #fff; }
.pk-btn-ghost::after { display: block; }
.pk-btn-ghost:hover,
.pk-btn-ghost:focus-visible { color: var(--amber); }
.pk-btn-ghost:hover::after,
.pk-btn-ghost:focus-visible::after { background: #fff; }

/* ---------- Шапка ---------- */
.horizon { height: 4px; background: linear-gradient(90deg, #2E6E8E, #C9761F); }
.masthead { background: var(--head); color: #fff; }
.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.9rem; color: #fff; min-width: 0; flex: 1 1 420px; }
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo, .brand-svg { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 640px; }
.brand-name {
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    color: #fff;
}
.brand-desc {
    font-size: 0.78rem;
    line-height: 1.45;
    color: #A9B8C4;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.site-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.3rem 1.6rem; flex-wrap: wrap; }
.site-nav-list a {
    display: block;
    padding: 0.35rem 0;
    font-family: var(--f-head);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #E3EAF0;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 0 2px;
    transition: background-size 0.25s ease, color 0.2s ease;
}
.site-nav-list a:hover,
.site-nav-list .current-menu-item > a { color: #fff; background-size: 100% 2px; }
.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid #3A5064;
    color: #fff;
    font-family: var(--f-head);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: var(--amber); position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 1.4rem 0 0.4rem; font-size: 0.88rem; color: var(--muted); }
.crumbs .sep { color: var(--amber); margin: 0 0.35rem; }
.crumbs span:last-child { color: var(--ink); }

/* ---------- Раскладки ---------- */
.site-main { padding-bottom: 4rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding-top: 1rem;
}
.layout-single { display: block; width: 85%; margin-left: auto; margin-right: auto; padding-top: 1rem; }
.content-area { min-width: 0; }
.sidebar {
    min-width: 0;
    background: #fff;
    border-left: 3px solid var(--amber);
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}

/* ---------- Заголовки секций и страниц ---------- */
.eyebrow {
    display: block;
    font-family: var(--f-head);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 0.5rem;
}
.eyebrow-light { color: #9FC3D6; }
.sec-head { margin-bottom: 2rem; }
.sec-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.sec-title,
.fs-cta-title {
    position: relative;
    margin: 0;
    padding-left: 54px;
    font-size: 1.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.sec-title::before,
.fs-cta-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 32px;
    height: 3px;
    background: var(--amber);
    transform: translateY(-50%);
}
.sec-title::after,
.fs-cta-title::after,
.entry-content h2::before,
.discussion-title::before,
.page-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--amber);
    clip-path: polygon(0 0, 5px 0, 8px 3px, 8px 8px, 0 8px);
}
.sec-title::after,
.fs-cta-title::after { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); }
.entry-content h2::before,
.discussion-title::before { margin-right: 0.6em; vertical-align: 0.2em; }
.page-title::before { display: none; }
.page-head { margin: 0.6rem 0 2rem; }
.page-title { font-size: 2.3rem; margin: 0; letter-spacing: 0.04em; }
.archive-desc { color: var(--muted); margin-top: 0.8rem; }

/* ---------- Главная ---------- */
.front-wrap { width: 85%; margin-left: auto; margin-right: auto; padding-top: 2.5rem; }
.front-section { position: relative; padding: 3rem 2.8rem; }
.cut-line { height: 0; border-top: 1px dashed var(--dash); margin: 2.2rem 0; }

.fs-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: center;
    gap: 2.5rem;
    padding: 4rem 3.2rem;
    color: #fff;
    background-color: var(--head);
    background-image:
        linear-gradient(#24384A 1px, transparent 1px),
        linear-gradient(90deg, #24384A 1px, transparent 1px);
    background-size: 24px 24px;
}
.fs-hero-text { min-width: 0; }
.fs-hero-title { color: #fff; font-size: 3.25rem; margin: 0 0 1rem; letter-spacing: 0.04em; }
.fs-hero-sub { color: #C3CFD8; font-size: 1.12rem; max-width: 560px; margin-bottom: 2rem; }
.fs-hero-art { min-width: 0; justify-self: center; }
.fs-hero-art img { display: block; width: 100%; max-width: 440px; opacity: 0.75; }
.fs-hero .pk-btn { --hole: var(--head); --sh: #8E5212; }

.fs-steps { background: var(--bg); border: 1px solid var(--line); }
.steps-list { list-style: none; margin: 0; padding: 0; }
.step-row {
    display: flex;
    align-items: flex-start;
    gap: 1.6rem;
    padding: 1.4rem 0;
    border-top: 1px dashed var(--dash);
}
.step-row:first-child { border-top: 0; padding-top: 0; }
.step-row:last-child { padding-bottom: 0; }
.step-num {
    flex: 0 0 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--steel);
    background: #fff;
    border: 2px solid var(--steel);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
    position: relative;
}
.step-text { min-width: 0; }
.step-title { margin: 0.15rem 0 0.35rem; font-size: 1.2rem; letter-spacing: 0.05em; }
.step-text p { margin: 0; color: #3E5060; }

.fs-latest { background: var(--bg-alt); }
.fs-latest .pk-btn-line { --hole: var(--bg-alt); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-note { color: var(--muted); margin: 0; }

.fs-stats { background: var(--bg-alt); }
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.6rem 1rem;
    border-left: 1px dashed var(--dash);
}
.stat-item:first-child { border-left: 0; }
.stat-num { font-family: var(--f-head); font-weight: 700; font-size: 3.4rem; line-height: 1; color: var(--amber); }
.stat-label { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; }

.fs-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 2.8rem 3rem 4.2rem;
    background: var(--amber);
    color: #fff;
}
.fs-cta::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #F4F7F9 50%, #9E5A14 50%);
}
.fs-cta-text { min-width: 0; max-width: 680px; }
.fs-cta-title { color: #fff; font-size: 1.5rem; margin-bottom: 0.8rem; }
.fs-cta-title::before, .fs-cta-title::after { background: #fff; }
.fs-cta p { margin: 0; color: #FFF3E6; }
.fs-cta .eyebrow-light { color: #FBE3C8; }
.fs-cta .pk-btn { flex: 0 0 auto; }

/* ---------- Карточки ---------- */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
    transform: translate(-3px, -3px);
    border-color: var(--amber);
    box-shadow: inset 0 0 0 1px var(--amber), 4px 4px 0 #2E6E8E;
}
.card-thumb { border-bottom: 1px solid var(--line); }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.card-thumb-empty {
    display: block;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(#D2DCE3 1px, transparent 1px),
        linear-gradient(90deg, #D2DCE3 1px, transparent 1px),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 100' fill='none' stroke='%232E6E8E' stroke-width='2' opacity='.45'%3E%3Cpath d='M30 15h100v70H30zM80 15v40M30 55h70M100 55v30'/%3E%3C/svg%3E");
    background-size: 16px 16px, 16px 16px, 60% auto;
    background-repeat: repeat, repeat, no-repeat;
    background-position: 0 0, 0 0, center;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.2rem 1.3rem 1.4rem; min-width: 0; }
.card-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.tag-chip {
    display: inline-block;
    padding: 0.15em 0.6em;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--steel);
    background: var(--quote);
    border: 1px solid var(--line);
    border-radius: 2px;
    transition: border-color 0.2s ease;
}
.tag-chip:hover { border-color: var(--steel); }
.card-title { margin: 0 0 0.4rem; font-size: 1.15rem; line-height: 1.35; letter-spacing: 0.02em; }
.card-title a { color: var(--ink); }
.card-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.card-excerpt { font-size: 0.96rem; color: #3E5060; flex: 1; overflow-wrap: anywhere; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: 0.6rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---------- Запись и страница ---------- */
.entry-head { margin: 0.6rem 0 1.6rem; }
.entry-meta { margin-top: 0.7rem; color: var(--muted); font-size: 0.9rem; }
.entry-thumb { margin: 0 0 1.8rem; border: 1px solid var(--line); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { text-transform: none; letter-spacing: 0.04em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content ul li::marker { color: var(--amber); }
.entry-content pre { overflow-x: auto; background: var(--bg-alt); padding: 1rem 1.2rem; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px dashed var(--dash); }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed var(--dash);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 0.7rem; line-height: 1.45; color: var(--ink); }
.sidebar a { color: var(--steel); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.sidebar p, .sidebar .textwidget { color: var(--ink); }
.pk-toolbox li { display: flex; gap: 0.6rem; align-items: flex-start; }
.pk-toolbox-ico { flex: 0 0 18px; display: block; margin-top: 0.15rem; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.6rem; }
.pager .page-numbers,
.pager > span,
.pager > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--steel);
    background: #fff;
    border: 1px solid var(--line);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pager a.page-numbers:hover { transform: translate(2px, 2px); border-color: var(--steel); box-shadow: 2px 2px 0 var(--steel); }
.pager .page-numbers.current { background: var(--amber); border-color: var(--amber); color: #fff; }
.pager .page-numbers.dots { background: none; border: 0; color: var(--muted); }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
}
.search-field:focus { outline: 2px solid var(--steel); outline-offset: -1px; }
.search-submit { --hole: var(--bg); }

/* ---------- 404 ---------- */
.notfound { padding: 2rem 0; }
.notfound-code { display: block; font-family: var(--f-head); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--amber); letter-spacing: 0.06em; }
.notfound-home { margin-top: 1.6rem; }
.empty-block { background: #fff; border: 1px solid var(--line); padding: 1.6rem 1.8rem; }

/* ---------- Комментарии ---------- */
.discussion { margin-top: 3rem; padding-top: 2rem; border-top: 1px dashed var(--dash); }
.discussion-title { font-size: 1.4rem; margin-top: 0; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; }
.comment-body { background: #fff; border: 1px solid var(--line); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.comment-meta { font-size: 0.85rem; color: var(--muted); }
.comment-author .avatar { float: left; margin-right: 0.8rem; }
.comment-form label { display: block; font-size: 0.9rem; 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; font: inherit; border: 1px solid var(--line); background: #fff; }
.comment-form .submit {
    padding: 0.8em 1.7em;
    font-family: var(--f-head);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: var(--amber);
    border: 0;
    clip-path: var(--cut);
    cursor: pointer;
}

/* ---------- Подвал ---------- */
.colophon { background: var(--foot); color: #C5D2DC; padding-top: 3.2rem; }
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 2.6rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.5rem; }
.colophon .widget-title {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #fff;
    position: relative;
    padding-left: 42px;
}
.colophon .widget-title::before { content: ""; position: absolute; left: 0; top: 50%; width: 32px; height: 3px; background: var(--amber); transform: translateY(-50%); }
.colophon p, .colophon .textwidget, .colophon li { color: #C5D2DC; font-size: 0.95rem; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin-bottom: 0.5rem; }
.colophon a { color: #E3EAF0; }
.colophon-base { border-top: 1px dashed #2C3E4F; padding: 1.1rem 0; font-size: 0.85rem; color: #8FA1AF; }

/* ---------- Cookie ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--head);
    color: #E3EAF0;
    border-left: 4px solid var(--amber);
    box-shadow: 4px 4px 0 #2E6E8E;
}
.cookie-text { margin: 0; font-size: 0.92rem; min-width: 0; }
.cookie-banner .pk-btn { --hole: var(--head); flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { flex-basis: 100%; display: none; }
    .site-nav.is-open { display: block; }
    .site-nav-list { flex-direction: column; gap: 0; padding: 0.4rem 0 0.6rem; border-top: 1px dashed #3A5064; }
    .site-nav-list a { padding: 0.6rem 0; }
    .brand { flex: 1 1 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout-single, .front-wrap { width: 100%; }
    .fs-hero { grid-template-columns: minmax(0, 1fr); padding: 3rem 2.2rem; }
    .fs-hero-art img { max-width: 340px; }
    .fs-hero-title { font-size: 2.6rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat-item:nth-child(3) { border-left: 0; }
    .fs-cta { flex-direction: column; align-items: flex-start; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    body::after { width: 240px; height: 200px; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .brand-desc { display: none; }
    .brand-name { font-size: 0.85rem; }
    .front-wrap { padding-top: 1.5rem; }
    .front-section { padding: 2rem 1.3rem; }
    .fs-hero { padding: 2.4rem 1.4rem; }
    .fs-cta { padding: 2.4rem 1.4rem 2rem 1.4rem; }
    .fs-cta::before { width: 28px; height: 28px; }
    .fs-cta-text { padding-top: 0.6rem; }
    .fs-hero-title { font-size: 2rem; }
    .sec-title, .fs-cta-title { font-size: 1.2rem; padding-left: 48px; }
    .card-grid, .card-grid-2 { grid-template-columns: minmax(0, 1fr); }
    .step-row { gap: 1rem; }
    .step-num { flex-basis: 50px; height: 50px; font-size: 1.25rem; }
    .stat-num { font-size: 2.6rem; }
    .page-title { font-size: 1.7rem; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .empty-block { padding: 1.3rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; }
    .cut-line { margin: 1.6rem 0; }
}
