/*
Theme Name: dds_zagsi.ru
Theme URI: https://zagsi.ru/
Author: Марина Крылова
Description: Тема для образовательного навигатора Тульской области: каталог школ, колледжей и вузов, справочные материалы, условия поступления.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: zagsedu
*/

/* ---------- Переменные ---------- */
:root {
    --bg: #F8F6FA;
    --bg-alt: #F0ECF5;
    --surface: #FFFFFF;
    --ink: #1A1530;
    --accent: #7C5CBF;
    --accent-dark: #5E3E9E;
    --mint: #A8E6CF;
    --muted: #8B83A0;
    --deep: #2D2640;
    --line: #E2D9F0;
    --shadow: rgba(176, 168, 196, 0.28);
    --shadow-strong: rgba(176, 168, 196, 0.5);
}

/* ---------- Служебные правила скрытия ---------- */
.cookie-banner[hidden] { display: none !important; }
.site-nav[hidden] { display: none !important; }
.faq-answer[hidden] { display: none !important; }

/* ---------- База ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: radial-gradient(rgba(226, 217, 240, 0.2) 1.4px, transparent 1.4px);
    background-size: 26px 26px;
    color: var(--ink);
    font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -180px;
    right: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, rgba(168, 230, 207, 0.5), rgba(168, 230, 207, 0) 68%);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 800;
    margin: 0 0 0.7em;
}

h1 { font-size: clamp(2rem, 5.4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }

p { margin: 0 0 1.1em; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover, a:focus {
    color: var(--accent-dark);
    text-decoration-style: solid;
}

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

ul, ol { padding-left: 1.3rem; }

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

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

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

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--bg-alt);
    border-radius: 6px;
}

code { padding: 0.1em 0.35em; }

pre { padding: 1rem; overflow-x: auto; }

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

.shell {
    position: relative;
    z-index: 1;
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.btn:hover, .btn:focus {
    transform: translateY(2px);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(94, 62, 158, 0.28);
    text-decoration: none;
}

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

.btn-ghost:hover, .btn-ghost:focus {
    background: transparent;
    color: var(--accent-dark);
    box-shadow: 0 8px 18px rgba(124, 92, 191, 0.2);
}

/* ---------- Шапка ---------- */
.site-header {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(226, 217, 240, 0.9);
}

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

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

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

.brand-logo, .brand-mark {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    display: block;
    border-radius: 12px;
}

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

.brand-title {
    display: block;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    max-height: 2.7em;
    overflow: hidden;
}

.brand-desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    max-height: 2.9em;
    overflow: hidden;
}

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

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.97rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

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

/* ---------- Раскладки ---------- */
.site-main { padding: 2.6rem 0 4rem; }

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

.layout-single { display: block; }

.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    margin-bottom: 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--line);
}

.breadcrumbs a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }

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

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    padding-left: 1.05rem;
    margin-bottom: 1.4rem;
}

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

.sec-lead {
    max-width: 62ch;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

/* ---------- Секции главной ---------- */
.front-section {
    position: relative;
    padding: 5rem 0;
}

.front-section--alt {
    padding: 5rem 2.4rem;
    border-radius: 18px;
    overflow: hidden;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(135deg, rgba(226, 217, 240, 0.5) 0 2px, transparent 2px 9px, rgba(226, 217, 240, 0.5) 9px 11px, transparent 11px 18px);
}

.front-section--alt::after {
    content: "";
    position: absolute;
    right: -60px;
    top: 40px;
    width: 320px;
    height: 1px;
    background: var(--accent);
    opacity: 0.35;
    transform: rotate(-45deg);
    transform-origin: right center;
    pointer-events: none;
}

/* Hero */
.fs-hero {
    position: relative;
    padding: 4.6rem 2.6rem;
    margin-top: 1rem;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #EFEAF7 0%, #F8F6FA 55%, #F1F8F5 100%);
}

.hero-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-plate {
    position: relative;
    z-index: 2;
    width: min(100%, 660px);
    padding: 2.4rem 2.2rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(176, 168, 196, 0.35);
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.32rem 0.8rem;
    border-radius: 6px;
    background: rgba(168, 230, 207, 0.45);
    color: #1F5B45;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-plate h1 { margin-bottom: 0.6rem; }

.hero-plate p {
    color: #453C60;
    font-size: 1.05rem;
    max-width: 52ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

/* Таймлайн */
.timeline {
    position: relative;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: linear-gradient(180deg, var(--accent) 0%, #8E86C9 55%, var(--mint) 100%);
    border-radius: 3px;
}

.timeline li {
    position: relative;
    width: 46%;
    margin-bottom: 2.2rem;
    padding: 1.4rem 1.5rem;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: 0 10px 26px var(--shadow);
    min-width: 0;
}

.timeline li:nth-child(odd) { margin-right: auto; }

.timeline li:nth-child(even) { margin-left: auto; }

.timeline li::after {
    content: "";
    position: absolute;
    top: 1.9rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--accent);
}

.timeline li:nth-child(odd)::after { right: -12.5%; }

.timeline li:nth-child(even)::after { left: -12.5%; }

.timeline li:last-child::after { border-color: #4BB48C; }

.tl-step {
    display: block;
    margin-bottom: 0.35rem;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--accent);
    text-transform: uppercase;
}

.timeline h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }

.timeline p { margin: 0; color: #4B4463; font-size: 0.95rem; }

/* Рубрикатор «Каталоги» */
.tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.66);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px var(--shadow);
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px var(--shadow-strong);
    color: var(--ink);
    text-decoration: none;
}

.tile svg { display: block; width: 40px; height: 40px; margin-bottom: 0.9rem; }

.tile-name {
    display: block;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.tile-note { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* Цитата */
.fs-quote {
    position: relative;
    padding: 3.2rem 2.8rem;
    border-radius: 18px;
    background: var(--deep);
    color: #F3F0FA;
    overflow: hidden;
}

.fs-quote::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--mint);
}

.quote-text {
    margin: 0 0 1.2rem;
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(1.25rem, 2.6vw, 1.8rem);
    line-height: 1.45;
    font-weight: 700;
    color: #FFFFFF;
    max-width: 46ch;
}

.quote-text em { color: var(--mint); font-style: normal; }

.quote-author {
    display: block;
    color: var(--mint);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
}

.quote-role { display: block; color: #B6AECC; font-size: 0.88rem; text-transform: none; letter-spacing: 0; font-weight: 400; }

/* Последние записи на главной */
.fs-latest .cards { margin-top: 0.6rem; }

.section-more { margin-top: 2rem; }

/* ---------- Карточки записей ---------- */
.cards { display: flex; flex-direction: column; gap: 1.4rem; }

.card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 28px var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 42px var(--shadow-strong);
}

.card-inner {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    align-items: flex-start;
    min-width: 0;
}

.card-thumb { flex: 0 0 140px; }

.card-thumb a { display: block; }

.card-thumb img {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

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

.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.card-title { font-size: 1.28rem; margin-bottom: 0.5rem; }

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

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

.card-excerpt { color: #4B4463; font-size: 0.97rem; }

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

.card-more { margin-top: 0.6rem; padding: 0.55rem 1.1rem; font-size: 0.9rem; }

/* ---------- Записи и страницы ---------- */
.entry {
    padding: 2.2rem 2.2rem 2.6rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 32px var(--shadow);
}

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

.entry-title { margin-bottom: 0.5rem; }

.entry-meta { color: var(--muted); font-size: 0.86rem; }

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

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

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

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

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

.entry-tags a { margin-right: 0.4rem; }

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

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

.archive-title { margin-bottom: 0.4rem; }

.no-posts {
    padding: 2rem;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 28px var(--shadow);
}

/* ---------- Пагинация ---------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pagination a.page-numbers:hover {
    transform: translateY(2px);
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
}

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

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

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }

.sidebar .widget {
    margin-bottom: 1.4rem;
    padding: 1.5rem 1.5rem 1.6rem;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: 0 10px 28px var(--shadow);
    color: var(--ink);
}

.sidebar .widget-title {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 0.85rem;
    font-size: 1.1rem;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    bottom: 0.2em;
    width: 3px;
    background: var(--accent);
}

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

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

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

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

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

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

.sidebar .widget p { color: #4B4463; font-size: 0.95rem; }

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
}

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

.search-form .search-field {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 92, 191, 0.15);
}

.search-form .search-submit {
    padding: 0.7rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.search-form .search-submit:hover { transform: translateY(2px); background: var(--accent-dark); }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 2rem;
    padding: 2rem 2.2rem 2.4rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 32px var(--shadow);
}

.comments-title { font-size: 1.3rem; }

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

.comment-list ol.children { list-style: none; padding-left: 1.4rem; }

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

.comment-inner {
    padding: 1.2rem 1.3rem;
    border-radius: 12px;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
}

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

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

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

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

.comment-reply { margin-top: 0.5rem; font-size: 0.9rem; }

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

.comment-form label { display: block; font-size: 0.9rem; font-weight: 700; 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: 6px;
    background: var(--bg);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.comment-form textarea { min-height: 150px; resize: vertical; }

.comment-form .form-submit input[type="submit"] {
    padding: 0.78rem 1.6rem;
    border: 1px solid var(--accent);
    border-radius: 6px;
    background: var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.comment-form .form-submit input[type="submit"]:hover { transform: translateY(2px); background: var(--accent-dark); }

/* ---------- 404 ---------- */
.error-box {
    padding: 3rem 2.4rem;
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 12px 32px var(--shadow);
    text-align: left;
}

.error-code {
    font-family: "Manrope", "Inter", Arial, sans-serif;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.6rem;
}

.error-box .search-form { margin: 1.6rem 0; max-width: 480px; }

/* ---------- Подвал ---------- */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    padding: 3.4rem 0 1.8rem;
    background: var(--deep);
    color: #D6D0E4;
}

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

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

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

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

.site-footer .widget-title {
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(168, 230, 207, 0.35);
    color: #FFFFFF;
    font-size: 1.05rem;
}

.site-footer .widget p { color: #C8C1DA; font-size: 0.93rem; }

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

.site-footer .widget li { padding: 0.42rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }

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

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

.site-footer .widget a:hover { color: var(--mint); text-decoration: underline; }

.site-footer .widget .post-date { display: block; color: #A79FC0; font-size: 0.8rem; }

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: #A79FC0;
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    padding: 1rem 1.6rem;
    background: rgba(45, 38, 64, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #EDE9F6;
    font-size: 0.9rem;
    box-shadow: 0 -8px 26px rgba(26, 21, 48, 0.25);
}

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

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

.cookie-accept {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--mint);
    border-radius: 6px;
    background: var(--mint);
    color: #1B3B2E;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease;
}

.cookie-accept:hover { transform: translateY(2px); background: #8FD9BC; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

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

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

    .site-nav {
        display: none;
        width: 100%;
        margin-top: 0.9rem;
    }

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

    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }

    .site-nav li { width: 100%; border-bottom: 1px solid var(--line); }

    .site-nav a { display: block; padding: 0.7rem 0; }

    .header-inner { flex-wrap: wrap; }

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

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

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

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

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

    .front-section--alt { padding: 2.6rem 1.4rem; }

    .fs-hero { padding: 2.6rem 1.4rem; }

    .hero-plate { padding: 1.6rem 1.3rem; }

    .fs-quote { padding: 2.2rem 1.4rem; }

    .entry { padding: 1.5rem 1.3rem 1.8rem; }

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

    .error-box { padding: 2rem 1.4rem; }

    .card { padding: 1.2rem; }

    .card-inner { flex-direction: column; gap: 1rem; }

    .card-thumb { flex: none; width: 100%; }

    .card-thumb img { width: 120px; height: 120px; margin: 0 auto; }

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

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

    .timeline::before { left: 8px; margin-left: 0; }

    .timeline li,
    .timeline li:nth-child(odd),
    .timeline li:nth-child(even) {
        width: auto;
        margin-left: 34px;
        margin-right: 0;
    }

    .timeline li:nth-child(odd)::after,
    .timeline li:nth-child(even)::after {
        left: -34px;
        right: auto;
    }

    .search-form { flex-direction: column; }
}
