/*
Theme Name: dds_liberalsloveromney.com
Theme URI: https://liberalsloveromney.com
Author: Андрей Мельников
Author URI: https://liberalsloveromney.com
Description: Capital Realist — тема для контентного проекта об инвестициях в недвижимость. Аналитика, стратегии входа, оценка доходности, риски. Премиальная вёрстка без иллюзий.
Version: 1.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dds_liberalsloveromney
*/

/* =========================================================
   Базовые переменные палитры Capital Realist
   ========================================================= */
:root {
    --cr-bg: #F9F7F4;
    --cr-surface: #F2EFEA;
    --cr-ochre: #C67C2E;
    --cr-ochre-dark: #A55D1A;
    --cr-graphite: #2E4057;
    --cr-text: #2C2A29;
    --cr-muted: #6B6560;
    --cr-border: #DCD7D0;
    --cr-liquid: #7A8F7C;
    --cr-max-width: 1200px;
    --cr-radius: 8px;
    --cr-radius-pill: 20px;
    --cr-font-sans: 'Inter', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --cr-font-serif: Charter, Georgia, 'Times New Roman', serif;
    --cr-font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}

/* =========================================================
   Сброс и базовая типографика
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--cr-font-serif);
    font-size: 17px;
    line-height: 1.65;
    color: var(--cr-text);
    background: var(--cr-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--cr-font-sans);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--cr-graphite);
    margin: 1.4em 0 0.6em;
    line-height: 1.25;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1em;
}

a {
    color: var(--cr-graphite);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    text-decoration: underline;
}

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

figure {
    margin: 1.4em 0;
}

figcaption {
    font-size: 0.9rem;
    color: var(--cr-muted);
    margin-top: 0.4em;
}

blockquote {
    margin: 1.4em 0;
    padding: 0.6em 1.2em;
    border-left: 3px solid var(--cr-ochre);
    background: var(--cr-surface);
    font-style: italic;
    color: var(--cr-text);
}

code {
    font-family: var(--cr-font-mono);
    background: var(--cr-surface);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    font-size: 0.92em;
}

pre {
    background: var(--cr-surface);
    padding: 1em;
    border-radius: var(--cr-radius);
    overflow-x: auto;
    border: 1px solid var(--cr-border);
}

pre code {
    background: transparent;
    padding: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--cr-border);
    margin: 2em 0;
}

/* Таблицы */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--cr-border);
    font-family: var(--cr-font-sans);
    font-size: 0.95rem;
}

th, td {
    border: 1px solid var(--cr-border);
    padding: 0.6em 0.9em;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--cr-surface);
    font-weight: 600;
    color: var(--cr-graphite);
}

tr:nth-child(even) td {
    background: rgba(242, 239, 234, 0.4);
}

/* Акцентные цифры моноширинным шрифтом */
.cr-figure, .cr-money {
    font-family: var(--cr-font-mono);
    color: var(--cr-ochre);
    font-weight: 600;
}

/* =========================================================
   Служебные классы
   ========================================================= */
.cr-container {
    max-width: var(--cr-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

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

/* =========================================================
   Шапка
   ========================================================= */
.cr-header {
    background: var(--cr-bg);
    border-bottom: 1px solid var(--cr-border);
    padding: 18px 0;
}

.cr-header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.cr-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.cr-brand:hover {
    text-decoration: none;
}

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

.cr-brand-svg {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

.cr-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    max-width: 520px;
}

.cr-brand-name {
    font-family: var(--cr-font-sans);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--cr-graphite);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-brand-tagline {
    font-size: 0.78rem;
    color: var(--cr-muted);
    font-family: var(--cr-font-sans);
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cr-mode-switch {
    display: inline-flex;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius-pill);
    overflow: hidden;
    background: var(--cr-bg);
    margin-left: auto;
}

.cr-mode-switch button {
    background: transparent;
    border: none;
    padding: 6px 14px;
    font-family: var(--cr-font-sans);
    font-size: 0.82rem;
    color: var(--cr-graphite);
    cursor: pointer;
    transition: all .2s ease;
}

.cr-mode-switch button.is-active {
    background: var(--cr-graphite);
    color: #fff;
}

/* Навигация */
.cr-nav {
    margin-left: auto;
}

.cr-nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 8px 12px;
    cursor: pointer;
    font-family: var(--cr-font-sans);
    font-size: 0.9rem;
    color: var(--cr-graphite);
}

.cr-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 24px;
}

.cr-nav-menu li {
    margin: 0;
}

.cr-nav-menu a {
    font-family: var(--cr-font-sans);
    font-size: 0.95rem;
    color: var(--cr-text);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .2s ease;
}

.cr-nav-menu a:hover,
.cr-nav-menu .current-menu-item > a {
    text-decoration: none;
    border-bottom-color: var(--cr-ochre);
}

/* =========================================================
   Общая сетка контента
   ========================================================= */
.cr-main {
    padding: 40px 0 60px;
    min-height: 50vh;
}

.cr-layout {
    display: grid;
    gap: 40px;
    grid-template-columns: minmax(0, 1fr);
}

.cr-layout.has-sidebar {
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    gap: 6%;
}

.cr-layout.wide .cr-content {
    max-width: 85%;
    margin: 0 auto;
}

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

/* =========================================================
   Хлебные крошки
   ========================================================= */
.cr-crumbs {
    font-family: var(--cr-font-sans);
    font-size: 0.85rem;
    color: var(--cr-muted);
    margin-bottom: 24px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cr-border);
}

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

.cr-crumbs .cr-crumb-sep {
    margin: 0 8px;
    color: var(--cr-border);
}

.cr-crumbs .cr-crumb-current {
    color: var(--cr-text);
}

/* =========================================================
   Карточки записей
   ========================================================= */
.cr-cards {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46, 64, 87, 0.08);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: var(--cr-bg);
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(0);
    transition: filter .35s ease, transform .45s ease;
}

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

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-family: var(--cr-font-sans);
    font-size: 0.78rem;
    color: var(--cr-muted);
    margin-bottom: 10px;
}

.card-meta time {
    color: var(--cr-muted);
}

.card-meta a {
    color: var(--cr-graphite);
}

.card-title {
    font-family: var(--cr-font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

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

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

.card-excerpt {
    flex: 1;
    font-size: 0.95rem;
    color: var(--cr-text);
    margin-bottom: 14px;
}

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

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.cr-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-family: var(--cr-font-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.cr-tag.is-yield { background: var(--cr-ochre); }
.cr-tag.is-risk { background: var(--cr-graphite); }
.cr-tag.is-liquid { background: var(--cr-liquid); }

.card-more {
    align-self: flex-start;
    font-family: var(--cr-font-sans);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--cr-graphite);
    padding: 0;
    border: none;
    background: transparent;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

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

/* =========================================================
   Статья — одиночная запись / страница
   ========================================================= */
.cr-article {
    background: transparent;
}

.cr-article-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--cr-border);
}

.cr-article-title {
    font-size: 2.2rem;
    margin: 0 0 12px;
}

.cr-article-meta {
    font-family: var(--cr-font-sans);
    font-size: 0.85rem;
    color: var(--cr-muted);
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.cr-article-thumb {
    margin: 0 0 28px;
}

.cr-article-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--cr-radius);
}

.cr-article-content p,
.cr-article-content ul,
.cr-article-content ol {
    margin-bottom: 1.1em;
}

.cr-article-content ul,
.cr-article-content ol {
    padding-left: 1.4em;
}

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

.cr-article-tags {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--cr-border);
    font-family: var(--cr-font-sans);
    font-size: 0.88rem;
    color: var(--cr-muted);
}

.cr-article-tags a {
    display: inline-block;
    background: var(--cr-surface);
    color: var(--cr-graphite);
    padding: 3px 10px;
    border-radius: 12px;
    margin: 0 4px 6px 0;
    font-size: 0.82rem;
}

.cr-article-tags a:hover {
    background: var(--cr-ochre);
    color: #fff;
    text-decoration: none;
}

/* =========================================================
   Сайдбар и виджеты
   ========================================================= */
.cr-sidebar {
    font-family: var(--cr-font-sans);
}

.cr-widget {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 20px 22px;
    margin-bottom: 24px;
}

.cr-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cr-graphite);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--cr-border);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

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

.cr-widget li {
    padding: 6px 0;
    border-bottom: 1px dashed var(--cr-border);
    font-size: 0.92rem;
}

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

.cr-widget a {
    color: var(--cr-text);
}

.cr-widget a:hover {
    color: var(--cr-ochre);
    text-decoration: none;
}

/* Поисковая форма */
.cr-search {
    display: flex;
    gap: 0;
    width: 100%;
}

.cr-search input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--cr-border);
    border-right: none;
    border-radius: var(--cr-radius) 0 0 var(--cr-radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--cr-bg);
    color: var(--cr-text);
    min-width: 0;
}

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

.cr-search button {
    padding: 10px 18px;
    background: var(--cr-ochre);
    color: #fff;
    border: none;
    border-radius: 0 var(--cr-radius) var(--cr-radius) 0;
    cursor: pointer;
    font-family: var(--cr-font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background .2s ease;
}

.cr-search button:hover {
    background: var(--cr-ochre-dark);
}

/* =========================================================
   Кнопки
   ========================================================= */
.cr-btn {
    display: inline-block;
    padding: 11px 22px;
    background: var(--cr-ochre);
    color: #fff;
    font-family: var(--cr-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--cr-radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s ease;
}

.cr-btn:hover {
    background: var(--cr-ochre-dark);
    color: #fff;
    text-decoration: none;
}

.cr-btn-ghost {
    background: transparent;
    border: 1px solid var(--cr-border);
    color: var(--cr-graphite);
    border-radius: var(--cr-radius-pill);
    padding: 8px 16px;
    font-size: 0.88rem;
}

.cr-btn-ghost:hover {
    background: var(--cr-ochre);
    color: #fff;
    border-color: var(--cr-ochre);
}

.cr-btn-ghost.is-active {
    background: var(--cr-ochre);
    color: #fff;
    border-color: var(--cr-ochre);
}

/* =========================================================
   Главная страница — тематические блоки
   ========================================================= */
.cr-hero {
    padding: 56px 0 48px;
    background: linear-gradient(180deg, var(--cr-surface) 0%, var(--cr-bg) 100%);
    border-bottom: 1px solid var(--cr-border);
    margin: -40px 0 44px;
}

.cr-hero-inner {
    max-width: 85%;
    margin: 0 auto;
    text-align: left;
}

.cr-hero h1 {
    font-size: 2.4rem;
    margin: 0 0 16px;
    line-height: 1.15;
    max-width: 780px;
}

.cr-hero-lead {
    font-size: 1.1rem;
    color: var(--cr-muted);
    max-width: 720px;
    margin: 0 0 26px;
}

.cr-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Секция */
.cr-section {
    margin: 56px auto;
    max-width: 85%;
}

.cr-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cr-border);
}

.cr-section-head h2 {
    margin: 0;
    font-size: 1.5rem;
}

.cr-section-label {
    font-family: var(--cr-font-sans);
    font-size: 0.8rem;
    color: var(--cr-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cr-section-lead {
    color: var(--cr-muted);
    margin-bottom: 22px;
    font-size: 1.02rem;
    max-width: 760px;
}

/* Три стратегии входа */
.cr-strategies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.cr-strategy {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-left: 4px solid var(--cr-ochre);
    border-radius: var(--cr-radius);
    padding: 22px 24px;
}

.cr-strategy:nth-child(2) {
    border-left-color: var(--cr-graphite);
}

.cr-strategy:nth-child(3) {
    border-left-color: var(--cr-liquid);
}

.cr-strategy h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.cr-strategy p {
    margin: 0 0 10px;
    font-size: 0.95rem;
    color: var(--cr-text);
}

.cr-strategy .cr-figure {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 8px;
}

/* Калькулятор доходности (демо) */
.cr-calc {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 24px 26px;
}

.cr-calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.cr-calc-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cr-calc-field label {
    font-family: var(--cr-font-sans);
    font-size: 0.85rem;
    color: var(--cr-muted);
}

.cr-calc-field input[type="range"] {
    width: 100%;
    accent-color: var(--cr-ochre);
}

.cr-calc-field .cr-calc-val {
    font-family: var(--cr-font-mono);
    font-size: 1.05rem;
    color: var(--cr-graphite);
    font-weight: 600;
}

.cr-calc-result {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--cr-border);
    font-family: var(--cr-font-sans);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.cr-calc-result strong {
    font-size: 1.5rem;
    font-family: var(--cr-font-mono);
    color: var(--cr-ochre);
}

/* Три стола капитала (уникальный элемент подвала) */
.cr-three-tables {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 26px;
}

.cr-three-tables .cr-tbl {
    background: rgba(249, 247, 244, 0.04);
    border: 1px solid rgba(220, 215, 208, 0.15);
    border-radius: var(--cr-radius);
    padding: 18px 20px;
}

.cr-three-tables h4 {
    margin: 0 0 10px;
    font-family: var(--cr-font-sans);
    color: #F2EFEA;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(220, 215, 208, 0.2);
    padding-bottom: 6px;
}

.cr-three-tables .cr-tbl-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: var(--cr-font-sans);
    font-size: 0.86rem;
    border-bottom: 1px dashed rgba(220, 215, 208, 0.12);
    color: #DCD7D0;
}

.cr-three-tables .cr-tbl-row:last-child {
    border-bottom: none;
}

.cr-three-tables .cr-tbl-row span:last-child {
    font-family: var(--cr-font-mono);
    color: var(--cr-ochre);
    font-weight: 600;
}

/* =========================================================
   Подвал
   ========================================================= */
.cr-footer {
    background: var(--cr-graphite);
    color: #DCD7D0;
    padding: 48px 0 0;
    margin-top: 60px;
    font-family: var(--cr-font-sans);
    font-size: 0.92rem;
}

.cr-footer a {
    color: #F2EFEA;
}

.cr-footer a:hover {
    color: var(--cr-ochre);
    text-decoration: none;
}

.cr-footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    padding-bottom: 36px;
}

.cr-footer-col .cr-widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.cr-footer-col .cr-widget-title {
    color: #F2EFEA;
    border-bottom: 1px solid rgba(220, 215, 208, 0.2);
    margin-bottom: 12px;
}

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

.cr-footer-col .cr-widget li {
    border-bottom: 1px dashed rgba(220, 215, 208, 0.15);
    padding: 6px 0;
}

.cr-footer-col .cr-widget a {
    color: #DCD7D0;
}

.cr-footer-bottom {
    border-top: 1px solid rgba(220, 215, 208, 0.15);
    padding: 18px 0;
    font-size: 0.85rem;
    color: #9a938b;
}

/* =========================================================
   Пагинация
   ========================================================= */
.cr-pagination {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--cr-border);
    display: flex;
    justify-content: center;
    font-family: var(--cr-font-sans);
}

.cr-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    color: var(--cr-graphite);
    font-size: 0.92rem;
    min-width: 40px;
    text-align: center;
    background: var(--cr-bg);
}

.cr-pagination .page-numbers:hover {
    background: var(--cr-surface);
    text-decoration: none;
}

.cr-pagination .page-numbers.current {
    background: var(--cr-ochre);
    color: #fff;
    border-color: var(--cr-ochre);
}

.cr-pagination .dots {
    background: transparent;
    border-color: transparent;
}

/* =========================================================
   Cookie-баннер
   ========================================================= */
.cr-cookie {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    background: var(--cr-graphite);
    color: #F2EFEA;
    padding: 16px 22px;
    border-radius: var(--cr-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--cr-font-sans);
    font-size: 0.9rem;
    max-width: 820px;
    margin: 0 auto;
}

.cr-cookie.is-visible {
    display: flex;
}

.cr-cookie p {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.cr-cookie a {
    color: var(--cr-ochre);
    text-decoration: underline;
}

.cr-cookie-accept {
    padding: 9px 22px;
    background: var(--cr-ochre);
    color: #fff;
    border: none;
    border-radius: var(--cr-radius);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s ease;
}

.cr-cookie-accept:hover {
    background: var(--cr-ochre-dark);
}

/* =========================================================
   Комментарии
   ========================================================= */
.cr-comments {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--cr-border);
}

.cr-comments-title {
    font-size: 1.4rem;
    margin: 0 0 24px;
}

.cr-comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.cr-comment {
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.cr-comment .children {
    list-style: none;
    margin: 16px 0 0 24px;
    padding: 0;
}

.cr-comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    font-family: var(--cr-font-sans);
    font-size: 0.85rem;
    color: var(--cr-muted);
}

.cr-comment-meta img {
    border-radius: 50%;
}

.cr-comment-author {
    font-weight: 600;
    color: var(--cr-graphite);
}

.cr-comment-body {
    font-size: 0.96rem;
}

.comment-respond {
    margin-top: 30px;
    padding: 22px 24px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
}

.comment-respond h3 {
    margin: 0 0 16px;
    font-size: 1.2rem;
}

.comment-form p {
    margin-bottom: 14px;
}

.comment-form label {
    display: block;
    margin-bottom: 4px;
    font-family: var(--cr-font-sans);
    font-size: 0.88rem;
    color: var(--cr-muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--cr-border);
    border-radius: var(--cr-radius);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--cr-bg);
    color: var(--cr-text);
}

.comment-form textarea {
    min-height: 110px;
    resize: vertical;
}

.comment-form .submit {
    padding: 11px 22px;
    background: var(--cr-ochre);
    color: #fff;
    border: none;
    border-radius: var(--cr-radius);
    cursor: pointer;
    font-family: var(--cr-font-sans);
    font-size: 0.95rem;
    font-weight: 600;
}

.comment-form .submit:hover {
    background: var(--cr-ochre-dark);
}

/* =========================================================
   404
   ========================================================= */
.cr-404 {
    text-align: center;
    padding: 40px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.cr-404 h1 {
    font-size: 4rem;
    margin: 0;
    color: var(--cr-ochre);
    font-family: var(--cr-font-mono);
}

.cr-404 p {
    color: var(--cr-muted);
    margin: 10px 0 24px;
}

.cr-404 .cr-search {
    margin: 24px 0;
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 960px) {
    body { font-size: 16px; }

    .cr-layout.has-sidebar {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cr-layout.wide .cr-content,
    .cr-hero-inner,
    .cr-section {
        max-width: 100%;
    }

    .cr-footer-cols {
        grid-template-columns: 1fr 1fr;
        gap: 26px;
    }

    .cr-three-tables {
        grid-template-columns: 1fr;
    }

    .cr-hero h1 { font-size: 1.9rem; }
    .cr-article-title { font-size: 1.7rem; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
}

@media (max-width: 600px) {
    .cr-header-inner {
        gap: 14px;
    }

    .cr-brand-text {
        max-width: 100%;
    }

    .cr-brand-name {
        font-size: 0.9rem;
    }

    .cr-nav {
        margin-left: 0;
        width: 100%;
        order: 10;
    }

    .cr-nav-toggle {
        display: inline-block;
    }

    .cr-nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--cr-surface);
        border: 1px solid var(--cr-border);
        border-radius: var(--cr-radius);
        margin-top: 12px;
        padding: 6px 0;
    }

    .cr-nav-menu.is-open {
        display: flex;
    }

    .cr-nav-menu li {
        border-bottom: 1px solid var(--cr-border);
    }

    .cr-nav-menu li:last-child {
        border-bottom: none;
    }

    .cr-nav-menu a {
        display: block;
        padding: 10px 16px;
        border-bottom: none;
    }

    .cr-nav-menu a:hover {
        background: var(--cr-bg);
        border-bottom: none;
    }

    .cr-mode-switch {
        margin-left: 0;
    }

    .cr-cards {
        grid-template-columns: 1fr;
    }

    .cr-footer-cols {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cr-hero { padding: 32px 0; }
    .cr-hero h1 { font-size: 1.6rem; }
    .cr-section { margin: 36px auto; }

    .cr-btn,
    .cr-cookie-accept,
    .cr-hero-actions .cr-btn {
        width: 100%;
        text-align: center;
    }

    .cr-hero-actions {
        flex-direction: column;
    }

    .cr-cookie {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px 16px;
    }

    .cr-calc-result {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Горизонтальные карточки в адаптиве — сброс абсолютного позиционирования */
    .card.is-horizontal .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card.is-horizontal .card-thumb-wrap a {
        position: static;
    }

    .card.is-horizontal .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .card.is-horizontal {
        flex-direction: column;
    }
}
