/*
Theme Name: dds_belyakip.ru
Theme URI: https://belyakip.ru/
Author: Демина Антонина Демина Антонина
Author URI: https://belyakip.ru/
Description: Тема для информационного сайта о выборе жилья. Дизайн-концепция «Лаконичная навигация»: японский минимализм и швейцарская сетка в холодной цветовой температуре.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: skyloft
*/

/* =========================================================
   1. Переменные и сброс
   ========================================================= */

:root {
    --bg: #F4F7FA;
    --bg-alt: #EBF0F5;
    --surface: #FFFFFF;
    --side-bg: #F8FAFC;
    --ink: #1E293B;
    --muted: #6B7A8F;
    --accent: #0B5E7E;
    --accent-dark: #084B65;
    --accent-2: #2A9D8F;
    --line: #DCE3EB;
    --dark: #1E293B;
    --shell: min(92%, 1180px);
    --shell-narrow: min(85%, 1180px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(60deg, rgba(226, 232, 240, 0.15) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(-60deg, rgba(226, 232, 240, 0.15) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(0deg, rgba(226, 232, 240, 0.15) 0 1px, transparent 1px 30px);
    color: var(--ink);
    font-family: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

/* Скрытие через атрибут hidden — приоритет над авторским display */
[hidden] {
    display: none !important;
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 99;
}

.skip-link:focus {
    left: 0;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.16;
    color: var(--ink);
    margin: 0 0 .8em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.1rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: .45em;
}

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .92em;
    background: var(--bg-alt);
}

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

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: color .22s ease, text-decoration-thickness .22s ease, text-underline-offset .22s ease;
}

a:hover,
a:focus {
    color: var(--accent-dark);
    text-decoration-thickness: 4px;
    text-underline-offset: 1px;
}

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

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

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

/* Числовые буллиты для нумерованных списков в контенте */
.entry-content ol {
    list-style: none;
    counter-reset: skyloft-num;
    padding-left: 0;
    margin-left: 0;
}

.entry-content ol > li {
    counter-increment: skyloft-num;
    position: relative;
    padding-left: 4.2rem;
    padding-bottom: .6rem;
    margin-bottom: .4em;
}

.entry-content ol > li::before {
    content: counter(skyloft-num, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: -.15em;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.entry-content ol > li::after {
    content: "";
    position: absolute;
    left: 1.1rem;
    top: 1.9em;
    bottom: -.2em;
    width: 1px;
    background: var(--line);
}

.entry-content ol > li:last-child::after {
    display: none;
}

/* =========================================================
   3. Контейнеры и раскладки
   ========================================================= */

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.front-shell {
    width: var(--shell-narrow);
    margin-inline: auto;
}

.site-main {
    padding: 3.2rem 0 4.6rem;
}

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

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

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

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

.btn {
    display: inline-block;
    border-radius: 0;
    border: 2px solid var(--accent);
    padding: .78rem 1.65rem;
    font-weight: 700;
    font-size: .96rem;
    letter-spacing: .02em;
    text-decoration: none;
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-light {
    border-color: #fff;
    color: #fff;
}

.btn-light:hover,
.btn-light:focus {
    background: #fff;
    color: var(--accent);
}

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

.site-header {
    background: var(--surface);
    border-bottom: 1px solid rgba(220, 227, 235, 0.7);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}

.brand:hover {
    text-decoration: none;
    color: var(--accent);
}

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

.brand-logo {
    display: block;
    width: auto;
    height: 46px;
}

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

.brand-name {
    display: block;
    font-weight: 700;
    font-size: 1.06rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.brand-tagline {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: .15rem;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 0;
    color: var(--accent);
    font: inherit;
    font-size: .9rem;
    font-weight: 700;
    padding: .5rem 1rem;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.nav-toggle:hover {
    background: var(--accent);
    color: #fff;
}

.site-nav {
    display: none;
    width: 100%;
}

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

.site-nav ul {
    list-style: none;
    margin: .8rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: block;
    padding: .6rem .1rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .98rem;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    transition: color .22s ease;
}

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

/* =========================================================
   6. Хлебные крошки
   ========================================================= */

.crumbs {
    font-size: .86rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

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

.crumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.crumbs-sep {
    color: var(--line);
    margin: 0 .25rem;
}

/* =========================================================
   7. Заголовки секций
   ========================================================= */

.section-head {
    margin-bottom: 2.6rem;
}

.section-title {
    display: inline-block;
    margin: 0;
    font-size: 2.1rem;
}

.section-title::after {
    content: "";
    display: block;
    width: 66%;
    height: 2px;
    background: var(--accent);
    margin-top: 1.5em;
}

.section-lead {
    margin: 1.2rem 0 0;
    max-width: 62ch;
    color: var(--muted);
}

/* =========================================================
   8. Главная — секции
   ========================================================= */

.fs {
    padding: 120px 0;
}

.fs-alt {
    background: var(--bg-alt);
}

/* 8.1 Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--dark);
}

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

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.05);
    transform: scale(1.06);
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(11, 94, 126, 0.92) 0%, rgba(30, 41, 59, 0.78) 62%, rgba(30, 41, 59, 0.55) 100%);
}

.hero-blob {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 420px;
    height: 420px;
    background: var(--accent-2);
    opacity: .05;
    border-radius: 48% 52% 41% 59% / 55% 44% 56% 45%;
    filter: blur(6px);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    padding: 120px 0;
}

.hero-box {
    max-width: 40rem;
}

.hero-kicker {
    display: inline-block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #A9D6E5;
    margin-bottom: 1.4rem;
    border-left: 2px solid var(--accent-2);
    padding-left: .8rem;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    margin-bottom: .55em;
}

.hero-sub {
    color: #DCE7F0;
    font-size: 1.12rem;
    margin-bottom: 2rem;
    max-width: 34rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
}

.stat-item {
    min-width: 0;
}

.stat-num {
    display: block;
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: .7rem;
    font-size: .95rem;
    color: var(--muted);
    max-width: 22ch;
}

/* 8.3 Сетка карточек-рубрик */

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

.icon-card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    padding: 2.1rem 1.9rem;
    transition: border-color .25s ease;
}

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

.icon-card svg {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 1.3rem;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
}

.icon-card h3 {
    margin-bottom: .6em;
    font-size: 1.3rem;
}

.icon-card p {
    margin: 0;
    color: var(--muted);
    font-size: .96rem;
}

/* 8.4 Цитата */

.fs-quote {
    background: linear-gradient(90deg, var(--accent) 0%, var(--dark) 100%);
    padding: 96px 0;
}

.quote-plate {
    padding: 2.6rem 2.4rem;
    border-left: 2px solid var(--accent-2);
}

.quote-plate p {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin: 0 0 1.4rem;
}

.quote-author {
    display: block;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: #A9D6E5;
}

/* 8.5 Лента последних записей на главной */

.fs-latest .cards-grid {
    margin-bottom: 2.6rem;
}

.fs-more {
    text-align: left;
}

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

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

.cards-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    margin-bottom: 2.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border-radius: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-right: 1px solid #FFFFFF;
    border-bottom: 1px solid #FFFFFF;
    box-shadow: 0 2px 0 rgba(30, 41, 59, 0.12);
    overflow: hidden;
    transition: border-left-color .25s ease, transform .25s ease;
}

.card:hover {
    border-left-color: var(--accent);
    transform: translateY(-2px);
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb-wrap a {
    display: block;
    text-decoration: none;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 0 100%);
}

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

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .6em;
    line-height: 1.3;
}

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

.card-title a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

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

.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 {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .8rem;
}

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

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

.card-more {
    display: inline-block;
    font-size: .88rem;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 2px;
    transition: color .22s ease, border-color .22s ease;
}

.card-more:hover {
    color: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none;
}

/* Горизонтальная карточка (лента списка) */

.card-row {
    flex-direction: column;
}

.card-row .card-thumb-wrap {
    flex: none;
    width: 100%;
    position: static;
}

.card-row .card-thumb-wrap a {
    position: static;
    display: block;
}

/* =========================================================
   10. Одиночная запись и страница
   ========================================================= */

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

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

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    clip-path: polygon(0 0, calc(100% - 42px) 0, 100% 42px, 100% 100%, 0 100%);
}

.entry-content {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(30, 41, 59, 0.1);
    padding: 2.3rem 2.2rem;
}

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

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.6em;
}

.entry-content img {
    display: block;
    height: auto;
}

.entry-tags {
    margin-top: 1.8rem;
    font-size: .88rem;
    color: var(--muted);
}

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

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 2.4rem;
}

.post-nav a {
    display: block;
    padding: 1.1rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    transition: border-color .25s ease, color .25s ease;
}

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

.post-nav span {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}

.page-intro {
    margin-bottom: 2.2rem;
}

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--side-bg);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(30, 41, 59, 0.08);
    padding: 1.5rem 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    color: var(--ink);
    padding-bottom: .7rem;
    border-bottom: 2px solid var(--accent);
}

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

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

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

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

.sidebar .widget a:hover {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: .8rem;
    color: var(--muted);
    margin-top: .2rem;
}

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

/* =========================================================
   12. Форма поиска
   ========================================================= */

.search-form {
    display: flex;
    gap: .6rem;
    min-width: 0;
}

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

.search-form input[type="search"] {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 0;
    background: #fff;
    padding: .7rem .9rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
}

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

.search-form button {
    border: 2px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: .9rem;
    padding: .7rem 1.1rem;
    cursor: pointer;
    transition: background-color .25s ease;
}

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

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 2.8rem;
    text-align: center;
    padding: .55rem .85rem;
    border: 2px solid var(--line);
    border-radius: 0;
    background: var(--surface);
    color: var(--ink);
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

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

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

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

/* =========================================================
   14. Комментарии
   ========================================================= */

.comments-area {
    margin-top: 2.8rem;
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(30, 41, 59, 0.1);
    padding: 2.1rem 2.1rem 2.3rem;
}

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

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

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

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

.comment-inner {
    border-left: 2px solid var(--line);
    padding: .3rem 0 .3rem 1.2rem;
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .9rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

.comment-author {
    font-weight: 700;
}

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

.comment-text p {
    margin: 0 0 .8em;
}

.comment-actions a {
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

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

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

.comment-reply-title {
    font-size: 1.2rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    border: 2px solid var(--line);
    border-radius: 0;
    background: #fff;
    padding: .7rem .9rem;
    font: inherit;
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    border: 2px solid var(--accent);
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: .75rem 1.6rem;
    cursor: pointer;
    transition: background-color .25s ease;
}

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

.comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .88rem;
}

.comment-form .comment-form-cookies-consent label {
    font-weight: 400;
    margin: 0;
}

/* =========================================================
   15. 404 и поиск
   ========================================================= */

.notfound {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    box-shadow: 0 2px 0 rgba(30, 41, 59, 0.1);
    padding: 2.6rem 2.4rem;
}

.notfound-code {
    display: block;
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.notfound .search-form {
    margin: 1.6rem 0 1.8rem;
    max-width: 30rem;
}

.no-results {
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 2rem 2rem;
}

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

.site-footer {
    background: var(--dark);
    color: #C6D2E0;
    padding: 3.4rem 0 1.8rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding-bottom: 2.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.site-footer .widget {
    margin-bottom: 1.4rem;
    color: #C6D2E0;
}

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

.site-footer .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--accent-2);
}

.site-footer .widget p {
    color: #C6D2E0;
    font-size: .93rem;
    margin: 0 0 .9em;
}

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

.site-footer .widget li {
    margin: 0 0 .55rem;
    font-size: .93rem;
    color: #C6D2E0;
}

.site-footer .widget a {
    color: #C6D2E0;
    text-decoration: none;
}

.site-footer .widget a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.site-footer .widget .post-date {
    display: block;
    font-size: .8rem;
    color: #93A3B8;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.4rem;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.6rem;
    font-size: .85rem;
    color: #93A3B8;
}

.footer-bottom a {
    color: #C6D2E0;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: underline;
}

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

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

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

.cookie-banner a {
    color: #A9D6E5;
}

.cookie-accept {
    flex: 0 0 auto;
    border: 2px solid var(--accent-2);
    border-radius: 0;
    background: var(--accent-2);
    color: #0B2027;
    font: inherit;
    font-weight: 700;
    padding: .6rem 1.4rem;
    cursor: pointer;
    transition: background-color .25s ease, color .25s ease;
}

.cookie-accept:hover {
    background: transparent;
    color: #fff;
}

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

@media (min-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    /* Горизонтальная карточка ленты */
    .card-row {
        flex-direction: row;
    }

    .card-row .card-thumb-wrap {
        flex: 0 0 280px;
        width: auto;
        position: relative;
    }

    .card-row .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .card-row .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .card-row .card-body {
        flex: 1;
        min-width: 0;
    }
}

@media (min-width: 960px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: block;
        width: auto;
    }

    .site-nav ul {
        flex-direction: row;
        align-items: center;
        gap: 1.9rem;
        margin: 0;
    }

    .site-nav a {
        padding: .2rem 0;
        border-bottom: 2px solid transparent;
    }

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

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

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

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

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

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

    .hero-title {
        font-size: 2.6rem;
    }

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

    .fs {
        padding: 78px 0;
    }

    .hero-inner {
        padding: 84px 0;
    }

    .fs-quote {
        padding: 68px 0;
    }

    .quote-plate p {
        font-size: 1.9rem;
    }

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

    .layout-single {
        width: 100%;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.7rem;
    }

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

    .hero-title {
        font-size: 2.1rem;
    }

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

    .fs {
        padding: 60px 0;
    }

    .hero-inner {
        padding: 64px 0;
    }

    .fs-quote {
        padding: 54px 0;
    }

    .quote-plate {
        padding: 1.7rem 1.4rem;
    }

    .quote-plate p {
        font-size: 1.5rem;
    }

    .icon-card {
        padding: 1.6rem 1.4rem;
    }

    .entry-content,
    .comments-area,
    .notfound {
        padding: 1.7rem 1.4rem;
    }

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

    .card-body {
        padding: 1.3rem 1.3rem 1.5rem;
    }

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

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

    .search-form label {
        flex: 1 1 100%;
    }
}
