/*
Theme Name: dds_mersault-online.com
Author: Денис Крылов
Description: Тема для информационного сайта о массовых онлайн-играх и игровой культуре. Кибер-минимализм, фиолетово-холодная палитра.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mrsplay
*/

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

:root {
    --bg: #F7F5FC;
    --bg-alt: #EDE8F5;
    --head-bg: #1C182A;
    --head-bg-2: #2A1F42;
    --foot-bg: #0F0D17;
    --panel: #FFFFFF;
    --line: #D5CCE8;
    --line-soft: #C4B5D9;
    --ink: #1E1A2B;
    --accent: #6C4CE0;
    --accent-2: #00D4B6;
    --muted: #8A82A0;
    --font-head: "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
    --font-quote: Georgia, "Times New Roman", "PT Serif", serif;
    --shell: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.68;
    color: var(--ink);
    background-color: var(--bg);
    background-image: radial-gradient(rgba(108, 76, 224, 0.10) 1px, transparent 1px);
    background-size: 22px 22px;
    background-attachment: fixed;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: repeating-linear-gradient(to right, var(--accent) 0 5px, transparent 5px 10px);
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size .35s ease, color .2s ease;
}

a:hover,
a:focus {
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    letter-spacing: 0.02em;
    line-height: 1.18;
    color: var(--ink);
    margin: 0 0 .7em;
    text-align: left;
    hyphens: none;
}

h1 { font-size: 3.75rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.22rem; }

p {
    margin: 0 0 1.05em;
}

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

figure {
    margin: 1.5em 0;
}

code, pre {
    font-family: "Consolas", "Courier New", monospace;
    background: var(--bg-alt);
    border-radius: 6px;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent-2);
    border-radius: 6px;
    font-family: var(--font-quote);
    font-size: 1.1rem;
}

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

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

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

/* Фоновый «дрейфующий» blob */
.drift-blob {
    position: fixed;
    right: -120px;
    bottom: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .05;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    transition: transform .4s ease-out;
}

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

.site-main {
    display: block;
    padding: 2.4rem 0 3.6rem;
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

/* =========================================================
   2. Кнопки, маркеры, заголовки секций
   ========================================================= */

.btn,
.comment-actions a,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .98rem;
    letter-spacing: .04em;
    padding: .72rem 1.5rem;
    border-radius: 6px;
    border: 2px solid var(--accent);
    background: var(--accent);
    background-image: none;
    color: #fff;
    cursor: pointer;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .15s ease;
}

.btn:hover,
.comment-actions a:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #10101c;
    transform: translateY(2px);
}

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

.btn-ghost:hover {
    background: var(--accent-2);
    border-color: var(--accent);
    color: #10101c;
    transform: translateY(2px);
}

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

.btn-light:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #10101c;
}

/* Заголовок секции с «цифровым пунктиром» */
.sec-title {
    position: relative;
    padding-bottom: .55rem;
    margin-bottom: 1.6rem;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 96px;
    height: 3px;
    background-image: repeating-linear-gradient(to right, var(--accent) 0 24px, transparent 24px 36px);
}

.sec-title.on-dark,
.on-dark .sec-title {
    color: #F7F5FC;
}

/* Гексагональные маркеры списков */
.entry-content ul,
.widget ul,
.hex-list {
    list-style: none;
    padding-left: 0;
}

.entry-content ul li,
.widget ul li,
.hex-list li {
    position: relative;
    padding-left: 1.65rem;
    margin-bottom: .5rem;
}

.entry-content ul li::before,
.widget ul li::before,
.hex-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 11px;
    height: 12px;
    background: var(--accent);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.hex-list li::before {
    background: var(--accent-2);
}

.entry-content ol {
    padding-left: 1.4rem;
}

/* Пунктирный SVG-разделитель между секциями */
.wave-sep {
    height: 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='26' viewBox='0 0 240 26'%3E%3Cg fill='%23C4B5D9'%3E%3Ccircle cx='6' cy='16' r='2'/%3E%3Ccircle cx='26' cy='12' r='2'/%3E%3Ccircle cx='46' cy='9' r='2'/%3E%3Ccircle cx='66' cy='9' r='2'/%3E%3Ccircle cx='86' cy='12' r='2'/%3E%3Ccircle cx='106' cy='16' r='2'/%3E%3Ccircle cx='126' cy='19' r='2'/%3E%3Ccircle cx='146' cy='19' r='2'/%3E%3Ccircle cx='166' cy='16' r='2'/%3E%3Ccircle cx='186' cy='12' r='2'/%3E%3Ccircle cx='206' cy='9' r='2'/%3E%3Ccircle cx='226' cy='9' r='2'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    opacity: .8;
}

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

.site-head {
    position: relative;
    background: var(--head-bg);
    color: #EFEAFB;
    border-bottom: 1px solid rgba(108, 76, 224, .35);
    z-index: 2;
}

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

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

.brand-mark {
    flex: 0 0 auto;
    line-height: 0;
}

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    letter-spacing: .03em;
    color: #FFFFFF;
    line-height: 1.3;
    background-image: none;
}

.brand-name:hover {
    color: var(--accent-2);
}

.brand-desc {
    display: block;
    margin-top: .25rem;
    font-size: .78rem;
    color: #A79FC0;
    line-height: 1.45;
    max-width: 46ch;
}

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

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

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav li::before {
    display: none;
}

.main-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .05em;
    color: #EFEAFB;
    padding: .3rem 0;
    background-image: repeating-linear-gradient(to right, var(--accent-2) 0 5px, transparent 5px 10px);
}

.main-nav a:hover {
    color: var(--accent-2);
}

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

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

.crumbs {
    font-size: .84rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    letter-spacing: .02em;
}

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

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

/* =========================================================
   5. Раскладки
   ========================================================= */

.layout-single {
    display: block;
}

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

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

.layout-with-sidebar > .content-area,
.layout-with-sidebar > .sidebar {
    min-width: 0;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 16px rgba(213, 204, 232, .3);
    transition: box-shadow .3s ease, transform .3s ease;
}

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

.card:hover {
    box-shadow: 0 16px 26px rgba(213, 204, 232, .5);
    transform: translateY(-3px);
}

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

.card-thumb-wrap {
    padding: 12px 34px 0 12px;
}

.card-thumb-wrap a {
    display: block;
    background-image: none;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 6px;
}

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

.card-title {
    font-size: 1.16rem;
    margin: 0 0 .5rem;
}

.card-title a {
    color: var(--ink);
    background-image: repeating-linear-gradient(to right, var(--accent) 0 5px, transparent 5px 10px);
}

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

.card-meta {
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: .04em;
    margin-bottom: .6rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.card-meta::before {
    content: "";
    width: 9px;
    height: 10px;
    background: var(--accent-2);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    flex: 0 0 auto;
}

.card-excerpt {
    font-size: .93rem;
    color: #3A3350;
    margin-bottom: 1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: .88rem;
    letter-spacing: .05em;
    color: var(--accent);
}

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

.front-shell {
    width: min(85%, var(--shell));
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

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

/* --- Hero --- */
.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4.4rem;
    background: linear-gradient(135deg, var(--head-bg) 0%, var(--head-bg-2) 100%);
    color: #F7F5FC;
}

.fs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(0, 212, 182, .35) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px);
    background-size: 90px 90px, 130px 130px;
    background-position: 0 0, 45px 45px;
    animation: particles 26s linear infinite;
    opacity: .8;
}

@keyframes particles {
    from { background-position: 0 0, 45px 45px; }
    to   { background-position: 90px 180px, 175px 265px; }
}

.scan-line {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(108, 76, 224, .9);
    opacity: .75;
    animation: scan 7s linear infinite;
    pointer-events: none;
}

@keyframes scan {
    0%   { transform: translateY(0); opacity: 0; }
    12%  { opacity: .8; }
    88%  { opacity: .8; }
    100% { transform: translateY(420px); opacity: 0; }
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 46rem;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .8rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.fs-hero h1 {
    color: #FFFFFF;
    margin-bottom: 1.1rem;
}

.hero-sub {
    font-size: 1.1rem;
    color: #C7BFE0;
    margin-bottom: 1.8rem;
    max-width: 40rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
}

/* --- Сетка карточек-иконок --- */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.icon-card {
    background: rgba(237, 232, 245, .55);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.7rem 1.5rem;
    min-width: 0;
}

.icon-card .hex-icon {
    width: 46px;
    height: 52px;
    display: block;
    margin-bottom: 1rem;
}

.icon-card h3 {
    font-size: 1.2rem;
    margin-bottom: .5rem;
}

.icon-card p {
    font-size: .93rem;
    margin: 0;
    color: #443C5C;
}

/* --- Таймлайн --- */
.timeline {
    position: relative;
    padding-left: 2.6rem;
}

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

.tl-step {
    position: relative;
    margin-bottom: 1.8rem;
    min-width: 0;
}

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

.tl-step .tl-dot {
    position: absolute;
    left: -2.6rem;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tl-step h3 {
    font-size: 1.15rem;
    margin: 0 0 .35rem;
}

.tl-step p {
    margin: 0;
    font-size: .95rem;
    color: #443C5C;
}

/* --- Цитата --- */
.fs-quote {
    background: var(--head-bg);
    color: var(--bg);
    padding: 3.2rem 0;
    position: relative;
    overflow: hidden;
}

.fs-quote::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(108, 76, 224, .08), rgba(0, 212, 182, .08));
    pointer-events: none;
}

.quote-plate {
    position: relative;
    z-index: 2;
    border-left: 6px solid var(--accent-2);
    padding: 1.6rem 2rem;
    background: rgba(247, 245, 252, .04);
    border-radius: 0 10px 10px 0;
}

.quote-plate p {
    font-family: var(--font-quote);
    font-size: 1.72rem;
    line-height: 1.42;
    color: #F7F5FC;
    margin: 0 0 .8rem;
}

.quote-author {
    font-family: var(--font-head);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2);
}

/* --- Блок последних записей --- */
.fs-latest {
    padding: 3.6rem 0;
}

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.latest-head .sec-title {
    margin-bottom: .4rem;
}

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

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

.entry-title {
    font-size: 2.4rem;
    margin-bottom: .5rem;
}

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

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

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.entry-content {
    background: var(--panel);
    border-radius: 12px;
    padding: 1.9rem 2rem;
    box-shadow: 0 8px 16px rgba(213, 204, 232, .3);
}

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

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

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

.page-lead {
    margin-bottom: 1.4rem;
}

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

.no-posts {
    background: var(--panel);
    border-radius: 12px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 8px 16px rgba(213, 204, 232, .3);
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 .8rem;
    border: 2px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-head);
    font-size: .95rem;
    color: var(--ink);
    background-color: var(--panel);
    background-image: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}

.pager a.page-numbers:hover {
    background-color: var(--accent-2);
    border-color: var(--accent-2);
    color: #10101c;
    transform: translateY(2px);
}

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

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

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

.sidebar {
    position: relative;
}

.sidebar .widget {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.08rem;
    color: var(--ink);
    padding-bottom: .5rem;
    margin-bottom: .9rem;
    position: relative;
}

.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 80px;
    height: 3px;
    background-image: repeating-linear-gradient(to right, var(--accent) 0 20px, transparent 20px 30px);
}

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

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

.sidebar .widget ul {
    margin: 0;
    font-size: .94rem;
}

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

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

.site-foot {
    position: relative;
    overflow: hidden;
    background: var(--foot-bg);
    color: #C3BAD8;
    padding: 3rem 0 1.6rem;
    margin-top: 3rem;
}

.site-foot .scan-line {
    animation-duration: 11s;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.site-foot .widget {
    color: #C3BAD8;
    font-size: .93rem;
}

.site-foot .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    letter-spacing: .05em;
    padding-bottom: .5rem;
    margin-bottom: .9rem;
    position: relative;
}

.site-foot .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 76px;
    height: 3px;
    background-image: repeating-linear-gradient(to right, var(--accent-2) 0 18px, transparent 18px 28px);
}

.site-foot .widget a {
    color: #D9D2EA;
    background-image: repeating-linear-gradient(to right, var(--accent-2) 0 5px, transparent 5px 10px);
}

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

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

.site-foot .widget .post-date {
    display: block;
    font-size: .78rem;
    color: #8E85A8;
}

.foot-bottom {
    position: relative;
    z-index: 2;
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(213, 204, 232, .16);
    font-size: .84rem;
    color: #8E85A8;
}

/* =========================================================
   12. Формы поиска и комментарии
   ========================================================= */

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

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

.search-form input[type="search"] {
    width: 100%;
}

.search-form input[type="search"],
input[type="text"],
input[type="email"],
input[type="url"],
textarea {
    flex: 1 1 200px;
    min-width: 0;
    font-family: var(--font-body);
    font-size: .95rem;
    padding: .7rem .9rem;
    border: 2px solid var(--line);
    border-radius: 6px;
    background: var(--panel);
    color: var(--ink);
}

textarea {
    width: 100%;
    min-height: 150px;
}

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

.comments-area {
    margin-top: 2.4rem;
    background: var(--panel);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    box-shadow: 0 8px 16px rgba(213, 204, 232, .3);
}

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

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

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

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

.comment-inner {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem 1.2rem;
}

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

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

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

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

.comment-actions {
    margin-top: .6rem;
}

.comment-actions a {
    padding: .35rem .9rem;
    font-size: .82rem;
}

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

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

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

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--head-bg);
    color: #E6E0F5;
    border-top: 2px solid var(--accent);
    font-size: .88rem;
}

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

.cookie-banner a {
    color: var(--accent-2);
    background-image: repeating-linear-gradient(to right, var(--accent-2) 0 5px, transparent 5px 10px);
}

/* =========================================================
   14. 404
   ========================================================= */

.error-box {
    background: var(--panel);
    border-radius: 12px;
    padding: 2rem 2.2rem;
    box-shadow: 0 8px 16px rgba(213, 204, 232, .3);
}

.error-code {
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--accent);
    margin-bottom: .6rem;
}

.error-box .search-form {
    margin: 1.4rem 0;
}

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

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

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

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

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

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

    .front-shell {
        width: min(92%, var(--shell));
    }

    .drift-blob {
        width: 320px;
        height: 320px;
    }
}

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

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .head-inner {
        align-items: flex-start;
    }

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

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

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

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

    .main-nav a {
        display: block;
        padding: .5rem 0;
        border-bottom: 1px solid rgba(213, 204, 232, .14);
    }

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

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

    .fs-quote {
        padding: 2.6rem 0;
    }

    .quote-plate {
        padding: 1.2rem 1.3rem;
    }

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

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

    .card-thumb-wrap {
        padding: 10px 18px 0 10px;
    }

    .entry-content,
    .comments-area,
    .error-box {
        padding: 1.3rem 1.2rem;
    }

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

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

    .drift-blob {
        display: none;
    }

    .timeline {
        padding-left: 2.2rem;
    }

    .tl-step .tl-dot {
        left: -2.2rem;
        width: 24px;
        height: 24px;
        font-size: .78rem;
    }
}

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

    .scan-line,
    .fs-hero::before {
        animation: none;
    }
}
