/*
Theme Name: dds_aorockradio.com
Author: Станислав Громов
Description: Тёмная фиолетовая тема для информационного сайта об AOR, melodic rock и hard rock.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: aorwave
*/

:root {
    --bg: #0B0A0E;
    --bg-alt: #14111A;
    --bg-deep: #060508;
    --text: #EFEAF5;
    --accent: #B388FF;
    --accent2: #FF6B9D;
    --muted: #7A6F8A;
    --line: rgba(179, 136, 255, 0.18);
    --shadow: 0 6px 12px rgba(28, 12, 55, 0.95);
    --shadow-hi: 0 14px 22px rgba(40, 16, 80, 0.95);
    --head-font: "PT Sans Narrow", "Arial Narrow", "Oswald", Impact, "Haettenschweiler", sans-serif;
    --body-font: "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.01em;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(179, 136, 255, 0.30) 1px, transparent 1px),
        radial-gradient(ellipse at 50% 35%, #0B0A0E 0%, #120E1C 48%, #1A1128 100%);
    background-size: 26px 26px, 100% 100%;
    background-attachment: scroll, fixed;
    background-blend-mode: soft-light, normal;
}

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

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

.entry-body a,
.widget a,
.crumbs a {
    position: relative;
    transition: color 0.2s ease;
}

.entry-body a::after,
.widget a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.entry-body a:hover,
.widget a:hover,
.crumbs a:hover { color: var(--accent2); }

.entry-body a:hover::after,
.widget a:hover::after,
.crumbs a:hover::after { transform: scaleX(1); }

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

h1 { font-size: 4.2rem; text-transform: uppercase; }
h2 { font-size: 2.4rem; text-transform: uppercase; }
h3 { font-size: 1.65rem; }
h4 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, #1E1035, #0B0A0E);
    border-left: 6px solid var(--accent);
    border-image: linear-gradient(180deg, var(--accent), var(--accent2)) 1;
    border-radius: 0 6px 6px 0;
}

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

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

.shell--front { width: min(85%, 1320px); }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    font-family: var(--head-font);
    font-size: 1.02rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #12091E;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    background: var(--accent2);
    border-color: var(--accent2);
    color: #1A0710;
    transform: translate(2px, 2px);
    box-shadow: 0 0 18px rgba(255, 107, 157, 0.45);
}

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

.btn--ghost:hover {
    background: transparent;
    color: var(--accent2);
    border-color: var(--accent2);
    text-shadow: 0 0 12px rgba(255, 107, 157, 0.6);
}

/* ---------- Шапка ---------- */

.site-head {
    position: relative;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.site-head::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    opacity: 0.55;
}

.head-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;
}

.brand-logo, .brand svg { flex: 0 0 auto; }

.brand-mark { width: 58px; height: 58px; }

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

.brand-title {
    display: block;
    font-family: var(--head-font);
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text);
}

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

.brand-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    padding: 0.6rem 1rem;
    font-family: var(--head-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    font-family: var(--head-font);
    font-size: 1.05rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--text);
    position: relative;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.main-nav a:hover { color: var(--accent2); }
.main-nav a:hover::after { transform: scaleX(1); }

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

/* ---------- Общая раскладка ---------- */

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 3rem 6%;
    align-items: start;
}

.layout-single {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

.page-head { margin-bottom: 2.2rem; }

.page-head h1 { font-size: 2.8rem; }

/* Заголовки секций и подзаголовки */

.sec-title {
    position: relative;
    margin-left: -18px;
    padding-left: 18px;
    font-size: 2.2rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    width: 3px;
    height: 1.5em;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.sec-sub {
    margin: -0.4em 0 2rem;
    color: var(--muted);
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.sec-sub::after {
    content: " ✦";
    color: var(--accent);
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
    padding: 0.9rem 0 0;
    font-size: 0.86rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

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

/* ---------- Карточки записей ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: var(--bg-alt);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card.card--sticky::before { background: var(--accent2); }

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 46%;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(179, 136, 255, 0.10), transparent 65%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hi), 0 0 0 1px rgba(179, 136, 255, 0.5);
}

.card-thumb {
    position: relative;
    display: block;
    overflow: hidden;
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, transparent, rgba(11, 10, 14, 0.85));
    pointer-events: none;
}

.card-thumb--empty {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at 30% 30%, rgba(179, 136, 255, 0.25), transparent 60%),
        linear-gradient(135deg, #1E1035, #0B0A0E);
}

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

.card-title {
    font-size: 1.32rem;
    margin: 0 0 0.6rem;
    letter-spacing: 0.03em;
}

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

.card-meta {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

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

.card-more {
    margin-top: auto;
    padding-top: 1.1rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.95rem;
    color: var(--accent);
}

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

/* Горизонтальная карточка в ленте */

.card--row { flex-direction: row; }

.card--row .card-thumb-wrap {
    flex: 0 0 300px;
    position: relative;
    overflow: hidden;
    min-width: 0;
}

.card--row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card--row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---------- Главная ---------- */

.front-section {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

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

.front-section::before {
    content: "";
    position: absolute;
    top: 34px;
    left: -6%;
    width: 58%;
    height: 2px;
    transform: rotate(-15deg);
    background: linear-gradient(90deg, transparent, rgba(179, 136, 255, 0.45), transparent);
    pointer-events: none;
}

.front-section::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -40px;
    width: 340px;
    height: 340px;
    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%3Cpath d='M20 120c0-22 18-40 40-40 14 0 22 6 30 6 10 0 16-8 16-20 0-16-14-24-14-40 0-12 10-22 24-22 16 0 26 12 26 26 0 30-24 34-24 56 0 12 8 20 8 34 0 26-22 46-50 46S20 146 20 120z' fill='none' stroke='%23B388FF' stroke-width='3'/%3E%3Ccircle cx='62' cy='124' r='16' fill='none' stroke='%23B388FF' stroke-width='3'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

/* Hero */

.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-media { position: relative; }

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(11, 10, 14, 0.55), rgba(11, 10, 14, 0.92)),
        linear-gradient(115deg, transparent 42%, rgba(179, 136, 255, 0.22) 50%, transparent 58%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 2rem 1.4rem;
}

.hero-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 30%;
    height: 100%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(179, 136, 255, 0.18), transparent 70%);
    pointer-events: none;
}

.hero-kicker {
    position: relative;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: 0.42em;
    font-size: 0.9rem;
    color: var(--accent2);
    margin-bottom: 1.2rem;
}

.hero h1 {
    position: relative;
    max-width: 20ch;
    margin: 0 0 1rem;
    text-shadow: 0 0 34px rgba(179, 136, 255, 0.35);
}

.hero-lead {
    position: relative;
    max-width: 62ch;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 1.05rem;
    color: #D8CEE8;
    margin-bottom: 2rem;
}

.hero-actions {
    position: relative;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Сетка рубрик с иконками */

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.6rem;
    margin-top: 2.6rem;
}

.rubric {
    min-width: 0;
    padding: 2rem 1.7rem;
    background: #12101A;
    border-radius: 6px;
    box-shadow: var(--shadow);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rubric:hover { background: #1E1629; transform: translateY(-4px); }

.rubric svg { width: 46px; height: 46px; margin-bottom: 1.1rem; }
.rubric svg path, .rubric svg circle, .rubric svg rect, .rubric svg line, .rubric svg polyline {
    stroke: var(--accent);
    transition: stroke 0.2s ease;
}
.rubric:hover svg path, .rubric:hover svg circle, .rubric:hover svg rect,
.rubric:hover svg line, .rubric:hover svg polyline { stroke: var(--accent2); }

.rubric h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 0.5rem; }
.rubric p { margin: 0; font-size: 0.94rem; color: #B9AFC8; }

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

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

/* Таймлайн */

.tline {
    position: relative;
    margin-top: 3rem;
    padding: 0.5rem 0;
}

.tline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, transparent, var(--accent), var(--accent2), transparent);
}

.tline-item {
    position: relative;
    width: 46%;
    margin-bottom: 2.6rem;
    padding: 1.6rem 1.7rem;
    background: #12101A;
    border-radius: 6px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.tline-item:nth-child(odd) { margin-right: auto; }
.tline-item:nth-child(even) { margin-left: auto; }

.tline-item::after {
    content: "";
    position: absolute;
    top: 2rem;
    width: 14px;
    height: 14px;
    background: var(--accent);
    transform: rotate(45deg);
    box-shadow: 0 0 14px rgba(179, 136, 255, 0.7);
}

.tline-item:nth-child(odd)::after { right: -13.4%; }
.tline-item:nth-child(even)::after { left: -13.4%; }

.tline-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
    min-width: 0;
}

.tline-cover {
    flex: 0 0 auto;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--accent);
}

.tline-era {
    font-family: var(--head-font);
    font-size: 1.5rem;
    letter-spacing: 0.1em;
    color: var(--accent2);
}

.tline-item h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.tline-item p { margin: 0; font-size: 0.95rem; color: #B9AFC8; }

/* Цитата */

.fs-quote {
    position: relative;
    padding: 3.4rem 3rem;
    border-radius: 6px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
        linear-gradient(135deg, #1E1035, #0B0A0E);
    overflow: hidden;
}

.fs-quote::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 6px;
    height: 62%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, var(--accent), var(--accent2));
}

.fs-quote::after {
    content: "♪ ♫";
    position: absolute;
    right: 2.4rem;
    bottom: 0.6rem;
    font-size: 5rem;
    color: rgba(179, 136, 255, 0.07);
    pointer-events: none;
}

.fs-quote blockquote {
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
}

.fs-quote p {
    font-family: var(--head-font);
    font-size: 2.1rem;
    line-height: 1.35;
    letter-spacing: 0.03em;
    color: var(--text);
    margin: 0 0 1.4rem;
}

.fs-quote .q-mark { color: var(--accent2); }

.fs-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.92rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- Запись и страница ---------- */

.entry {
    background: var(--bg-alt);
    border-radius: 6px;
    padding: 2.4rem 2.6rem 2.8rem;
    box-shadow: var(--shadow);
}

.entry-title { font-size: 2.6rem; margin-bottom: 0.7rem; }

.entry-meta {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.8rem;
}

.entry-thumb { margin-bottom: 1.8rem; border-radius: 6px; overflow: hidden; }
.entry-thumb img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; display: block; }

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

.entry-body h2 { font-size: 1.9rem; margin-top: 2rem; }
.entry-body h3 { font-size: 1.45rem; margin-top: 1.6rem; }

.entry-body ul { list-style: none; padding-left: 0; }

.entry-body ul li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.5rem;
}

.entry-body ul li::before {
    content: "⚡";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
}

.entry-body ol { padding-left: 1.3rem; }
.entry-body ol li::marker { color: var(--accent); font-weight: 700; }

.entry-body img { border-radius: 6px; margin: 1.2rem 0; }

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

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

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

th { background: #1B1626; font-family: var(--head-font); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    position: relative;
    padding: 1.6rem 1.6rem 1.2rem;
    background: var(--bg-alt);
    border-radius: 6px;
    border-left: 1px solid var(--line);
    color: var(--text);
}

.sidebar .widget { margin-bottom: 2rem; color: var(--text); }
.sidebar .widget:last-child { margin-bottom: 0.6rem; }

.sidebar .widget a { color: #DCD3EA; }
.sidebar .widget a:hover { color: var(--accent2); }

.widget-title {
    position: relative;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-left: 14px;
    margin-bottom: 1rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 3px;
    height: 1.2em;
    background: linear-gradient(180deg, var(--accent), var(--accent2));
}

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

.widget li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.5rem;
    border-bottom: 1px dashed rgba(179, 136, 255, 0.14);
}

.widget li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0.45rem;
    color: var(--accent);
    font-size: 0.85rem;
}

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

.widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }

/* ---------- Поиск ---------- */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.8rem 1rem;
    font-family: var(--body-font);
    font-size: 0.98rem;
    color: var(--text);
    background: #0F0D15;
    border: 1px solid var(--line);
    border-radius: 4px;
}

.search-form input[type="search"]:focus { outline: 2px solid var(--accent); }

.search-form button {
    padding: 0.8rem 1.4rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #12091E;
    background: var(--accent);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: background 0.2s ease, color 0.2s ease;
}

.search-form button:hover { background: var(--accent2); }

/* ---------- Пагинация ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.6rem 1rem;
    min-width: 46px;
    text-align: center;
    font-family: var(--head-font);
    letter-spacing: 0.1em;
    color: var(--text);
    background: #12101A;
    border: 2px solid rgba(179, 136, 255, 0.3);
    border-radius: 4px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager .page-numbers:hover { border-color: var(--accent2); color: var(--accent2); }

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

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

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 2.6rem;
    padding: 2rem 2.2rem;
    background: var(--bg-alt);
    border-radius: 6px;
    box-shadow: var(--shadow);
}

.comments-area h2, .comments-area h3 { font-size: 1.5rem; }

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

.comment-list li {
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
    background: #12101A;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
}

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

.comment-meta { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.5rem; }

.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; color: var(--muted); }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75rem 0.95rem;
    margin-bottom: 1rem;
    font-family: var(--body-font);
    font-size: 0.98rem;
    color: var(--text);
    background: #0F0D15;
    border: 1px solid var(--line);
    border-radius: 4px;
}

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

.comment-form .submit {
    padding: 0.85rem 1.7rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #12091E;
    background: var(--accent);
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: background 0.2s ease;
}

.comment-form .submit:hover { background: var(--accent2); }

/* ---------- 404 ---------- */

.error-box {
    padding: 3rem 2.6rem;
    background: linear-gradient(135deg, #1E1035, #0B0A0E);
    border-radius: 6px;
    text-align: center;
}

.error-box h1 { font-size: 5rem; color: var(--accent); }

.error-box .search-form { max-width: 480px; margin: 1.8rem auto 1.4rem; }

/* ---------- Подвал ---------- */

.site-foot {
    position: relative;
    background: var(--bg-deep);
    color: var(--text);
    padding: 3.4rem 0 1.8rem;
}

.site-foot::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent2), transparent);
    opacity: 0.6;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2.4rem;
}

.foot-col { min-width: 0; color: #D6CDE4; }

.foot-col .widget-title { color: var(--text); }
.foot-col .widget a { color: #C9BFDA; }
.foot-col .widget a:hover { color: var(--accent2); }
.foot-col .widget li { border-bottom: 1px dashed rgba(179, 136, 255, 0.12); }
.foot-col .widget li::before { color: var(--accent2); }
.foot-col .widget .post-date { color: var(--muted); }
.foot-col p { color: #B7ADC6; font-size: 0.95rem; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(179, 136, 255, 0.14);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
}

/* ---------- Cookie ---------- */

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

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: rgba(20, 17, 26, 0.97);
    border-top: 2px solid var(--accent);
    color: #DCD3EA;
    font-size: 0.9rem;
}

.cookie-bar p { margin: 0; max-width: 74ch; }

.cookie-bar .btn { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* ---------- Адаптив ---------- */

@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }
    .hero-media img { height: 520px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: 100%; }
    .shell--front { width: min(92%, 1180px); }
    .front-section { padding: 80px 0; }
    .tline::before { left: 18px; }
    .tline-item { width: 100%; padding-left: 3rem; }
    .tline-item:nth-child(odd)::after,
    .tline-item:nth-child(even)::after { left: 12px; right: auto; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }
    .head-inner { padding: 1.1rem 0; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .main-nav ul { display: none; flex-direction: column; gap: 0; padding-top: 0.8rem; }
    .main-nav.is-open ul { display: flex; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .hero-media img { height: 440px; }
    .hero-lead { font-size: 0.92rem; letter-spacing: 0.14em; }
    .front-section { padding: 64px 0; }
    .entry { padding: 1.5rem 1.3rem 1.8rem; }
    .entry-title { font-size: 1.9rem; }
    .comments-area { padding: 1.4rem 1.2rem; }
    .error-box { padding: 2rem 1.4rem; }
    .fs-quote { padding: 2rem 1.5rem; }
    .fs-quote p { font-size: 1.4rem; }
    .rubric { padding: 1.5rem 1.3rem; }
    .tline-item { padding: 1.3rem 1.3rem 1.3rem 2.8rem; }
    .sidebar { padding: 1.3rem 1.2rem 1rem; }
    .cookie-bar { padding: 1rem 1.2rem; }
    .card--row { flex-direction: column; }
    .card--row .card-thumb-wrap { flex: none; width: 100%; position: static; }
    .card--row .card-thumb-wrap a { position: static; }
    .card--row .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
