/*
Theme Name: dds_lunaspheretoken.com
Description: Информационно-аналитическая тема о рынке недвижимости для держателей криптовалют. Glassmorphism и скандинавский минимализм, холодная сине-стальная палитра.
Author: Алексей Ветров
Version: 1.1
Text Domain: lsphere
*/

:root {
    --ice: #F4F7FA;
    --steel: #E8EEF4;
    --ink: #1B2A3A;
    --accent: #2E9CCA;
    --violet: #7B61FF;
    --muted: #6B7C8F;
    --panel: #EDF2F7;
    --glass: rgba(255, 255, 255, 0.68);
    --glass-line: rgba(255, 255, 255, 0.85);
    --shadow: 0 12px 30px rgba(27, 42, 58, 0.08);
    --shadow-hover: 0 18px 38px rgba(46, 156, 202, 0.20);
    --radius: 16px;
    --font-head: "Trebuchet MS", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* служебные правила для элементов, управляемых через hidden */
.cookie-banner[hidden] { display: none !important; }
.primary-nav[hidden] { display: none !important; }

* { 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(--ice);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='320' viewBox='0 0 360 320'%3E%3Cg fill='none' stroke='%232E9CCA' stroke-opacity='0.10' stroke-width='2'%3E%3Cpolygon points='90,10 160,50 160,130 90,170 20,130 20,50'/%3E%3Cpolygon points='250,60 320,100 320,180 250,220 180,180 180,100'/%3E%3Cpolygon points='90,180 160,220 160,300 90,340 20,300 20,220'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(46, 156, 202, 0.03) 0 1px, rgba(46, 156, 202, 0) 1px 13px);
    background-repeat: no-repeat, repeat;
    background-position: right -60px bottom -50px, 0 0;
    background-attachment: fixed, fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--violet));
    z-index: 60;
}

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

a { color: var(--accent); text-decoration-line: underline; text-decoration-color: rgba(46, 156, 202, 0.35); text-underline-offset: 3px; transition: color .2s ease, text-decoration-color .2s ease, text-shadow .2s ease; }
a:hover { text-decoration-color: var(--accent); text-shadow: 0 0 10px rgba(46, 156, 202, 0.35); }

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

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

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { padding: 2.2rem 0 3rem; flex: 1; }

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

.site-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 22px rgba(27, 42, 58, 0.06);
    padding-top: 3px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 0;
}

.brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; flex: 1 1 320px; }
.brand-link { display: block; line-height: 0; text-decoration: none; flex: 0 0 auto; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-mark { display: block; }
.brand-text { min-width: 0; display: flex; flex-direction: column; }
.brand-name {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    background: rgba(46, 156, 202, 0.12);
    border: 1px solid rgba(46, 156, 202, 0.4);
    border-radius: 12px;
    padding: 0.5rem 0.8rem;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--accent); margin: 0; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: -0.2rem; }
.nav-toggle-label { margin-left: 0.4rem; }

.primary-nav { flex: 0 1 auto; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.nav-list li { position: relative; }
.nav-list a {
    display: block;
    padding: 0.5rem 0.9rem;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 0.97rem;
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .22s ease;
}
.nav-list a:hover,
.nav-list .current-menu-item > a {
    background: rgba(46, 156, 202, 0.15);
    border-color: rgba(46, 156, 202, 0.4);
    color: var(--ink);
    text-shadow: none;
}
.nav-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 40;
}
.nav-list li:hover > .sub-menu { display: block; }

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

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 0.98rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-ghost {
    background: rgba(46, 156, 202, 0.15);
    border: 1px solid rgba(46, 156, 202, 0.4);
    color: var(--ink);
}
.btn-ghost:hover {
    background: rgba(46, 156, 202, 0.6);
    border-color: rgba(46, 156, 202, 0.75);
    color: #fff;
    box-shadow: 0 10px 24px rgba(46, 156, 202, 0.35);
    transform: translateY(-2px);
    text-shadow: none;
}
.btn-solid {
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
}
.btn-solid:hover {
    background: #2589b3;
    box-shadow: 0 10px 24px rgba(46, 156, 202, 0.4);
    transform: translateY(-2px);
    color: #fff;
    text-shadow: none;
}

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

.section-title,
.page-title,
.entry-title,
.comments-title,
.widget-title,
.cta-title {
    position: relative;
}

.section-title::before,
.page-title::before,
.entry-title::before {
    content: "";
    display: inline-block;
    width: 13px;
    height: 15px;
    margin-right: 0.6rem;
    vertical-align: middle;
    background: rgba(46, 156, 202, 0.3);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    transition: background .25s ease;
}
.fs:hover .section-title::before { background: var(--accent); }

.section-title::after,
.page-title::after,
.entry-title::after {
    content: "";
    display: block;
    height: 6px;
    margin-top: 0.7rem;
    background-image:
        radial-gradient(circle at 3px 3px, rgba(46, 156, 202, 0.45) 3px, transparent 3.2px),
        linear-gradient(90deg, rgba(46, 156, 202, 0.55), rgba(46, 156, 202, 0));
    background-size: 12px 6px, calc(100% - 16px) 1px;
    background-position: left center, left 16px center;
    background-repeat: no-repeat, no-repeat;
}

/* ---------- Раскладки ---------- */

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.fs {
    position: relative;
    padding: 2.8rem 2.2rem;
    border-radius: 18px;
    margin-bottom: 2.4rem;
}

.fs + .fs::before {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    top: -1.3rem;
    height: 4px;
    background-image: radial-gradient(circle, rgba(46, 156, 202, 0.45) 1.6px, transparent 1.7px);
    background-size: 13px 4px;
    background-repeat: repeat-x;
}

.fs-stats,
.fs-tiles { border-top: 1px solid rgba(255, 255, 255, 0.9); }

.fs-stats {
    background: radial-gradient(120% 140% at 50% 50%, #EEF3F8 0%, #E8EEF4 60%, #DFE7EF 100%);
}

.fs-tiles {
    background: rgba(255, 255, 255, 0.45);
    background-image: repeating-linear-gradient(45deg, rgba(46, 156, 202, 0.04) 0 1px, rgba(46, 156, 202, 0) 1px 13px);
}

/* Hero */

.fs-hero {
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background: var(--ink);
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
}
.hero-panel {
    position: relative;
    z-index: 2;
    margin: 2.6rem;
    padding: 2.2rem 2.2rem;
    max-width: 640px;
    min-width: 0;
    background: rgba(244, 247, 250, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(11, 20, 30, 0.35);
}
.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #BFE3F2;
    margin-bottom: 0.9rem;
}
.hero-title {
    color: #fff;
    font-size: 3.2rem;
    margin-bottom: 0.6rem;
}
.hero-lead { color: rgba(255, 255, 255, 0.9); font-size: 1.04rem; }

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

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.stat-cell {
    min-width: 0;
    padding: 0.4rem 1.2rem;
    text-align: center;
    position: relative;
}
.stat-cell + .stat-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 4px;
    background-image: radial-gradient(circle, rgba(46, 156, 202, 0.5) 1.5px, transparent 1.6px);
    background-size: 4px 11px;
    background-repeat: repeat-y;
}
.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}
.stat-label { display: block; color: var(--muted); font-size: 0.92rem; line-height: 1.5; margin-top: 0.4rem; }

/* Плитки направлений */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.6rem;
}
.tile {
    min-width: 0;
    padding: 1.6rem 1.6rem 1.4rem;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(46, 156, 202, 0.55);
}
.tile-hex {
    display: block;
    width: 34px;
    height: 38px;
    margin-bottom: 1rem;
    background: linear-gradient(140deg, rgba(46, 156, 202, 0.55), rgba(123, 97, 255, 0.45));
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.tile-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.tile-text { color: var(--muted); margin: 0; font-size: 0.97rem; }

/* CTA */

.fs-cta { padding: 0; background: none; }
.cta-frame {
    position: relative;
    background: linear-gradient(160deg, #1B2A3A 0%, #16232F 100%);
    border-radius: 18px;
    padding: 3rem 2.6rem;
    overflow: hidden;
}
.cta-frame::before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(190, 220, 240, 0.35);
    border-radius: 12px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
    pointer-events: none;
}
.cta-frame::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 260px;
    height: 240px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='240' viewBox='0 0 260 240'%3E%3Cg fill='none' stroke='%23BFE3F2' stroke-opacity='0.35' stroke-width='2'%3E%3Cpolygon points='70,10 130,44 130,112 70,146 10,112 10,44'/%3E%3Cpolygon points='180,70 240,104 240,172 180,206 120,172 120,104'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    opacity: 0.5;
    pointer-events: none;
}
.cta-title { position: relative; color: #fff; font-size: 2.1rem; }
.cta-text { position: relative; color: rgba(226, 238, 246, 0.86); max-width: 720px; }
.cta-frame .btn { position: relative; }

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(46, 156, 202, 0.5);
}
.card-thumb { position: relative; }
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.55);
    pointer-events: none;
}
.card-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}
.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-title { font-size: 1.22rem; margin-bottom: 0.4rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-shadow: none; }
.card-excerpt { color: var(--muted); font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    padding-top: 0.6rem;
    font-family: var(--font-head);
    font-size: 0.94rem;
}

.post-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.7rem; }
.post-meta a { color: var(--muted); }
.post-meta a:hover { color: var(--accent); }
.dot-sep {
    display: inline-block;
    width: 5px;
    height: 6px;
    margin: 0 0.35rem;
    background: rgba(123, 97, 255, 0.55);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

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

.breadcrumbs {
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    padding: 0.55rem 0.9rem;
    display: inline-block;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-line);
    border-radius: 12px;
}
.breadcrumbs a { color: var(--muted); text-decoration-color: rgba(107, 124, 143, 0.35); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: rgba(46, 156, 202, 0.6); margin: 0 0.25rem; }

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

.entry {
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 2.2rem 2.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-width: 0;
}
.entry-title { font-size: 2.4rem; }
.page-title { font-size: 2.4rem; margin-bottom: 1.6rem; }
.entry-thumb { margin: 1.4rem 0; }
.entry-thumb img { display: block; width: 100%; border-radius: 14px; box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.5); }

.entry-content h2 { font-size: 1.7rem; margin-top: 1.8rem; }
.entry-content h3 { font-size: 1.32rem; margin-top: 1.4rem; }
.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.45em; }
.entry-content img { border-radius: 12px; display: block; }

.entry-content blockquote {
    position: relative;
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--glass-line);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--ink);
    font-size: 1.06rem;
}
.entry-content blockquote::before,
.entry-content blockquote::after {
    content: "";
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    height: 4px;
    background-image: radial-gradient(circle, rgba(46, 156, 202, 0.5) 1.5px, transparent 1.6px);
    background-size: 11px 4px;
    background-repeat: repeat-x;
}
.entry-content blockquote::before { top: 0.6rem; }
.entry-content blockquote::after { bottom: 0.6rem; }
.entry-content blockquote p:last-child { margin-bottom: 0; }

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid rgba(27, 42, 58, 0.25);
    background: rgba(255, 255, 255, 0.6);
}
.entry-content th,
.entry-content td {
    border: 1px solid rgba(27, 42, 58, 0.22);
    padding: 0.7rem 0.9rem;
    text-align: left;
}
.entry-content th { background: rgba(46, 156, 202, 0.12); font-family: var(--font-head); }

.entry-tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 10px;
    background: rgba(123, 97, 255, 0.12);
    border: 1px solid rgba(123, 97, 255, 0.35);
    color: var(--ink);
    text-decoration: none;
}
.entry-tags a:hover { background: rgba(123, 97, 255, 0.28); text-shadow: none; }

.entry-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin: 1.8rem 0; }
.entry-nav-link {
    flex: 1 1 260px;
    min-width: 0;
    padding: 0.9rem 1.1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-line);
    border-radius: 12px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
}
.entry-nav-link:hover { border-color: rgba(46, 156, 202, 0.5); text-shadow: none; }
.entry-nav-next { text-align: right; }

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

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

.sidebar {
    min-width: 0;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 18px;
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow);
    color: var(--ink);
}
.sidebar .widget + .widget { margin-top: 1.8rem; }
.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(46, 156, 202, 0.3);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin-bottom: 0.6rem; padding-left: 1.1rem; position: relative; color: var(--ink); }
.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 8px;
    background: rgba(46, 156, 202, 0.55);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.sidebar a { color: var(--ink); text-decoration-color: rgba(46, 156, 202, 0.3); }
.sidebar a:hover { color: var(--accent); }
.sidebar .post-date { display: block; font-size: 0.82rem; color: var(--muted); }
.sidebar p { color: var(--ink); }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.2rem;
    align-items: center;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    background: rgba(46, 156, 202, 0.12);
    border: 1px solid rgba(46, 156, 202, 0.32);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    text-decoration: none;
    transition: all .2s ease;
}
.pager a.page-numbers:hover {
    background: rgba(46, 156, 202, 0.55);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 156, 202, 0.3);
    text-shadow: none;
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.pager .page-numbers.dots {
    background: none;
    border-color: transparent;
    color: var(--muted);
    min-width: auto;
}

.comment-list .navigation,
.comments-area .navigation { margin-top: 1.4rem; }

/* ---------- Формы ---------- */

.search-form { margin: 1.2rem 0; }
.search-label { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }
.search-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.search-input,
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.68rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(46, 156, 202, 0.35);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink);
}
.search-input:focus,
.comments-area textarea:focus,
.comments-area input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(46, 156, 202, 0.16);
}
.search-submit { flex: 0 0 auto; }

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 2.4rem;
    padding: 1.8rem 2rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.comments-title { font-size: 1.5rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.4rem; padding-left: 1rem; border-left: 1px solid rgba(46, 156, 202, 0.25); }
.comment-item {
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
    background: rgba(237, 242, 247, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 14px;
}
.comment-head { font-size: 0.88rem; color: var(--muted); margin-bottom: 0.4rem; }
.comment-author { font-family: var(--font-head); color: var(--ink); font-weight: 700; margin-right: 0.5rem; }
.comment-actions { font-size: 0.88rem; }
.comment-form label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form textarea { width: 100%; }
.comment-form input[type="submit"] {
    padding: 0.72rem 1.5rem;
    border-radius: 12px;
    background: var(--accent);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.98rem;
    cursor: pointer;
    transition: all .2s ease;
}
.comment-form input[type="submit"]:hover { background: #2589b3; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(46, 156, 202, 0.35); }

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

.error-block {
    padding: 2.6rem 2.2rem;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    text-align: center;
}
.error-code {
    display: block;
    font-family: var(--font-head);
    font-size: 4.6rem;
    line-height: 1;
    color: rgba(46, 156, 202, 0.55);
    margin-bottom: 0.6rem;
}
.error-block .page-title::before,
.error-block .page-title::after { display: none; }
.error-block .search-form { max-width: 520px; margin-left: auto; margin-right: auto; }

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

.site-footer {
    background: #1B2A3A;
    color: #D4E2ED;
    padding: 2.8rem 0 1.4rem;
    margin-top: 2rem;
    position: relative;
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image: radial-gradient(circle, rgba(46, 156, 202, 0.55) 1.6px, transparent 1.7px);
    background-size: 13px 4px;
    background-repeat: repeat-x;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.2rem;
}
.footer-col { min-width: 0; }
.site-footer .widget-title {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(46, 156, 202, 0.45);
}
.site-footer p,
.site-footer li,
.site-footer .widget { color: #D4E2ED; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; padding-left: 1.1rem; position: relative; }
.site-footer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 7px;
    height: 8px;
    background: rgba(123, 97, 255, 0.7);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.site-footer a { color: #BFE3F2; text-decoration-color: rgba(191, 227, 242, 0.35); }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: #FFFFFF; }
.footer-bottom {
    margin-top: 2.2rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(212, 226, 237, 0.18);
    font-size: 0.88rem;
    color: rgba(212, 226, 237, 0.75);
}

/* ---------- Cookie ---------- */

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem;
    background: rgba(27, 42, 58, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(46, 156, 202, 0.5);
}
.cookie-text { margin: 0; color: #E2EEF6; font-size: 0.92rem; max-width: 780px; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .layout-single,
    .front-wrap { width: 100%; }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .stat-cell:nth-child(3)::before { display: none; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .entry-title, .page-title { font-size: 1.9rem; }
    .hero-title { font-size: 2rem; }

    .header-inner { padding: 0.9rem 0; gap: 0.8rem; }
    .nav-toggle { display: inline-flex; }
    .primary-nav { flex: 1 1 100%; display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0.25rem; }
    .nav-list .sub-menu { position: static; display: block; box-shadow: none; background: none; border: none; padding-left: 0.8rem; }

    .fs { padding: 1.9rem 1.3rem; }
    .fs-hero { padding: 0; min-height: 360px; }
    .hero-panel { margin: 1.1rem; padding: 1.6rem 1.4rem; }
    .cta-frame { padding: 2rem 1.4rem; }
    .cta-frame::before { inset: 10px; }
    .entry, .comments-area, .error-block { padding: 1.5rem 1.3rem; }
    .breadcrumbs { padding: 0.5rem 0.8rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell + .stat-cell::before { display: none; }
    .tile-grid { grid-template-columns: minmax(0, 1fr); }
    .card-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; gap: 0.8rem; }
    .entry-nav-next { text-align: left; }
}
