/*
Theme Name: dds_wrenboysfilm.com
Description: Тёмная кинематографическая тема для проекта о знаменитых домах из фильмов и аренде локаций для съёмок.
Author: Анна Северова
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: wrenfilm
*/

/* -------------------------------------------------- переменные */
:root {
    --bg: #1a1025;
    --bg-alt: #241533;
    --head-bg: #2d1b3d;
    --foot-bg: #120b1a;
    --side-bg: #20122e;
    --text: #f3eef8;
    --accent: #c77dff;
    --gold: #ffd166;
    --muted: #9b8aa6;
    --line: #3d2a4d;
    --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
    --sans: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --shell: min(92%, 1180px);
}

/* -------------------------------------------------- база */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding-top: 3px;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--bg-alt) 0 1px, rgba(0, 0, 0, 0) 1px 40px);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::after {
    content: "";
    position: fixed;
    right: -70px;
    bottom: -50px;
    width: 640px;
    height: 450px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 280'%3E%3Cg fill='none' stroke='%23c77dff' stroke-width='6'%3E%3Crect x='20' y='90' width='220' height='140' rx='12'/%3E%3Cpath d='M240 130 L370 80 L370 240 L240 190 Z'/%3E%3Ccircle cx='80' cy='50' r='42'/%3E%3Ccircle cx='180' cy='50' r='42'/%3E%3Crect x='70' y='232' width='120' height='26'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.topbar, .page-body, .footer, .cookie-banner, .beam { position: relative; z-index: 1; }

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

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

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

/* -------------------------------------------------- типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.22;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.5rem; margin: 0 0 1rem; }
h2 { font-size: 1.85rem; margin: 2.2rem 0 1rem; }
h3 { font-size: 1.4rem; margin: 1.8rem 0 0.8rem; }
h4 { font-size: 1.18rem; margin: 1.5rem 0 0.7rem; }

p { margin: 0 0 1.1rem; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .2s ease, text-decoration-color .2s ease; }
a:hover, a:focus { color: var(--gold); text-decoration-thickness: 2px; }

.muted, .meta { color: var(--muted); font-size: 0.92rem; }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--gold); }
.meta-sep { opacity: .6; margin: 0 .2rem; }

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

/* дублирующая пунктирная «киноплёнка» слева у заголовков H2 */
.entry h2, .section-head { position: relative; padding-left: 1.7rem; }

.entry h2::before, .section-head::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 0.55em;
    bottom: 0.1em;
    border-left: 2px dashed var(--accent);
    opacity: .75;
}

.entry h2::after, .section-head::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 12px;
    height: 12px;
    background: var(--gold);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 209, 102, .5);
}

.entry h2:hover::after, .section-head:hover::after { animation: framePulse 1.5s ease-in-out infinite; }

@keyframes framePulse {
    0%, 100% { transform: rotate(45deg) scale(1); opacity: 1; }
    50% { transform: rotate(45deg) scale(1.35); opacity: .7; }
}

.section-head { margin: 0 0 1.8rem; padding-top: 0.6rem; }

.section-title { position: relative; margin: 0; padding-bottom: 0.75rem; font-size: 2rem; }

.section-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.65rem;
    border-radius: 50%;
    background: var(--gold);
    vertical-align: middle;
    box-shadow: 0 0 8px rgba(255, 209, 102, .6);
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(199, 125, 255, 0));
    box-shadow: 0 0 12px rgba(199, 125, 255, .55);
}

/* -------------------------------------------------- кнопки */
.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 4px;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.btn-fill {
    background: var(--accent);
    color: #1a1025;
    border: 1px solid var(--accent);
}

.btn-fill:hover, .btn-fill:focus {
    color: #1a1025;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(199, 125, 255, .45);
}

.btn-ghost {
    background: rgba(0, 0, 0, 0);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-ghost:hover, .btn-ghost:focus {
    background: var(--accent);
    color: #1a1025;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(199, 125, 255, .35);
}

/* -------------------------------------------------- световая полоса */
.beam {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    z-index: 60;
}

/* -------------------------------------------------- шапка */
.topbar {
    background: rgba(45, 27, 61, .92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(6px);
}

.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 0;
}

.brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; flex: 1 1 320px; }
.brand-mark { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; max-height: 62px; width: auto; }
.brand-svg { display: block; }

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

.brand-name {
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--text);
    max-width: 44ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 52ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    background: rgba(0, 0, 0, 0);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: var(--accent);
    font-family: var(--sans);
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

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

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

.nav-list li { position: relative; }

.nav-list a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--text);
    font-size: 0.97rem;
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 0, 0, 0);
}

.nav-list a:hover, .nav-list a:focus, .nav-list .current-menu-item > a {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    margin: 0;
    padding: 0.5rem 0.9rem;
    list-style: none;
    background: var(--head-bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    z-index: 30;
}

.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }

/* -------------------------------------------------- раскладки */
.page-body { padding-bottom: 3.5rem; }

.layout-with-sidebar {
    width: var(--shell);
    margin-inline: auto;
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
    padding: 2.4rem 0 0;
}

.layout-single {
    width: min(85%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding: 2.4rem 0 0;
}

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

.page-head { margin: 0 0 1.6rem; }
.page-title { font-size: 2.4rem; margin: 0 0 0.6rem; text-shadow: 0 0 22px rgba(199, 125, 255, .25); }
.archive-desc { color: var(--muted); }

/* -------------------------------------------------- хлебные крошки */
.crumbs {
    margin: 0 0 1.4rem;
    font-size: 0.86rem;
    color: var(--muted);
    word-break: break-word;
}

.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--line); }
.crumbs a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.crumbs .sep { margin: 0 0.35rem; color: var(--accent); }

/* -------------------------------------------------- hero */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(26, 16, 37, .95) 8%, rgba(45, 27, 61, .78) 48%, rgba(26, 16, 37, .55) 100%);
}

.hero-film {
    position: absolute;
    top: 0;
    right: 4%;
    width: 78px;
    height: 300px;
    opacity: .5;
}

.hero-inner {
    position: relative;
    width: min(85%, 1180px);
    margin-inline: auto;
    padding: 4.5rem 0;
    max-width: 100%;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.35rem 0.9rem;
    border: 1px solid var(--gold);
    border-radius: 4px;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-title {
    max-width: 18ch;
    margin: 0 0 1.2rem;
    font-size: 4.2rem;
    line-height: 1.12;
    color: #f7f2fb;
    text-shadow: 0 0 34px rgba(199, 125, 255, .55), 0 2px 2px rgba(0, 0, 0, .5);
}

.hero-sub {
    max-width: 52ch;
    margin: 0 0 2rem;
    color: var(--gold);
    font-size: 1.12rem;
}

/* -------------------------------------------------- секции главной */
.fs { position: relative; padding: 4.2rem 0; }
.fs-latest, .fs-quote { background: var(--bg); }
.fs-stats, .fs-timeline { background: var(--bg-alt); }

.fs-stats { background-image: repeating-linear-gradient(45deg, rgba(199, 125, 255, .07) 0 1px, rgba(0, 0, 0, 0) 1px 22px); }

.fs + .fs::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background-image: repeating-linear-gradient(90deg, var(--gold) 0 8px, rgba(0, 0, 0, 0) 8px 36px);
    opacity: .5;
}

.fs-inner { width: min(85%, 1180px); margin-inline: auto; }

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

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

.stat {
    position: relative;
    min-width: 0;
    padding: 0.4rem 1.2rem;
    text-align: center;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    border-left: 2px dashed var(--line);
}

.stat + .stat::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 50%;
    width: 9px;
    height: 9px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(255, 209, 102, .6);
}

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 3.2rem;
    line-height: 1.1;
    color: var(--accent);
    text-shadow: 0 0 22px rgba(199, 125, 255, .45);
}

.stat-label { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.92rem; }

/* таймлайн */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, rgba(199, 125, 255, 0), var(--accent) 12%, var(--accent) 88%, rgba(199, 125, 255, 0));
}

.tl-item { position: relative; width: calc(50% - 2.6rem); margin: 0 0 2rem; min-width: 0; }
.tl-item:nth-child(even) { margin-left: calc(50% + 2.6rem); }

.tl-dot {
    position: absolute;
    top: 2.1rem;
    right: -3.05rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 14px rgba(255, 209, 102, .7);
}

.tl-item:nth-child(even) .tl-dot { right: auto; left: -3.05rem; }

.tl-card {
    display: flex;
    gap: 1.1rem;
    padding: 1.2rem 1.3rem;
    background: rgba(32, 18, 46, .85);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(199, 125, 255, .15);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.tl-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(199, 125, 255, .3);
}

.tl-thumb { flex: 0 0 132px; border-radius: 6px; overflow: hidden; }

.tl-thumb img {
    display: block;
    width: 100%;
    height: 132px;
    object-fit: cover;
}

.tl-body { min-width: 0; }

.tl-num {
    display: inline-block;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--gold);
    letter-spacing: 0.08em;
}

.tl-title { margin: 0.2rem 0 0.5rem; font-size: 1.22rem; color: var(--accent); }
.tl-body p { margin: 0; font-size: 0.95rem; color: #ded3e8; }

/* цитата */
.quote-plate {
    position: relative;
    margin: 0;
    padding: 3rem 3rem 2.4rem;
    background: linear-gradient(140deg, var(--head-bg), var(--bg) 78%);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(199, 125, 255, .12) inset;
}

.quote-plate::before {
    content: "";
    position: absolute;
    left: 1.4rem;
    top: 2.6rem;
    bottom: 2.6rem;
    width: 3px;
    background: var(--gold);
    box-shadow: 0 0 16px rgba(255, 209, 102, .55);
}

.quote-camera {
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 260px;
    height: 180px;
    opacity: .12;
}

.quote-plate blockquote { margin: 0; position: relative; }

.quote-plate blockquote p {
    margin: 0;
    font-family: var(--serif);
    font-size: 2.1rem;
    line-height: 1.35;
    color: #fbf8fe;
}

.quote-key { border-bottom: 3px solid var(--gold); padding-bottom: 2px; }

.quote-plate figcaption {
    position: relative;
    margin-top: 1.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(32, 18, 46, .82);
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(199, 125, 255, .15);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 12px 34px rgba(199, 125, 255, .32);
}

.card-thumb { position: relative; }

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

.card-thumb-fade {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    background: linear-gradient(180deg, rgba(26, 16, 37, 0), rgba(26, 16, 37, .85));
    pointer-events: none;
}

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

.card-title { font-size: 1.28rem; margin: 0.7rem 0 0.5rem; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-excerpt { margin-top: 0.7rem; color: #ddd2e8; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

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

/* вымпелы рубрик */
.pennant {
    display: inline-block;
    padding: 0.28rem 1.2rem 0.28rem 0.7rem;
    font-size: 0.78rem;
    line-height: 1.3;
    text-decoration: none;
    color: #1a1025;
    background: var(--accent);
    clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%);
}

.pennant:hover, .pennant:focus { color: #1a1025; opacity: .85; }
.pennant.tone-1 { background: #c77dff; }
.pennant.tone-2 { background: #9d6bd6; }
.pennant.tone-3 { background: #ffd166; }
.pennant.tone-4 { background: #d9a7e8; }

.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.8rem 0 0; }

/* -------------------------------------------------- контент записи */
.single-cover { margin: 0 0 1.8rem; }
.single-cover img { display: block; width: 100%; border-radius: 8px; border: 1px solid var(--line); }

.entry { font-size: 1.04rem; }
.entry img { border-radius: 6px; }
.entry ul, .entry ol { padding-left: 1.4rem; margin: 0 0 1.2rem; }
.entry li { margin-bottom: 0.5rem; }

.entry blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    color: #efe7f6;
    font-family: var(--serif);
    font-size: 1.1rem;
}

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

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

.entry th, .entry td { padding: 0.65rem 0.8rem; border: 1px solid var(--line); text-align: left; }
.entry th { background: var(--bg-alt); color: var(--gold); font-family: var(--serif); }

.entry pre {
    padding: 1rem 1.2rem;
    background: var(--foot-bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow-x: auto;
}

.entry code { background: var(--bg-alt); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.92rem; }

.page-links { margin: 1.4rem 0; color: var(--muted); }

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

.post-nav div { min-width: 0; flex: 1 1 240px; }
.post-nav-next { text-align: right; }

/* -------------------------------------------------- пагинация */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-size: 0.95rem;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.pager a.page-numbers:hover { border-color: var(--accent); color: var(--gold); box-shadow: 0 0 16px rgba(199, 125, 255, .3); }

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

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

/* -------------------------------------------------- сайдбар и виджеты */
.sidebar { min-width: 0; }

.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.3rem 1.4rem;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-size: 0.96rem;
}

.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    font-size: 1.15rem;
    color: var(--text);
    border-bottom: 1px solid var(--line);
}

.sidebar .widget ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget li { padding: 0.5rem 0 0.5rem 1rem; position: relative; border-bottom: 1px dashed var(--line); }
.sidebar .widget li:last-child { border-bottom: 0; }

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05rem;
    width: 6px;
    height: 6px;
    background: var(--gold);
    transform: rotate(45deg);
}

.sidebar .widget a { color: var(--accent); text-decoration: none; }
.sidebar .widget a:hover { color: var(--gold); }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: 0.82rem; }
.sidebar .widget p { color: #e2d8ec; }

.footer .widget { margin-bottom: 1.2rem; color: #ded2ea; font-size: 0.95rem; }

.footer .widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.1rem;
    color: var(--gold);
}

.footer .widget p { color: #ded2ea; }
.footer .widget ul { margin: 0; padding: 0; list-style: none; }
.footer .widget li { padding: 0.35rem 0 0.35rem 0.95rem; position: relative; }

.footer .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 5px;
    height: 5px;
    background: var(--accent);
    transform: rotate(45deg);
}

.footer .widget a { color: #efe7f7; text-decoration: none; }
.footer .widget a:hover { color: var(--gold); }
.footer .widget .post-date { display: block; color: #a898b6; font-size: 0.82rem; }

/* -------------------------------------------------- форма поиска */
.searchform { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0 0 1rem; }

.searchform-field {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.95rem;
}

.searchform-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 14px rgba(199, 125, 255, .3); }
.searchform-field::placeholder { color: var(--muted); }
.searchform-submit { border: 0; }

.notfound-actions { margin-top: 2rem; }

/* -------------------------------------------------- комментарии */
.comments { margin-top: 3rem; padding-top: 1.8rem; border-top: 1px dashed var(--line); }
.comments-title { font-size: 1.6rem; margin: 0 0 1.4rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.4rem; padding-left: 1rem; border-left: 1px dashed var(--line); }

.comment-inner {
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.3rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.comment-head { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: baseline; margin-bottom: 0.6rem; }
.comment-author { font-family: var(--serif); font-size: 1.05rem; color: var(--accent); }
.comment-date { color: var(--muted); font-size: 0.85rem; }
.comment-text p:last-child { margin-bottom: 0; }
.comment-actions { margin-top: 0.6rem; font-size: 0.9rem; }
.comment-wait { color: var(--gold); font-size: 0.9rem; }

.comment-respond { margin-top: 2rem; padding: 1.5rem 1.6rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; }
.comment-reply-title { margin-top: 0; font-size: 1.35rem; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.9rem; 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.65rem 0.9rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--text);
    font-family: var(--sans);
    font-size: 0.95rem;
}

.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form .form-submit input[type="submit"] { border: 0; cursor: pointer; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { color: var(--muted); }
.comments-closed { color: var(--muted); }

/* -------------------------------------------------- подвал */
.footer {
    margin-top: 3rem;
    padding: 3rem 0 1.6rem;
    background: var(--foot-bg);
    border-top: 1px solid var(--line);
    color: #ded2ea;
}

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

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

.footer-contact {
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
    background: rgba(45, 27, 61, .55);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
}

.footer-contact-label { display: block; margin-bottom: 0.3rem; color: var(--muted); font-size: 0.85rem; }
.footer-contact a { color: var(--gold); }

.footer-bottom {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

/* -------------------------------------------------- cookie-баннер */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(18, 11, 26, .96);
    border-top: 2px solid var(--accent);
    box-shadow: 0 -6px 26px rgba(199, 125, 255, .2);
    z-index: 70;
}

.cookie-text { margin: 0; max-width: 70ch; font-size: 0.9rem; color: #e4daee; }

/* -------------------------------------------------- адаптив */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }

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

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

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 0;
        border-top: 1px dashed var(--line);
    }

    .nav-list li { border-bottom: 1px dashed var(--line); }
    .nav-list li:last-child { border-bottom: 0; }
    .nav-list a { display: block; padding: 0.7rem 0; }
    .nav-list .sub-menu { position: static; display: block; border: 0; padding: 0 0 0 1rem; background: none; }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single { width: min(92%, 1180px); }

    .hero-title { font-size: 3rem; }
    .hero { min-height: 460px; }
    .hero-film { display: none; }

    .timeline::before { left: 7px; margin-left: 0; }
    .tl-item, .tl-item:nth-child(even) { width: 100%; margin-left: 0; padding-left: 2.2rem; }
    .tl-dot, .tl-item:nth-child(even) .tl-dot { left: 1px; right: auto; top: 1.6rem; }

    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
    .stat:nth-child(3)::before, .stat:nth-child(3)::after { display: none; }

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

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

    h1 { font-size: 1.9rem; }
    .page-title { font-size: 1.85rem; }
    .section-title { font-size: 1.55rem; }

    .fs { padding: 2.8rem 0; }
    .fs-inner, .hero-inner { width: 92%; }

    .hero { min-height: 400px; }
    .hero-inner { padding: 3rem 0; }
    .hero-title { font-size: 2.2rem; max-width: none; }
    .hero-sub { font-size: 1rem; }

    .layout-single, .layout-with-sidebar { width: 92%; padding-top: 1.8rem; }

    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat { padding: 0.4rem 0; }
    .stat + .stat::before, .stat + .stat::after { display: none; }
    .stat-num { font-size: 2.6rem; }

    .tl-card { flex-direction: column; padding: 1.1rem 1.2rem; }
    .tl-thumb { flex: none; width: 100%; }
    .tl-thumb img { height: auto; aspect-ratio: 16 / 9; }

    .quote-plate { padding: 2rem 1.5rem 1.8rem; }
    .quote-plate::before { left: 0.7rem; top: 1.8rem; bottom: 1.8rem; }
    .quote-plate blockquote p { font-size: 1.45rem; }
    .quote-camera { width: 170px; height: 120px; }

    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .footer-contact { padding: 1.1rem 1.2rem; }

    .cookie-banner { padding: 0.9rem 1.1rem; }
    .comment-list .children { margin-left: 0.5rem; padding-left: 0.7rem; }
}
