/*
Theme Name: dds_cengturkey.com
Theme URI: https://cengturkey.com/
Author: Андрей Волков
Description: Тема для образовательной платформы о релокации: программы ВНЖ и ПМЖ, инвестиционная иммиграция, зарубежная недвижимость. Холодный стальной неоморфизм.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: cengnav
*/

:root {
    --bg: #eef1f5;
    --bg-alt: #e2e7ee;
    --bg-head: #dce3ec;
    --bg-foot: #1e2a3a;
    --bg-side: #e8edf3;
    --ink: #1e2a3a;
    --accent: #00b4d8;
    --accent-dark: #0098b8;
    --amber: #ff9e00;
    --muted: #6b7a8f;
    --line: #c8d0dc;
    --shadow-dark: #c8d0dc;
    --shadow-light: #ffffff;
    --neo: -4px -4px 10px var(--shadow-light), 4px 4px 12px var(--shadow-dark);
    --neo-deep: -6px -6px 14px var(--shadow-light), 7px 7px 20px var(--shadow-dark);
    --neo-in: inset 3px 3px 7px var(--shadow-dark), inset -3px -3px 7px var(--shadow-light);
    --font-head: "Space Grotesk", "Unbounded", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* скрытие через атрибут hidden — до основных стилей блоков */
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }
.tab-panel[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.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--bg-head) 0, var(--bg-head) 1px, transparent 1px, transparent 24px);
}

body::after {
    content: "";
    position: fixed;
    right: -40px;
    bottom: -60px;
    width: 420px;
    height: 420px;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' fill='none' stroke='%231e2a3a' stroke-width='1.2'%3E%3Ccircle cx='100' cy='100' r='88'/%3E%3Cellipse cx='100' cy='100' rx='40' ry='88'/%3E%3Cellipse cx='100' cy='100' rx='68' ry='88'/%3E%3Cline x1='12' y1='100' x2='188' y2='100'/%3E%3Cpath d='M22 62h156M22 138h156M36 38h128M36 162h128'/%3E%3Cline x1='100' y1='12' x2='100' y2='188'/%3E%3C/svg%3E");
}

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

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--amber), var(--amber));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 2px;
    transition: background-size .25s ease, color .2s ease;
}

a:hover, a:focus-visible { background-size: 100% 2px; }

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: .4em; }

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-radius: 0 16px 16px 16px;
    box-shadow: var(--neo);
    font-size: 1.1rem;
}

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

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

pre {
    padding: 1rem 1.2rem;
    background: var(--bg-alt);
    border-radius: 12px;
    overflow-x: auto;
}

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

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

th { background: var(--bg-head); font-family: var(--font-head); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

/* -------------------- Контейнеры и раскладки -------------------- */

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

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

.site-main { padding: 2.6rem 0 4rem; }

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

.site-header {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 18px rgba(30, 42, 58, .06);
}

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

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

.brand a { background-image: none; }

.brand-logo, .brand-mark {
    width: 54px;
    height: 54px;
    display: block;
    flex: 0 0 auto;
    border-radius: 0 12px 12px 12px;
    background: var(--bg);
    box-shadow: var(--neo);
    padding: 6px;
}

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

.brand-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.02em;
    display: block;
    color: var(--ink);
    /* длинное название сайта подрезаем визуально, не искажая разметку */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: .25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-size: .92rem;
    color: var(--ink);
    background: var(--bg);
    border: 0;
    border-radius: 0 12px 12px 12px;
    box-shadow: var(--neo);
    padding: .6rem 1rem;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--accent);
    display: block;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

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

.site-nav li { margin: 0; }

.site-nav a {
    display: block;
    font-family: var(--font-head);
    font-size: .96rem;
    color: var(--ink);
    padding: .55rem .95rem;
    border-radius: 0 12px 12px 12px;
    background-image: none;
    transition: box-shadow .2s ease, color .2s ease, border-radius .2s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: var(--accent-dark);
    border-radius: 12px;
    box-shadow: var(--neo-in);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: .72rem 1.5rem;
    border: 0;
    border-radius: 0 12px 12px 12px;
    background-color: var(--accent);
    background-image: none;
    color: #fff;
    cursor: pointer;
    transition: box-shadow .2s ease, background-color .2s ease, border-radius .2s ease, color .2s ease;
}

.btn:hover, .btn:focus-visible {
    background-color: var(--accent-dark);
    border-radius: 12px;
    color: #fff;
    box-shadow: inset 3px 3px 8px rgba(11, 60, 74, .45), inset -2px -2px 6px rgba(255, 255, 255, .18);
}

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

.btn-ghost:hover, .btn-ghost:focus-visible {
    background-color: transparent;
    color: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: var(--neo-in);
}

.btn-light {
    background-color: transparent;
    border: 1.5px solid rgba(238, 241, 245, .85);
    color: #eef1f5;
}

.btn-light:hover, .btn-light:focus-visible {
    background-color: rgba(238, 241, 245, .1);
    color: #fff;
    border-color: #fff;
    box-shadow: inset 3px 3px 8px rgba(0, 0, 0, .35);
}

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

.breadcrumbs {
    font-size: .88rem;
    color: var(--muted);
    padding: 1.2rem 0 0;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--line); }

/* -------------------- Заголовки секций -------------------- */

.section-title {
    position: relative;
    display: inline-block;
    padding-left: 1.1rem;
    margin-bottom: 1.6rem;
    text-shadow: 1px 1px 0 var(--shadow-light), -1px -1px 1px rgba(30, 42, 58, .18);
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.section-title.on-dark {
    color: #eef1f5;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .35);
}

.entry-content h2 {
    position: relative;
    padding-left: 1.35rem;
    margin-top: 2rem;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .18em;
    height: 32px;
    border-left: 2px dashed var(--accent);
}

.entry-content h2::after {
    content: "";
    position: absolute;
    left: -1px;
    top: calc(.18em + 30px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

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

.route-dots {
    height: 2px;
    margin: 2.6rem 0;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1.2px);
    background-size: 8px 2px;
    background-repeat: repeat-x;
    opacity: .6;
}

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

.front-section { padding: 80px 0; }
.front-section.tint { background: var(--bg-alt); }

.front-wrap {
    width: 85%;
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.front-section + .front-section { border-top: 1px solid transparent; }

.rule {
    width: 80%;
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 0 auto;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 64ch; }

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-foot);
    background-size: cover;
    background-position: center;
    color: #eef1f5;
    padding: 96px 0;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(30, 42, 58, .72);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 24px);
}

.hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-inner { position: relative; }

.hero h1 {
    color: #fff;
    font-size: 3.2rem;
    font-weight: 600;
    max-width: 18ch;
    text-shadow: 0 6px 22px rgba(0, 0, 0, .45);
    margin-bottom: .5em;
}

.hero p {
    color: #d4dde8;
    font-size: 1.12rem;
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

/* Шаги */

.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
    position: relative;
}

.steps::before {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    top: 46px;
    height: 2px;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1.2px);
    background-size: 8px 2px;
    opacity: .55;
}

.step {
    position: relative;
    background: var(--bg-alt);
    border-radius: 0 16px 16px 16px;
    box-shadow: var(--neo);
    padding: 1.8rem 1.5rem;
    min-width: 0;
}

.step-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    line-height: 1;
    font-weight: 600;
    color: transparent;
    -webkit-text-stroke: 1px var(--accent);
    display: block;
    margin-bottom: .8rem;
    background: var(--bg-alt);
    position: relative;
    z-index: 1;
}

.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--muted); margin: 0; }

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

.stats-section {
    background: var(--bg-foot);
    color: #eef1f5;
    padding: 72px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 24px);
    pointer-events: none;
}

.stats-inner { position: relative; }

.stamp {
    position: absolute;
    top: -18px;
    right: 0;
    width: 132px;
    height: 132px;
    opacity: .1;
    pointer-events: none;
}

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

.stat {
    padding: 1rem 1.4rem;
    min-width: 0;
    border-left: 1px solid rgba(0, 180, 216, .3);
}

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

.stat-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--accent);
    line-height: 1.1;
    display: block;
}

.stat-label {
    display: block;
    font-size: .92rem;
    color: #90a2b8;
    margin-top: .35rem;
}

/* Рубрикатор */

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

.topic {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
    min-width: 0;
    background: var(--bg);
    border-radius: 12px;
    box-shadow: var(--neo);
    background-image: none;
    color: var(--ink);
    transition: transform .2s ease, box-shadow .2s ease;
}

.topic:hover {
    transform: translateY(-4px);
    color: var(--ink);
    box-shadow: var(--neo-deep), 0 0 0 1px rgba(0, 180, 216, .5), 0 0 18px rgba(0, 180, 216, .25);
}

.topic svg { flex: 0 0 auto; }

.topic-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    display: block;
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--bg);
    border-radius: 16px;
    box-shadow: var(--neo), inset 0 1px 0 rgba(255, 255, 255, .6);
    transition: box-shadow .25s ease, transform .25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--neo-deep), 0 0 0 1px rgba(0, 180, 216, .45), 0 0 20px rgba(0, 180, 216, .2);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .1) 0, rgba(255, 255, 255, .1) 1px, transparent 1px, transparent 10px);
}

.card-thumb-wrap a { display: block; background-image: none; }

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

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

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

.card-title {
    font-size: 1.16rem;
    margin: .5rem 0 .4rem;
}

.card-title a { color: var(--ink); background-image: linear-gradient(var(--accent), var(--accent)); }
.card-title a:hover { color: var(--accent-dark); }

.card-excerpt { font-size: .95rem; color: var(--muted); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card .btn { align-self: flex-start; margin-top: auto; }

.post-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: .7rem;
}

.meta-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    display: inline-block;
}

.chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.chip {
    font-size: .76rem;
    font-family: var(--font-head);
    padding: .16rem .5rem;
    border-radius: 4px;
    background-image: none;
    line-height: 1.5;
}

.chip.tone-0 { color: #0093b0; background-color: rgba(0, 180, 216, .15); }
.chip.tone-1 { color: #4c5f78; background-color: rgba(107, 122, 143, .15); }
.chip.tone-2 { color: #4a55a8; background-color: rgba(74, 85, 168, .15); }
.chip.tone-3 { color: #7a5aa8; background-color: rgba(122, 90, 168, .15); }

.chip:hover { color: var(--ink); }

/* -------------------- Записи и страницы -------------------- */

.entry-header { margin-bottom: 1.4rem; }
.entry-header h1 { font-size: 2.6rem; margin-bottom: .5rem; }

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--neo);
}

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

.entry-content img { border-radius: 12px; }

.entry-content ul li::marker { color: var(--accent); }

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

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

/* -------------------- Сайдбар -------------------- */

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border-radius: 0 16px 16px 16px;
    box-shadow: var(--neo-in);
    padding: 1.6rem 1.5rem;
}

.sidebar .widget + .widget { margin-top: 1.8rem; }

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    position: relative;
    padding-left: 1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

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

.sidebar li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
}

.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent-dark); }
.sidebar .post-date, .sidebar .rss-date { color: var(--muted); font-size: .85rem; }
.sidebar p { color: var(--ink); }

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

.site-footer {
    background: var(--bg-foot);
    color: #cfd9e5;
    margin-top: 3rem;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0, rgba(255, 255, 255, .03) 1px, transparent 1px, transparent 24px);
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
    padding: 3.2rem 0 2.4rem;
}

.footer-cols .widget { min-width: 0; }

.site-footer .widget-title {
    color: #eef1f5;
    font-size: 1.05rem;
    position: relative;
    padding-left: 1rem;
}

.site-footer .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
}

.site-footer p, .site-footer li { color: #b9c6d6; font-size: .93rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .35rem 0; }
.site-footer a { color: #d8e3ef; }
.site-footer a:hover { color: #fff; }

.footer-contacts { font-size: .93rem; }

.footer-bottom {
    border-top: 1px solid rgba(238, 241, 245, .12);
    padding: 1.2rem 0;
    font-size: .88rem;
    color: #90a2b8;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    justify-content: space-between;
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .85rem;
    font-family: var(--font-head);
    font-size: .95rem;
    color: var(--ink);
    background: var(--bg);
    border-radius: 0 12px 12px 12px;
    box-shadow: var(--neo);
    background-image: none;
    transition: box-shadow .2s ease, color .2s ease, border-radius .2s ease;
}

.pager .page-numbers:hover {
    color: var(--accent-dark);
    border-radius: 12px;
    box-shadow: var(--neo-in);
}

.pager .page-numbers.current {
    color: #fff;
    background: var(--accent);
    box-shadow: inset 2px 2px 6px rgba(11, 60, 74, .4);
}

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

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

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

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

.search-form label { flex: 1 1 200px; min-width: 0; }

.search-form input[type="search"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    padding: .7rem 1rem;
    border: 0;
    border-radius: 0 12px 12px 12px;
    background: var(--bg);
    box-shadow: var(--neo-in);
}

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

.comments-area { margin-top: 3rem; }

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

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

.comment-inner {
    background: var(--bg-alt);
    border-radius: 0 16px 16px 16px;
    box-shadow: var(--neo);
    padding: 1.2rem 1.4rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: baseline;
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

.comment-author { font-family: var(--font-head); color: var(--ink); font-weight: 600; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: .6rem; font-size: .9rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--ink);
    padding: .7rem 1rem;
    border: 0;
    border-radius: 0 12px 12px 12px;
    background: var(--bg);
    box-shadow: var(--neo-in);
}

.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: .3rem; }

.comment-form .submit {
    display: inline-flex;
    font-family: var(--font-head);
    font-size: .95rem;
    font-weight: 600;
    padding: .72rem 1.5rem;
    border: 0;
    border-radius: 0 12px 12px 12px;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.comment-form .submit:hover { background: var(--accent-dark); border-radius: 12px; }

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

.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: 1rem;
    padding: 1rem 1.4rem;
    background: var(--bg-foot);
    color: #d4dde8;
    font-size: .9rem;
    box-shadow: 0 -8px 24px rgba(30, 42, 58, .25);
}

.cookie-banner p { margin: 0; max-width: 78ch; }
.cookie-banner a { color: var(--accent); }

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

.error-box {
    background: var(--bg-alt);
    border-radius: 0 16px 16px 16px;
    box-shadow: var(--neo);
    padding: 2.4rem 2.2rem;
}

.error-code {
    font-family: var(--font-head);
    font-size: 4rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .4rem;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero h1 { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .front-wrap { width: 92%; }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps::before { display: none; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.2rem; }
    .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

    .site-nav {
        flex: 1 1 100%;
        order: 3;
        display: none;
    }

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

    .site-nav ul { flex-direction: column; gap: .2rem; }
    .site-nav a { padding: .6rem .4rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.6rem; }
    .hero { padding: 64px 0; }
    .hero h1 { font-size: 1.95rem; }
    .front-section { padding: 52px 0; }
    .stats-section { padding: 48px 0; }
    .steps, .stats, .topics, .footer-cols { grid-template-columns: minmax(0, 1fr); }
    .stat { border-left: 0; padding-left: 0; }
    .stamp { width: 96px; height: 96px; top: -8px; }
    .sidebar { padding: 1.3rem 1.2rem; }
    .cookie-banner { padding: 1rem 1.1rem; }
    .error-box { padding: 1.8rem 1.4rem; }
    .step { padding: 1.5rem 1.3rem; }
    .topic { padding: 1.2rem 1.2rem; }
    .comment-inner { padding: 1.1rem 1.1rem; }
    blockquote { padding: 1.2rem 1.2rem; }
    .entry-header h1 { font-size: 1.85rem; }
}
