/*
Theme Name: dds_megadedektif.com
Theme URI: https://megadedektif.com/
Author: Алексей Нгуен
Description: Тема для информационно-сервисного портала о проверке истории и юридической чистоты квартир и новостях рынка недвижимости.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: domproof
*/

/* =========================================================
   1. Токены
   ========================================================= */
:root {
    --paper: #F7F9FA;
    --paper-alt: #EDF1F4;
    --ink: #1A2433;
    --night: #0F1B2D;
    --night-line: #1A2A3D;
    --copper: #C47A4A;
    --copper-dark: #A9633A;
    --indigo: #2E5A88;
    --mute: #7A8899;
    --line: #D6DEE5;
    --white: #FFFFFF;
    --shell: min(92%, 1180px);
    --wide: min(85%, 1120px);
}

/* =========================================================
   2. Сброс и база
   ========================================================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.78;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240' fill='none' stroke='%232E5A88' stroke-width='2' opacity='0.04'%3E%3Cpath d='M100 24 L100 8'/%3E%3Cpath d='M70 45 L100 25 L130 45'/%3E%3Cpath d='M60 48 Q100 36 140 48'/%3E%3Cpath d='M50 90 L100 62 L150 90'/%3E%3Cpath d='M42 93 Q100 78 158 93'/%3E%3Cpath d='M30 140 L100 104 L170 140'/%3E%3Cpath d='M20 143 Q100 124 180 143'/%3E%3Cpath d='M45 143 L45 200 L155 200 L155 143'/%3E%3Cpath d='M75 145 L75 200'/%3E%3Cpath d='M125 145 L125 200'/%3E%3Cpath d='M15 205 L185 205'/%3E%3C/svg%3E"),
        repeating-linear-gradient(to bottom, #E8EDF1 0, #E8EDF1 1px, rgba(255, 255, 255, 0) 1px, rgba(255, 255, 255, 0) 48px);
    background-repeat: no-repeat, repeat;
    background-position: right -30px bottom 10px, left top;
    background-size: 300px auto, auto;
    background-attachment: fixed, fixed;
}

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

figure {
    margin: 1.8rem 0;
}

a {
    color: var(--indigo);
    text-decoration: none;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease, color .2s ease;
}

a:hover,
a:focus {
    background-size: 100% 1px;
    color: var(--copper-dark);
}

p {
    margin: 0 0 1.15em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.22;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -0.01em;
    margin-top: 0;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.22rem; }
h5, h6 { font-size: 1.05rem; }

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

li { margin-bottom: .4em; }

blockquote {
    margin: 2rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--white);
    border-left: 3px solid var(--copper);
    color: var(--ink);
    font-size: 1.08rem;
}

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

code, pre {
    font-family: "Consolas", "Menlo", monospace;
    font-size: .94em;
    background: var(--paper-alt);
}

pre {
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

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

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

th {
    background: var(--paper-alt);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .86rem;
}

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.5rem 0;
}

.screen-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* =========================================================
   3. Контейнеры и раскладки
   ========================================================= */
.shell {
    width: var(--shell);
    margin-inline: auto;
}

.site-main {
    padding: 2.6rem 0 4rem;
}

.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);
    column-gap: 6%;
    align-items: start;
}

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

/* =========================================================
   4. Кнопки
   ========================================================= */
.btn {
    display: inline-block;
    position: relative;
    padding: .82rem 1.7rem;
    border-radius: 2px;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 600;
    background-image: none;
    transition: transform .22s ease, background-color .22s ease, color .22s ease, border-color .22s ease;
}

.btn::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 50%;
    width: 0;
    height: 1px;
    background: var(--copper);
    transform: translateY(-50%);
    transition: width .22s ease;
}

.btn:hover::before,
.btn:focus::before {
    width: 8px;
}

.btn:hover,
.btn:focus {
    transform: translateX(2px);
    background-size: 0 1px;
}

.btn-filled {
    background-color: var(--copper);
    color: var(--white);
    border: 1px solid var(--copper);
}

.btn-filled:hover,
.btn-filled:focus {
    background-color: var(--copper-dark);
    border-color: var(--copper-dark);
    color: var(--white);
}

.btn-ghost {
    background-color: transparent;
    color: var(--indigo);
    border: 1px solid var(--indigo);
}

.btn-ghost:hover,
.btn-ghost:focus {
    color: var(--copper-dark);
    border-color: var(--copper);
}

.btn-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .8);
}

.btn-light:hover,
.btn-light:focus {
    color: var(--white);
    border-color: var(--copper);
}

/* =========================================================
   5. Шапка
   ========================================================= */
.top {
    background: var(--night);
    color: #E6ECF2;
    background-image: repeating-linear-gradient(to bottom, var(--night-line) 0, var(--night-line) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 48px);
}

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

.brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    flex: 1 1 340px;
}

.brand-logo {
    width: 54px;
    height: auto;
    flex: 0 0 auto;
}

.brand-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

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

.brand-name {
    display: block;
    font-family: "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .1em;
    background-image: none;
    max-width: 48ch;
}

a.brand-name:hover,
a.brand-name:focus {
    color: var(--copper);
    background-size: 0 1px;
}

.brand-tag {
    display: block;
    margin-top: .5rem;
    font-size: .8rem;
    line-height: 1.6;
    color: #93A4B6;
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .45);
    color: var(--white);
    padding: .55rem .9rem;
    border-radius: 2px;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    color: #DDE5EE;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    padding-bottom: .3rem;
}

.main-nav a:hover,
.main-nav a:focus {
    color: var(--white);
}

.main-nav .current-menu-item > a {
    color: var(--copper);
}

/* =========================================================
   6. Хлебные крошки
   ========================================================= */
.trail {
    font-size: .8rem;
    color: var(--mute);
    text-transform: uppercase;
    letter-spacing: .1em;
    padding: 1.4rem 0 0;
}

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

.trail .sep {
    margin: 0 .5rem;
    color: var(--copper);
}

/* =========================================================
   7. Заголовки секций и разделители
   ========================================================= */
.sec-title {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.36rem;
    text-transform: uppercase;
    letter-spacing: .2em;
    margin: 0 0 1.8rem;
    line-height: 1.5;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    width: 3px;
    height: 2.1em;
    background: var(--copper);
}

.split {
    height: 1px;
    width: 80%;
    background: var(--line);
    border: 0;
    margin: 0;
}

/* =========================================================
   8. Главная — секции
   ========================================================= */
.front-section {
    padding: 4.6rem 0;
}

.front-section--alt {
    background: var(--paper-alt);
}

.front-inner {
    width: var(--wide);
    margin-left: auto;
    margin-right: auto;
}

/* 8.1 Hero */
.fs-hero {
    padding: 0;
    position: relative;
    overflow: hidden;
    background: var(--night);
}

.fs-hero-media {
    position: absolute;
    inset: 0;
}

.fs-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fs-hero-veil {
    position: absolute;
    inset: 0;
    background: rgba(15, 27, 45, .7);
    background-image: repeating-linear-gradient(to bottom, rgba(26, 42, 61, .6) 0, rgba(26, 42, 61, .6) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 48px);
}

.fs-hero-body {
    position: relative;
    z-index: 2;
    padding: 6.5rem 0 6rem;
}

.fs-hero-text {
    width: 55%;
    min-width: 0;
}

.fs-hero-kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .28em;
    color: #A9BACB;
    margin: 0 0 1.3rem;
}

.fs-hero h1 {
    color: var(--white);
    font-size: 3.2rem;
    margin: 0;
}

.fs-hero-rule {
    width: 96px;
    height: 2px;
    background: var(--copper);
    margin: 1.7rem 0;
}

.fs-hero-sub {
    color: #C6D2DE;
    font-size: 1.04rem;
    margin: 0 0 2.1rem;
}

/* 8.2 Статистика */
.fs-stats {
    position: relative;
    padding-left: 1.9rem;
}

.fs-stats::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--copper);
}

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-cell {
    min-width: 0;
    padding: .4rem 1.4rem;
    border-left: 1px solid var(--line);
}

.stat-cell:first-child {
    border-left: 0;
    padding-left: 0;
}

.stat-num {
    display: block;
    font-family: "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    color: var(--indigo);
    font-weight: 600;
}

.stat-cap {
    display: block;
    margin-top: .7rem;
    color: var(--mute);
    font-size: .88rem;
    line-height: 1.6;
}

/* 8.3 Чек-лист */
.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list li {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.15rem 0;
    border-bottom: 1px dashed var(--line);
    margin: 0;
    min-width: 0;
}

.check-list li:last-child {
    border-bottom: 0;
}

.check-mark {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border: 1px solid var(--copper);
    color: var(--copper);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    margin-top: .28rem;
}

.check-body {
    min-width: 0;
}

.check-body strong {
    display: block;
    font-family: "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
    letter-spacing: .04em;
    margin-bottom: .25rem;
}

.check-body span {
    color: var(--mute);
    font-size: .95rem;
}

/* 8.4 CTA */
.fs-cta {
    background: var(--night);
    background-image: repeating-linear-gradient(to bottom, var(--night-line) 0, var(--night-line) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 48px);
    padding: 3.4rem 3rem;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 2.5rem;
    align-items: center;
    justify-content: space-between;
}

.cta-text {
    min-width: 0;
    position: relative;
    z-index: 2;
    max-width: 62ch;
}

.cta-text h2 {
    color: var(--white);
    font-size: 2rem;
    margin: 0 0 1.2rem;
    text-transform: none;
}

.cta-text p {
    color: #C6D2DE;
    margin: 0 0 1.5rem;
}

.cta-mail {
    display: inline-block;
    color: var(--copper);
    letter-spacing: .06em;
    margin-bottom: 1.6rem;
}

.cta-mail:hover,
.cta-mail:focus {
    color: var(--copper);
}

.cta-decor {
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 300px;
    opacity: .06;
    z-index: 1;
    pointer-events: none;
}

.cta-decor svg {
    width: 100%;
    height: auto;
    display: block;
}

/* 8.5 Лента последних записей на главной */
.fs-latest .card-grid {
    margin-top: .6rem;
}

.fs-more {
    margin-top: 2.6rem;
}

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

.card-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.8rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    min-width: 0;
    transition: border-color .25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--copper);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 3;
}

.card:hover {
    border-color: var(--copper);
}

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

.card-thumb-wrap {
    position: relative;
    display: block;
    background: var(--paper-alt);
}

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.card-thumb-blank {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #E4EBF1 0%, #D8E2EB 100%);
}

.card-polaroid {
    background: var(--white);
    border-top: 1px solid var(--line);
    padding: .65rem 1.3rem;
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--mute);
}

.card-polaroid .tag-mark {
    color: var(--indigo);
    border-bottom: 1px solid var(--copper);
    padding-bottom: 2px;
    background-image: none;
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.6rem 1.7rem;
    min-width: 0;
}

.card-title {
    font-size: 1.16rem;
    margin: 0 0 .75rem;
    line-height: 1.35;
}

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

.card-title a:hover,
.card-title a:focus {
    color: var(--indigo);
}

.card-meta {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mute);
    margin-bottom: .9rem;
}

.card-excerpt {
    color: #4C5A6B;
    font-size: .95rem;
    flex: 1;
    min-width: 0;
}

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

.card-more {
    margin-top: 1.2rem;
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--indigo);
    align-self: flex-start;
}

/* =========================================================
   10. Записи и страницы
   ========================================================= */
.entry {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 2.6rem 2.8rem 3rem;
}

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

.entry-head h1 {
    font-size: 2.6rem;
    margin-bottom: .9rem;
}

.entry-meta {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mute);
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    align-items: center;
}

.entry-meta .meta-sep {
    width: 1px;
    height: 14px;
    background: var(--line);
    display: inline-block;
}

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

.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content > *:first-child {
    margin-top: 0;
}

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

.entry-tags {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mute);
}

.entry-tags a {
    color: var(--indigo);
    border-bottom: 1px solid var(--copper);
    padding-bottom: 2px;
    background-image: none;
    margin-right: .9rem;
}

.page-head h1 {
    font-size: 2.6rem;
    margin-bottom: 1.2rem;
}

.arch-head {
    margin-bottom: 2.2rem;
}

.arch-head h1 {
    font-size: 2.3rem;
    margin-bottom: .6rem;
}

.arch-head p {
    color: var(--mute);
}

/* =========================================================
   11. Сайдбар
   ========================================================= */
.sidebar {
    background: var(--white);
    border-left: 1px solid var(--line);
    padding: 1.9rem 1.7rem;
    min-width: 0;
    color: var(--ink);
}

.side-block {
    margin-bottom: 2.2rem;
}

.side-block:last-child {
    margin-bottom: 0;
}

.side-block-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .16em;
    margin: 0 0 1.1rem;
    color: var(--ink);
}

.side-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    width: 3px;
    height: 1.4em;
    background: var(--copper);
}

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

.sidebar li {
    padding: .6rem 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
    color: var(--ink);
}

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

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

.sidebar a:hover,
.sidebar a:focus {
    color: var(--copper-dark);
}

.sidebar .post-date {
    display: block;
    color: var(--mute);
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-top: .25rem;
}

.sidebar p {
    color: var(--ink);
    font-size: .95rem;
}

/* =========================================================
   12. Формы
   ========================================================= */
.search-form {
    display: flex;
    gap: .6rem;
    align-items: stretch;
}

.search-form label {
    flex: 1;
    min-width: 0;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: .72rem .9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: .95rem;
}

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--indigo);
}

input[type="submit"],
button[type="submit"] {
    padding: .72rem 1.4rem;
    border: 1px solid var(--copper);
    border-radius: 2px;
    background: var(--copper);
    color: var(--white);
    font-family: inherit;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--copper-dark);
    transform: translateX(2px);
}

/* =========================================================
   13. Комментарии
   ========================================================= */
.talks {
    margin-top: 2.6rem;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 2.2rem 2.4rem 2.6rem;
}

.talks-title {
    position: relative;
    padding-left: 1.3rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    margin: 0 0 1.6rem;
}

.talks-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    width: 3px;
    height: 1.5em;
    background: var(--copper);
}

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

.talk-list .children {
    list-style: none;
    padding-left: 1.6rem;
    border-left: 1px solid var(--line);
    margin-top: 1.2rem;
}

.talk-item {
    margin-bottom: 1.5rem;
}

.talk-body {
    border: 1px solid var(--line);
    padding: 1.2rem 1.4rem;
}

.talk-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}

.talk-author {
    font-weight: 600;
    letter-spacing: .04em;
}

.talk-date,
.talk-reply {
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--mute);
}

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

.talk-hold {
    color: var(--copper-dark);
    font-size: .9rem;
}

.comment-respond {
    border-top: 1px solid var(--line);
    padding-top: 1.6rem;
}

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

.comment-form label {
    display: block;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--mute);
    margin-bottom: .35rem;
}

/* =========================================================
   14. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .6rem .85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--indigo);
    font-size: .85rem;
    letter-spacing: .08em;
    background-image: none;
    transition: border-color .22s ease, color .22s ease, background-color .22s ease;
}

.pager .page-numbers:hover {
    border-color: var(--copper);
    color: var(--copper-dark);
}

.pager .page-numbers.current {
    background: var(--night);
    border-color: var(--night);
    color: var(--white);
}

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

/* =========================================================
   15. 404
   ========================================================= */
.nf {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 3rem 2.8rem;
    text-align: left;
}

.nf-code {
    font-family: "Futura", "Century Gothic", "Segoe UI", Arial, sans-serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--indigo);
    margin: 0 0 1rem;
}

.nf-code span { color: var(--copper); }

.nf-search {
    margin: 2rem 0;
    max-width: 420px;
}

/* =========================================================
   16. Подвал
   ========================================================= */
.foot {
    background: var(--night);
    background-image: repeating-linear-gradient(to bottom, var(--night-line) 0, var(--night-line) 1px, rgba(0, 0, 0, 0) 1px, rgba(0, 0, 0, 0) 48px);
    color: #C6D2DE;
    padding: 3.6rem 0 0;
    margin-top: 3rem;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.6rem;
    padding-bottom: 2.8rem;
}

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

.foot-block { margin-bottom: 1.8rem; }

.foot-block:last-child { margin-bottom: 0; }

.foot-block-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: .88rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: var(--white);
    margin: 0 0 1.1rem;
}

.foot-block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15em;
    width: 3px;
    height: 1.4em;
    background: var(--copper);
}

.foot p,
.foot li,
.foot .textwidget {
    color: #C6D2DE;
    font-size: .92rem;
}

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

.foot li {
    padding: .42rem 0;
    border-bottom: 1px solid rgba(214, 222, 229, .14);
}

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

.foot a {
    color: #DCE6F0;
}

.foot a:hover,
.foot a:focus {
    color: var(--copper);
}

.foot .post-date {
    display: block;
    color: #8B9DB0;
    font-size: .76rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.foot-line {
    border-top: 1px solid rgba(214, 222, 229, .16);
    padding: 1.4rem 0 1.8rem;
    font-size: .78rem;
    letter-spacing: .1em;
    color: #8B9DB0;
    text-transform: uppercase;
}

/* =========================================================
   17. Cookie-баннер
   ========================================================= */
.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--night);
    color: #D6E0EA;
    border-top: 2px solid var(--copper);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    flex-wrap: wrap;
    font-size: .88rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

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

.cookie-accept {
    background: var(--copper);
    color: var(--white);
    border: 1px solid var(--copper);
    border-radius: 2px;
    padding: .6rem 1.4rem;
    font-family: inherit;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.cookie-accept:hover {
    background: var(--copper-dark);
    transform: translateX(2px);
}

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

    h1 { font-size: 2.4rem; }

    .fs-hero { padding: 0; }

    .fs-hero h1 { font-size: 2.5rem; }

    .fs-hero-text { width: 78%; }

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

    .sidebar {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .layout-single { width: 100%; }

    .front-inner { width: var(--shell); }

    .fs-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.6rem 2rem;
    }

    .stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.8rem;
    }

    .stat-cell:nth-child(3) {
        border-left: 0;
        padding-left: 0;
    }
}

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

    .fs-hero { padding: 0; }

    .fs-hero h1 { font-size: 1.95rem; }

    .fs-hero-text { width: 100%; }

    .fs-hero-body { padding: 4rem 0 3.6rem; }

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

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        padding-top: 1rem;
    }

    .main-nav li {
        border-bottom: 1px solid rgba(214, 222, 229, .14);
    }

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

    .entry,
    .talks,
    .nf {
        padding: 1.6rem 1.3rem 1.9rem;
    }

    .entry-head h1,
    .page-head h1 { font-size: 1.85rem; }

    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

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

    .fs-stats { padding-left: 1.2rem; }

    .stat-cell {
        padding: .2rem .9rem;
    }

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

    .card-body { padding: 1.2rem 1.2rem 1.4rem; }

    .cta-decor { display: none; }

    .search-form { flex-wrap: wrap; }
}
