/*
Theme Name: informaticlr.com
Theme URI: https://informaticlr.com
Author: Савельев Олег
Author URI: https://informaticlr.com
Description: Тема для информационного сайта о выборе и покупке недвижимости. Практические советы риелтора, разбор рынка, рисков и документов.
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: informaticlr
*/

/* === Подключение шрифтов === */
@import url("/assets/220a87da6308e17d2e39.css");

/* === Сброс и базовые правила === */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Spectral', Georgia, serif;
    font-size: 17px;
    line-height: 1.65;
    color: #2C2F36;
    background-color: #F7F7F5;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(160, 162, 159, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 75% 70%, rgba(160, 162, 159, 0.04) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(160, 162, 159, 0.03) 1px, transparent 1px);
    background-size: 14px 14px, 18px 18px, 11px 11px;
    background-position: 0 0, 5px 7px, 9px 3px;
}

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

a { color: #2A5C6E; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #1F4454; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Barlow', system-ui, sans-serif;
    font-weight: 700;
    color: #2A5C6E;
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
}

h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

blockquote {
    margin: 1.5em 0;
    padding: 0.8em 1.2em;
    border-left: 3px solid #2A5C6E;
    background: rgba(42, 92, 110, 0.04);
    color: #2C2F36;
    font-style: italic;
}

code, kbd, pre, samp { font-family: 'JetBrains Mono', monospace; font-size: 0.92em; }
pre { padding: 1em; background: #2C2F36; color: #F7F7F5; overflow-x: auto; border-radius: 4px; }
code { background: rgba(42, 92, 110, 0.07); padding: 0.1em 0.35em; border-radius: 3px; }

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
table, th, td { border: 1px solid #d8d8d4; }
th, td { padding: 0.65em 0.85em; text-align: left; }
th { background: rgba(42, 92, 110, 0.06); font-family: 'Barlow', sans-serif; font-weight: 600; }

/* === Контейнер === */
.wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === Шапка === */
.site-head {
    background: #FFFFFF;
    border-bottom: 1px solid #ebebe6;
    padding: 18px 0;
}

.site-head-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.brand:hover { color: inherit; }

.brand-logo {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: block;
}

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

.brand-title {
    font-family: 'Barlow', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #2A5C6E;
    margin: 0;
    line-height: 1.15;
}

.brand-tagline {
    font-size: 0.82rem;
    color: #A0A29F;
    margin: 3px 0 0;
    line-height: 1.3;
}

/* Индикатор сложности рынка */
.market-index {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 180px;
}

.market-index-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #A0A29F;
}

.market-index-bar {
    height: 6px;
    background: #ebebe6;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.market-index-fill {
    height: 100%;
    width: 64%;
    background: linear-gradient(90deg, #6A8A6F 0%, #d6b97a 55%, #C27A6B 100%);
    border-radius: 3px;
}

.market-index-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #2C2F36;
}

/* === Меню === */
.site-nav {
    background: #2A5C6E;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 8px 14px;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 4px;
    margin: 10px 0;
}

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

.nav-menu li a {
    display: block;
    padding: 14px 20px;
    color: #fff;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 0.97rem;
    transition: background 0.15s ease;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a,
.nav-menu li.current_page_item a {
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
}

/* === Основная разметка === */
.site-main { padding: 36px 0 60px; }

.layout {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}

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

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: 1fr; gap: 36px; }
    .layout-wide .content-area { max-width: 100%; }
}

/* === Хлебные крошки === */
.crumbs {
    font-size: 0.86rem;
    color: #A0A29F;
    margin-bottom: 22px;
    font-family: 'Barlow', sans-serif;
}

.crumbs a {
    color: #2A5C6E;
    text-decoration: none;
}

.crumbs a:hover { text-decoration: underline; }

.crumbs-sep { margin: 0 8px; color: #c8cac6; }

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

.card {
    background: #FFFFFF;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #ebebe6;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.card-thumb-placeholder {
    aspect-ratio: 16 / 9;
    width: 100%;
    background: linear-gradient(135deg, #2A5C6E 0%, #1F4454 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
}

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

.card-meta {
    font-size: 0.78rem;
    color: #A0A29F;
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.card-meta a { color: #2A5C6E; text-decoration: none; }
.card-meta a:hover { text-decoration: underline; }

.card-title {
    font-family: 'Barlow', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}

.card-title a {
    color: #2A5C6E;
    text-decoration: none;
}

.card-title a:hover { color: #1F4454; }

.card-excerpt {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #2C2F36;
    margin-bottom: 14px;
}

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

.card-actions {
    margin-top: auto;
    padding-top: 6px;
}

/* === Кнопки === */
.btn {
    display: inline-block;
    padding: 9px 18px;
    background: #2A5C6E;
    color: #fff;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    font-size: 0.93rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    background: #1F4454;
    color: #fff;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.btn-ghost {
    background: transparent;
    color: #2A5C6E;
    border: none;
    border-bottom: 1px solid #2A5C6E;
    border-radius: 0;
    padding: 6px 4px;
}

.btn-ghost:hover {
    background: transparent;
    color: #2A5C6E;
    border: 1px solid #2A5C6E;
    box-shadow: none;
    padding: 6px 4px;
}

/* Переключатель Купить / Не рекомендую */
.deal-toggle {
    display: inline-flex;
    background: #ebebe6;
    border-radius: 40px;
    padding: 4px;
    gap: 2px;
}

.deal-toggle-btn {
    height: 40px;
    padding: 0 22px;
    border: 2px solid transparent;
    border-radius: 40px;
    background: transparent;
    color: #2C2F36;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.18s ease;
}

.deal-toggle-btn.is-safe.is-active {
    background: #6A8A6F;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.deal-toggle-btn.is-risk.is-active {
    background: #C27A6B;
    color: #fff;
    border-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* === Записи === */
.entry {
    background: #FFFFFF;
    border-radius: 6px;
    padding: 32px 36px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #ebebe6;
}

.entry-header { margin-bottom: 22px; }

.entry-meta {
    font-size: 0.84rem;
    color: #A0A29F;
    font-family: 'Barlow', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.entry-meta a { color: #2A5C6E; text-decoration: none; }
.entry-meta a:hover { text-decoration: underline; }

.entry-title {
    font-size: 2rem;
    margin: 0;
    line-height: 1.2;
}

.entry-content { font-size: 1.02rem; line-height: 1.7; }

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

.entry-content ul, .entry-content ol { padding-left: 1.6em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.4em; }

/* Карточка фактов в начале статьи */
.facts-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 0 0 28px;
    padding: 20px;
    background: #f1f1ed;
    border-radius: 6px;
}

.facts-card-item { text-align: center; }

.facts-card-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 8px;
    color: #2A5C6E;
}

.facts-card-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #A0A29F;
    margin-bottom: 2px;
}

.facts-card-value {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: #2C2F36;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .facts-card { grid-template-columns: 1fr; }
}

/* Термометр сделки в конце статьи */
.deal-thermometer {
    margin: 36px 0 6px;
    padding: 22px 24px;
    background: #f1f1ed;
    border-radius: 6px;
}

.deal-thermometer-title {
    font-family: 'Barlow', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #A0A29F;
    margin: 0 0 14px;
}

.deal-thermometer-track {
    position: relative;
    height: 6px;
    background: #d8d8d4;
    border-radius: 3px;
    margin: 0 14px;
}

.deal-thermometer-fill {
    position: absolute;
    top: 0; left: 0;
    height: 100%;
    width: 60%;
    background: #2A5C6E;
    border-radius: 3px;
}

.deal-thermometer-points {
    display: flex;
    justify-content: space-between;
    margin-top: -10px;
}

.deal-thermometer-point {
    flex: 1;
    text-align: center;
    position: relative;
}

.deal-thermometer-dot {
    width: 14px;
    height: 14px;
    background: #d8d8d4;
    border: 3px solid #f1f1ed;
    border-radius: 50%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.deal-thermometer-point.is-passed .deal-thermometer-dot {
    background: #2A5C6E;
}

.deal-thermometer-point.is-current .deal-thermometer-dot {
    background: #2A5C6E;
    box-shadow: 0 0 0 4px rgba(42, 92, 110, 0.18);
}

.deal-thermometer-label {
    font-family: 'Barlow', sans-serif;
    font-size: 0.72rem;
    color: #2C2F36;
    margin-top: 8px;
    line-height: 1.2;
}

@media (max-width: 600px) {
    .deal-thermometer-label { font-size: 0.62rem; }
}

/* === Сайдбар === */
.sidebar { font-size: 0.94rem; }

.widget {
    background: #FFFFFF;
    padding: 20px 22px;
    border-radius: 6px;
    margin-bottom: 22px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #ebebe6;
}

.widget-title {
    font-family: 'Barlow', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2A5C6E;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ebebe6;
}

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

.widget ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f1f1ed;
}

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

.widget ul li a {
    color: #2C2F36;
    text-decoration: none;
}

.widget ul li a:hover { color: #2A5C6E; text-decoration: underline; }

/* Дневник сделок */
.deal-diary { font-family: 'JetBrains Mono', monospace; font-size: 0.83rem; }
.deal-diary-entry { padding: 10px 0; border-bottom: 1px dashed #ebebe6; }
.deal-diary-entry:last-child { border-bottom: none; }
.deal-diary-date { color: #A0A29F; font-size: 0.78rem; margin-bottom: 4px; }
.deal-diary-text { color: #2C2F36; line-height: 1.5; }

/* === Главная — секции === */
.section {
    margin: 0 0 50px;
    padding: 32px 36px;
    background: #FFFFFF;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    border: 1px solid #ebebe6;
}

.section-title {
    font-size: 1.55rem;
    margin: 0 0 18px;
}

.section-lead {
    color: #2C2F36;
    margin-bottom: 22px;
    font-size: 1.05rem;
}

.section-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.section-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.section-tile {
    padding: 18px 20px;
    background: #f1f1ed;
    border-radius: 6px;
    border-left: 3px solid #2A5C6E;
}

.section-tile.is-warning { border-left-color: #C27A6B; }
.section-tile.is-success { border-left-color: #6A8A6F; }

.section-tile-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 8px;
    color: #2A5C6E;
}

.section-tile-text {
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

@media (max-width: 960px) {
    .section-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .section-grid-3, .section-grid-2 { grid-template-columns: 1fr; }
    .section { padding: 22px 20px; }
    .entry { padding: 22px 20px; }
}

/* Категории текстом */
.text-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.text-categories li {
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
}

.text-categories a {
    color: #2A5C6E;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px dashed transparent;
    transition: border-bottom-color 0.15s ease;
}

.text-categories a:hover { border-bottom-color: #2A5C6E; }

/* === Пагинация === */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 36px 0 0;
    justify-content: center;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #FFFFFF;
    color: #2A5C6E;
    text-decoration: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid #ebebe6;
    min-width: 38px;
    text-align: center;
}

.pagination a:hover {
    background: #2A5C6E;
    color: #fff;
    border-color: #2A5C6E;
}

.pagination .current {
    background: #2A5C6E;
    color: #fff;
    border-color: #2A5C6E;
}

/* === Поиск === */
.search-form {
    display: flex;
    gap: 6px;
    margin: 0 0 18px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #ebebe6;
    border-radius: 6px;
    background: #FFFFFF;
    color: #2C2F36;
    font-family: 'Spectral', serif;
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: #2A5C6E;
}

.search-form button { white-space: nowrap; }

/* === Комментарии === */
.comments-area {
    margin-top: 36px;
    padding: 28px 32px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #ebebe6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.comments-title { font-size: 1.3rem; margin: 0 0 18px; }

.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list ul.children { list-style: none; padding-left: 30px; margin-top: 14px; }

.comment-list li { padding: 14px 0; border-bottom: 1px solid #f1f1ed; }
.comment-list li:last-child { border-bottom: none; }

.comment-author {
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
    color: #2A5C6E;
}

.comment-meta {
    font-size: 0.8rem;
    color: #A0A29F;
    margin-bottom: 8px;
    font-family: 'Barlow', sans-serif;
}

.comment-meta a { color: #A0A29F; text-decoration: none; }
.comment-meta a:hover { text-decoration: underline; }

.comment-body { font-size: 0.96rem; }
.comment-body p { margin: 0 0 0.6em; }

.comment-reply-link {
    font-family: 'Barlow', sans-serif;
    font-size: 0.85rem;
    color: #2A5C6E;
    text-decoration: none;
}

.comment-reply-link:hover { text-decoration: underline; }

.comment-form { margin-top: 10px; }

.comment-form p {
    margin: 0 0 12px;
}

.comment-form label {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: 0.88rem;
    margin-bottom: 5px;
    color: #2C2F36;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #ebebe6;
    border-radius: 6px;
    background: #F7F7F5;
    color: #2C2F36;
    font-family: 'Spectral', serif;
    font-size: 0.96rem;
}

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

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #2A5C6E;
    background: #FFFFFF;
}

.comment-form input[type="submit"] {
    background: #2A5C6E;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
}

.comment-form input[type="submit"]:hover { background: #1F4454; }

/* === Подвал === */
.site-foot {
    background: #2C2F36;
    color: #d8d8d4;
    padding: 44px 0 20px;
    margin-top: 60px;
}

.site-foot a { color: #d8d8d4; }
.site-foot a:hover { color: #fff; }

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.foot-col .widget {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.foot-col .widget-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.foot-col .widget ul li { border-bottom-color: rgba(255, 255, 255, 0.06); }
.foot-col .widget ul li a { color: #d8d8d4; }
.foot-col .widget ul li a:hover { color: #fff; }

.foot-tagline {
    text-align: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

.foot-tagline-name {
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    margin-right: 14px;
}

.foot-tagline-text {
    font-style: italic;
    color: #A0A29F;
}

.foot-copy {
    text-align: center;
    font-size: 0.85rem;
    color: #A0A29F;
    font-family: 'Barlow', sans-serif;
}

@media (max-width: 960px) {
    .foot-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .foot-cols { grid-template-columns: 1fr; }
}

/* === Cookie-баннер === */
/* Правило ниже размещено ДО основного блока — обеспечивает скрытие при hidden */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-width: 920px;
    margin: 0 auto;
    background: #FFFFFF;
    color: #2C2F36;
    padding: 16px 22px;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.14);
    border: 1px solid #ebebe6;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 0.92rem;
}

.cookie-banner-text { flex: 1; }
.cookie-banner-text a { color: #2A5C6E; }

.cookie-banner-accept {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }
}

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 50px 20px;
    background: #FFFFFF;
    border-radius: 6px;
    border: 1px solid #ebebe6;
}

.error-404 h1 {
    font-size: 4rem;
    margin: 0 0 10px;
    color: #2A5C6E;
}

.error-404 p { font-size: 1.05rem; max-width: 500px; margin: 0 auto 20px; }

.error-404 .search-form { max-width: 500px; margin: 0 auto 20px; }

/* === Адаптивное меню === */
@media (max-width: 768px) {
    .site-head-inner { gap: 14px; }
    .market-index { display: none; }

    .site-nav-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-toggle { display: inline-block; align-self: flex-start; }

    .nav-menu {
        flex-direction: column;
        display: none;
        padding-bottom: 10px;
    }

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

    .nav-menu li a { padding: 10px 4px; }

    .brand-title { font-size: 1.08rem; }
    .brand-tagline { font-size: 0.78rem; }
}

@media (max-width: 480px) {
    body { font-size: 16px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.4rem; }
    .entry-title { font-size: 1.55rem; }
}
