/*
Theme Name: dds_lmexam.com
Theme URI: https://lmexam.com/
Author: Денис Воронов
Description: Тема «Ледяная сетка» для аналитического сервиса по нейросетевой оценке жилья. Швейцарская типографика, холодная сине-стальная палитра, чертёжная сетка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lmexai
*/

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

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --bg-deep: #0B1D33;
    --bg-side: #EDF2F7;
    --ink: #1A2B3C;
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-2: #06B6D4;
    --muted: #64748B;
    --line: #D1DCE6;
    --line-soft: #B0C4D8;
    --on-dark: #FFFFFF;
    --on-dark-soft: #94A3B8;
    --font-head: "Space Grotesk", "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Source Sans Pro", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%232563EB' stroke-width='2' opacity='0.4'%3E%3Cpath d='M40 60 L160 30 L300 90 L360 200 L280 330 L120 350 L40 240 Z'/%3E%3Cpath d='M160 30 L200 180 L280 330'/%3E%3Cpath d='M40 60 L200 180 L360 200'/%3E%3Cpath d='M120 350 L200 180 L300 90'/%3E%3Cpath d='M40 240 L200 180'/%3E%3C/g%3E%3Cg fill='%232563EB'%3E%3Ccircle cx='40' cy='60' r='9'/%3E%3Ccircle cx='160' cy='30' r='9'/%3E%3Ccircle cx='300' cy='90' r='9'/%3E%3Ccircle cx='360' cy='200' r='9'/%3E%3Ccircle cx='280' cy='330' r='9'/%3E%3Ccircle cx='120' cy='350' r='9'/%3E%3Ccircle cx='40' cy='240' r='9'/%3E%3Ccircle cx='200' cy='180' r='12'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(0deg, rgba(209, 220, 230, 0.15) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(209, 220, 230, 0.15) 0 1px, transparent 1px 24px);
    background-repeat: no-repeat, repeat, repeat;
    background-position: right 24px top 80px, top left, top left;
    background-size: 400px 400px, auto, auto;
    background-attachment: fixed, scroll, scroll;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Полоса-подпись темы сверху страницы */
.topline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
    z-index: 999;
}

/* =========================================================
   2. Типографика
   ========================================================= */

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

h1 {
    font-size: 3.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.45em;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.18s ease;
}

a:hover,
a:focus {
    color: var(--accent-2);
    text-decoration: none;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--accent-2);
    background: var(--bg-side);
    font-size: 1.1rem;
}

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

code, pre {
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    font-size: 0.92em;
}

pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: #0F2238;
    color: #E2E8F0;
    border-radius: 2px;
}

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

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

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

/* Заголовки секций: линия слева + квадратный маркер */
.sec-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 2rem;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 40px;
    height: 3px;
    background: var(--accent);
}

.sec-title .mark {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    flex: 0 0 auto;
}

.entry-content h2 {
    position: relative;
    padding-left: 18px;
}

.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
}

.entry-content h3 {
    position: relative;
    padding-left: 16px;
}

.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    bottom: 0.3em;
    width: 3px;
    background: var(--accent);
}

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

.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 2px;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn-fill:hover,
.btn-fill:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

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

.btn-line:hover,
.btn-line:focus {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-light {
    background: transparent;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-light:hover,
.btn-light:focus {
    color: #FFFFFF;
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.btn-cyan {
    background: var(--accent-2);
    color: #06222B;
    border-color: var(--accent-2);
}

.btn-cyan:hover,
.btn-cyan:focus {
    background: #0891A8;
    border-color: #0891A8;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.25);
}

/* =========================================================
   4. Шапка
   ========================================================= */

.site-head {
    background: var(--bg-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 0;
    margin-top: 3px;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    flex-wrap: wrap;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--on-dark-soft);
    max-width: 560px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-size: 0.9rem;
    padding: 0.55rem 0.9rem;
    cursor: pointer;
}

.main-nav[hidden] {
    display: none !important;
}

.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
}

.main-nav a {
    color: #E2EAF3;
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 500;
    text-decoration: none;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

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

/* =========================================================
   5. Раскладки
   ========================================================= */

.site-main {
    display: block;
    padding-bottom: 4.5rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 3rem 6%;
    align-items: start;
}

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

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

.trail {
    font-size: 0.87rem;
    color: var(--muted);
    padding: 1.6rem 0 1.4rem;
}

.trail a {
    color: var(--muted);
    text-decoration: none;
}

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

.trail .sep {
    margin: 0 0.35rem;
    color: var(--line-soft);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(11, 29, 51, 0.08), 0 4px 12px rgba(11, 29, 51, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.card-thumb {
    display: block;
    position: relative;
    border-bottom: 3px solid var(--accent);
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 16px),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.08) 0 1px, transparent 1px 16px),
        var(--bg-alt);
    border-bottom: 3px solid var(--accent);
}

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

.card-title {
    font-size: 1.17rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

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

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

.card-excerpt {
    color: #33455A;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

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

.post-meta {
    font-size: 0.83rem;
    color: var(--muted);
    font-family: var(--font-head);
    margin-bottom: 0.6rem;
    letter-spacing: 0.01em;
}

.post-meta a {
    color: var(--muted);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--accent-2);
}

.meta-sep {
    color: var(--line-soft);
    margin: 0 0.2rem;
}

.card-more {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--accent);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.card-more:hover {
    color: var(--accent-2);
    border-bottom-color: var(--accent-2);
}

/* =========================================================
   7. Главная: секции
   ========================================================= */

.front-shell {
    width: min(85%, 1240px);
    margin-inline: auto;
}

.fs {
    padding: 80px 0;
}

.fs-alt {
    background: var(--bg-alt);
    background-image:
        repeating-linear-gradient(0deg, rgba(209, 220, 230, 0.35) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(209, 220, 230, 0.35) 0 1px, transparent 1px 24px),
        linear-gradient(90deg, #E8EEF4 0%, #DCE6F0 100%);
}

.fs-rule {
    border-top: 1px solid var(--line);
    margin: 0 10%;
}

.fs-dashed {
    border-top: 1px dashed var(--line-soft);
    margin: 0 10%;
}

.sec-note {
    color: var(--muted);
    max-width: 780px;
    margin-bottom: 2.2rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px dashed var(--line-soft);
}

/* --- Блок 1: hero --- */

.hero {
    background: var(--bg-deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(37, 99, 235, 0.1) 0 1px, transparent 1px 24px),
        repeating-linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0 1px, transparent 1px 24px);
    color: #FFFFFF;
    padding: 72px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero h1 {
    color: #FFFFFF;
    font-size: 3.2rem;
    margin-bottom: 1.1rem;
}

.hero-sub {
    color: var(--on-dark-soft);
    font-size: 1.1rem;
    max-width: 640px;
    margin-bottom: 2rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1.2rem;
}

.hero-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--accent-2);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

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

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Блок 2: статистика --- */

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-left: 1px solid var(--line);
}

.stat {
    min-width: 0;
    padding: 0.4rem 1.6rem;
    border-right: 1px solid var(--line);
}

.stat-num {
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--bg-deep);
    letter-spacing: -0.03em;
}

.stat-label {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* --- Блок «последние записи» --- */

.latest-head > * {
    min-width: 0;
}

.latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.latest-head .btn-line {
    margin-bottom: 1.6rem;
}

/* --- Блок 3: таймлайн --- */

.tl {
    position: relative;
    margin-top: 2.4rem;
    padding: 0.5rem 0;
}

.tl::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--line);
}

.tl-item {
    position: relative;
    width: 50%;
    min-width: 0;
    padding: 0 3rem 2.4rem 0;
    text-align: right;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.4rem 3rem;
    text-align: left;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 0.55rem;
    right: -4px;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
}

.tl-item:nth-child(even)::after {
    right: auto;
    left: -4px;
}

.tl-year {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.tl-title {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0.3rem 0 0.4rem;
}

.tl-text {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

/* --- Блок 4: CTA --- */

.fs-cta {
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
    background-image: linear-gradient(120deg, #0B1D33 0%, #102845 60%, #0B1D33 100%);
    color: #FFFFFF;
    padding: 3.2rem 2.4rem;
    border-radius: 4px;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.cta-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.4rem;
    align-items: center;
}

.cta-grid > div {
    min-width: 0;
}

.cta-title {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin: 0 0 0.8rem;
}

.cta-text {
    color: var(--on-dark-soft);
    margin: 0;
    max-width: 640px;
}

.cta-hex {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 300px;
    height: 300px;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}

/* =========================================================
   8. Записи и страницы
   ========================================================= */

.entry-head {
    margin-bottom: 1.8rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--line);
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.entry-thumb {
    margin: 0 0 1.8rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
    border-bottom: 3px solid var(--accent);
}

.entry-content {
    font-size: 1.03rem;
}

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

.entry-content > *:last-child {
    margin-bottom: 0;
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--accent-2);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
}

.entry-tags a:hover {
    border-color: var(--accent-2);
}

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1rem;
    margin-top: 2.4rem;
}

.post-nav a {
    display: block;
    padding: 1rem 1.2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.97rem;
}

.post-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-nav span {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.page-head {
    margin-bottom: 1.8rem;
}

.list-head {
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}

.list-head h1 {
    font-size: 2.4rem;
    margin-bottom: 0.3rem;
}

.list-head p {
    color: var(--muted);
    margin: 0;
}

.stack {
    display: grid;
    gap: 1.6rem;
}

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

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

.sidebar .widget {
    margin-bottom: 1.8rem;
    color: var(--ink);
}

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

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-left: 16px;
    position: relative;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
}

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

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

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

.sidebar a {
    color: var(--ink);
    text-decoration: none;
}

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

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

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

.site-foot {
    background: var(--bg-deep);
    color: #D7E1EC;
    padding: 3.4rem 0 2rem;
    border-top: 3px solid var(--accent);
}

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

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

.site-foot .widget {
    color: #D7E1EC;
    font-size: 0.95rem;
}

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    padding-left: 16px;
    position: relative;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
}

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

.site-foot li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.site-foot a {
    color: #BFD2E4;
    text-decoration: none;
}

.site-foot a:hover {
    color: var(--accent-2);
}

.site-foot .post-date {
    display: block;
    font-size: 0.8rem;
    color: var(--on-dark-soft);
}

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.87rem;
    color: var(--on-dark-soft);
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.8rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

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

/* =========================================================
   12. Форма поиска, комментарии, 404
   ========================================================= */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
}

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

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    padding: 0.7rem 1.2rem;
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0 0 0 1.2rem;
    border-left: 2px solid var(--line);
}

.comment-item {
    margin-bottom: 1.2rem;
}

.comment-body {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.1rem 1.3rem;
}

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

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

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

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

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

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

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

.comment-form textarea:focus,
.comment-form input:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form .submit {
    padding: 0.8rem 1.6rem;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.err-box {
    text-align: left;
    padding: 2.5rem 2.2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(11, 29, 51, 0.08);
}

.err-code {
    font-family: var(--font-head);
    font-size: 4.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.04em;
}

.err-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.nothing {
    padding: 2rem 2.2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(11, 29, 51, 0.97);
    border-top: 3px solid var(--accent-2);
    color: #D7E1EC;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 820px;
}

.cookie-banner a {
    color: var(--accent-2);
}

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.6rem 1.4rem;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 2px;
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}

.cookie-accept:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* =========================================================
   14. Служебное и адаптив
   ========================================================= */

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    font-size: 0.85rem;
    color: var(--muted);
}

@media (max-width: 960px) {
    body {
        background-image:
            repeating-linear-gradient(0deg, rgba(209, 220, 230, 0.15) 0 1px, transparent 1px 24px),
            repeating-linear-gradient(90deg, rgba(209, 220, 230, 0.15) 0 1px, transparent 1px 24px);
        background-repeat: repeat, repeat;
        background-position: top left, top left;
        background-attachment: scroll, scroll;
        background-size: auto, auto;
    }

    h1 {
        font-size: 2.4rem;
    }

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

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

    .hero {
        min-height: 0;
        padding: 56px 0;
    }

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

    .layout-single {
        width: 100%;
    }

    .front-shell {
        width: 92%;
    }

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

    .main-nav {
        flex: 1 1 100%;
        margin-top: 1rem;
    }

    .main-nav[hidden] {
        display: none !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
    }

    .main-nav a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .brand-desc {
        display: none;
    }

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

    .stat {
        padding: 1rem 1.2rem;
        border-bottom: 1px solid var(--line);
    }

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

    .cta-title {
        font-size: 2rem;
    }
}

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

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

    h2,
    .sec-title {
        font-size: 1.6rem;
    }

    .entry-title {
        font-size: 1.85rem;
    }

    .fs {
        padding: 52px 0;
    }

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

    .cta-title {
        font-size: 1.7rem;
    }

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

    .stat {
        border-right: none;
        padding: 0.9rem 0;
    }

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

    .tl::before {
        left: 4px;
    }

    .tl-item,
    .tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 2rem 1.8rem;
        text-align: left;
    }

    .tl-item::after,
    .tl-item:nth-child(even)::after {
        left: 0;
        right: auto;
    }

    .sidebar {
        padding: 1.3rem 1.2rem;
    }

    .err-box {
        padding: 1.8rem 1.4rem;
    }

    blockquote {
        padding: 1.1rem 1.2rem;
    }

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