/*
Theme Name: dds_cheelzapk.com
Theme URI: https://cheelzapk.com/
Author: Дмитрий Савельев
Description: Тема для информационного сайта об обзорах мобильных приложений для аренды недвижимости. Японский минимализм, холодная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cheelz
*/

/* ------------------------------------------------------------------
   Переменные
------------------------------------------------------------------ */

:root {
    --bg: #f7f9fc;
    --bg-alt: #eef2f7;
    --bg-alt2: #e4ebf3;
    --dark: #1b2a3a;
    --dark-2: #2a3f5a;
    --side-bg: #f0f4f9;
    --ink: #1e2d3d;
    --accent: #3a7bd5;
    --accent-2: #6ec6e6;
    --muted: #7a8fa3;
    --line: #d7e0ea;
    --font-head: "Jost", "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
}

/* ------------------------------------------------------------------
   Служебные правила скрытия (до основных блоков)
------------------------------------------------------------------ */

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

/* ------------------------------------------------------------------
   База
------------------------------------------------------------------ */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(to bottom, rgba(30, 45, 61, 0.045) 0, rgba(30, 45, 61, 0.045) 1px, transparent 1px, transparent 30px);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(58, 123, 213, 0.45);
    transition: color 0.25s ease, border-color 0.25s ease;
}

a:hover {
    color: var(--accent-2);
    border-bottom-width: 2px;
    border-bottom-color: var(--accent-2);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 400;
    letter-spacing: 0.04em;
    color: var(--ink);
    line-height: 1.25;
    margin: 0 0 0.7em;
}

h1 { font-size: 3.2rem; font-weight: 300; letter-spacing: 0.02em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 2rem 0;
    padding: 0.4rem 1.6rem;
    border-left: 1px solid var(--accent);
    font-style: italic;
    color: var(--muted);
}

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

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

th { background: var(--bg-alt); font-family: var(--font-head); font-weight: 400; letter-spacing: 0.05em; }

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

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

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

/* Декоративная полоса сверху и контур смартфона */

.edge-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    z-index: 60;
}

.deco-phone {
    position: fixed;
    right: 2vw;
    bottom: 3vh;
    width: 260px;
    height: 420px;
    pointer-events: none;
    opacity: 0.05;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: bottom right;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 320'%3E%3Crect x='6' y='6' width='168' height='308' rx='24' fill='none' stroke='%231e2d3d' stroke-width='3'/%3E%3Cline x1='72' y1='24' x2='108' y2='24' stroke='%231e2d3d' stroke-width='3'/%3E%3Crect x='26' y='48' width='128' height='224' fill='none' stroke='%231e2d3d' stroke-width='2'/%3E%3Cline x1='42' y1='80' x2='138' y2='80' stroke='%231e2d3d' stroke-width='2'/%3E%3Cline x1='42' y1='104' x2='116' y2='104' stroke='%231e2d3d' stroke-width='2'/%3E%3Cline x1='42' y1='128' x2='138' y2='128' stroke='%231e2d3d' stroke-width='2'/%3E%3Ccircle cx='90' cy='292' r='10' fill='none' stroke='%231e2d3d' stroke-width='2'/%3E%3C/svg%3E");
}

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

.btn {
    display: inline-block;
    padding: 0.72rem 1.7rem;
    border-radius: 2px;
    border: 1px solid var(--accent);
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover { opacity: 0.82; transform: translateX(2px); border-bottom-width: 1px; }

.btn-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-solid:hover { color: #fff; border-color: var(--accent); }

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

.btn-ghost:hover { color: var(--accent); border-color: var(--accent-2); }

.btn-ice {
    background: transparent;
    color: var(--accent-2);
    border-color: var(--accent-2);
}

.btn-ice:hover { color: var(--accent-2); border-color: var(--accent-2); }

/* ------------------------------------------------------------------
   Шапка
------------------------------------------------------------------ */

.site-top {
    position: relative;
    background: var(--dark);
    color: #fff;
    padding: 1.6rem 0 1.4rem;
    z-index: 5;
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

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

.brand-mark { border: 0; flex: 0 0 auto; line-height: 0; }
.brand-mark:hover { border: 0; }
.brand-logo { max-height: 56px; width: auto; display: block; }

.brand-text { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }

.brand-name {
    font-family: var(--font-head);
    font-size: 0.98rem;
    letter-spacing: 0.06em;
    color: #fff;
    border: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-name:hover { color: var(--accent-2); border: 0; }

.brand-desc {
    font-size: 0.8rem;
    line-height: 1.5;
    color: #9db4c8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.82rem;
    cursor: pointer;
}

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

.primary-nav { flex: 0 1 auto; }

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

.nav-list a {
    color: #e6eef6;
    font-family: var(--font-head);
    font-size: 0.92rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.nav-list a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); border-bottom-width: 2px; }

.nav-list .current-menu-item > a { color: var(--accent-2); border-bottom-color: rgba(110, 198, 230, 0.5); }

.nav-list .sub-menu {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0 0 0 0.9rem;
    border-left: 1px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.site-main { position: relative; z-index: 1; display: block; }

.page-shell { padding: 2.4rem 0 3.4rem; }

.front-section { padding: 4.2rem 0; position: relative; }

.front-section + .front-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 6%;
    right: 6%;
    height: 1px;
    border-top: 1px dashed var(--line);
}

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

.sec-check { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 55%, var(--bg) 100%); }

.sec-stats { background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-alt2) 100%); }

.sec-head {
    position: relative;
    padding-left: 96px;
    margin-bottom: 2.6rem;
}

.sec-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2.2rem;
    width: 72px;
    height: 1px;
    background: var(--muted);
}

.sec-kicker {
    margin: 0 0 0.35rem;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
}

.sec-title { margin: 0; font-size: 2rem; }

.sec-title::before,
.entry-content h2::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 0.82em;
    margin-right: 0.55rem;
    background: var(--accent);
    vertical-align: -0.04em;
}

.page-head { margin-bottom: 2.2rem; }
.page-title { font-size: 2.6rem; font-weight: 300; }

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

/* ------------------------------------------------------------------
   Hero
------------------------------------------------------------------ */

.hero {
    background: linear-gradient(120deg, var(--dark) 0%, var(--dark-2) 100%);
    color: #fff;
    padding: 4.6rem 0 4.2rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    width: min(85%, 1180px);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.hero-text { flex: 1 1 auto; min-width: 0; }

.hero-kicker {
    margin: 0 0 0.9rem;
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.36em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.hero-title {
    margin: 0 0 1rem;
    color: #fff;
    font-size: 3.2rem;
    font-weight: 300;
    letter-spacing: 0.01em;
}

.hero-sub {
    margin: 0 0 2rem;
    max-width: 44rem;
    color: #b9dff0;
    font-size: 1.08rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0; }

.hero-actions .btn-solid { border-color: var(--accent); }
.hero-actions .btn-ghost { color: var(--accent-2); border-color: rgba(110, 198, 230, 0.6); }
.hero-actions .btn-ghost:hover { color: var(--accent-2); border-color: var(--accent-2); }

.hero-art { flex: 0 0 220px; line-height: 0; opacity: 0.85; }

/* ------------------------------------------------------------------
   Чек-лист
------------------------------------------------------------------ */

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

.check-item {
    display: flex;
    gap: 1.2rem;
    padding: 1.4rem 0;
    border-bottom: 1px dashed var(--line);
}

.check-item:last-child { border-bottom: 0; }

.check-mark {
    flex: 0 0 26px;
    height: 26px;
    margin-top: 0.35rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 13l5 5L20 6' fill='none' stroke='%233a7bd5' stroke-width='1.4'/%3E%3C/svg%3E");
}

.check-body { min-width: 0; }

.check-title { margin: 0 0 0.35rem; font-size: 1.16rem; letter-spacing: 0.05em; }

.check-body p { margin: 0; color: #46596b; }

/* ------------------------------------------------------------------
   Статистика
------------------------------------------------------------------ */

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

.stat-cell {
    min-width: 0;
    padding: 0 1.4rem;
    border-left: 1px dashed var(--line);
}

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

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.6rem;
    font-weight: 200;
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 0.7rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--muted);
}

/* ------------------------------------------------------------------
   CTA
------------------------------------------------------------------ */

.cta-plate {
    background: var(--dark);
    color: #fff;
    border-radius: 2px;
    padding: 2.8rem 2.6rem;
    display: flex;
    align-items: center;
    gap: 2.4rem;
    position: relative;
}

.cta-plate::before,
.cta-plate::after {
    content: "";
    position: absolute;
    top: 1.4rem;
    bottom: 1.4rem;
    width: 1px;
    background: rgba(110, 198, 230, 0.4);
}

.cta-plate::before { left: 1.1rem; }
.cta-plate::after { right: 1.1rem; }

.cta-text { flex: 1 1 auto; min-width: 0; }

.cta-kicker {
    margin: 0 0 0.6rem;
    font-family: var(--font-head);
    font-size: 0.72rem;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.cta-phrase {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: 0.02em;
    color: #fff;
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 1.4rem;
    transition: border-color 0.25s ease;
}

.card:hover { border-bottom: 2px solid var(--accent); }

.card-thumb {
    padding: 0 0 1.6rem;
    overflow: hidden;
}

.card-thumb a { display: block; border: 0; line-height: 0; overflow: hidden; }
.card-thumb a:hover { border: 0; }

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img { transform: scale(1.04); }

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

.card-meta {
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
}

.card-title { margin: 0 0 0.7rem; font-size: 1.24rem; letter-spacing: 0.03em; }
.card-title a { color: var(--ink); border-bottom-color: transparent; }
.card-title a:hover { color: var(--accent); border-bottom-color: var(--accent-2); }

.card-excerpt { color: #46596b; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin: auto 0 0; padding-top: 1.1rem; }
.card-more .btn { padding: 0.5rem 1.2rem; font-size: 0.8rem; }

.latest-more { margin: 2.6rem 0 0; }

/* ------------------------------------------------------------------
   Раскладки
------------------------------------------------------------------ */

.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; }

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    padding: 1.8rem 1.6rem;
    border-radius: 2px;
}

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

.crumbs {
    margin-bottom: 1.8rem;
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.crumbs a { color: var(--muted); border-bottom-color: rgba(122, 143, 163, 0.4); }
.crumbs a:hover { color: var(--accent); border-bottom-color: var(--accent-2); }
.crumbs .sep { margin: 0 0.4rem; color: var(--line); }

/* ------------------------------------------------------------------
   Запись
------------------------------------------------------------------ */

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

.entry-meta {
    margin: 0 0 0.6rem;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-title { font-size: 2.6rem; font-weight: 300; margin: 0; }

.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { min-width: 0; }
.entry-content h2 { margin-top: 2.2rem; }
.entry-content h3 { margin-top: 1.8rem; }
.entry-content img { display: block; height: auto; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.4rem; }

.entry-tags { margin-top: 2rem; font-size: 0.86rem; color: var(--muted); }

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
    margin: 2.6rem 0 0;
    padding: 1.4rem 0 0;
    border-top: 1px dashed var(--line);
    font-size: 0.92rem;
}

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

.page-links { margin-top: 1.4rem; font-size: 0.9rem; }

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

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

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--ink);
    background: #fff;
    transition: border-color 0.25s ease, color 0.25s ease;
}

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

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

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

.comments .nav-links { display: flex; gap: 1rem; margin-top: 1.4rem; font-size: 0.9rem; }

/* ------------------------------------------------------------------
   Виджеты
------------------------------------------------------------------ */

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

.widget-title {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

.widget li {
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.94rem;
}

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

/* Сайдбар: светлый фон — тёмный текст */
.sidebar .widget-title { color: var(--ink); }
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--ink); }
.sidebar .widget a { color: var(--ink); border-bottom-color: rgba(58, 123, 213, 0.35); }
.sidebar .widget a:hover { color: var(--accent); border-bottom-color: var(--accent-2); }
.sidebar .post-date,
.sidebar .rss-date { color: var(--muted); font-size: 0.8rem; }

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

.site-foot {
    position: relative;
    z-index: 2;
    margin-top: 4rem;
    background: var(--dark);
    color: #d5e3ef;
    padding: 3.2rem 0 1.6rem;
}

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

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

.site-foot .widget-title { color: #fff; }
.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #d5e3ef; }
.site-foot .widget li { border-bottom-color: rgba(255, 255, 255, 0.12); }
.site-foot .widget a { color: #e6eef6; border-bottom-color: rgba(110, 198, 230, 0.35); }
.site-foot .widget a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.site-foot .post-date,
.site-foot .rss-date { color: #9db4c8; font-size: 0.8rem; }

.foot-base {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
}

.copy { margin: 0; font-size: 0.84rem; letter-spacing: 0.08em; color: #9db4c8; }

/* ------------------------------------------------------------------
   Формы поиска и комментариев
------------------------------------------------------------------ */

.search-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.search-label { flex: 1 1 260px; min-width: 0; display: block; }

.search-label-text {
    display: block;
    margin-bottom: 0.4rem;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.search-input,
.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(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.96rem;
}

.search-input:focus,
.comment-form input:focus,
.comment-form textarea:focus { outline: 1px solid var(--accent-2); border-color: var(--accent-2); }

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

.comments-title { font-size: 1.5rem; }

.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--line); }

.comment-item { margin-bottom: 1.6rem; }

.comment-inner { padding: 1.2rem 1.4rem; background: var(--bg-alt); border-radius: 2px; }

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

.comment-author { font-family: var(--font-head); letter-spacing: 0.06em; }
.comment-date { font-size: 0.8rem; color: var(--muted); }
.comment-text p:last-child { margin-bottom: 0; }
.comment-reply { margin-top: 0.6rem; font-size: 0.86rem; }
.comment-wait { font-size: 0.86rem; color: var(--muted); }

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.comment-form p { margin-bottom: 1rem; }
.comment-form .form-submit { margin-bottom: 0; }
.comment-respond { margin-top: 2rem; }
.comment-reply-title { font-size: 1.3rem; }

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

.error-text { max-width: 44rem; color: #46596b; }
.error-actions { margin-top: 1.6rem; }

/* ------------------------------------------------------------------
   Cookie-баннер
------------------------------------------------------------------ */

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 80;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--dark);
    color: #d5e3ef;
    border-top: 1px solid rgba(110, 198, 230, 0.4);
}

.cookie-text { margin: 0; font-size: 0.88rem; max-width: 62rem; }

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

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .page-title, .entry-title { font-size: 2.1rem; }

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

    .primary-nav {
        flex: 1 1 100%;
        display: none;
    }

    .primary-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 1rem;
        border-top: 1px dashed rgba(255, 255, 255, 0.2);
    }

    .hero-inner { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .hero-art { flex: 0 0 auto; align-self: center; }

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

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .layout-single { width: 100%; }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1.2rem; }
    .stat-cell:nth-child(3) { border-left: 0; padding-left: 0; }

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

    .deco-phone { display: none; }

    .front-section .shell, .hero-inner { width: min(92%, 1180px); }
}

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

    h1 { font-size: 2rem; }
    .hero { padding: 3.2rem 0 3rem; }
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .page-title, .entry-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.6rem; }

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

    .sec-head { padding-left: 0; }
    .sec-head::before { position: static; display: block; width: 52px; margin-bottom: 0.8rem; }

    .card-grid, .card-grid-list { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-left: 0; padding-left: 0; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--line); }
    .stat-cell:last-child { border-bottom: 0; padding-bottom: 0; }
    .stat-num { font-size: 3rem; }

    .cta-plate { flex-direction: column; align-items: flex-start; gap: 1.6rem; padding: 2rem 1.6rem; }
    .cta-plate::before, .cta-plate::after { display: none; }
    .cta-phrase { font-size: 1.28rem; }

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

    .sidebar { padding: 1.4rem 1.2rem; }

    .comment-inner { padding: 1rem 1.1rem; }
    .comment-list .children { padding-left: 0.9rem; }

    .cookie-banner { padding: 1rem 1.1rem; }
    .cookie-text { font-size: 0.84rem; }

    .post-nav { flex-direction: column; gap: 0.8rem; }
    .post-nav-next { text-align: left; }
}
