/*
Theme Name: dds_zak-perry.com
Description: Информационная тема о музыкальных группах и проектах. Дизайн-концепция Lavender Tech: холодная лавандовая палитра, строгая типографика, ритмичная сетка.
Author: Руслан Аверин
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mixlab
*/

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

:root {
    --bg: #F4F6FA;
    --bg-alt: #E8ECF5;
    --dark: #1A1829;
    --text: #1E1C2A;
    --accent: #6C5B7B;
    --accent-deep: #3E3350;
    --accent-2: #B8A9C9;
    --soft: #D5CCE0;
    --muted: #8A8499;
    --line: #DCE1EC;
    --shadow: 0 10px 28px rgba(60, 48, 82, .08);
    --shadow-hi: 0 18px 38px rgba(60, 48, 82, .16);
    --font-head: Verdana, "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "Consolas", "SFMono-Regular", "Liberation Mono", monospace;
}

*,
*::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(to bottom, rgba(108, 91, 123, .06) 0 1px, rgba(108, 91, 123, 0) 1px 9px);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -160px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(213, 204, 224, .55) 0%, rgba(213, 204, 224, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

.page-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

/* Анимированное подчёркивание текстовых ссылок */
.site-main a:not(.btn):not(.card-thumb-link):not(.page-numbers),
.widget a,
.crumbs a {
    position: relative;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease, color .2s ease;
}

.site-main a:not(.btn):not(.card-thumb-link):not(.page-numbers):hover,
.widget a:hover,
.crumbs a:hover {
    background-size: 100% 1px;
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text);
    line-height: 1.22;
    letter-spacing: -.005em;
    margin: 0 0 .7em;
}

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.32rem;
}

h4 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: .4em;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: linear-gradient(135deg, var(--bg-alt), var(--soft));
    border-radius: 8px;
    font-size: 1.08rem;
}

blockquote::before {
    content: "//";
    display: block;
    margin-bottom: .5rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 1.4rem;
    letter-spacing: .06em;
}

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

code, pre {
    font-family: var(--font-mono);
    font-size: .95em;
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    background: var(--bg-alt);
    border-radius: 8px;
}

table {
    width: 100%;
    margin: 0 0 1.5rem;
    border-collapse: collapse;
    border: 1px solid var(--accent-2);
}

th, td {
    padding: .65rem .8rem;
    border: 1px solid var(--accent-2);
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-size: .95rem;
}

/* «Микшерный канал» — вертикальный индикатор у H2 */
.site-main h2:not(.widget-title),
.section-title {
    position: relative;
    padding-left: 1rem;
}

.site-main h2:not(.widget-title)::before,
.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(to top, var(--accent-deep), var(--accent-2));
}

/* Заголовок секции: текст + тонкая линия под ним на ~60% ширины */
.section-title {
    display: inline-block;
    margin-bottom: 2rem;
    padding-bottom: .55rem;
    font-size: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 1rem;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: var(--accent);
}

.section-lead {
    max-width: 46em;
    margin: -1rem 0 2.2rem;
    color: #4A4459;
}

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

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

.site-main {
    flex: 1;
    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;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.sidebar {
    min-width: 0;
    padding: 1.4rem 1.5rem;
    background: var(--bg);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.btn {
    display: inline-block;
    padding: .72rem 1.5rem;
    background: var(--accent);
    color: #F7F5FA;
    border: 0;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .95rem;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease, color .2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-2);
    color: var(--text);
    transform: translateY(2px);
}

.btn--ghost {
    background: transparent;
    color: var(--accent);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.btn--ghost:hover {
    background: var(--accent-2);
    color: var(--text);
}

.btn--light {
    background: var(--soft);
    color: var(--dark);
}

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

.site-header {
    position: relative;
    background: var(--dark);
    color: #EDEAF4;
}

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

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

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

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

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

.brand-name {
    display: block;
    margin: 0;
    color: #F2EFF7;
    font-family: var(--font-head);
    font-size: 1.06rem;
    line-height: 1.3;
    letter-spacing: .01em;
}

.brand-name a {
    color: inherit;
    background: none;
}

.brand-desc {
    display: block;
    margin-top: .3rem;
    max-width: 44em;
    color: #A79FBD;
    font-size: .82rem;
    line-height: 1.5;
}

.nav-toggle {
    display: none;
    padding: .55rem .9rem;
    background: transparent;
    color: #EDEAF4;
    border: 1px solid #443C60;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .9rem;
    cursor: pointer;
}

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

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: .25rem 0;
    color: #DFDAEC;
    font-family: var(--font-head);
    font-size: .93rem;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

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

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

.crumbs {
    margin: 0 0 1.8rem;
    color: var(--muted);
    font-size: .87rem;
}

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

.crumbs-sep {
    margin: 0 .35rem;
    color: var(--accent-2);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #FFFFFF;
    border: 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
    transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hi);
}

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

.card-thumb-link {
    display: block;
}

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

.card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--bg-alt), var(--soft));
}

.card-thumb-empty svg {
    width: 58%;
    max-width: 190px;
    height: auto;
}

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

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

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

.card-meta {
    margin-bottom: .7rem;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .04em;
}

.card-excerpt {
    flex: 1;
    margin-bottom: 1.1rem;
    font-size: .95rem;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-more {
    align-self: flex-start;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: .55rem .85rem;
    background: #FFFFFF;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .9rem;
    text-align: center;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

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

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

.pager .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

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

.fs {
    padding: 4.4rem 0;
}

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

.fs-inner {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
}

/* Блок 1 — hero */

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

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

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 24, 41, .93) 0%, rgba(26, 24, 41, .78) 45%, rgba(26, 24, 41, .35) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 5.4rem 0 5rem;
    text-align: left;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: .35rem .8rem;
    color: var(--soft);
    background: rgba(108, 91, 123, .45);
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 17em;
    margin: 0 0 1rem;
    color: #F6F4FA;
    font-size: 2.8rem;
}

.hero-text {
    max-width: 34em;
    margin: 0;
    color: #C6BFD8;
    font-size: 1.02rem;
}

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

.tl {
    position: relative;
    margin-top: 2.6rem;
    padding: .5rem 0;
}

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

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

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

.tl-item::after {
    content: "";
    position: absolute;
    top: .9rem;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: inset 0 0 0 3px var(--accent);
}

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

.tl-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1.3rem 1.5rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.tl-item:nth-child(odd) .tl-card {
    flex-direction: row-reverse;
    text-align: right;
}

.tl-icon {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
}

.tl-step {
    display: block;
    margin-bottom: .25rem;
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: .76rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.tl-title {
    margin: 0 0 .35rem;
    font-size: 1.06rem;
}

.tl-text {
    margin: 0;
    min-width: 0;
    color: #4A4459;
    font-size: .93rem;
}

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

/* Блок 3 — статистика */

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

.stat {
    min-width: 0;
    padding: 1.8rem 1.4rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
}

.stat-num {
    display: block;
    margin-bottom: .4rem;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: -.02em;
}

.stat-label {
    display: block;
    color: #4A4459;
    font-size: .92rem;
    line-height: 1.5;
}

.stats-note {
    margin: 1.6rem 0 0;
    color: var(--muted);
    font-size: .85rem;
}

/* Блок 4 — zigzag */

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

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

.zz-row--flip .zz-media {
    order: -1;
}

.zz-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.zz-body h3 {
    margin-bottom: .7rem;
    font-size: 1.35rem;
}

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

.zz-body li {
    position: relative;
    padding-left: 1.5rem;
    font-size: .96rem;
}

.zz-body li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--accent-2);
}

/* Последние записи на главной */

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

.fs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

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

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

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

.entry-meta {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .82rem;
    letter-spacing: .04em;
}

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

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

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

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

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

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

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

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

.post-nav a {
    display: inline-block;
    max-width: 46%;
    font-size: .93rem;
}

.page-title {
    margin-bottom: 1.6rem;
    font-size: 2.1rem;
}

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

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

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

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

.comment-list .children {
    margin: 1rem 0 0 1.6rem;
    padding: 0;
    list-style: none;
}

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

.comment-inner {
    padding: 1.2rem 1.4rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

.comment-author {
    font-family: var(--font-head);
    font-size: 1rem;
}

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

.comment-hold {
    color: var(--accent);
    font-size: .9rem;
}

.comment-actions {
    font-size: .88rem;
}

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

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

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

.comment-form .submit {
    display: inline-block;
    padding: .72rem 1.5rem;
    background: var(--accent);
    color: #F7F5FA;
    border: 0;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .95rem;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

.comment-form .submit:hover {
    background: var(--accent-2);
    color: var(--text);
    transform: translateY(2px);
}

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

.comments-area .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.6rem;
}

.comments-area .nav-links .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: .5rem .8rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .88rem;
    text-align: center;
}

.comments-area .nav-links .page-numbers.current {
    background: var(--accent);
    color: #F7F5FA;
    border-color: var(--accent);
}

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

.search-form {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.4rem;
}

.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: .65rem .8rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: .95rem;
    color: var(--text);
}

.search-form .search-submit {
    flex: 0 0 auto;
    padding: .65rem 1.2rem;
    background: var(--accent);
    color: #F7F5FA;
    border: 0;
    border-radius: 4px;
    font-family: var(--font-head);
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s ease, transform .15s ease;
}

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

/* =========================================================
   12. Виджеты
   ========================================================= */

.widget {
    margin-bottom: 1.8rem;
}

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

.widget-title {
    margin-bottom: .9rem;
    font-size: 1.05rem;
}

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

.widget li {
    padding: .45rem 0 .45rem 1.1rem;
    position: relative;
    font-size: .94rem;
    line-height: 1.5;
}

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--accent-2);
}

.widget .post-date {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: .76rem;
}

/* Сайдбар — светлый фон, тёмный текст */
.sidebar .widget-title {
    color: var(--text);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--text);
}

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

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

.sidebar .widget .post-date {
    color: var(--muted);
}

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

.site-footer {
    margin-top: auto;
    background: var(--dark);
    color: #C7C0DA;
}

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

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

.site-footer .widget-title {
    color: #F1EEF8;
    font-size: 1rem;
}

.site-footer .widget,
.site-footer .widget p,
.site-footer .widget li {
    color: #B7AFCC;
    font-size: .93rem;
}

.site-footer .widget a {
    color: #DCD6EC;
}

.site-footer .widget a:hover {
    color: #FFFFFF;
}

.site-footer .widget li::before {
    background: var(--accent-2);
}

.site-footer .widget .post-date {
    color: #8F86A8;
}

.footer-bottom {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid #2C2842;
    color: #8F86A8;
    font-size: .85rem;
}

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

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

.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;
    padding: 1rem 1.6rem;
    background: var(--dark);
    color: #DAD4EA;
    box-shadow: 0 -8px 26px rgba(26, 24, 41, .22);
}

.cookie-text {
    max-width: 60em;
    min-width: 0;
    margin: 0;
    font-size: .88rem;
}

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

.cookie-accept {
    flex: 0 0 auto;
}

/* =========================================================
   15. 404 и служебные
   ========================================================= */

.notfound {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem 0 2rem;
}

.notfound-code {
    margin: 0 0 .4rem;
    color: var(--accent-2);
    font-family: var(--font-head);
    font-size: 4.6rem;
    line-height: 1;
}

.no-results {
    padding: 1.6rem 1.8rem;
    background: #FFFFFF;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

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

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

.archive-desc {
    color: #4A4459;
}

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

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

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

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

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

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

    .fs-inner,
    .hero-inner {
        width: min(92%, 1180px);
    }

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

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

    .main-nav {
        flex: 1 0 100%;
    }

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

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

    .main-nav a {
        display: block;
        padding: .55rem 0;
        border-bottom: 1px solid #2C2842;
    }

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

@media (max-width: 600px) {
    .fs {
        padding: 3rem 0;
    }

    .hero-inner {
        padding: 3.4rem 0 3.2rem;
    }

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

    .entry-title,
    .page-title {
        font-size: 1.65rem;
    }

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

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

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

    .tl-item:nth-child(odd) .tl-card {
        flex-direction: row;
        text-align: left;
    }

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

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

    .zz-row--flip .zz-media {
        order: 0;
    }

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

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

    blockquote {
        padding: 1.3rem 1.2rem;
    }

    .sidebar {
        padding: 1.2rem 1.2rem;
    }

    .comment-list .children {
        margin-left: .8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
