/*
Theme Name: dds_evodostavka.ru
Theme URI: https://evodostavka.ru/
Author: Соболева Виктория Соболева Виктория
Description: Информационная тема о подготовке к покупке жилья: пошаговые инструкции, проверка документов, этапы сделки.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: kzavtra
*/

/* =========================================================
   1. Переменные
   ========================================================= */

:root {
    --bg: #F4F6F9;
    --bg-alt: #E8EDF2;
    --bg-alt-2: #DDE4EB;
    --head-bg: #1E293B;
    --foot-bg: #0F172A;
    --panel: #FFFFFF;
    --ink: #1E293B;
    --accent: #1A56DB;
    --accent-dark: #12409F;
    --silver: #E2E8F0;
    --muted: #64748B;
    --font-title: "Archivo Narrow", "Arial Narrow", "Liberation Sans Narrow", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 6px;
}

/* =========================================================
   2. База
   ========================================================= */

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

html {
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(to right, rgba(226, 232, 240, .9) 0 .5px, transparent .5px 40px),
        repeating-linear-gradient(to bottom, rgba(226, 232, 240, .9) 0 .5px, transparent .5px 40px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    position: relative;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: .015em;
    color: var(--ink);
}

body::after {
    content: "";
    position: fixed;
    right: -90px;
    bottom: -110px;
    width: 540px;
    height: 540px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cpath d='M60 480 L60 200 L200 118 L360 150 L470 92 L542 244 L498 424 L330 545 Z' fill='%231A56DB'/%3E%3Cpath d='M150 430 L150 250 L300 200 L420 250 L420 400 Z' fill='%230F172A'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .03;
    pointer-events: none;
    z-index: -1;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    color: var(--ink);
    line-height: 1.18;
    letter-spacing: .005em;
    margin: 0 0 .7em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover,
a:focus {
    color: var(--accent-dark);
    text-decoration: underline dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    border: 1px solid var(--head-bg);
}

th, td {
    border: 1px solid var(--head-bg);
    padding: .65rem .8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-title);
    font-weight: 700;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--silver);
    border-left: 6px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
}

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

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

pre {
    background: var(--head-bg);
    color: #E2E8F0;
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
    overflow-x: auto;
}

/* =========================================================
   3. Контейнер и раскладки
   ========================================================= */

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

.front-section > .shell {
    width: min(85%, 1120px);
}

.site-main {
    display: block;
    padding-bottom: 4rem;
}

.page-shell {
    padding-top: 2.2rem;
}

.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);
    gap: 6%;
    align-items: start;
}

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

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

.btn {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 1.02rem;
    letter-spacing: .04em;
    padding: .78rem 1.6rem;
    border-radius: 4px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease, transform .12s ease, border-color .18s ease;
    text-decoration: none;
}

.btn:hover,
.btn:focus {
    text-decoration: none;
    transform: translateY(1px);
}

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

.btn-filled:hover,
.btn-filled:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
}

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

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

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

.site-head {
    background: var(--head-bg);
    color: #F4F6F9;
    padding-bottom: 34px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 26px), 0 100%);
}

.head-tape {
    height: 6px;
    background: var(--accent);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    flex: 1 1 380px;
}

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

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

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

.brand-name {
    display: block;
    font-family: var(--font-title);
    font-size: 1.16rem;
    line-height: 1.25;
    color: #FFFFFF;
    letter-spacing: .02em;
}

.brand-tagline {
    display: block;
    font-size: .82rem;
    line-height: 1.45;
    color: #94A3B8;
    margin-top: .25rem;
}

.site-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.nav-toggle {
    display: none;
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: .05em;
    color: #FFFFFF;
    background: transparent;
    border: 2px solid #475569;
    border-radius: 4px;
    padding: .5rem 1rem;
    cursor: pointer;
    align-items: center;
    gap: .55rem;
}

.nav-toggle-bar {
    display: inline-block;
    width: 18px;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 5px 0 var(--accent), 0 -5px 0 var(--accent);
}

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

.nav-list a {
    font-family: var(--font-title);
    font-size: 1.02rem;
    letter-spacing: .03em;
    color: #E2E8F0;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a:focus,
.nav-list .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
    text-decoration: none;
}

/* =========================================================
   6. Хлебные крошки и заголовки страниц
   ========================================================= */

.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.crumbs a {
    color: var(--muted);
}

.crumbs a:hover {
    color: var(--accent);
}

.crumbs-sep {
    color: #94A3B8;
    margin: 0 .3rem;
}

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

.page-title,
.entry-title {
    font-size: 2.6rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: .5rem;
}

.page-desc {
    color: var(--muted);
}

.section-title {
    font-size: 2.05rem;
    border-left: 4px solid var(--accent);
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.empty-note {
    color: var(--muted);
}

/* =========================================================
   7. Секции главной
   ========================================================= */

.front-section {
    padding: 5.5rem 0;
}

.front-section--alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(to right, rgba(255, 255, 255, .7) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(to bottom, rgba(255, 255, 255, .7) 0 1px, transparent 1px 40px),
        linear-gradient(160deg, var(--bg-alt) 0%, var(--bg-alt-2) 100%);
    border-top: 1px solid var(--silver);
    border-bottom: 1px solid var(--silver);
}

/* Блок 1 — hero */

.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(420px, 46vw, 620px);
    padding: 4rem 0 3.4rem;
    overflow: hidden;
    background: var(--head-bg);
}

.hero-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: blur(2px) saturate(1.15);
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .55) 0%, rgba(26, 86, 219, .55) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(85%, 1120px);
}

.hero-plate {
    background: #0B1220;
    color: #FFFFFF;
    padding: 2.6rem 3.2rem;
    max-width: 780px;
    clip-path: polygon(30px 0, 100% 0, calc(100% - 30px) 100%, 0 100%);
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.5rem;
    margin-bottom: .45em;
}

.hero-sub {
    color: #CBD5E1;
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

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

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

.fact {
    min-width: 0;
}

.fact-num {
    display: block;
    font-family: var(--font-title);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -.02em;
}

.fact-rule {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--head-bg);
    opacity: .35;
    margin: .9rem 0 .8rem;
}

.fact-label {
    display: block;
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

/* Блок «последние записи» */

.latest-more {
    margin-top: 2.4rem;
    margin-bottom: 0;
}

/* Блок 3 — карточки-сервисы */

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

.svc {
    min-width: 0;
    background: transparent;
    border: 2px solid var(--head-bg);
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 rgba(30, 41, 59, .08);
    padding: 1.9rem 1.7rem;
    color: var(--ink);
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .18s ease, border-color .2s ease;
}

.svc:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 8px 0 rgba(26, 86, 219, .15);
    transform: translateY(-3px);
}

.svc-icon {
    display: inline-flex;
    color: var(--accent);
    margin-bottom: 1rem;
    transition: color .2s ease;
}

.svc:hover .svc-icon {
    color: #FFFFFF;
}

.svc-title {
    font-size: 1.32rem;
    margin-bottom: .55em;
    color: inherit;
}

.svc-text {
    margin: 0;
    font-size: .97rem;
    color: inherit;
}

/* Блок 4 — FAQ */

.faq-list {
    border-top: 1px solid var(--silver);
}

.faq-item {
    border-bottom: 1px solid var(--silver);
    position: relative;
}

.faq-q {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-title);
    font-size: 1.28rem;
    padding: 1.35rem .4rem;
    color: var(--ink);
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-num {
    font-size: 1.1rem;
    color: var(--accent);
    letter-spacing: .08em;
    flex: 0 0 auto;
}

.faq-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width .35s ease;
}

.faq-item[open]::after {
    width: 100%;
}

.faq-a {
    padding: 0 .4rem 1.5rem 3.1rem;
    color: #334155;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border: 1px solid transparent;
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 rgba(30, 41, 59, .08);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .18s ease, border-color .2s ease;
}

.card:hover {
    border-color: var(--silver);
    box-shadow: 0 8px 0 rgba(26, 86, 219, .15);
    transform: translateY(-3px);
}

.card-thumb {
    position: relative;
    overflow: hidden;
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, .18) 0%, rgba(15, 23, 42, 0) 45%, rgba(15, 23, 42, .22) 100%);
    pointer-events: none;
}

.card-thumb--blank {
    aspect-ratio: 16 / 9;
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(26, 86, 219, .12) 0 2px, transparent 2px 14px);
}

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

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

.card-title {
    font-size: 1.3rem;
    margin-bottom: .6rem;
}

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

.card-title a:hover {
    color: var(--accent);
    text-decoration: none;
}

.card-excerpt {
    color: #475569;
    font-size: .96rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-title);
    font-size: .98rem;
    letter-spacing: .04em;
    color: var(--accent);
    border-bottom: 2px solid var(--silver);
    padding-bottom: 2px;
}

.card-more:hover {
    border-bottom-color: var(--accent);
    text-decoration: none;
}

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

.entry-head {
    margin-bottom: 1.4rem;
}

.entry-meta {
    color: var(--muted);
    font-size: .88rem;
    letter-spacing: .05em;
    padding-left: 1.05rem;
}

.entry-cover {
    margin-bottom: 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 4px 4px 0 rgba(30, 41, 59, .08);
}

.entry-cover img {
    width: 100%;
    display: block;
}

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

.entry-content h2 {
    font-size: 1.8rem;
    margin-top: 1.9rem;
    border-left: 4px solid var(--accent);
    padding-left: .9rem;
}

.entry-content h3 {
    margin-top: 1.6rem;
}

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

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

.entry-content ul li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: .5rem;
}

.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 11px;
    height: 11px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 100% 62%, 62% 100%, 0 100%);
}

.entry-content ol {
    list-style: none;
    counter-reset: kz-step;
}

.entry-content ol li {
    position: relative;
    padding-left: 2.1rem;
    margin-bottom: .5rem;
    counter-increment: kz-step;
}

.entry-content ol li::before {
    content: counter(kz-step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-title);
    color: var(--accent);
    letter-spacing: .04em;
}

.entry-content img {
    border-radius: var(--radius);
}

.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--silver);
    font-size: .92rem;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.4rem 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--silver);
    font-family: var(--font-title);
}

.post-nav div {
    min-width: 0;
    flex: 1 1 45%;
}

.post-nav-next {
    text-align: right;
}

.page-links {
    margin: 1.4rem 0;
    font-family: var(--font-title);
}

.notfound-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

/* =========================================================
   10. Сайдбар и виджеты
   ========================================================= */

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--panel);
    color: var(--ink);
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 rgba(30, 41, 59, .1);
    padding: 1.5rem 1.5rem 1.6rem;
    margin-bottom: 1.8rem;
}

.sidebar .widget-title {
    font-size: 1.22rem;
    color: var(--ink);
    border-left: 4px solid var(--accent);
    padding-left: .8rem;
    margin-bottom: 1rem;
}

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

.sidebar .widget li {
    padding: .55rem 0;
    border-bottom: 1px solid var(--silver);
}

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

.sidebar .widget a {
    color: var(--ink);
    font-size: .97rem;
}

.sidebar .widget a:hover {
    color: var(--accent);
}

.sidebar .widget .post-date {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    letter-spacing: .04em;
}

.sidebar .widget p {
    color: #334155;
    font-size: .96rem;
}

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

.site-foot {
    background: var(--foot-bg);
    color: #CBD5E1;
    padding-top: 4.4rem;
    padding-bottom: 2rem;
    clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%);
}

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

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

.site-foot .widget {
    margin-bottom: 1.6rem;
    color: #CBD5E1;
}

.site-foot .widget-title {
    font-size: 1.15rem;
    color: #FFFFFF;
    border-left: 4px solid var(--accent);
    padding-left: .8rem;
    margin-bottom: .9rem;
}

.site-foot .widget p {
    color: #CBD5E1;
    font-size: .94rem;
}

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

.site-foot .widget li {
    padding: .38rem 0;
    border-bottom: 1px solid rgba(226, 232, 240, .12);
}

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

.site-foot .widget a {
    color: #E2E8F0;
    font-size: .95rem;
}

.site-foot .widget a:hover,
.site-foot .widget a:focus {
    color: #93B4F5;
}

.site-foot .widget .post-date {
    display: block;
    color: #94A3B8;
    font-size: .82rem;
}

.foot-bottom {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(226, 232, 240, .14);
}

.copyright {
    margin: 0;
    color: #94A3B8;
    font-size: .88rem;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    font-family: var(--font-title);
    font-size: 1rem;
    letter-spacing: .03em;
    padding: .55rem .9rem;
    border: 2px solid var(--silver);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

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

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

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

.search-form {
    margin: 1.4rem 0;
}

.search-label {
    display: block;
    font-family: var(--font-title);
    font-size: .95rem;
    letter-spacing: .04em;
    margin-bottom: .5rem;
    color: var(--muted);
}

.search-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.search-field {
    flex: 1 1 220px;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .7rem .9rem;
    border: 2px solid var(--silver);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
}

.search-field:focus {
    outline: none;
    border-color: var(--accent);
}

.comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--silver);
}

.comments-title,
.comment-reply-title {
    font-size: 1.6rem;
    border-left: 4px solid var(--accent);
    padding-left: .9rem;
}

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

.comment-list .children {
    padding-left: 1.6rem;
}

.comment-list li.comment,
.comment-list li.pingback {
    background: var(--panel);
    border: 1px solid var(--silver);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
}

.comment-meta {
    font-size: .85rem;
    color: var(--muted);
    margin-bottom: .6rem;
}

.comment-author img {
    display: inline-block;
    border-radius: 4px;
    margin-right: .6rem;
    vertical-align: middle;
}

.comment-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1.4rem 0;
    font-family: var(--font-title);
}

.comment-form label {
    display: block;
    font-family: var(--font-title);
    font-size: .95rem;
    margin-bottom: .35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: .7rem .9rem;
    border: 2px solid var(--silver);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-notes,
.comment-form-cookies-consent label {
    font-size: .88rem;
    color: var(--muted);
}

.comment-form .submit {
    background: var(--accent);
    color: #FFFFFF;
    border: 2px solid var(--accent);
}

/* =========================================================
   14. 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: space-between;
    gap: 1.2rem;
    background: var(--head-bg);
    color: #E2E8F0;
    border-top: 4px solid var(--accent);
    padding: 1.1rem 1.6rem;
}

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: .92rem;
    line-height: 1.55;
}

.cookie-accept {
    flex: 0 0 auto;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }

    .layout-with-sidebar {
        display: block;
    }

    .layout-single {
        width: 100%;
    }

    .sidebar {
        margin-top: 2.6rem;
    }

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

    .site-nav {
        flex: 1 1 100%;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        gap: .2rem;
        margin-top: 1rem;
        border-top: 1px solid rgba(226, 232, 240, .16);
        padding-top: .8rem;
    }

    .nav-list.is-open {
        display: flex;
    }

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

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

    .hero-inner,
    .front-section > .shell {
        width: 92%;
    }

    .front-section {
        padding: 3.6rem 0;
    }
}

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

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; }

    .page-title,
    .entry-title {
        font-size: 1.9rem;
    }

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

    .hero {
        min-height: 380px;
        padding: 2.6rem 0 2.2rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-plate {
        padding: 1.8rem 1.5rem;
        clip-path: none;
    }

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

    .fact-num {
        font-size: 3.2rem;
    }

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

    .svc {
        padding: 1.5rem 1.3rem;
    }

    .foot-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.6rem;
    }

    .faq-q {
        font-size: 1.1rem;
        gap: .7rem;
        padding: 1.1rem .2rem;
    }

    .faq-a {
        padding: 0 .2rem 1.2rem 2.4rem;
    }

    .card-body {
        padding: 1.1rem 1.2rem 1.4rem;
    }

    .sidebar .widget {
        padding: 1.3rem 1.3rem 1.4rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
    }

    blockquote {
        padding: 1.1rem 1.2rem;
    }

    .front-section {
        padding: 2.8rem 0;
    }

    .site-head {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 0 100%);
        padding-bottom: 24px;
    }

    .site-foot {
        clip-path: polygon(0 16px, 100% 0, 100% 100%, 0 100%);
        padding-top: 3.2rem;
    }
}
