/*
Theme Name: dds_music-com-bd.com
Theme URI: https://music-com-bd.com/
Author: Станислав Ершов
Description: Индивидуальная тема информационного сайта о цифровой музыке и mp3-контенте.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mcbd
*/

/* =========================================================
   1. Переменные
   ========================================================= */
:root {
    --bg: #F5F0FF;
    --bg-alt: #EBE0FF;
    --head-bg: #2B1B3D;
    --foot-bg: #1A1126;
    --side-bg: #FFFFFF;
    --text: #1E1428;
    --accent: #A855F7;
    --accent-dark: #8836D6;
    --accent-2: #D4A0FF;
    --muted: #8B7AA8;
    --line: #DCCDF2;
    --radius-card: 16px;
    --shell: min(92%, 1180px);
    --font-head: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* =========================================================
   2. Скрытые состояния (до основных блоков — см. A11)
   ========================================================= */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* =========================================================
   3. База
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cpath d='M300 40c130 0 240 100 250 230 10 140-90 280-230 290C170 570 50 460 42 320 34 170 160 40 300 40z' fill='%23D4A0FF' opacity='0.13'/%3E%3C/svg%3E"),
        radial-gradient(circle at 18px 34px, rgba(168, 85, 247, 0.20) 1.3px, transparent 1.4px),
        radial-gradient(circle at 96px 12px, rgba(168, 85, 247, 0.13) 1.1px, transparent 1.2px),
        radial-gradient(circle at 62px 108px, rgba(212, 160, 255, 0.30) 1.6px, transparent 1.7px);
    background-repeat: no-repeat, repeat, repeat, repeat;
    background-position: right -160px top 60px, 0 0, 0 0, 0 0;
    background-size: 620px 620px, 140px 140px, 140px 140px, 140px 140px;
    background-attachment: fixed, fixed, fixed, fixed;
}

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

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

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

p { margin: 0 0 1.1em; }

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

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

.site-main { display: block; }

.topline {
    height: 4px;
    background: linear-gradient(90deg, #2B1B3D 0%, #A855F7 55%, #D4A0FF 100%);
}

/* =========================================================
   4. Кнопки и текстовые ссылки
   ========================================================= */
.btn {
    display: inline-block;
    padding: 0.72em 1.9em;
    border-radius: 40px;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.26);
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(136, 54, 214, 0.38);
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.3);
}

.entry-content a,
.card-excerpt a,
.crumbs a,
.tl-body a {
    position: relative;
    color: var(--accent);
}

.entry-content a::after,
.card-excerpt a::after,
.crumbs a::after,
.tl-body a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1.5px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.entry-content a:hover::after,
.card-excerpt a:hover::after,
.crumbs a:hover::after,
.tl-body a:hover::after {
    transform: scaleY(1);
}

/* =========================================================
   5. Шапка
   ========================================================= */
.site-top {
    background: var(--head-bg);
    color: #F2EAFF;
    position: static;
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 0;
}

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

.brand-link { display: block; line-height: 0; }
.brand-logo { max-height: 62px; width: auto; display: block; }
.brand-mark { display: block; }

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
    font-family: var(--font-head);
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.25;
}

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

.brand-tagline {
    font-size: 0.82rem;
    color: #B7A4D4;
    line-height: 1.45;
    margin-top: 0.25rem;
    max-width: 46ch;
}

.primary-nav { min-width: 0; }

.primary-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li { margin: 0; }

.primary-menu a {
    display: inline-block;
    position: relative;
    padding: 0.35rem 0;
    font-family: var(--font-head);
    font-size: 0.96rem;
    font-weight: 600;
    color: #EDE2FB;
}

.primary-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s ease;
}

.primary-menu a:hover { color: #FFFFFF; }
.primary-menu a:hover::after { transform: scaleY(1); }

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

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    background: transparent;
    border: 2px solid rgba(212, 160, 255, 0.55);
    border-radius: 40px;
    color: #EDE2FB;
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-2);
}

.nav-toggle-bar + .nav-toggle-bar { margin-left: -12px; }
.nav-toggle-label { margin-left: 0.3rem; }

/* =========================================================
   6. Заголовки секций и разделители
   ========================================================= */
.sec-title {
    position: relative;
    margin: 0 0 0.5rem;
    padding-left: 0.95rem;
    font-size: 1.95rem;
    border-left: 3px solid var(--accent);
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0.95rem;
    top: -0.7rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

.sec-title::after {
    content: "";
    display: block;
    width: 62%;
    max-width: 420px;
    height: 2px;
    margin-top: 0.7rem;
    background: linear-gradient(90deg, var(--accent), rgba(168, 85, 247, 0));
}

.sec-lead {
    max-width: 70ch;
    margin: 0 0 2rem;
    color: var(--muted);
    font-size: 1.03rem;
}

.wave-divider {
    position: relative;
    height: 1px;
    width: var(--shell);
    margin-inline: auto;
    background: linear-gradient(90deg, rgba(168, 85, 247, 0) 0%, rgba(168, 85, 247, 0.55) 50%, rgba(168, 85, 247, 0) 100%);
}

.wave-divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: var(--accent-2);
}

/* =========================================================
   7. Главная
   ========================================================= */
.home .shell,
.home .wave-divider { width: min(85%, 1180px); }

.hero {
    background: linear-gradient(120deg, #2B1B3D 0%, #3A2160 52%, #4B2E86 100%);
    color: #F5EEFF;
    padding: 4.4rem 0 4.2rem;
}

.hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2.5rem;
}

.hero-text { flex: 1 1 380px; min-width: 0; }

.hero-title {
    font-size: 3.2rem;
    color: #FFFFFF;
    margin-bottom: 0.5em;
}

.hero-lead {
    font-size: 1.12rem;
    color: #E1D2F7;
    max-width: 62ch;
}

.hero-note {
    color: #B9A6D8;
    font-size: 0.98rem;
    max-width: 60ch;
    padding-top: 0.9rem;
    border-top: 1px dashed rgba(212, 160, 255, 0.4);
}

.hero-wave {
    flex: 0 1 400px;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    opacity: 0.85;
}

.block { padding: 4rem 0; }

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

/* Таймлайн */
.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 1.6rem;
    border-left: 2px solid var(--accent);
}

.tl-item {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 2rem;
    padding: 0 0 2.1rem 0.9rem;
    margin: 0;
}

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

.tl-item::before {
    content: "";
    position: absolute;
    left: -2.42rem;
    top: 0.35rem;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 3px solid var(--accent);
}

.tl-year {
    flex: 0 0 108px;
    font-family: var(--font-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.4;
}

.tl-body { flex: 1 1 340px; min-width: 0; }

.tl-head { font-size: 1.12rem; margin-bottom: 0.4em; }

.tl-body p { margin: 0; color: #3B2B4C; }

/* Статистика */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.5rem;
    border-left: 1px solid var(--muted);
    text-align: center;
}

.stat-cell:first-child { border-left: 0; }

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 0.6rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text);
}

/* Карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 1.9rem 1.8rem;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #FFFFFF;
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.topic-tile:hover {
    transform: scale(1.025);
    box-shadow: 0 16px 34px rgba(136, 54, 214, 0.3);
}

.topic-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    color: #FFFFFF;
}

.topic-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.24rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.topic-desc {
    display: block;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.latest-more { margin: 2.2rem 0 0; }

.empty-note { color: var(--muted); }

/* =========================================================
   8. Внутренние страницы: раскладка
   ========================================================= */
.page-wrap { padding: 2.2rem 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, 67fr) minmax(0, 27fr);
    gap: 3rem;
    align-items: start;
}

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

.page-title {
    font-size: 2.35rem;
    margin-bottom: 0.5em;
}

.crumbs {
    margin-bottom: 1.6rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.crumbs a { color: var(--accent); }
.crumbs-sep { margin: 0 0.35rem; color: var(--muted); }

.archive-note { color: var(--muted); margin-bottom: 1.6rem; }

/* =========================================================
   9. Карточки записей
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-card);
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(72, 44, 110, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(72, 44, 110, 0.18);
}

.card:hover::after { transform: scaleX(1); }

.card-thumb { display: block; }

.card-thumb a { display: block; }

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

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

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

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

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    padding-bottom: 0.8rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px dashed var(--accent-2);
    font-size: 0.85rem;
    color: var(--muted);
}

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

.card-excerpt { color: #3B2B4C; font-size: 0.96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding-top: 0.7rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.94rem;
    color: var(--accent);
}

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

/* =========================================================
   10. Контент записи и страницы
   ========================================================= */
.single-post,
.single-page,
.blog-intro {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 2.2rem 2.3rem;
    margin-bottom: 2.2rem;
    box-shadow: 0 6px 20px rgba(72, 44, 110, 0.08);
}

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

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

.entry-content h2 { font-size: 1.6rem; margin-top: 1.9em; }
.entry-content h3 { font-size: 1.28rem; margin-top: 1.6em; }

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

.entry-content blockquote {
    margin: 1.8em 0;
    padding: 1.5rem 1.7rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.14), rgba(212, 160, 255, 0.2));
    border-left: 4px solid var(--accent);
    color: #2A1D3A;
}

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

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

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

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

.entry-content code {
    background: var(--bg-alt);
    padding: 0.12em 0.4em;
    border-radius: 5px;
    font-size: 0.92em;
}

.entry-content pre {
    overflow-x: auto;
    padding: 1.1rem 1.3rem;
    border-radius: 12px;
    background: var(--head-bg);
    color: #EEE3FF;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--accent-2);
}

.post-tags a {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    border-radius: 40px;
    background: var(--bg-alt);
    color: var(--accent-dark);
    font-size: 0.85rem;
}

.post-tags a:hover { background: var(--accent); color: #FFFFFF; }

/* =========================================================
   11. Сайдбар и виджеты
   ========================================================= */
.sidebar {
    min-width: 0;
    align-self: start;
}

.sidebar .widget {
    background: var(--side-bg);
    border-radius: var(--radius-card);
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    box-shadow: 0 6px 20px rgba(72, 44, 110, 0.10);
    color: var(--text);
}

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

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

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

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

.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.84rem; }

/* Подвал */
.site-bottom {
    background: var(--foot-bg);
    color: #D8CBEB;
    padding: 3.2rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

.site-bottom .widget { margin-bottom: 1.5rem; color: #D8CBEB; }

.site-bottom .widget-title {
    position: relative;
    font-size: 1.05rem;
    color: #F4ECFF;
    padding-left: 0.75rem;
    margin-bottom: 0.9rem;
    border-left: 3px solid var(--accent-2);
}

.site-bottom .widget p { color: #C6B6DE; font-size: 0.95rem; }

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

.site-bottom .widget li {
    padding: 0.42rem 0;
    border-bottom: 1px dashed rgba(212, 160, 255, 0.22);
}

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

.site-bottom .widget a { color: #E4D8F5; }
.site-bottom .widget a:hover { color: var(--accent-2); }
.site-bottom .widget .post-date { display: block; color: #A492C4; font-size: 0.84rem; }

.foot-bottom {
    margin-top: 1.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(212, 160, 255, 0.18);
    font-size: 0.9rem;
    color: #A492C4;
}

/* =========================================================
   12. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.94rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

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

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

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

.comment-pager { margin-top: 1.4rem; }
.comment-pager a { margin-right: 0.7rem; }

/* =========================================================
   13. Формы поиска и комментарии
   ========================================================= */
.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.7rem;
}

.search-label { flex: 1 1 220px; min-width: 0; }

.search-label-text {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.search-field {
    width: 100%;
    padding: 0.68rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 40px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--text);
}

.search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.sidebar .search-form { display: block; }
.sidebar .search-submit { margin-top: 0.6rem; }

.comments-area {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 2rem 2.2rem;
    box-shadow: 0 6px 20px rgba(72, 44, 110, 0.08);
}

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

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

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

.comment-item {
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--line);
}

.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    margin-bottom: 0.5rem;
}

.comment-author { font-family: var(--font-head); font-weight: 700; }
.comment-date { color: var(--muted); font-size: 0.86rem; }
.comment-hold { color: var(--muted); font-size: 0.9rem; }
.comment-actions { font-size: 0.9rem; }
.comment-actions a { color: var(--accent); }

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    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 1rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.98rem;
    color: var(--text);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16);
}

.comment-form .submit {
    display: inline-block;
    padding: 0.72em 1.9em;
    border: 0;
    border-radius: 40px;
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.26);
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(136, 54, 214, 0.38);
}

.comment-reply-title { font-size: 1.25rem; }
.comments-closed { color: var(--muted); }

/* =========================================================
   14. 404
   ========================================================= */
.error-area {
    background: #FFFFFF;
    border-radius: var(--radius-card);
    padding: 2.6rem 2.4rem;
    box-shadow: 0 6px 20px rgba(72, 44, 110, 0.08);
}

.error-code {
    display: block;
    font-family: var(--font-head);
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-2);
}

.error-actions { margin-top: 1.6rem; }

/* =========================================================
   15. Cookie-баннер
   ========================================================= */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(26, 17, 38, 0.97);
    color: #E7DDF6;
    border-top: 2px solid var(--accent);
}

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

.cookie-text {
    margin: 0;
    flex: 1 1 320px;
    min-width: 0;
    font-size: 0.92rem;
    line-height: 1.55;
}

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

/* =========================================================
   16. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    body { font-size: 16px; }

    .hero { padding: 3.4rem 0; }
    .hero-title { font-size: 2.4rem; }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar { margin-top: 2.6rem; }

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

    .stat-cell {
        padding: 1.1rem 1rem;
        border-left: 1px solid var(--muted);
        border-top: 1px solid rgba(139, 122, 168, 0.4);
    }

    .stat-cell:nth-child(odd) { border-left: 0; }
    .stat-cell:nth-child(1),
    .stat-cell:nth-child(2) { border-top: 0; }

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

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

    .primary-nav {
        flex: 1 1 100%;
        display: none;
    }

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

    .primary-menu {
        flex-direction: column;
        gap: 0;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(212, 160, 255, 0.24);
    }

    .primary-menu li { width: 100%; }

    .primary-menu a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 1px dashed rgba(212, 160, 255, 0.2);
    }
}

@media (max-width: 600px) {
    .home .shell,
    .home .wave-divider { width: 92%; }

    .block { padding: 2.8rem 0; }

    .hero { padding: 2.8rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-lead { font-size: 1.02rem; }

    .sec-title { font-size: 1.55rem; }

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

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

    .single-post,
    .single-page,
    .blog-intro,
    .comments-area,
    .error-area { padding: 1.5rem 1.3rem; }

    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .topic-tile { padding: 1.5rem 1.3rem; }

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

    .stat-cell {
        border-left: 0;
        border-top: 1px solid rgba(139, 122, 168, 0.4);
        padding: 1.1rem 1.2rem;
    }

    .stat-cell:first-child { border-top: 0; }
    .stat-cell:nth-child(2) { border-top: 1px solid rgba(139, 122, 168, 0.4); }

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

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

    .timeline { padding-left: 1.1rem; }
    .tl-item { padding-left: 0.7rem; }
    .tl-item::before { left: -1.92rem; }
    .tl-year { flex: 0 0 100%; }

    .entry-content blockquote { padding: 1.2rem 1.2rem; }

    .cookie-inner { padding: 0.9rem 0; }
}
