/*
Theme Name: dds_meratrimresults.com
Author: Елена Соколова
Description: Информационно-аналитический портал о новостройках и ипотеке. Дизайн «Lavender tech»: лавандово-сиреневая палитра, мягкая геометрия, спокойный технологичный характер.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mratr
*/

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

:root {
    --bg: #F7F5FB;
    --bg-alt: #EFEAF7;
    --head-bg: #FFFFFF;
    --foot-bg: #2E2A3B;
    --side-bg: #F2EEF9;
    --ink: #1F1B2E;
    --accent: #7C5CFF;
    --accent-dark: #5B3CE0;
    --accent2: #2EC4B6;
    --accent2-dark: #1FA79B;
    --muted: #7A738C;
    --line: #E3DCF2;
    --dash: #D8D0E8;
    --radius-card: 16px;
    --radius-btn: 12px;
    --shell: 1180px;
    --font-head: "Inter Tight", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::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:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420'%3E%3Cpath d='M431 36c58 14 84 78 72 138-12 60-64 96-124 110-60 14-128 6-160-38-32-44-16-114 30-152C295 16 373 22 431 36z' fill='%237C5CFF' fill-opacity='0.08'/%3E%3C/svg%3E"),
        radial-gradient(circle, #E3DCF2 1px, rgba(0, 0, 0, 0) 1px);
    background-repeat: no-repeat, repeat;
    background-position: right -120px top -60px, left top;
    background-size: auto, 22px 22px;
    background-attachment: scroll, fixed;
}

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

p {
    margin: 0 0 1.1em;
}

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

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

h4 {
    font-size: 1.15rem;
}

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

.entry-content a,
.widget a,
.crumbs a {
    position: relative;
}

.entry-content a {
    background-image: linear-gradient(var(--accent2), var(--accent2));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    padding-bottom: 2px;
}

.entry-content a:hover {
    background-size: 100% 1px;
}

ul,
ol {
    padding-left: 1.3rem;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    color: var(--ink);
}

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

code,
pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
    border-radius: 6px;
}

code {
    padding: 0.1em 0.35em;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--dash);
    background: #FFFFFF;
}

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

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

hr {
    border: 0;
    border-top: 1px dashed var(--dash);
    margin: 2.2rem 0;
}

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

/* ==========================================================
   Верхняя полоса и шапка
========================================================== */

.topline {
    height: 5px;
    background: linear-gradient(90deg, #7C5CFF 0%, #2EC4B6 100%);
}

.site-top {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
}

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

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    max-width: 46ch;
}

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

.brand-tagline {
    margin: 0.25rem 0 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 58ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ==========================================================
   Каркас страниц
========================================================== */

.page-body {
    padding: 2.2rem 0 3.2rem;
}

.layout-single {
    display: block;
}

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 3%;
    align-items: start;
}

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

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

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

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

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

.page-title,
.entry-title-single {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.2rem;
}

.page-title::before,
.entry-title-single::before,
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.entry-title-single {
    font-size: 2.4rem;
}

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-btn);
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 92, 255, 0.32);
}

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

.btn-ghost:hover {
    background: rgba(124, 92, 255, 0.1);
    color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 92, 255, 0.18);
}

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

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

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(124, 92, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(124, 92, 255, 0.2);
}

.card:hover::before {
    opacity: 1;
}

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

.card-thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #EFEAF7 0%, #DCD3F4 100%);
}

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

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

.card-title a {
    color: var(--ink);
    transition: color 0.2s ease;
}

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-foot {
    margin-top: auto;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
}

.tag-chip {
    display: inline-block;
    padding: 0.18rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-family: var(--font-head);
    font-weight: 600;
    background: rgba(46, 196, 182, 0.14);
    color: var(--accent2-dark);
}

.card:nth-child(2n) .tag-chip {
    background: rgba(124, 92, 255, 0.14);
    color: var(--accent-dark);
}

.card:nth-child(3n) .tag-chip {
    background: rgba(159, 122, 234, 0.16);
    color: #6C3FB5;
}

.card-more {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--accent);
}

.card-more:hover {
    color: var(--accent-dark);
}

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

.front-section {
    padding: 3.2rem 0;
    border-bottom: 1px dashed var(--dash);
}

.front-section:last-of-type {
    border-bottom: 0;
}

.front-section-alt {
    background: linear-gradient(180deg, #EFEAF7 0%, #F7F5FB 100%);
}

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.section-title {
    position: relative;
    font-size: 2rem;
    padding-left: 1.1rem;
    margin-left: 0.4rem;
    margin-bottom: 0.6rem;
    border-left: 0;
}

.section-title::after {
    content: "";
    position: absolute;
    left: -0.4rem;
    top: 0.2em;
    bottom: 0.15em;
    width: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(124, 92, 255, 0) 100%);
}

.section-lead {
    color: var(--muted);
    margin: 0 0 2rem 1.5rem;
    max-width: 68ch;
}

/* Hero */

.fs-hero {
    padding: 0;
    border-bottom: 1px dashed var(--dash);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.4rem;
    align-items: center;
    width: 85%;
    margin: 2.6rem auto;
    padding: 2.8rem 2.6rem;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 12%, rgba(46, 196, 182, 0.22) 0%, rgba(46, 196, 182, 0) 45%),
        linear-gradient(135deg, #E7DFFB 0%, #F3EFFC 55%, #E4F6F4 100%);
    border: 1px solid var(--line);
}

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

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
    background: rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.1rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 0.7rem;
}

.hero p {
    color: #453D5C;
    font-size: 1.05rem;
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

.hero-visual {
    min-width: 0;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

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

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1.2rem;
}

.stat-plate {
    min-width: 0;
    padding: 1.6rem 1.4rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 26px rgba(124, 92, 255, 0.1);
    backdrop-filter: blur(6px);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-plate:nth-child(2n) .stat-num {
    color: var(--accent2-dark);
}

.stat-label {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
}

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

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

.rubric-tile {
    min-width: 0;
    display: block;
    padding: 1.6rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 8px 20px rgba(124, 92, 255, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.rubric-tile:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 16px 30px rgba(124, 92, 255, 0.18);
}

.rubric-icon {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 0.9rem;
}

.rubric-tile h3 {
    font-size: 1.16rem;
    margin-bottom: 0.4rem;
}

.rubric-tile p {
    margin: 0;
    font-size: 0.93rem;
    color: var(--muted);
}

/* FAQ */

.faq-list {
    border-top: 1px dashed var(--dash);
}

.faq-item {
    border-bottom: 1px dashed var(--dash);
    padding: 0.2rem 0;
}

.faq-item > summary {
    position: relative;
    display: block;
    list-style: none;
    cursor: pointer;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink);
    padding: 1rem 2.4rem 1rem 1.6rem;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.55rem;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--accent);
}

.faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 0.6rem;
    top: 0.85rem;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.faq-item[open] > summary::after {
    content: "–";
}

.faq-answer {
    margin: 0 0 1.1rem;
    padding-left: 1.6rem;
    color: var(--muted);
}

.front-cta {
    margin-top: 2.4rem;
    padding: 2.2rem 2.2rem;
    border-radius: 18px;
    background: linear-gradient(120deg, #2E2A3B 0%, #453B63 100%);
    color: #F2EEF9;
}

.front-cta h3 {
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.front-cta p {
    color: #CFC7E0;
    margin-bottom: 1.2rem;
    max-width: 64ch;
}

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

.entry-card {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 2rem 2.1rem;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.08);
}

.entry-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 1.6rem;
}

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

.entry-content img {
    display: block;
    border-radius: 14px;
}

.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--dash);
    font-size: 0.9rem;
    color: var(--muted);
}

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

.entry-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent);
}

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

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.4rem;
    color: var(--ink);
}

.sidebar .widget {
    margin-bottom: 1.8rem;
}

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

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0.9rem;
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--dash);
}

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

.sidebar .widget a {
    color: var(--ink);
    font-size: 0.97rem;
}

.sidebar .widget a:hover {
    color: var(--accent);
}

.sidebar .widget,
.sidebar .widget p {
    color: #3A3350;
}

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

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

.search-box {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-box input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
}

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

.comments-area {
    margin-top: 2.2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 1.8rem 2rem;
}

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

.comment-list {
    list-style: none;
    margin: 0 0 1.8rem;
    padding: 0;
}

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

.comment-item {
    padding: 1rem 0;
    border-bottom: 1px dashed var(--dash);
}

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

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

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

.comment-actions a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
}

.comment-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    color: #FFFFFF;
    background: var(--accent);
    border: 0;
    border-radius: var(--radius-btn);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 92, 255, 0.3);
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--ink);
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.pager a.page-numbers:hover {
    color: #FFFFFF;
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(124, 92, 255, 0.25);
}

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

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

/* ==========================================================
   404 и служебные блоки
========================================================== */

.notice-block {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    padding: 2rem 2.1rem;
    box-shadow: 0 8px 24px rgba(124, 92, 255, 0.08);
}

.error-code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.4rem;
}

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

.site-bottom {
    background: var(--foot-bg);
    color: #D7D1E6;
    padding: 3rem 0 1.6rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
}

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

.site-bottom .widget-title {
    font-size: 1.08rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
}

.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .textwidget {
    color: #C6BFD8;
    font-size: 0.95rem;
}

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

.site-bottom .widget li {
    padding: 0.35rem 0;
}

.site-bottom .widget a {
    color: #E2DCF2;
}

.site-bottom .widget a:hover {
    color: var(--accent2);
}

.footer-contacts {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #C6BFD8;
}

.footer-contacts a {
    color: var(--accent2);
}

.copyright {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.88rem;
    color: #A79FBD;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: #FFFFFF;
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 26px rgba(31, 27, 46, 0.12);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink);
    max-width: 70ch;
}

.cookie-banner .btn {
    padding: 0.6rem 1.3rem;
    font-size: 0.95rem;
}

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

@media (max-width: 960px) {
    h1 {
        font-size: 2.4rem;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.2rem 1.8rem;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

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

    .layout-single .content-area,
    .front-inner,
    .hero {
        width: 100%;
    }

    .rubric-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    }
}

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

    h1,
    .hero h1 {
        font-size: 2rem;
    }

    h2,
    .section-title {
        font-size: 1.55rem;
    }

    .entry-title-single {
        font-size: 1.8rem;
    }

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

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

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px dashed var(--dash);
    }

    .main-nav a {
        display: block;
        padding: 0.7rem 0;
    }

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

    .hero {
        padding: 1.8rem 1.4rem;
        margin: 1.8rem auto;
    }

    .front-cta {
        padding: 1.8rem 1.4rem;
    }

    .stat-plate {
        padding: 1.3rem 1.2rem;
    }

    .entry-card,
    .notice-block,
    .comments-area {
        padding: 1.5rem 1.3rem;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

    .rubric-tile {
        padding: 1.3rem 1.2rem;
    }

    .faq-item > summary {
        font-size: 1.02rem;
        padding-right: 2rem;
    }
}

/* ==========================================================
   Служебное
========================================================== */

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

.archive-note {
    color: var(--muted);
    margin-bottom: 1.4rem;
}

.pager-inline {
    margin-top: 1.4rem;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--muted);
}

.pager-inline a {
    color: var(--accent);
    margin: 0 0.25rem;
}
