/*
Theme Name: dds_wallylayne.com
Theme URI: https://wallylayne.com/
Author: Олег Титов
Description: Тёмная тема «Vinyl Archive» для информационного сайта о концертных записях и музыкальных архивах. Холодная индиго-графитовая палитра, строгая типографика, карточки-конверты и виниловые акценты.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: wlarc
*/

/* ============================================================
   1. Переменные
   ============================================================ */

:root {
    --bg: #0A0E17;
    --bg-alt: #111827;
    --bg-deep: #05080E;
    --line: #1E293B;
    --line-soft: #334155;
    --text: #E2E8F0;
    --muted: #64748B;
    --accent: #60A5FA;
    --accent-2: #A5B4FC;
    --btn: #2563EB;
    --btn-hover: #3B82F6;
    --font: 'Inter', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ============================================================
   2. База
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(135deg, rgba(30, 41, 59, 0.55) 0 1px, transparent 1px 9px);
    color: var(--text);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

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

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

p {
    margin: 0 0 1.1em;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

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

.page-wrap {
    padding-block: 2.4rem 4rem;
}

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

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

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

/* ============================================================
   3. Типографика
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: #F1F5F9;
    margin: 1.9rem 0 0.8rem;
}

h1 {
    font-size: clamp(2.1rem, 5.6vw, 3.5rem);
    margin-top: 0;
}

h2 {
    font-size: clamp(1.5rem, 3.2vw, 2rem);
}

h3 {
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
}

/* «Виниловая метка» слева от заголовков */
.section-title,
.entry-content h2,
.entry-content h3,
.tl-head,
.widget-title {
    position: relative;
    padding-left: 1.55rem;
}

.section-title::before,
.entry-content h2::before,
.entry-content h3::before,
.tl-head::before,
.widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 0.72em;
    height: 0.72em;
    border-radius: 50%;
    border: 1px solid var(--accent-2);
    background: conic-gradient(from 0deg, var(--accent) 0 22%, rgba(96, 165, 250, 0.08) 22% 100%);
}

.section-title:hover::before,
.entry-content h2:hover::before,
.entry-content h3:hover::before,
.tl-head:hover::before,
.widget-title:hover::before {
    animation: wlarc-spin 4s linear infinite;
}

@keyframes wlarc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-title::after {
    content: '';
    display: block;
    width: 110px;
    max-width: 40%;
    height: 2px;
    margin-top: 0.85rem;
    background: linear-gradient(90deg, var(--accent), rgba(96, 165, 250, 0));
}

.section-lead {
    max-width: 720px;
    color: #C7D2E1;
    margin-top: 1.2rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

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

.page-title {
    margin-bottom: 0.4rem;
}

.page-desc {
    color: var(--muted);
}

.empty-note {
    border: 1px solid var(--line);
    background: var(--bg-alt);
    padding: 1.3rem 1.4rem;
    color: #C7D2E1;
    margin: 0 0 1.6rem;
}

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

.btn {
    display: inline-block;
    padding: 0.72rem 1.55rem;
    border: 1px solid var(--btn);
    border-radius: 4px;
    background: var(--btn);
    color: #FFFFFF;
    font: inherit;
    font-weight: 600;
    font-size: 0.96rem;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--btn-hover);
    border-color: var(--btn-hover);
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45), 0 0 18px rgba(59, 130, 246, 0.4);
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: rgba(96, 165, 250, 0.14);
    border-color: var(--accent);
    color: #FFFFFF;
    box-shadow: 0 0 14px rgba(96, 165, 250, 0.25);
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.88rem;
}

/* ============================================================
   5. Шапка и навигация
   ============================================================ */

.studio-tape {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 48%, var(--accent) 100%);
}

.site-top {
    background: var(--bg-deep);
    border-bottom: 1px solid var(--line);
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding-block: 1.15rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 320px;
}

.brand-mark {
    display: block;
    flex: none;
    line-height: 0;
}

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

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

.brand-name {
    display: block;
    color: #F1F5F9;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.35;
    letter-spacing: -0.01em;
    text-decoration: none;
}

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

.brand-desc {
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.45;
    margin-top: 0.2rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.9rem;
    background: transparent;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}

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

.nav-toggle-bar {
    position: relative;
}

.nav-toggle-bar::before {
    position: absolute;
    top: -6px;
}

.nav-toggle-bar::after {
    position: absolute;
    top: 6px;
}

.site-nav {
    flex: 0 1 auto;
}

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

.nav-list a {
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--text);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-top: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
    color: var(--accent);
    border-top-color: var(--accent);
}

.nav-list .current-menu-item > a,
.nav-list .current_page_item > a {
    color: var(--accent);
    border-top-color: var(--accent);
}

.nav-list .sub-menu {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0 0 0 0.8rem;
    border-left: 1px solid var(--line);
}

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

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

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

.crumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}

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

/* ============================================================
   7. Главная страница
   ============================================================ */

.front-section {
    position: relative;
    padding: 3.6rem 1.2rem;
    overflow: hidden;
}

.front-section + .front-section {
    border-top: 2px dotted var(--line-soft);
}

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

.front-inner {
    position: relative;
    z-index: 2;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.gradient-rule {
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--bg-deep), var(--accent) 50%, var(--bg-deep));
}

/* --- Hero --- */

.fs-hero {
    padding-block: 5rem;
}

.fs-hero::before {
    content: '';
    position: absolute;
    right: -6%;
    top: -35%;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.38), rgba(37, 99, 235, 0) 70%);
    filter: blur(46px);
    pointer-events: none;
    z-index: 1;
}

.hero-wave,
.bottom-wave {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 340px;
    max-width: 60%;
    height: auto;
    color: var(--accent-2);
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.hero-inner {
    text-align: left;
}

.hero-title {
    font-size: clamp(2.2rem, 6vw, 3.5rem);
    margin-bottom: 1.1rem;
}

.hero-title-step {
    display: inline-block;
    margin-left: 2.4rem;
    color: var(--accent-2);
}

.hero-lead {
    max-width: 640px;
    color: #C7D2E1;
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.8rem 0 0;
}

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

.tl {
    position: relative;
    display: grid;
    gap: 1.6rem;
    margin-top: 2.4rem;
}

.tl::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-1px);
    background: linear-gradient(180deg, rgba(96, 165, 250, 0), var(--accent) 12%, var(--accent) 88%, rgba(96, 165, 250, 0));
}

.tl-item {
    position: relative;
    width: calc(50% - 2.4rem);
    min-width: 0;
    padding: 1.35rem 1.5rem;
    background: var(--bg);
    border: 1px solid var(--line);
}

.tl-item:nth-child(odd) {
    justify-self: start;
}

.tl-item:nth-child(even) {
    justify-self: end;
}

.tl-item::after {
    content: '';
    position: absolute;
    top: 1.8rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.tl-item:nth-child(odd)::after {
    right: calc(-2.4rem - 6px);
}

.tl-item:nth-child(even)::after {
    left: calc(-2.4rem - 6px);
}

.tl-date {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.tl-head {
    margin: 0.35rem 0 0.5rem;
    font-size: 1.15rem;
}

.tl-item p {
    margin: 0;
    color: #C7D2E1;
    font-size: 0.95rem;
}

/* --- Цитата --- */

.big-quote {
    position: relative;
    margin: 0;
    padding: 2.6rem 2.4rem;
    border-left: 4px solid var(--accent-2);
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(135deg, rgba(51, 65, 85, 0.7) 0 1px, transparent 1px 8px),
        linear-gradient(135deg, #111827, #1E293B);
}

.big-quote p {
    margin: 0;
    font-size: clamp(1.15rem, 2.6vw, 1.62rem);
    line-height: 1.45;
    font-weight: 600;
    color: #F1F5F9;
}

.big-quote-cite {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    font-style: normal;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
}

/* --- Карта тем --- */

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

.topic {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: transparent;
    border: 3px solid var(--line);
    color: var(--text);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.topic:hover,
.topic:focus {
    border-color: var(--accent);
    background: rgba(96, 165, 250, 0.07);
    transform: translateY(-3px);
}

.topic-icon {
    display: block;
    color: var(--accent);
    line-height: 0;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.topic:hover .topic-icon,
.topic:focus .topic-icon {
    opacity: 1;
}

.topic-name {
    font-size: 1.22rem;
    font-weight: 700;
    color: #F1F5F9;
}

.topic-desc {
    font-size: 0.92rem;
    color: #C7D2E1;
}

.front-more {
    margin: 2rem 0 0;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    transition: border-color 0.22s ease;
}

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

.card-thumb {
    display: block;
    overflow: hidden;
    line-height: 0;
}

.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.06);
}

.card-thumb-empty {
    aspect-ratio: 16 / 9;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(135deg, rgba(51, 65, 85, 0.5) 0 1px, transparent 1px 10px),
        radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.18), rgba(10, 14, 23, 0) 62%);
    border-bottom: 1px solid var(--line);
}

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

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

.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.16rem;
    line-height: 1.32;
    padding-left: 0;
}

.card-title a {
    color: #F1F5F9;
    text-decoration: none;
}

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

.card-excerpt {
    color: #C0CBDB;
    font-size: 0.94rem;
}

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

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

.card-more {
    margin: auto 0 0;
    padding-top: 1rem;
}

/* ============================================================
   9. Контент записи и страницы
   ============================================================ */

.entry {
    margin-bottom: 2.4rem;
}

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

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

.entry-cover {
    margin: 0 0 1.8rem;
}

.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
}

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

.entry-content a {
    color: var(--accent);
    text-decoration: none;
    border-top: 1px solid currentColor;
}

.entry-content a:hover {
    color: var(--accent-2);
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 1.35rem;
    margin: 0 0 1.2em;
}

.entry-content li {
    margin-bottom: 0.45em;
}

.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.3rem 1.5rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent-2);
    color: #E8EDF5;
}

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

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

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

.entry-content th {
    background: var(--bg-alt);
    color: #F1F5F9;
}

.entry-content code,
.entry-content pre {
    background: var(--bg-deep);
    border: 1px solid var(--line);
    font-size: 0.9rem;
}

.entry-content code {
    padding: 0.1rem 0.35rem;
}

.entry-content pre {
    display: block;
    padding: 1rem 1.1rem;
    overflow-x: auto;
    max-width: 100%;
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--line);
    color: var(--accent-2);
    text-decoration: none;
}

.entry-tags a:hover {
    border-color: var(--accent);
}

.page-links {
    margin: 1.4rem 0;
    font-size: 0.9rem;
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.92rem;
}

.post-nav a {
    color: var(--accent-2);
    text-decoration: none;
}

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

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

.sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    color: var(--text);
}

.sidebar .widget {
    margin-bottom: 1.9rem;
}

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

.sidebar .widget-title {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: #F1F5F9;
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: #C7D2E1;
    font-size: 0.93rem;
}

.sidebar .widget a {
    color: var(--accent-2);
    text-decoration: none;
}

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

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

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

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

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

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

.site-bottom {
    position: relative;
    overflow: hidden;
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding-block: 3rem 2rem;
    margin-top: 2rem;
}

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

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

.site-bottom .widget-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: #E8EDF5;
}

.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .widget li {
    color: #B7C3D4;
    font-size: 0.92rem;
}

.site-bottom .widget a {
    color: var(--accent-2);
    text-decoration: none;
}

.site-bottom .widget a:hover {
    color: var(--accent);
    text-decoration: underline;
}

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

.site-bottom .widget li {
    padding: 0.35rem 0;
}

.site-bottom .post-date {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.foot-copy {
    position: relative;
    z-index: 2;
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

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

.pager .page-numbers.current {
    background: var(--btn);
    border-color: var(--btn);
    color: #FFFFFF;
    font-weight: 600;
}

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

.comments .pagination,
.comments .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.4rem 0;
}

.comments .page-numbers {
    display: inline-flex;
    padding: 0.4rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.comments {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 2px dotted var(--line-soft);
}

.comments-title {
    margin-top: 0;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    padding-left: 1.3rem;
    border-left: 1px solid var(--line);
    margin-top: 1rem;
}

.cmt {
    margin-bottom: 1.2rem;
}

.cmt-body {
    padding: 1.2rem 1.3rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.cmt-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.cmt-author {
    font-weight: 700;
    color: #F1F5F9;
}

.cmt-date {
    font-size: 0.8rem;
    color: var(--muted);
}

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

.cmt-hold {
    color: var(--accent-2);
    font-size: 0.88rem;
}

.cmt-reply {
    margin-top: 0.7rem;
    font-size: 0.88rem;
}

.cmt-reply a {
    color: var(--accent-2);
    text-decoration: none;
}

.comment-respond {
    margin-top: 2rem;
    padding: 1.6rem 1.6rem 1.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

.comment-reply-title {
    margin-top: 0;
}

.comment-notes,
.comment-form-cookies-consent label {
    font-size: 0.86rem;
    color: var(--muted);
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    color: #C7D2E1;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus,
.search-field:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.2);
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-form-cookies-consent label {
    margin: 0;
}

.comments-closed {
    color: var(--muted);
}

/* ============================================================
   14. Поиск
   ============================================================ */

.searchform {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

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

.search-field {
    width: 100%;
    padding: 0.68rem 0.85rem;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.search-field::placeholder {
    color: var(--muted);
}

.e404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

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

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

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

.cookie-text {
    margin: 0;
    max-width: 900px;
    min-width: 0;
    font-size: 0.9rem;
}

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

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

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

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 0 0.2rem;
    }

    .nav-list > li {
        border-bottom: 1px solid var(--line);
    }

    .nav-list a {
        display: block;
        padding: 0.65rem 0;
        border-top: 0;
        border-left: 2px solid transparent;
        padding-left: 0.6rem;
    }

    .nav-list a:hover,
    .nav-list .current-menu-item > a {
        border-top: 0;
        border-left-color: var(--accent);
    }

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

    .layout-single {
        width: 100%;
    }

    .front-inner {
        width: 100%;
    }

    .front-section {
        padding: 2.8rem 1rem;
    }

    .fs-hero {
        padding-block: 3.6rem;
    }
}

@media (max-width: 700px) {
    .tl::before {
        left: 6px;
    }

    .tl-item {
        width: auto;
        justify-self: stretch;
        margin-left: 2.4rem;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: calc(1px - 2.4rem);
        right: auto;
    }
}

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

    .page-wrap {
        padding-block: 1.8rem 3rem;
    }

    .front-section {
        padding: 2.2rem 0.9rem;
    }

    .hero-title-step {
        margin-left: 1.1rem;
    }

    .hero-actions .btn,
    .e404-actions .btn {
        width: 100%;
        text-align: center;
    }

    .big-quote {
        padding: 1.8rem 1.4rem;
    }

    .topic {
        padding: 1.3rem 1.2rem;
    }

    .tl-item {
        padding: 1.15rem 1.2rem;
        margin-left: 1.8rem;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: calc(1px - 1.8rem);
    }

    .sidebar {
        padding: 1.2rem 1.1rem;
    }

    .cmt-body,
    .comment-respond {
        padding: 1.1rem 1.1rem;
    }

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

    .comment-list .children {
        padding-left: 0.8rem;
    }
}
