/*
Theme Name: dds_nhandinhmoingay.com
Author: Михаил Нестеров
Description: Тема для информационного сайта о футболе, новостях и аналитике. Lavender tech с элементами японского минимализма.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: nhdm
*/

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

:root {
    --bg: #f4f2f9;
    --bg-alt: #eae6f2;
    --surface: #ffffff;
    --line: #d6cee8;
    --ink: #1e1a2b;
    --accent: #7c5cbf;
    --accent-soft: #b8a0e6;
    --muted: #9a8ab0;
    --footer-bg: #1a1726;
    --pattern: #c4b5d4;
    --font-head: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Work Sans", "Inter", "Segoe UI", Roboto, 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: repeating-linear-gradient(
        45deg,
        rgba(196, 181, 212, 0.28) 0,
        rgba(196, 181, 212, 0.28) 1px,
        transparent 1px,
        transparent 40px
    );
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover,
a:focus {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-underline-offset: 4px;
}

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

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--surface);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: #2c2540;
}

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

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

pre {
    background: #201b30;
    color: #efeaf8;
    padding: 1.1rem 1.3rem;
    border-radius: 8px;
    overflow-x: auto;
}

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

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

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

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.4rem 0;
}

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

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

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

.btn,
.btn-ghost {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding: 0.72rem 1.5rem;
    border-radius: 6px;
    border: 1px solid var(--accent);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

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

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(184, 160, 230, 0.22);
    color: var(--accent);
    text-decoration: none;
}

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

.site-head {
    background: var(--surface);
    border-bottom: 1px solid rgba(214, 206, 232, 0.75);
}

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

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

.brand-logo,
.brand-mark {
    flex: 0 0 auto;
}

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

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

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

.brand-name {
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ink);
    display: block;
}

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

.brand-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.2rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.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 {
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

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

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

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

.layout-single {
    display: block;
}

.layout-single > .content-area {
    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.5rem;
    align-items: start;
}

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

.trail {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

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

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

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

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

.page-head h1 {
    position: relative;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 0.4rem;
}

.page-head .page-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--surface);
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.9);
    transition: box-shadow 0.28s ease, transform 0.28s ease;
    position: relative;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 10px 14px 26px rgba(184, 160, 230, 0.55);
}

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

.card-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid transparent;
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
    pointer-events: none;
}

.card:hover .card-thumb::after {
    border-color: var(--accent-soft);
    box-shadow: inset 0 0 12px rgba(184, 160, 230, 0.55);
}

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

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

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

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

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

.card-excerpt {
    font-size: 0.94rem;
    color: #3d3552;
    margin-bottom: 1.1rem;
}

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

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

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

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

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

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-soft);
}

.card-link {
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

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

.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);
}

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

.entry {
    background: var(--surface);
    border-radius: 12px;
    padding: 2.2rem 2.4rem 2.6rem;
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.75);
    position: relative;
    overflow: hidden;
}

.entry::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
}

.entry-title {
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    margin-bottom: 0.6rem;
}

.entry-thumb {
    margin: 1.6rem 0 1.8rem;
    border-radius: 10px;
    overflow: hidden;
}

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

.entry-content h2,
.entry-content h3 {
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent);
    margin-top: 1.8em;
}

.entry-content img {
    border-radius: 8px;
}

.entry-content figure {
    margin: 1.6em 0;
}

.entry-content figcaption {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.4rem 0;
    padding: 0.2rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 6px;
}

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

.post-nav a {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    max-width: 46%;
}

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

.comments-area {
    margin-top: 2.4rem;
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem 2.2rem 2.2rem;
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.7);
}

.comments-area h2 {
    font-size: 1.35rem;
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent);
}

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

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

.comment-item {
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.comment-head {
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

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

.comment-date {
    color: var(--muted);
    margin-left: 0.5rem;
}

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

.comment-actions {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.comment-wait {
    font-size: 0.85rem;
    color: var(--muted);
}

.comment-respond {
    margin-top: 1.5rem;
}

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

.comment-form label {
    display: block;
    font-size: 0.88rem;
    font-family: var(--font-head);
    font-weight: 600;
    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.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.72rem 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

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

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    box-shadow: 4px 6px 16px rgba(214, 206, 232, 0.75);
    color: var(--ink);
}

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

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

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

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

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

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

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

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

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

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

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form .search-submit {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.65rem 1.2rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
}

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

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

.front-section {
    padding: 4.5rem 0;
    position: relative;
}

.front-section.is-alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(214, 206, 232, 0.7);
    border-bottom: 1px solid rgba(214, 206, 232, 0.7);
}

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

.section-head h2 {
    padding-left: 8px;
    border-left: 3px solid var(--accent);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.section-head p {
    color: var(--muted);
    font-size: 0.98rem;
    margin: 0;
    max-width: 68ch;
    padding-left: 11px;
}

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

.fs-hero {
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 62%;
    min-width: 0;
}

.hero-inner h1 {
    font-size: 3.5rem;
    line-height: 1.06;
    margin-bottom: 1.2rem;
}

.hero-lead {
    font-size: 1.08rem;
    color: #3d3552;
    max-width: 56ch;
    margin-bottom: 2rem;
}

.hero-blob {
    position: absolute;
    right: -60px;
    bottom: -120px;
    width: 460px;
    height: 460px;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

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

.timeline {
    position: relative;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--accent);
}

.tl-item {
    position: relative;
    margin-bottom: 1.8rem;
    background: var(--surface);
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.75);
    min-width: 0;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
}

.front-section.is-alt .tl-item::before {
    background: var(--bg-alt);
}

.tl-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.tl-item h3 {
    font-size: 1.12rem;
    margin-bottom: 0.4rem;
}

.tl-item p {
    margin: 0;
    font-size: 0.95rem;
    color: #3d3552;
}

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

.fs-latest .card-grid {
    margin-bottom: 2rem;
}

.latest-more {
    text-align: center;
}

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

.stats-plate {
    background: linear-gradient(115deg, rgba(124, 92, 191, 0.92) 0%, rgba(184, 160, 230, 0.92) 100%);
    border-radius: 12px;
    padding: 3.2rem 2.6rem;
    color: #ffffff;
}

.stats-plate h2 {
    color: #ffffff;
    border-left: 3px solid #ffffff;
    padding-left: 8px;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.stats-plate .stats-lead {
    color: rgba(255, 255, 255, 0.86);
    max-width: 64ch;
    margin-bottom: 2.4rem;
}

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

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

.stat-num {
    font-family: var(--font-head);
    font-size: 2.9rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

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

.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    margin-bottom: 3.2rem;
}

.zz-row:last-child {
    margin-bottom: 0;
}

.zz-media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
    box-shadow: 8px 10px 20px rgba(214, 206, 232, 0.85);
}

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

.zz-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(26, 23, 38, 0.05) 0%, rgba(26, 23, 38, 0.55) 100%);
    pointer-events: none;
}

.zz-caption {
    position: absolute;
    left: 1.2rem;
    bottom: 1.1rem;
    z-index: 2;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(124, 92, 191, 0.85);
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
}

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

.zz-text h3 {
    font-size: 1.5rem;
    padding-left: 8px;
    border-left: 3px solid var(--accent);
    line-height: 1.4;
}

.zz-text p {
    color: #3d3552;
}

.zz-row.is-flipped .zz-media {
    order: 2;
}

.zz-row.is-flipped .zz-text {
    order: 1;
}

/* --- Акцентная плашка со скошенным углом --- */

.slant-plate {
    background: var(--surface);
    border-left: 4px solid var(--accent);
    border-radius: 0;
    padding: 1.6rem 2rem;
    margin-top: 2.6rem;
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0 100%);
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.75);
}

.slant-plate p {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: #2c2540;
    max-width: 80%;
}

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

.site-foot {
    background: var(--footer-bg);
    color: #d9d2e8;
    padding: 3.4rem 0 2rem;
    margin-top: 0;
}

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

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

.site-foot .widget {
    color: #d9d2e8;
    margin-bottom: 1.6rem;
}

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

.site-foot .widget-title {
    color: #ffffff;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-soft);
}

.site-foot .widget p {
    color: #c6bcda;
    font-size: 0.92rem;
}

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

.site-foot .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(214, 206, 232, 0.16);
    font-size: 0.92rem;
    color: #c6bcda;
}

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

.site-foot .widget a {
    color: #e3dcf1;
}

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

.site-foot .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: #9a8ab0;
}

.foot-bottom {
    border-top: 1px solid rgba(214, 206, 232, 0.16);
    padding-top: 1.4rem;
    font-size: 0.86rem;
    color: #9a8ab0;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #221d33;
    color: #e3dcf1;
    padding: 1rem 0;
    box-shadow: 0 -6px 20px rgba(26, 23, 38, 0.28);
}

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

.cookie-inner p {
    margin: 0;
    font-size: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.cookie-inner a {
    color: var(--accent-soft);
}

.cookie-accept {
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    border-radius: 6px;
    padding: 0.6rem 1.4rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    flex: 0 0 auto;
}

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

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

.notfound {
    background: var(--surface);
    border-radius: 12px;
    padding: 2.4rem 2.6rem;
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.75);
}

.notfound .code {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-soft);
    margin-bottom: 0.6rem;
}

.notfound .search-form {
    margin: 1.6rem 0;
    max-width: 460px;
}

.nothing {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 6px 8px 16px rgba(214, 206, 232, 0.75);
}

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .layout-single > .content-area {
        width: 100%;
    }

    .hero-inner {
        max-width: 100%;
    }

    .hero-inner h1 {
        font-size: 2.6rem;
    }

    .hero-blob {
        width: 320px;
        height: 320px;
        right: -90px;
        bottom: -90px;
    }

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

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

    .zz-row {
        gap: 1.8rem;
    }
}

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

    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }

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

    .main-nav {
        width: 100%;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--line);
        margin-top: 0.6rem;
    }

    .main-nav a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 0;
    }

    .site-main {
        padding: 1.8rem 0 3rem;
    }

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

    .fs-hero {
        padding: 3.4rem 0 3rem;
    }

    .hero-inner h1 {
        font-size: 2.1rem;
    }

    .section-head {
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .entry,
    .comments-area,
    .notfound {
        padding: 1.5rem 1.3rem 1.8rem;
    }

    .stats-plate {
        padding: 2.2rem 1.5rem;
    }

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

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

    .zz-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
        margin-bottom: 2.4rem;
    }

    .zz-row.is-flipped .zz-media {
        order: 0;
    }

    .zz-row.is-flipped .zz-text {
        order: 0;
    }

    .slant-plate {
        padding: 1.3rem 1.4rem;
        clip-path: none;
    }

    .slant-plate p {
        max-width: 100%;
    }

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

    .timeline {
        padding-left: 26px;
    }

    .tl-item::before {
        left: -26px;
        width: 12px;
        height: 12px;
    }

    .timeline::before {
        left: 5px;
    }

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