/*
Theme Name: dds_businka32.ru
Author: Анна Березина
Description: Тема для онлайн-школы рукоделия и декоративно-прикладного искусства businka32.ru.
Version: 1.1
Text Domain: busin32
*/

/* =========================================================
   1. Переменные и база
   ========================================================= */
:root {
    --bg: #F4F6FA;
    --bg-alt: #EAEEF5;
    --header: #1B1E2E;
    --footer: #0F111A;
    --panel: #FFFFFF;
    --ink: #1E2235;
    --accent: #A875C2;
    --accent-deep: #8E5BAB;
    --coral: #FFB4A2;
    --indigo: #7F9CF5;
    --muted: #8892A8;
    --line: #DCE2EC;
    --line-strong: #C8D0E0;
    --hover-bg: #F0F3FA;
    --head-font: "Jost", "Montserrat", "Futura", "Trebuchet MS", sans-serif;
    --text-font: "Inter", "Nunito", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--text-font);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(30, 34, 53, 0.03) 0 1px, transparent 1px 40px);
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -70px;
    width: 420px;
    height: 420px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231E2235' stroke-width='4'%3E%3Crect x='62' y='30' width='76' height='14'/%3E%3Crect x='62' y='156' width='76' height='14'/%3E%3Crect x='84' y='44' width='32' height='112'/%3E%3Cpath d='M84 60c14 6 32 2 32 12s-18 8-32 16 18 10 32 18-20 10-32 16'/%3E%3Ccircle cx='150' cy='120' r='16'/%3E%3C/g%3E%3C/svg%3E");
    display: none;
}

@media (min-width: 1200px) {
    body::after { display: block; }
}

.site-wrap { position: relative; z-index: 1; }

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

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

.entry-content a,
.widget-text a,
.crumbs a {
    background-image: linear-gradient(to right, var(--accent) 0 100%);
    background-repeat: repeat-x;
    background-size: 0% 2px;
    background-position: 0 100%;
    transition: background-size .28s ease, color .2s ease;
    padding-bottom: 2px;
}
.entry-content a:hover,
.widget-text a:hover,
.crumbs a:hover {
    background-size: 100% 2px;
    color: var(--accent-deep);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: .02em;
    margin: 2.2rem 0 1rem;
    font-weight: 600;
}

h1 { font-size: 3.8rem; letter-spacing: .01em; margin-bottom: 1.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

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

blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    font-style: italic;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--bg-alt);
    font-size: .92em;
}
pre { padding: 1rem 1.2rem; overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--line-strong);
}
th, td {
    border: 1px solid var(--line-strong);
    padding: .65rem .8rem;
    text-align: left;
}
th { background: var(--bg-alt); font-family: var(--head-font); }

[hidden] { display: none !important; }

/* =========================================================
   2. Контейнеры и раскладки
   ========================================================= */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.narrow {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.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: 3.2rem;
    align-items: start;
}
.layout-with-sidebar .content-area { min-width: 0; }

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .layout-single .content-area, .narrow { width: 100%; }
}

/* =========================================================
   3. Шапка
   ========================================================= */
.site-header {
    background: rgba(27, 30, 46, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #FFFFFF;
    border-bottom: 1px solid rgba(200, 208, 224, 0.14);
}

.thread-bar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--indigo) 52%, var(--coral) 100%);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: 620px;
}
.brand-mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; max-height: 60px; width: auto; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.02rem;
    line-height: 1.35;
    letter-spacing: .06em;
    color: #FFFFFF;
}
.brand-desc {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    line-height: 1.5;
    color: #B9C2D6;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, .35);
    color: #FFFFFF;
    font-family: var(--head-font);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .55rem .9rem;
    border-radius: 4px;
    cursor: pointer;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 1.7rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.site-nav a {
    color: #E4E8F2;
    font-family: var(--head-font);
    font-size: .96rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 2px dashed transparent;
    transition: color .2s ease, border-color .2s ease;
}
.site-nav a:hover { color: #FFFFFF; border-bottom-color: var(--accent); }
.site-nav .current-menu-item > a { color: var(--coral); }

@media (max-width: 960px) {
    .nav-toggle { display: inline-block; }
    .site-nav {
        flex-basis: 100%;
        display: none;
        padding-top: .8rem;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: .9rem; }
}

/* =========================================================
   4. Кнопки
   ========================================================= */
.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .95rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .85rem 1.7rem;
    border-radius: 4px;
    border: 1px solid transparent;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(168, 117, 194, .35);
    color: #FFFFFF;
}
.btn-ghost {
    background: transparent;
    border: 1px solid var(--indigo);
    color: var(--ink);
}
.btn-ghost:hover {
    background: var(--indigo);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(127, 156, 245, .32);
}

/* =========================================================
   5. Заголовки секций и декор
   ========================================================= */
.section-head { margin-bottom: 2.2rem; }
.section-head h2 {
    margin: 0;
    position: relative;
    padding-left: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 1.75rem;
}
.section-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform .3s ease;
}
.section-head h2:hover::before { transform: translateY(8px); }
.section-head .section-sub {
    margin: .9rem auto 0;
    max-width: 640px;
    text-align: center;
    color: var(--muted);
    font-size: .98rem;
}
.thread-line { display: block; margin-top: .8rem; }

.entry-content h2 {
    position: relative;
    padding-left: 1.1rem;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform .3s ease;
}
.entry-content h2:hover::before { transform: translateY(8px); }

.beads-divider {
    height: 6px;
    margin: 3.2rem 0;
    background-image: radial-gradient(circle, var(--line-strong) 0 2.5px, transparent 3px);
    background-size: 16px 6px;
    background-repeat: repeat-x;
    background-position: center;
}

/* =========================================================
   6. Хлебные крошки
   ========================================================= */
.crumbs {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    line-height: 1.9;
}
.crumbs a { color: var(--muted); }
.crumbs .sep { margin: 0 .35rem; color: var(--line-strong); }

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: transparent;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    border-left: 3px solid var(--indigo);
    padding: 0 0 1.2rem;
    transition: background .22s ease;
}
.card.is-featured { border-left-color: var(--accent); }
.card:hover { background: var(--hover-bg); }

.card-thumb {
    position: relative;
    overflow: hidden;
    margin: 0;
}
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
}
.card-thumb .veil {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(27, 30, 46, 0) 0%, rgba(27, 30, 46, .72) 100%);
}
.card-thumb--empty {
    aspect-ratio: 16 / 7;
    background: linear-gradient(135deg, #1B1E2E 0%, #2D2F44 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.1rem 1.1rem 0;
}
.card-meta {
    font-size: .8rem;
    color: var(--indigo);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-family: var(--head-font);
}
.card-title {
    font-size: 1.2rem;
    margin: .55rem 0 .7rem;
    position: relative;
    padding-bottom: .55rem;
}
.card-title a { color: var(--ink); }
.card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    border-bottom: 2px dashed var(--accent);
    transition: width .3s ease;
}
.card:hover .card-title::after { width: 64px; }
.card-excerpt { color: #47506A; font-size: .95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    display: inline-block;
    margin-top: .4rem;
    font-family: var(--head-font);
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-deep);
}
.card-more:hover { color: var(--ink); }

/* =========================================================
   8. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 3rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .55rem .8rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-family: var(--head-font);
    font-size: .95rem;
    color: var(--ink);
    background: var(--panel);
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.pager a.page-numbers:hover {
    transform: translateY(2px);
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}
.pager .page-numbers.dots {
    border: none;
    background: none;
    min-width: auto;
    color: var(--muted);
}

/* =========================================================
   9. Главная — блоки
   ========================================================= */
.front-section { padding: 4.2rem 0; }
.front-section.alt { background: var(--bg-alt); }

/* 9.1 Hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 0 5rem;
    background-color: #1B1E2E;
    color: #FFFFFF;
}
.fs-hero .hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 0;
}
.fs-hero .hero-veil {
    position: absolute;
    inset: 0;
    background: rgba(27, 30, 46, .6);
    z-index: 1;
}
.fs-hero .hero-blob {
    position: absolute;
    right: -80px;
    top: 8%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--accent);
    opacity: .38;
    filter: blur(70px);
    z-index: 2;
    pointer-events: none;
}
.fs-hero .shell { position: relative; z-index: 3; }
.hero-copy { max-width: 640px; }
.hero-copy h1 {
    color: #FFFFFF;
    margin: 0 0 1.2rem;
    letter-spacing: .04em;
}
.hero-tag {
    color: #DCE2EC;
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 2rem;
}
.hero-kicker {
    font-family: var(--head-font);
    font-size: .85rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 1.2rem;
}

.more-line { margin: 2.4rem 0 0; }

/* 9.2 Цитата */
.fs-quote {
    background: linear-gradient(135deg, #1B1E2E 0%, #2D2F44 100%);
    background-image: linear-gradient(135deg, #1B1E2E 0%, #2D2F44 100%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 40px);
    color: #FFFFFF;
    padding: 4.2rem 0;
}
.quote-plate {
    display: flex;
    gap: 1.8rem;
    align-items: flex-start;
    padding: 2.4rem 2.2rem;
}
.quote-thread {
    flex: 0 0 4px;
    align-self: stretch;
    background: linear-gradient(to bottom, var(--accent) 0%, var(--coral) 100%);
}
.quote-body { min-width: 0; }
.quote-body p {
    font-size: 2.2rem;
    line-height: 1.42;
    font-style: italic;
    margin: 0 0 1.4rem;
    color: #FFFFFF;
    font-family: var(--head-font);
    font-weight: 400;
}
.quote-sign {
    color: #9AA4BC;
    font-size: .92rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

@media (max-width: 600px) {
    .quote-plate { padding: 1.8rem 1.4rem; gap: 1.1rem; }
    .quote-body p { font-size: 1.4rem; }
}

/* 9.3 Пошаговый блок */
.steps { position: relative; padding: 1rem 0; }
.steps::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--indigo);
    opacity: .5;
}
.step {
    position: relative;
    width: 46%;
    margin-bottom: 2.6rem;
    padding: 1.5rem 1.6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    min-width: 0;
}
.step:nth-child(odd) { margin-right: auto; }
.step:nth-child(even) { margin-left: auto; }
.step h3 { margin: 0 0 .6rem; font-size: 1.15rem; }
.step p { margin: 0; font-size: .95rem; color: #47506A; }
.step .bead {
    position: absolute;
    top: 1.5rem;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--head-font);
    font-size: 1.1rem;
    box-shadow: 0 0 0 6px var(--bg-alt);
}
.step:nth-child(odd) .bead { right: -23px; }
.step:nth-child(even) .bead { left: -23px; background: var(--indigo); }

@media (max-width: 760px) {
    .steps::before { left: 22px; }
    .step { width: 100%; margin-left: 0; margin-right: 0; padding-left: 3.6rem; }
    .step .bead,
    .step:nth-child(odd) .bead,
    .step:nth-child(even) .bead { left: -1px; right: auto; width: 40px; height: 40px; top: 1.2rem; }
}

/* 9.4 Рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.2rem;
}
.topic-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    min-width: 0;
    aspect-ratio: 1 / 1;
    padding: 1.8rem 1.6rem;
    background: var(--panel);
    border: 1px solid var(--line);
    text-align: center;
    transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.topic-tile:hover {
    background: var(--bg-alt);
    border-color: var(--accent);
    transform: translateY(2px);
}
.topic-tile svg { display: block; }
.topic-tile span {
    font-family: var(--head-font);
    font-size: 1.1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
}

@media (max-width: 600px) {
    .topic-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .topic-tile { aspect-ratio: auto; padding: 2rem 1.4rem; }
    .front-section { padding: 3rem 0; }
    .fs-hero { padding: 3.6rem 0 3.2rem; }
    .fs-quote { padding: 3rem 0; }
}

/* =========================================================
   10. Записи и страницы
   ========================================================= */
.entry-header { margin-bottom: 1.6rem; }
.entry-title { margin-top: 0; font-size: 2.6rem; }
.entry-meta {
    font-size: .85rem;
    color: var(--muted);
    letter-spacing: .07em;
    text-transform: uppercase;
    font-family: var(--head-font);
}
.entry-thumb { margin: 0 0 2rem; }
.entry-thumb img { display: block; width: 100%; object-fit: cover; }
.entry-content img { display: block; }
.entry-tags {
    margin-top: 2.4rem;
    font-size: .88rem;
    color: var(--muted);
}
.entry-tags a {
    display: inline-block;
    margin-right: .9rem;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--indigo);
    color: var(--ink);
}
.entry-tags a:nth-child(2n) { border-bottom-color: var(--coral); }
.entry-tags a:nth-child(3n) { border-bottom-color: var(--accent); }

.page-title {
    font-size: 2.6rem;
    margin-top: 0;
}

/* =========================================================
   11. Сайдбар и виджеты
   ========================================================= */
.sidebar {
    background: var(--panel);
    border: 1px solid var(--line-strong);
    padding: 1.6rem 1.5rem;
    min-width: 0;
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.05rem;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--ink);
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--line);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li {
    padding: .55rem 0 .55rem 1rem;
    border-bottom: 1px dashed var(--line);
    position: relative;
    color: var(--ink);
    font-size: .95rem;
}
.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}
.sidebar li:last-child { border-bottom: none; }
.sidebar a { color: var(--ink); }
.sidebar a:hover { color: var(--accent-deep); }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar p { color: #47506A; font-size: .95rem; }

/* =========================================================
   12. Подвал
   ========================================================= */
.site-footer {
    background: var(--footer);
    color: #C3CBDC;
    padding: 3.4rem 0 1.8rem;
    margin-top: 3rem;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}
.site-footer .widget-title {
    font-family: var(--head-font);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #FFFFFF;
    margin: 0 0 1rem;
}
.site-footer p, .site-footer li { color: #C3CBDC; font-size: .93rem; }
.site-footer a { color: #DDE3EF; }
.site-footer a:hover { color: var(--coral); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: .4rem 0 .4rem 1rem; position: relative; }
.site-footer li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--indigo);
}
.site-footer .post-date { display: block; color: #8892A8; font-size: .8rem; }

.footer-contacts { margin-top: 1rem; font-size: .92rem; }
.footer-contacts a { color: var(--coral); }

.copyright {
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(200, 208, 224, .16);
    font-size: .85rem;
    color: #8892A8;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
}

/* =========================================================
   13. Формы поиска и комментариев
   ========================================================= */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.search-form {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}
.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: .75rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--panel);
    color: var(--ink);
    font-family: var(--text-font);
    font-size: .95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}
.search-form button { flex: 0 0 auto; }

.comments-area { margin-top: 3.4rem; }
.comments-title, .comment-reply-title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .1em;
}
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 1rem 0 0 1.6rem; padding: 0; }
.comment-item {
    border-left: 3px solid var(--indigo);
    background: var(--panel);
    padding: 1.2rem 1.4rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
}
.comment-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.comment-author { font-family: var(--head-font); letter-spacing: .05em; }
.comment-date { font-size: .82rem; color: var(--muted); }
.comment-text p { margin: 0 0 .6em; }
.comment-reply a {
    font-family: var(--head-font);
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent-deep);
}
.comment-wait { color: var(--muted); font-size: .88rem; }

.comment-form label {
    display: block;
    font-size: .85rem;
    letter-spacing: .07em;
    text-transform: uppercase;
    font-family: var(--head-font);
    margin-bottom: .35rem;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    background: var(--panel);
    font-family: var(--text-font);
    font-size: .95rem;
    color: var(--ink);
}
.comment-form textarea { min-height: 160px; resize: vertical; }
.comment-form .submit {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .95rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .85rem 1.7rem;
    border-radius: 4px;
    border: none;
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease;
}
.comment-form .submit:hover {
    transform: translateY(2px);
    box-shadow: 0 6px 16px rgba(168, 117, 194, .35);
}

/* =========================================================
   14. 404 и поиск
   ========================================================= */
.notfound { padding: 1rem 0 2rem; }
.notfound .code {
    font-family: var(--head-font);
    font-size: 5.4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: .06em;
}
.notfound .search-form { margin: 1.8rem 0; max-width: 460px; }

/* =========================================================
   15. 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.4rem;
    flex-wrap: wrap;
    background: rgba(15, 17, 26, .97);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #DDE3EF;
    padding: 1.1rem 1.6rem;
    border-top: 4px solid transparent;
    border-image: linear-gradient(90deg, var(--accent), var(--indigo), var(--coral)) 1;
    font-size: .9rem;
}
.cookie-banner p { margin: 0; min-width: 0; }
.cookie-banner a { color: var(--coral); }

@media (max-width: 600px) {
    .cookie-banner { padding: 1rem 1.1rem; }
    h1 { font-size: 2.3rem; }
    .entry-title, .page-title { font-size: 1.9rem; }
    h2 { font-size: 1.55rem; }
    .notfound .code { font-size: 3.6rem; }
}

@media (min-width: 601px) and (max-width: 960px) {
    h1 { font-size: 2.9rem; }
}
