/*
Theme Name: dds_ktucci.com
Author: Гусев Владимир
Description: Авторские цифровые арт-проекты, визуальный дизайн и креативные решения в современном искусстве.
Version: 1.1
Text Domain: dds_ktucci_com
*/

/* === БАЗА === */
*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --bg-deep: #121217;
    --bg-card: rgba(26, 26, 36, 0.95);
    --bg-elevated: #1A1A24;
    --bg-soft: #1E1E2A;
    --accent-blue: #2A6FDB;
    --accent-rose: #D9A7B4;
    --accent-link: #2BB2B2;
    --text-main: #EAEAEA;
    --text-muted: #8F8F9A;
    --grad-thumb: linear-gradient(135deg, #1E2A3E 0%, #121217 100%);
    --border-subtle: rgba(234, 234, 234, 0.08);
    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.45);
    --font-head: 'Manrope', 'DM Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Source Serif Pro', 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --radius-sm: 4px;
    --radius-md: 16px;
    --container: 1240px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg-deep);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Деликатный паттерн фона — точки 5% */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(234, 234, 234, 0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    z-index: 0;
}

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

a {
    color: var(--accent-link);
    text-decoration: none;
    transition: color 0.25s ease, border-color 0.25s ease;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text-main);
    margin: 1.4em 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.1em;
    padding-left: 1.6em;
}

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 2px solid var(--accent-blue);
    background: var(--bg-card);
    font-style: italic;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-elevated);
    padding: 0.15em 0.4em;
    border-radius: 3px;
    color: var(--accent-rose);
}

pre {
    font-family: var(--font-mono);
    background: var(--bg-elevated);
    padding: 1em 1.2em;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
}

pre code {
    background: transparent;
    padding: 0;
    color: var(--text-main);
}

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

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

th {
    background: var(--bg-elevated);
    font-family: var(--font-head);
    font-weight: 600;
}

hr {
    border: none;
    border-top: 1px solid var(--border-subtle);
    margin: 2em 0;
}

/* === КАСТОМНЫЙ КУРСОР === */
.k-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-blue);
    box-shadow: 0 0 0 2px var(--accent-blue);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
    z-index: 9999;
    mix-blend-mode: difference;
    opacity: 0;
}

.k-cursor.k-cursor--visible {
    opacity: 1;
}

.k-cursor.k-cursor--active {
    transform: translate(-50%, -50%) scale(2);
    background: var(--accent-rose);
    box-shadow: 0 0 0 3px var(--accent-rose);
}

@media (max-width: 960px) {
    .k-cursor { display: none !important; }
}

/* === КОНТЕЙНЕР И ЛЭЙАУТ === */
.layout {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.site-main {
    padding: 40px 0 80px;
    min-height: 50vh;
}

.layout--with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}

.layout--narrow {
    max-width: calc(var(--container) * 0.85 / 1);
    width: 85%;
    margin: 0 auto;
}

@media (max-width: 960px) {
    .layout--with-sidebar {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .layout--narrow {
        width: 100%;
    }
}

/* === ШАПКА === */
.site-head {
    background: rgba(18, 18, 23, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 100;
}

.site-head__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
    max-width: 60%;
}

.brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--font-mono);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-main);
    border-bottom: 1px solid var(--accent-blue);
    padding-bottom: 2px;
    display: inline-block;
}

.brand-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-style: italic;
}

/* Главное меню */
.nav-primary {
    display: flex;
    align-items: center;
}

.nav-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 6px;
}

.nav-primary li {
    margin: 0;
}

.nav-primary a {
    display: block;
    padding: 10px 16px;
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: var(--radius-sm);
    border-right: 2px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.nav-primary a:hover,
.nav-primary .current-menu-item a,
.nav-primary .current_page_item a {
    color: var(--text-main);
    background: var(--bg-soft);
    border-right-color: var(--accent-blue);
}

/* Бургер */
.nav-toggle[hidden] { display: none !important; }

.nav-toggle {
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    color: var(--text-main);
}

.nav-toggle__lines {
    position: relative;
    width: 22px;
    height: 14px;
    display: block;
}

.nav-toggle__lines::before,
.nav-toggle__lines::after,
.nav-toggle__lines span {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.nav-toggle__lines::before { top: 0; }
.nav-toggle__lines span { top: 6px; display: block; }
.nav-toggle__lines::after { top: 12px; }

.nav-open .nav-toggle__lines::before {
    top: 6px;
    transform: rotate(45deg);
}

.nav-open .nav-toggle__lines span {
    opacity: 0;
}

.nav-open .nav-toggle__lines::after {
    top: 6px;
    transform: rotate(-45deg);
}

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }
    .nav-primary {
        position: fixed;
        inset: 0;
        background: rgba(18, 18, 23, 0.96);
        backdrop-filter: blur(12px);
        z-index: 200;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    .nav-open .nav-primary {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s linear;
    }
    .nav-primary ul {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .nav-primary a {
        font-size: 1.4rem;
        padding: 12px 24px;
    }
}

/* === КНОПКИ === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-family: var(--font-head);
    font-size: 0.94rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-main);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-right: 2px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.25s ease, border-right-width 0.25s ease, color 0.25s ease;
}

.btn:hover {
    background: var(--bg-soft);
    border-right-width: 4px;
    color: var(--text-main);
}

.btn--primary {
    background: var(--bg-soft);
    border-color: transparent;
    border-right-color: var(--accent-blue);
}

.btn--primary:hover {
    background: var(--bg-elevated);
}

.btn--ghost {
    border-right-color: var(--accent-rose);
}

.btn--ghost:hover {
    border-right-color: var(--accent-rose);
}

/* === ХЛЕБНЫЕ КРОШКИ === */
.crumbs {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 24px 0 32px;
    font-family: var(--font-head);
    letter-spacing: 0.01em;
}

.crumbs a {
    color: var(--text-muted);
    border-bottom: 1px dotted transparent;
}

.crumbs a:hover {
    color: var(--accent-rose);
    border-bottom-color: var(--accent-rose);
}

.crumbs .crumb-sep {
    margin: 0 8px;
    color: var(--accent-blue);
}

.crumbs .crumb-current {
    color: var(--text-main);
}

/* === ГЕРОЙ ГЛАВНОЙ === */
.hero {
    padding: 80px 0 60px;
    text-align: left;
    position: relative;
}

.hero__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--accent-rose);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    margin: 0 0 28px;
    max-width: 18ch;
    line-height: 1.05;
}

.hero__title em {
    color: var(--accent-blue);
    font-style: normal;
}

.hero__lead {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 60ch;
    margin: 0 0 32px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* === ТЕМАТИЧЕСКИЕ БЛОКИ ГЛАВНОЙ === */
.section {
    padding: 60px 0;
    border-top: 1px solid var(--border-subtle);
}

.section__head {
    margin-bottom: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.section__heading {
    margin: 0;
    max-width: 22ch;
}

.section__intro {
    color: var(--text-muted);
    max-width: 48ch;
    margin: 0;
}

/* Сетка категорий — асимметрия */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.cat-tile {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 28px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    overflow: hidden;
}

.cat-tile::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background-image: radial-gradient(var(--accent-blue) 1px, transparent 1px);
    background-size: 8px 8px;
    opacity: 0.12;
    transition: opacity 0.35s ease;
}

.cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-blue);
}

.cat-tile:hover::after {
    opacity: 0.25;
}

.cat-tile--wide { grid-column: span 4; min-height: 220px; }
.cat-tile--narrow { grid-column: span 2; min-height: 220px; }
.cat-tile--mid { grid-column: span 3; min-height: 180px; }

.cat-tile__index {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-rose);
    letter-spacing: 0.16em;
    margin-bottom: 14px;
    display: block;
}

.cat-tile__name {
    font-family: var(--font-head);
    font-size: 1.4rem;
    margin: 0 0 12px;
    color: var(--text-main);
}

.cat-tile__desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.96rem;
}

@media (max-width: 960px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cat-tile--wide,
    .cat-tile--narrow,
    .cat-tile--mid {
        grid-column: span 1;
        min-height: 0;
    }
}

@media (max-width: 600px) {
    .cat-grid {
        grid-template-columns: 1fr;
    }
}

/* Шаги процесса */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 24px;
    position: relative;
}

.step__num {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    color: var(--accent-blue);
    letter-spacing: -0.02em;
    line-height: 1;
    display: block;
    margin-bottom: 14px;
}

.step__title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.step__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 960px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .steps { grid-template-columns: 1fr; }
}

/* === КАРТОЧКИ ЗАПИСЕЙ — СЕТКА === */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

@media (max-width: 960px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .cards { grid-template-columns: 1fr; }
}

/* Карточка: вертикальная (на главной — сетка) */
.card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
    border-color: var(--accent-blue);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--grad-thumb);
}

.card-thumb-placeholder {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--grad-thumb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.card-body {
    flex: 1;
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
}

.card-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

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

.card-title {
    font-family: var(--font-head);
    font-size: 1.2rem;
    margin: 0 0 12px;
    line-height: 1.3;
}

.card-title a {
    color: var(--text-main);
    border-bottom: 1px solid transparent;
}

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

.card-excerpt {
    color: var(--text-muted);
    font-size: 0.96rem;
    margin: 0 0 18px;
    flex: 1;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-foot {
    margin-top: auto;
    padding-top: 6px;
}

.card-link {
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--accent-blue);
    padding-bottom: 2px;
    display: inline-block;
}

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

/* Карточка: горизонтальная (на странице блога) */
.cards--list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.cards--list .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}

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

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

.cards--list .card-thumb-wrap .card-thumb-placeholder {
    height: 100%;
    aspect-ratio: auto;
}

.cards--list .card-body {
    padding: 24px 28px;
}

@media (max-width: 600px) {
    .cards--list .card {
        flex-direction: column;
    }
    .cards--list .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .cards--list .card-thumb-wrap a {
        position: static;
    }
    .cards--list .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .cards--list .card-thumb-wrap .card-thumb-placeholder {
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

/* === САЙДБАР === */
.sidebar {
    position: relative;
}

.widget {
    margin-bottom: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 22px 24px;
}

.widget-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
}

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

.widget li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dotted var(--border-subtle);
}

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

.widget a {
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: 0.94rem;
}

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

.widget select {
    width: 100%;
    padding: 8px 10px;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

/* === ПАГИНАЦИЯ === */
.pager {
    margin: 50px 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-family: var(--font-head);
    font-size: 0.92rem;
    color: var(--text-muted);
    border-bottom: 1px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.pager a:hover {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.pager .pager-current {
    color: var(--text-main);
    border-bottom-color: var(--accent-blue);
}

.pager .pager-dots {
    color: var(--text-muted);
}

/* === ПОИСК === */
.searchform {
    display: flex;
    gap: 8px;
    margin: 16px 0;
}

.searchform input[type="search"] {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.96rem;
}

.searchform input[type="search"]::placeholder {
    color: var(--text-muted);
}

.searchform input[type="search"]:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.searchform button {
    padding: 10px 18px;
    background: var(--bg-soft);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-right: 2px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: var(--font-head);
    transition: border-right-width 0.25s ease, background 0.25s ease;
}

.searchform button:hover {
    background: var(--bg-elevated);
    border-right-width: 4px;
}

/* === ЕДИНИЧНАЯ ЗАПИСЬ === */
.entry {
    background: transparent;
}

.entry__head {
    margin-bottom: 32px;
}

.entry__meta {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.entry__title {
    margin: 0 0 16px;
    line-height: 1.1;
}

.entry__lead {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
    max-width: 60ch;
}

.entry__thumb {
    margin: 0 0 36px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.entry__content {
    font-size: 1.04rem;
}

.entry__content img {
    border-radius: var(--radius-sm);
    margin: 1.4em 0;
}

.entry__tags {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.entry__tags a {
    color: var(--accent-rose);
    margin-right: 8px;
    border-bottom: 1px dotted transparent;
}

.entry__tags a:hover {
    border-bottom-color: var(--accent-rose);
}

/* === КОММЕНТАРИИ === */
.comments {
    margin: 60px 0 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.comments__title {
    margin: 0 0 24px;
    font-size: 1.4rem;
}

.commentlist {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
}

.commentlist .comment {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 16px;
}

.commentlist .children {
    list-style: none;
    padding: 16px 0 0 24px;
    margin: 16px 0 0;
    border-left: 1px dashed var(--border-subtle);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
}

.comment-author cite {
    font-style: normal;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--text-main);
}

.comment-meta {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.comment-meta a {
    color: var(--text-muted);
}

.reply {
    margin-top: 8px;
}

.reply a {
    font-family: var(--font-head);
    font-size: 0.86rem;
    color: var(--accent-blue);
    border-bottom: 1px solid var(--accent-blue);
    padding-bottom: 1px;
}

.comment-respond {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 24px 26px;
}

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

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-head);
    font-size: 0.88rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-elevated);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.96rem;
    margin-bottom: 14px;
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

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

.comment-form .form-submit input {
    padding: 12px 22px;
    font-family: var(--font-head);
    font-size: 0.94rem;
    color: var(--text-main);
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    border-right: 2px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-right-width 0.25s ease, background 0.25s ease;
}

.comment-form .form-submit input:hover {
    background: var(--bg-elevated);
    border-right-width: 4px;
}

/* === 404 === */
.notfound {
    text-align: center;
    padding: 80px 0;
}

.notfound__code {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 14vw, 9rem);
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: -0.04em;
    line-height: 1;
    margin: 0 0 12px;
}

.notfound__title {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.notfound__lead {
    color: var(--text-muted);
    max-width: 50ch;
    margin: 0 auto 32px;
}

.notfound__search {
    max-width: 460px;
    margin: 0 auto 24px;
}

/* === ПОДВАЛ === */
.site-foot {
    background: #0E0E13;
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 28px;
    margin-top: 80px;
    position: relative;
    z-index: 1;
}

.site-foot__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 50px;
}

.foot-col .widget {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.foot-col .widget-title {
    font-size: 0.88rem;
    color: var(--accent-rose);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: var(--font-mono);
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
}

.foot-col .widget li {
    border-bottom: none;
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.foot-col .widget a {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.96rem;
}

.foot-col .widget a:hover {
    color: var(--accent-blue);
}

@media (max-width: 960px) {
    .site-foot__cols {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.site-foot__strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 22px;
    border-top: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.copyright {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin: 0;
}

.foot-quote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 50ch;
    text-align: right;
    margin: 0;
}

@media (max-width: 600px) {
    .foot-quote {
        text-align: left;
    }
}

/* === COOKIE-БАННЕР === */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-soft);
    flex-wrap: wrap;
    max-width: 720px;
    margin: 0 auto;
}

.cookie-banner__text {
    flex: 1;
    min-width: 220px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.cookie-banner__text a {
    color: var(--accent-link);
    border-bottom: 1px dotted var(--accent-link);
}

.cookie-banner__btn {
    padding: 10px 22px;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--bg-soft);
    border: 1px solid var(--border-subtle);
    border-right: 2px solid var(--accent-blue);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-right-width 0.25s ease, background 0.25s ease;
}

.cookie-banner__btn:hover {
    background: var(--bg-deep);
    border-right-width: 4px;
}

/* === СЛАЙДЕР НАСЫЩЕННОСТИ === */
.intensity-slider[hidden] { display: none !important; }

.intensity-slider {
    position: fixed;
    bottom: 80px;
    right: 16px;
    z-index: 900;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    width: 220px;
    box-shadow: var(--shadow-soft);
}

.intensity-slider__label {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.intensity-slider__input {
    width: 100%;
    accent-color: var(--accent-blue);
}

.intensity-slider__caption {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    justify-content: space-between;
}

.intensity-toggle {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--accent-blue);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.intensity-toggle:hover {
    transform: rotate(20deg);
    border-color: var(--accent-blue);
}

@media (max-width: 600px) {
    .intensity-slider,
    .intensity-toggle {
        display: none;
    }
}

/* === АНИМАЦИЯ ПОЯВЛЕНИЯ === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
}

/* === ВЫРАВНИВАНИЯ WP === */
.alignleft  { float: left;  margin: 0.5em 1.4em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text {
    font-size: 0.86rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 6px;
    font-style: italic;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px,1px,1px,1px);
}

/* === ОТЗЫВЧИВЫЕ МЕЛОЧИ === */
@media (max-width: 600px) {
    body { font-size: 16px; }
    .site-main { padding: 24px 0 60px; }
    .hero { padding: 50px 0 30px; }
    .section { padding: 40px 0; }
    .layout { padding: 0 18px; }
}
