/*
Theme Name: dds_the-oneworld.com
Author: Марина Литвинова
Description: Экспертный портал о новостройках России — база жилых комплексов, рейтинги застройщиков, руководства по покупке квартиры на этапе строительства.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: owbase
*/

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

:root {
    --bg: #F4F6F9;
    --bg-alt: #E8ECF2;
    --head-bg: #0B1D33;
    --foot-bg: #081524;
    --side-bg: #FFFFFF;
    --ink: #1B2A3A;
    --gold: #C9A227;
    --gold-dark: #B8911F;
    --steel: #2E6B9E;
    --muted: #6B7B8D;
    --line: #D9E0E8;
    --shade: rgba(11, 29, 51, 0.08);
    --shade-deep: rgba(11, 29, 51, 0.16);
    --f-head: "Montserrat", "Futura", "Segoe UI Semibold", "Trebuchet MS", Arial, sans-serif;
    --f-body: "Inter", "Open Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(27, 42, 58, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 42, 58, 0.045) 1px, transparent 1px);
    background-size: 28px 28px;
    background-attachment: fixed;
}

body::after {
    content: '';
    position: fixed;
    right: -30px;
    bottom: -20px;
    width: 380px;
    height: 470px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 250'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='3'%3E%3Crect x='20' y='90' width='60' height='150'/%3E%3Crect x='90' y='40' width='70' height='200'/%3E%3Crect x='165' y='130' width='25' height='110'/%3E%3Cpath d='M90 40 125 12 160 40'/%3E%3Cline x1='32' y1='110' x2='68' y2='110'/%3E%3Cline x1='32' y1='140' x2='68' y2='140'/%3E%3Cline x1='32' y1='170' x2='68' y2='170'/%3E%3Cline x1='32' y1='200' x2='68' y2='200'/%3E%3Cline x1='102' y1='70' x2='148' y2='70'/%3E%3Cline x1='102' y1='105' x2='148' y2='105'/%3E%3Cline x1='102' y1='140' x2='148' y2='140'/%3E%3Cline x1='102' y1='175' x2='148' y2='175'/%3E%3Cline x1='102' y1='210' x2='148' y2='210'/%3E%3C/g%3E%3C/svg%3E");
}

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

a {
    color: var(--steel);
    text-decoration: none;
}

p {
    margin: 0 0 1.1em;
}

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

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

h2 { font-size: 1.85rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 1.06rem;
}

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

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

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

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

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

pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: #0B1D33;
    color: #E8ECF2;
    border-radius: 8px;
}

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

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

.site-top,
.site-main,
.site-bottom {
    position: relative;
    z-index: 1;
}

.site-main {
    padding: 2.4rem 0 3.6rem;
}

.layout-single {
    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;
}

/* =========================================================
   3. Золотая полоса, шапка, меню
   ========================================================= */

.gold-rail {
    height: 4px;
    background: var(--gold);
    position: relative;
    z-index: 2;
}

.site-top {
    background: var(--head-bg);
    color: #EAF0F6;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}

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

.brand-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

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

.brand-mark {
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: #FFFFFF;
    max-width: 44ch;
}

.brand-note {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: #9FB2C5;
    max-width: 58ch;
}

.nav-switch {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(234, 240, 246, 0.35);
    border-radius: 6px;
    color: #EAF0F6;
    font-family: var(--f-head);
    font-size: 0.9rem;
    cursor: pointer;
}

.burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.burger i {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
}

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

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

.top-menu li {
    margin: 0;
}

.top-menu a {
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
    color: #EAF0F6;
    font-family: var(--f-head);
    font-size: 0.97rem;
    font-weight: 600;
}

.top-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.28s ease;
}

.top-menu a:hover::after,
.top-menu .current-menu-item > a::after {
    width: 100%;
}

/* =========================================================
   4. Кнопки, ссылки, чипы
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 6px;
    font-family: var(--f-head);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-gold {
    background: var(--gold);
    color: #14212E;
    box-shadow: 0 2px 6px var(--shade);
}

.btn-gold:hover,
.btn-gold:focus {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--shade-deep);
}

.btn-outline {
    background: transparent;
    color: var(--steel);
    border-color: var(--steel);
}

.btn-outline:hover,
.btn-outline:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--shade-deep);
    background: rgba(46, 107, 158, 0.08);
}

.entry-content a,
.wbox-text a,
.card-excerpt a {
    position: relative;
    color: var(--steel);
}

.entry-content a::after,
.card-excerpt a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.entry-content a:hover::after,
.card-excerpt a:hover::after {
    width: 100%;
}

.chip {
    display: inline-block;
    padding: 0.22rem 0.72rem;
    border-radius: 4px;
    font-family: var(--f-head);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.chip-gold {
    background: var(--gold);
    color: #14212E;
}

.chip-steel {
    background: var(--steel);
    color: #FFFFFF;
}

.chip-slate {
    background: #C3CEDA;
    color: #1B2A3A;
}

/* =========================================================
   5. Заголовки секций и разделители
   ========================================================= */

.sec-title,
.page-title {
    position: relative;
    padding-left: 1.05rem;
    margin-left: 0.35rem;
}

.sec-title::before,
.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.16em;
    width: 4px;
    height: 2.1em;
    background: var(--gold);
}

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

.page-title {
    font-size: 2.8rem;
    margin: 0 0 0.6rem;
}

.sec-title-light {
    color: #FFFFFF;
}

.sec-rule {
    position: relative;
    height: 1px;
    background: var(--line);
    margin: 0 0 1.9rem;
}

.sec-rule::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 68px;
    height: 1px;
    background: var(--gold);
}

.diag-sep {
    position: relative;
    height: 52px;
    overflow: hidden;
}

.diag-sep::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72%;
    height: 1px;
    background: var(--line);
    transform: translate(-50%, -50%) rotate(-15deg);
}

/* =========================================================
   6. Хлебные крошки
   ========================================================= */

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

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

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

.crumbs .sep {
    margin: 0 0.35rem;
    color: var(--gold);
}

/* =========================================================
   7. Главная страница
   ========================================================= */

.front .fs-hero,
.front .front-section {
    margin-bottom: 2.6rem;
}

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.fs-hero-pic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fs-hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(11, 29, 51, 0.88) 0%, rgba(11, 29, 51, 0.62) 55%, rgba(8, 21, 36, 0.78) 100%);
}

.fs-hero-body {
    position: relative;
    z-index: 2;
    padding: 3rem 2.4rem;
    max-width: 44rem;
    min-width: 0;
}

.fs-hero-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 2.8rem;
    color: #FFFFFF;
    margin: 0 0 0.8rem;
}

.fs-hero-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.14em;
    width: 4px;
    height: 2.1em;
    background: var(--gold);
}

.fs-hero-text {
    color: #D6E0EA;
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

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

.fs-stats {
    background: var(--bg-alt);
    background-image:
        linear-gradient(rgba(27, 42, 58, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 42, 58, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2.6rem 2.2rem;
}

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

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

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

.stat-num {
    display: block;
    font-family: var(--f-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--gold);
}

.stat-cap {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.steps-line {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
    position: relative;
}

.steps-line::before {
    content: '';
    position: absolute;
    left: 6%;
    right: 6%;
    top: 30px;
    border-top: 1px dashed var(--gold);
    opacity: 0.55;
}

.step-item {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0 0.4rem;
    text-align: center;
}

.step-num {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--bg);
    font-family: var(--f-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold);
}

.step-title {
    font-size: 1.1rem;
    margin: 0.9rem 0 0.5rem;
}

.step-text {
    font-size: 0.93rem;
    color: #3A4A5B;
    margin: 0;
}

.fs-cta {
    background: var(--head-bg);
    border-radius: 10px;
    padding: 2.8rem 2.4rem;
    color: #E6EDF4;
}

.fs-cta-text {
    max-width: 52rem;
    color: #C7D4E0;
    margin-bottom: 1.7rem;
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 14px var(--shade);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px var(--shade-deep);
    border-color: var(--gold);
}

.card-thumb {
    overflow: hidden;
}

.card-thumb a {
    display: block;
}

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

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

.card-title {
    font-size: 1.22rem;
    margin: 0 0 0.45rem;
}

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

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

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.card-excerpt {
    font-size: 0.95rem;
    color: #3A4A5B;
    margin-bottom: 1.1rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 1.1rem;
    font-size: 0.86rem;
}

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

.entry {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2.2rem 2.2rem 2.4rem;
    box-shadow: 0 4px 14px var(--shade);
}

.entry-meta {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.entry-cover {
    margin: 0 0 1.6rem;
    border-radius: 8px;
    overflow: hidden;
}

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.8em;
}

.entry-content img {
    display: block;
    height: auto;
    border-radius: 8px;
}

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

.tag-link {
    display: inline-block;
    margin: 0 0.6rem 0.5rem 0;
    font-size: 0.86rem;
    color: var(--steel);
}

.tag-link:hover {
    color: var(--gold-dark);
}

.entry-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
    font-size: 0.92rem;
}

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

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

.archive-note {
    margin-bottom: 1.6rem;
    color: #3A4A5B;
}

.back-home {
    margin-top: 1.6rem;
}

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

.sidebar {
    min-width: 0;
}

.sidebar .wbox {
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 4px 14px var(--shade);
    color: var(--ink);
}

.sidebar .wbox-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 0.85rem;
    font-size: 1.12rem;
    color: var(--ink);
}

.sidebar .wbox-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 3px;
    height: 1.9em;
    background: var(--gold);
}

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

.sidebar .wbox li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink);
}

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

.sidebar .wbox a {
    color: var(--ink);
}

.sidebar .wbox a:hover {
    color: var(--steel);
}

.sidebar .wbox .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

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

.site-bottom {
    background: var(--foot-bg);
    color: #C3D0DC;
    padding: 3rem 0 2rem;
    border-top: 4px solid var(--gold);
}

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

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

.site-bottom .wbox {
    margin-bottom: 1.4rem;
    color: #C3D0DC;
}

.site-bottom .wbox-title {
    position: relative;
    margin: 0 0 0.9rem;
    padding-left: 0.85rem;
    font-size: 1.08rem;
    color: #FFFFFF;
}

.site-bottom .wbox-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 3px;
    height: 1.9em;
    background: var(--gold);
}

.site-bottom .wbox p,
.site-bottom .wbox li,
.site-bottom .textwidget {
    color: #C3D0DC;
    font-size: 0.93rem;
}

.site-bottom .wbox ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-bottom .wbox li {
    padding: 0.38rem 0;
    border-bottom: 1px solid rgba(195, 208, 220, 0.14);
}

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

.site-bottom .wbox a {
    color: #DCE6EF;
}

.site-bottom .wbox a:hover {
    color: var(--gold);
}

.site-bottom .wbox .post-date {
    display: block;
    font-size: 0.8rem;
    color: #8FA2B4;
}

.foot-line {
    position: relative;
    height: 1px;
    background: rgba(195, 208, 220, 0.18);
    margin: 1.8rem 0 1.2rem;
}

.foot-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 68px;
    height: 1px;
    background: var(--gold);
}

.foot-copy {
    margin: 0;
    font-size: 0.86rem;
    color: #8FA2B4;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--head-bg);
    border-top: 3px solid var(--gold);
    color: #DCE6EF;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

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

/* =========================================================
   13. Поиск, пагинация, комментарии
   ========================================================= */

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

.search-label-text {
    display: block;
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.search-input {
    width: 100%;
    padding: 0.68rem 0.9rem;
    font-family: var(--f-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.search-input:focus {
    outline: none;
    border-color: var(--steel);
}

.sidebar .search-box {
    margin: 0;
}

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

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    min-width: 42px;
    text-align: center;
    font-family: var(--f-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--steel);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px var(--shade-deep);
    border-color: var(--gold);
}

.pager .page-numbers.current {
    background: var(--gold);
    border-color: var(--gold);
    color: #14212E;
}

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

.comments {
    margin-top: 2.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2rem 2.2rem;
    box-shadow: 0 4px 14px var(--shade);
}

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

.cmt-list .children {
    margin-left: 1.6rem;
    padding-left: 1.2rem;
    border-left: 2px solid var(--line);
}

.cmt {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.cmt:last-child {
    border-bottom: none;
}

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

.cmt-author {
    font-family: var(--f-head);
    font-weight: 700;
}

.cmt-date,
.cmt-wait {
    font-size: 0.82rem;
    color: var(--muted);
}

.cmt-text p:last-child {
    margin-bottom: 0.5em;
}

.cmt-reply a {
    font-size: 0.86rem;
    color: var(--steel);
}

.cmt-pager {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

.comment-form label {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    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.65rem 0.85rem;
    font-family: var(--f-body);
    font-size: 0.95rem;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.comment-form textarea {
    resize: vertical;
}

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

.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    background: var(--gold);
    color: #14212E;
    font-family: var(--f-head);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover,
.comment-form .submit:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px var(--shade-deep);
}

.comment-reply-title {
    font-size: 1.35rem;
}

.cmt-closed {
    color: var(--muted);
}

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

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

    .layout-single {
        width: 100%;
    }

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

    .nav-switch {
        display: inline-flex;
        margin-left: auto;
        order: 2;
    }

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

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

    .top-menu {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .top-menu a {
        display: block;
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(234, 240, 246, 0.12);
    }

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

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

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

    .steps-line::before {
        display: none;
    }

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

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

    h1 { font-size: 1.75rem; }
    .page-title { font-size: 1.75rem; }
    .sec-title { font-size: 1.45rem; }

    .fs-hero {
        min-height: 340px;
    }

    .fs-hero-body {
        padding: 2rem 1.3rem;
    }

    .fs-hero-title {
        font-size: 1.75rem;
    }

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

    .fs-stats {
        padding: 1.8rem 1.4rem;
    }

    .fs-cta {
        padding: 1.9rem 1.4rem;
    }

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

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

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

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

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

    .step-item {
        text-align: left;
    }

    .entry,
    .comments {
        padding: 1.4rem 1.2rem 1.6rem;
    }

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

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

    .brand-note {
        display: none;
    }
}
