/*
Theme Name: dds_kinooco.ru
Theme URI: https://kinooco.ru/
Author: Дмитрий Романов
Description: Тема для образовательного сайта о кинопроизводстве: графитовая основа, янтарный свет проектора, кадровая типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: kinooco
*/

/* Скрываемые через [hidden] элементы — до основных стилей */
.cookie-banner[hidden] { display: none !important; }

:root {
    --bg: #14141c;
    --bg-alt: #1c1c28;
    --bg-head: #0f0f18;
    --bg-foot: #0a0a12;
    --bg-side: #181822;
    --text: #e8e6e3;
    --text-soft: #c9c6cf;
    --gold: #e6b422;
    --coral: #c44d3a;
    --muted: #8a8794;
    --line: #2a2a38;
    --f-head: "Jost", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
    --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --f-serif: "PT Serif", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(230, 180, 34, .03) 0 1px, transparent 1px 22px);
    color: var(--text);
    font-family: var(--f-body);
    font-size: 1.0625rem;
    line-height: 1.7;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    line-height: 1.2;
    margin: 1.6em 0 .6em;
    color: var(--text);
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 3.2rem; text-transform: uppercase; letter-spacing: .06em; line-height: 1.08; margin-top: 0; }
h2 { font-size: 1.9rem; text-transform: uppercase; letter-spacing: .05em; }
h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: .04em; }
h4 { font-size: 1.15rem; }

a {
    color: var(--gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: color .2s, text-decoration-color .2s;
}
a:hover, a:focus-visible {
    color: var(--coral);
    text-decoration-thickness: 2px;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-family: var(--f-head); font-weight: 600; }

blockquote {
    margin: 1.6em 0 1.6em .4rem;
    padding: .2em 0 .2em 1.6rem;
    border-left: 2px solid var(--gold);
    color: var(--text-soft);
    font-style: italic;
}

pre { overflow-x: auto; background: var(--bg-head); padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 4px; }

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

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Луч проектора ---------- */
.beam-line {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 999;
    background: linear-gradient(90deg, rgba(230, 180, 34, .55), var(--gold) 45%, #ffd866 60%, var(--gold));
    opacity: var(--beam, .5);
    box-shadow: 0 0 calc(var(--beam, .5) * 16px) rgba(230, 180, 34, .8);
    pointer-events: none;
    transition: opacity .15s linear;
}
.admin-bar .beam-line { top: 32px; }
@media (max-width: 782px) { .admin-bar .beam-line { top: 46px; } }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem 1.5rem;
    font-family: var(--f-head); font-weight: 600; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; border-radius: 4px; border: 1px solid var(--gold);
    background: var(--gold); color: #000;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.btn:hover, .btn:focus-visible {
    color: #000; transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(230, 180, 34, .35);
}
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--gold); background: rgba(230, 180, 34, .08); }

/* ---------- Шапка ---------- */
.masthead { background: var(--bg-head); border-bottom: 1px solid var(--gold); padding-top: 3px; }
.masthead-top { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.3rem 0; }
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-mark img, .brand-mark svg { display: block; width: 54px; height: 54px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name { margin: 0 0 .2rem; font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; line-height: 1.35; max-width: 62ch; }
.brand-name a { color: var(--text); text-decoration: none; }
.brand-name a:hover { color: var(--gold); }
.brand-desc {
    margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.45; max-width: 78ch;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.nav-toggle {
    display: none; flex: 0 0 auto;
    background: transparent; border: 1px solid var(--line); border-radius: 4px;
    width: 46px; height: 46px; padding: 0; cursor: pointer; color: var(--gold);
}
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; }

.primary-nav { border-top: 1px solid var(--line); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 2.2rem; }
.primary-nav a {
    display: block; padding: .85rem 0;
    font-family: var(--f-head); font-weight: 500; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text); text-decoration: none; border-bottom: 2px solid transparent;
}
.primary-nav a:hover, .primary-nav a:focus-visible { color: var(--gold); }
.primary-nav .current-menu-item > a, .primary-nav .current_page_item > a { color: var(--gold); border-bottom-color: var(--gold); }

/* ---------- Крошки ---------- */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0 0 1.8rem; overflow-wrap: anywhere; }
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs a:hover { color: var(--coral); text-decoration: underline; }
.breadcrumbs .sep { margin: 0 .45rem; color: var(--gold); }
.breadcrumbs span:last-child { color: var(--text-soft); }

/* ---------- Раскладки ---------- */
.content-wrap { padding: 2.6rem 0 4.5rem; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 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: 2rem; }
.page-head h1 { padding-left: 1rem; border-left: 4px solid var(--gold); }
.page-head-note { color: var(--muted); margin: .8rem 0 0; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
    color: var(--text);
}
.sidebar .widget { margin: 0 0 1.8rem; color: var(--text); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold);
    padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--text); text-decoration: none; }
.sidebar .widget a:hover { color: var(--gold); text-decoration: underline; }
.sidebar .widget .post-date { display: block; color: var(--muted); font-size: .82rem; }
.sidebar .widget p { color: var(--text-soft); }

/* ---------- Карточки ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.6rem;
}
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
    display: flex; flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 18px 42px rgba(0, 0, 0, .55); }
.card-thumb { position: relative; display: block; overflow: hidden; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-thumb::after {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(230, 180, 34, .06), rgba(230, 180, 34, .26));
    opacity: 0; transition: opacity .25s;
}
.card:hover .card-thumb::after { opacity: 1; }
.card-noimg {
    display: block; aspect-ratio: 16 / 9;
    background-color: #17171f;
    background-image:
        radial-gradient(circle, rgba(230, 180, 34, .4) 2px, transparent 2.6px),
        radial-gradient(circle, rgba(230, 180, 34, .4) 2px, transparent 2.6px),
        linear-gradient(135deg, #24242f, #121219);
    background-size: 18px 18px, 18px 18px, 100% 100%;
    background-repeat: repeat-x, repeat-x, no-repeat;
    background-position: 0 4px, 0 calc(100% - 4px), 0 0;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 1.35rem 1.4rem; }
.card-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.card-title { margin: 0 0 .5rem; font-size: 1.08rem; letter-spacing: .04em; line-height: 1.3; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--gold); }
.card-meta { color: var(--muted); font-size: .84rem; margin: 0 0 .7rem; }
.card-excerpt { color: var(--text-soft); font-size: .98rem; line-height: 1.6; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more {
    margin-top: auto; padding-top: .6rem; align-self: flex-start;
    font-family: var(--f-head); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase;
}

/* Цветные метки рубрик */
.chip {
    display: inline-block; padding: .16rem .6rem; border-radius: 3px; border: 1px solid;
    font-family: var(--f-head); font-weight: 500; font-size: .76rem; letter-spacing: .03em; line-height: 1.5;
    text-decoration: none;
}
.chip:hover { text-decoration: none; filter: brightness(1.15); }
.chip-0 { color: #e6b422; background: rgba(230, 180, 34, .1); border-color: rgba(230, 180, 34, .45); }
.chip-1 { color: #e27a68; background: rgba(196, 77, 58, .14); border-color: rgba(196, 77, 58, .55); }
.chip-2 { color: #93a9cc; background: rgba(110, 140, 190, .12); border-color: rgba(110, 140, 190, .45); }
.chip-3 { color: #b9aadb; background: rgba(160, 140, 210, .12); border-color: rgba(160, 140, 210, .45); }

/* ---------- Записи и страницы ---------- */
.entry-head h1 { font-size: 2.6rem; }
.entry-meta { color: var(--muted); font-size: .9rem; margin: .8rem 0 1.6rem; }
.entry-thumb { margin: 0 0 2rem; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { max-width: 74ch; }
.layout-single .entry-content { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { position: relative; padding-left: 1.3rem; }
.entry-content h2::before {
    content: ""; position: absolute; left: 0; top: .42em; width: 8px; height: 8px;
    background: var(--gold); transform: rotate(45deg);
}
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content li::marker { color: var(--gold); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { color: var(--muted); font-size: .88rem; margin-top: .5rem; }
.entry-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 2.6rem; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; height: 2.6rem; padding: 0 .85rem;
    border: 1px solid var(--line); border-radius: 4px;
    color: var(--text); text-decoration: none;
    font-family: var(--f-head); font-weight: 500; font-size: .95rem;
    transition: border-color .2s, color .2s, box-shadow .2s;
}
.pager a.page-numbers:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 16px rgba(230, 180, 34, .2); }
.pager .page-numbers.current { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.pager .page-numbers.dots { border-color: transparent; min-width: auto; padding: 0 .3rem; color: var(--muted); }

/* ---------- Разделители ---------- */
.splice { position: relative; height: 30px; margin: 0; }
.splice::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230, 180, 34, .6) 20%, rgba(230, 180, 34, .6) 80%, transparent);
}
.splice::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px;
    margin: -5px 0 0 -5px; background: var(--bg); border: 1px solid var(--gold); transform: rotate(45deg);
}
.perf {
    height: 16px; margin: 0;
    border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line);
    background: radial-gradient(circle, rgba(230, 180, 34, .55) 1.6px, transparent 2.2px) 0 50% / 18px 16px repeat-x;
}

/* ---------- Главная ---------- */
.front { position: relative; width: 85%; margin-left: auto; margin-right: auto; padding: 2.4rem 0 6rem; }
.front > * { position: relative; z-index: 1; }
.front .deco-camera {
    position: absolute; z-index: 0; right: 0; bottom: 0;
    width: 340px; max-width: 34%; height: auto; opacity: .08; pointer-events: none;
}
.fsec { position: relative; margin: 1.6rem 0; padding: 3.4rem 3rem; border-radius: 6px; }
.fsec-alt { background: var(--bg-alt); }
.fsec-accent {
    background: linear-gradient(180deg, #1c1c28, #14141c);
    box-shadow: inset 0 1px 0 rgba(230, 180, 34, .55);
    overflow: hidden;
}
.fsec-accent::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: -60px; height: 120px; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(230, 180, 34, .16), transparent 70%);
}

.sec-title {
    position: relative;
    margin: 1.2rem 0 1.4rem;
    padding: .05em 0 .05em 1rem;
    border-left: 3px solid var(--gold);
    font-size: 2.2rem; letter-spacing: .07em; text-transform: uppercase; line-height: 1.12;
}
.sec-title::before {
    content: ""; position: absolute; left: -6px; top: -1.1rem; width: 9px; height: 9px;
    background: var(--gold); transform: rotate(45deg);
}
.sec-lead { color: var(--text-soft); max-width: 60ch; margin: 0 0 2rem; }
.sec-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.sec-head-row .sec-title { margin-bottom: 0; }

/* Hero */
.hero {
    position: relative; overflow: hidden;
    display: flex; align-items: flex-end;
    min-height: 580px; margin-top: 0;
    padding: 4rem 3.2rem;
    border-radius: 6px; border: 1px solid var(--line);
    background: var(--bg-head);
}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 18, .92) 0%, rgba(10, 10, 18, .7) 45%, rgba(10, 10, 18, .25) 100%),
        linear-gradient(0deg, rgba(10, 10, 18, .85), transparent 55%);
}
.hero-inner { position: relative; z-index: 2; max-width: 720px; min-width: 0; }
.hero h1 { margin: 0 0 1.2rem; padding-left: 1.1rem; border-left: 4px solid var(--gold); }
.hero-sub { font-size: 1.18rem; color: var(--text-soft); max-width: 54ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Шаги */
.steps-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 3.5rem; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before {
    content: ""; position: absolute; left: 25px; top: 30px; bottom: 40px; width: 6px;
    background: repeating-linear-gradient(180deg, rgba(230, 180, 34, .7) 0 5px, transparent 5px 13px);
    border-radius: 1px;
}
.step { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.4rem; padding-bottom: 2.1rem; }
.step:last-child { padding-bottom: 0; }
.step-num {
    position: relative; z-index: 1;
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-alt); border: 2px solid var(--gold); color: var(--gold);
    font-family: var(--f-head); font-weight: 700; font-size: 1.45rem;
}
.step-body { min-width: 0; padding-top: .45rem; }
.step h3 { margin: 0 0 .4rem; font-size: 1.12rem; letter-spacing: .06em; }
.step p { margin: 0; color: var(--text-soft); }

/* Цитата */
.big-quote { position: relative; margin: 0 auto; max-width: 900px; padding: 2.2rem 0 .4rem 2.4rem; border-left: 2px solid var(--gold); }
.big-quote::before {
    content: ""; position: absolute; left: -7px; top: 0; width: 12px; height: 12px;
    background: var(--gold); transform: rotate(45deg);
}
.big-quote p {
    margin: 0 0 1.2rem;
    font-family: var(--f-serif); font-style: italic; font-size: 2.1rem; line-height: 1.45; color: var(--text);
}
.big-quote figcaption { color: var(--muted); font-size: .95rem; }

/* Рубрикатор */
.topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.topic {
    display: flex; flex-direction: column; gap: .7rem; min-width: 0;
    padding: 1.7rem 1.6rem 1.6rem;
    background: var(--bg-side); border: 1px solid var(--line); border-radius: 6px;
    color: var(--text); text-decoration: none;
    transition: border-color .25s, box-shadow .25s, transform .25s;
}
.topic svg { width: 42px; height: 42px; fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.topic-name { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; letter-spacing: .08em; text-transform: uppercase; }
.topic-desc { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.topic:hover, .topic:focus-visible {
    color: var(--text); text-decoration: none;
    border-color: var(--gold); transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(230, 180, 34, .16);
}
.topic:hover svg, .topic:focus-visible svg { stroke: var(--gold); }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .5rem; max-width: 520px; }
.search-form .search-field {
    flex: 1; min-width: 0; padding: .75rem 1rem;
    background: var(--bg-head); color: var(--text);
    border: 1px solid var(--line); border-radius: 4px; font: inherit;
}
.search-form .search-field:focus { border-color: var(--gold); outline: none; }
.search-form .btn { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.nf { padding: 1rem 0 2rem; }
.nf-code { font-family: var(--f-head); font-weight: 700; font-size: 6rem; line-height: 1; color: var(--gold); letter-spacing: .1em; margin: 0 0 .5rem; }
.nf p { color: var(--text-soft); }
.nf .search-form { margin: 1.6rem 0; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.4rem; margin-top: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 1px dashed var(--line); }
.comment-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.3rem; margin: 0 0 1rem; }
.comment-card-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.comment-card-head img { display: block; border-radius: 50%; }
.comment-author-name { font-family: var(--f-head); font-weight: 600; }
.comment-date { color: var(--muted); font-size: .82rem; }
.comment-card .reply a { font-size: .85rem; }
.comment-respond { margin-top: 2rem; }
.comment-form label { display: block; font-size: .9rem; color: var(--text-soft); margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: .7rem .9rem; background: var(--bg-head); color: var(--text);
    border: 1px solid var(--line); border-radius: 4px; font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--gold); outline: none; }
.comment-form .submit {
    padding: .8rem 1.5rem; background: var(--gold); color: #000; border: 1px solid var(--gold); border-radius: 4px;
    font-family: var(--f-head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
}
.comment-form .submit:hover { box-shadow: 0 8px 26px rgba(230, 180, 34, .35); transform: translateY(-2px); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--bg-foot); color: var(--text); border-top: 1px solid var(--line); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; padding: 3.4rem 0 2.6rem; }
.footer-col { min-width: 0; }
.footer-col .widget { margin: 0 0 1.4rem; color: #d7d4da; }
.footer-col .widget-title { margin: 0 0 1rem; font-size: .92rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.footer-col .widget p { color: #bdbac4; font-size: .96rem; }
.footer-col .widget ul { list-style: none; margin: 0; padding: 0; }
.footer-col .widget li { margin: 0 0 .55rem; }
.footer-col .widget a { color: #e8e6e3; text-decoration: none; }
.footer-col .widget a:hover { color: var(--gold); text-decoration: underline; }
.footer-col .widget .post-date { color: var(--muted); font-size: .82rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.2rem 0 1.4rem; color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 998;
    display: flex; align-items: center; gap: 1.2rem;
    max-width: 760px; margin-left: auto; margin-right: auto;
    padding: 1rem 1.3rem;
    background: var(--bg-head); color: var(--text);
    border: 1px solid var(--gold); border-radius: 6px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
}
.cookie-banner p { margin: 0; font-size: .94rem; color: var(--text-soft); flex: 1; min-width: 0; }
.cookie-banner .btn { flex: 0 0 auto; padding: .6rem 1.2rem; }

.nothing { padding: 2rem 1.8rem; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; }
.nothing p { color: var(--text-soft); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .nav-toggle { display: block; }
    .primary-nav { display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 0; }
    .primary-nav li { border-bottom: 1px solid var(--line); }
    .primary-nav li:last-child { border-bottom: 0; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.6rem; }
    .layout-single { width: 100%; }
    .front { width: 92%; }
    .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps-wrap { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .big-quote p { font-size: 1.7rem; }
    .fsec { padding: 3rem 2.2rem; }
    .hero { padding: 3.2rem 2.2rem; min-height: 520px; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    h1 { font-size: 2.05rem; letter-spacing: .04em; }
    h2 { font-size: 1.5rem; }
    .entry-head h1 { font-size: 1.9rem; }
    .brand-mark img, .brand-mark svg { width: 44px; height: 44px; }
    .brand-name { font-size: .92rem; }
    .brand-desc { display: none; }
    .content-wrap { padding: 1.8rem 0 3.5rem; }
    .fsec { padding: 2.3rem 1.3rem; margin: 1.2rem 0; }
    .hero { padding: 2.4rem 1.3rem; min-height: 480px; }
    .hero-sub { font-size: 1.05rem; }
    .sec-title { font-size: 1.55rem; }
    .card-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .topics { grid-template-columns: minmax(0, 1fr); }
    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .big-quote { padding: 1.8rem 0 .2rem 1.4rem; }
    .big-quote p { font-size: 1.35rem; }
    .steps::before { left: 20px; }
    .step { grid-template-columns: 46px minmax(0, 1fr); gap: 1rem; }
    .step-num { width: 46px; height: 46px; font-size: 1.2rem; }
    .front .deco-camera { max-width: 55%; }
    .sidebar { padding: 1.4rem 1.2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .search-form { flex-direction: column; }
    .nf-code { font-size: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

.big-quote blockquote { margin: 0; padding: 0; border: 0; color: inherit; font-style: normal; }
