/*
Theme Name: dds_filmalona.com
Theme URI: https://filmalona.com/
Author: Шаповалов Олег Денисович
Description: Тема для сайта о фотографии и видеосъёмке в стиле плёночной лаборатории: тёмный стол, перфорация киноплёнки, янтарный свет на просвет и рукописные пометки мастера.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: flmlab
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/oswald-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/roboto-condensed-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-condensed-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/caveat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --c-ink: #111214;
    --c-panel: #1C1F24;
    --c-paper: #F2EFE6;
    --c-ash: #8A8F98;
    --c-amber: #F0A32B;
    --c-fuse: #E4572E;
    --c-line: #3A3F47;
    --c-sec-grey: #1A1C20;
    --c-sec-blue: #2E3A4C;
    --c-sec-black: #17140F;
    --c-sec-green: #35463E;
    --c-step-1: #F2C230;
    --c-step-3: #EC7F2D;
    --c-card: #16181C;
    --c-side: #1F2228;
    --f-head: "Oswald", "Arial Narrow", "Roboto Condensed", sans-serif;
    --f-text: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
    --gap: clamp(1.1rem, 2.5vw, 2rem);
    --pad-x: clamp(1.1rem, 6vw, 4.5rem);
}

/* ---------- Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--c-paper);
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.65;
    background-color: var(--c-ink);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 1280px) {
    body {
        background-image:
            url("images/film-strip.png"),
            url("images/film-strip.png"),
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
        background-repeat: repeat-y, repeat-y, repeat;
        background-position: left top, right top, 0 0;
        background-size: 44px auto, 44px auto, 160px 160px;
    }
}
@media (min-width: 1400px) {
    body { background-size: 88px auto, 88px auto, 160px 160px; }
}

img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-paper); text-decoration: underline; text-decoration-color: var(--c-amber); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--c-amber); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; }

p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-head); font-weight: 500; line-height: 1.15; margin: 1.4em 0 0.6em; color: var(--c-paper); letter-spacing: 0.01em; }
h1, h2, h3, h4, p, li, dd, td, th, figcaption, blockquote { overflow-wrap: break-word; hyphens: auto; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 200; padding: .6rem 1rem; background: var(--c-amber); color: var(--c-ink); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- Каркас ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.site-main { display: block; }

/* ---------- Кнопка-ярлык ---------- */
.btn-tag {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 2.5rem; padding: .5rem 1.1rem .5rem 1.35rem;
    border: 0; border-radius: 0;
    background: var(--c-amber) linear-gradient(90deg, var(--c-ink) 0 5px, transparent 5px);
    color: var(--c-ink); font-family: var(--f-text); font-size: .98rem; font-weight: 700; line-height: 1.2; text-align: center;
    text-decoration: none; cursor: pointer;
    transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn-tag:hover, .btn-tag:focus-visible { color: var(--c-ink); background-color: var(--c-paper); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--c-fuse); }

/* ---------- Шапка ---------- */
.masthead { background: var(--c-panel); padding: 1.2rem var(--pad-x) 1.8rem; border-bottom: 1px solid var(--c-line); }
.masthead-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand-mark { display: inline-flex; flex: 0 0 auto; text-decoration: none; }
.brand-iris { width: 46px; height: 46px; display: block; transition: transform .6s ease; }
.brand-mark:hover .brand-iris { transform: rotate(51deg); }
.brand-logo { max-height: 56px; width: auto; }

.nav-toggle { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .8rem; background: transparent; border: 1px solid var(--c-line); color: var(--c-paper); font-family: var(--f-head); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--c-amber); position: relative; content: ""; transition: transform .2s ease; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { flex: 1 0 100%; display: none; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--c-line); }
.nav-list li { border-bottom: 1px solid var(--c-line); }
.nav-list a { display: block; padding: .7rem 0; font-family: var(--f-head); font-size: 1.05rem; text-decoration: none; color: var(--c-paper); }
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a { color: var(--c-amber); }

.masthead-title { margin-top: 1.6rem; }
.site-name { margin: 0; font-family: var(--f-head); font-weight: 500; text-transform: uppercase; letter-spacing: .02em; line-height: 1.08; font-size: clamp(1.5rem, 5vw, 3.3rem); max-width: 25em; hyphens: manual; overflow-wrap: normal; }
.site-name a { color: var(--c-paper); text-decoration: none; }
.site-name a:hover { color: var(--c-paper); }
.site-desc { margin: .7rem 0 0; color: var(--c-ash); font-size: clamp(.95rem, 1.6vw, 1.08rem); line-height: 1.5; max-width: 80ch; }
.masthead:not(.masthead--front) .site-name { font-size: clamp(1.25rem, 3vw, 1.9rem); max-width: none; }
.masthead:not(.masthead--front) .masthead-title { margin-top: 1rem; }

@media (min-width: 960px) {
    .nav-toggle { display: none; }
    .site-nav { display: block; flex: 0 1 auto; }
    .nav-list { display: flex; flex-wrap: wrap; gap: .3rem 1.6rem; margin: 0; border: 0; }
    .nav-list li { border: 0; }
    .nav-list a { padding: .3rem 0; font-size: 1.02rem; border-bottom: 1px solid transparent; }
    .nav-list a:hover { border-bottom-color: var(--c-amber); }
    .masthead { padding-top: 1.6rem; padding-bottom: 2.4rem; }
    .masthead--front .masthead-title { margin-top: 2.8rem; }
}

/* ---------- Секции главной ---------- */
.fx { position: relative; padding: clamp(2rem, 5vw, 3.4rem) var(--pad-x); }
.fx-title {
    display: flex; align-items: baseline; gap: .55em;
    margin: 0 0 clamp(1.4rem, 3vw, 2.2rem); padding-bottom: .5rem;
    font-size: clamp(1.7rem, 4.4vw, 3rem); text-transform: uppercase; letter-spacing: .04em; font-weight: 400;
    border-bottom: 1px solid var(--c-line);
}
.fx-num { color: var(--c-ash); font-weight: 400; letter-spacing: 0; flex: 0 0 auto; }
.fx-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-bottom: 1px solid var(--c-line); margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.fx-row .fx-title { border: 0; margin: 0; flex: 1 1 auto; min-width: 0; }
.fx-more { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; padding-bottom: .5rem; }

/* Рукописные пометки на полях */
.pen-mark { display: none; }
.pen-text { font-family: var(--f-hand); font-weight: 600; font-size: 56px; }
@media (min-width: 1440px) {
    .pen-mark { display: block; position: absolute; width: 96px; height: auto; pointer-events: none; }
    .pen-mark--left { right: calc(100% + 8px); top: 18%; }
    .pen-mark--right { left: calc(100% + 8px); top: 22%; }
}

/* Блок 1 — экспозиция */
.fx-expo { background: var(--c-sec-grey) radial-gradient(ellipse 60% 70% at 78% 10%, rgba(242, 239, 230, .06), transparent 70%); }
.expo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.expo-lead { margin: 0; color: var(--c-ash); font-size: 1rem; max-width: 46ch; }
.expo-panel { min-width: 0; }

.meter { max-width: 460px; }
.meter-scale {
    position: relative; height: 54px; margin: 0 10px;
    background:
        linear-gradient(var(--c-paper), var(--c-paper)) left 34px / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, var(--c-paper) 0 1px, transparent 1px calc(12.5% / 3)) left 28px / 100% 6px no-repeat;
}
.meter-scale::after { content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 12px; background: repeating-linear-gradient(90deg, var(--c-paper) 0 1px, transparent 1px 12.5%); background-size: calc(100% + 1px) 100%; }
.meter-mark { position: absolute; top: 0; transform: translateX(-50%); font-family: var(--f-head); font-size: .8rem; color: var(--c-paper); line-height: 1; }
.meter-needle { position: absolute; top: 38px; left: 50%; width: 12px; height: 14px; margin-left: -6px; background: var(--c-amber); clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); transition: left .35s cubic-bezier(.3, 1.4, .5, 1); }
.meter-read { margin: .5rem 0 0; text-align: center; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .9rem; color: var(--c-amber); }
.meter-read.is-over { color: var(--c-fuse); }

.dials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 460px; margin-top: 1.4rem; }
.dial { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; gap: .35rem; }
.dial-name { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; }
.dial-btn { width: 2.2rem; height: 1.7rem; padding: 0; border: 1px solid var(--c-line); background: transparent; color: var(--c-ash); font-size: .7rem; cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.dial-btn:hover { color: var(--c-amber); border-color: var(--c-amber); }
.dial-btn:disabled { opacity: .35; cursor: default; }
.dial-track {
    position: relative; width: 26px; height: 130px;
    background:
        linear-gradient(var(--c-paper), var(--c-paper)) center / 2px 100% no-repeat,
        repeating-linear-gradient(0deg, var(--c-ash) 0 1px, transparent 1px calc(100% / 12)) left center / 8px 100% no-repeat;
}
.dial-thumb { position: absolute; left: 50%; width: 15px; height: 15px; margin: 0 0 -7.5px -7.5px; border-radius: 50%; background: #CFCAC0; box-shadow: 0 0 0 3px var(--c-sec-grey); transition: bottom .3s ease; }
.dial-value { font-family: var(--f-head); font-size: 1.15rem; color: var(--c-paper); }
.dial-note { font-size: .82rem; line-height: 1.35; color: var(--c-ash); min-height: 2.7em; }

.lens { margin: 0; min-width: 0; }
.lens-stage { position: relative; padding: 2.2rem 0; max-width: 360px; margin-inline: auto; }
.lens-stage img { width: 100%; }
.lens-iris { position: absolute; left: 51%; top: 2.2rem; bottom: 2.2rem; width: 4px; margin-left: -2px; --open: 40%; }
.lens-iris span { position: absolute; left: 0; width: 4px; background: var(--c-amber); height: calc((72% - var(--open)) / 2); transition: height .35s ease; box-shadow: 0 0 8px rgba(240, 163, 43, .6); }
.lens-iris span:first-child { top: 14%; }
.lens-iris span:last-child { bottom: 14%; }
.lens-tag { position: absolute; font-family: var(--f-hand); font-size: 1.25rem; line-height: 1; color: var(--c-paper); white-space: nowrap; transform: translateX(-50%); }
.lens-tag--tl { top: .4rem; left: 36%; transform: translateX(-80%); }
.lens-tag--tr { top: .4rem; left: 68%; transform: translateX(-20%); }
.lens-tag--bl { bottom: .4rem; left: 38%; }
.lens-tag--br { bottom: .4rem; left: 70%; }
.lens figcaption { margin-top: .4rem; font-size: .85rem; color: var(--c-ash); text-align: center; }

@media (min-width: 960px) {
    .expo { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
    .expo-lead { padding-top: .2rem; }
}

/* Блок 2 — раскадровка */
.fx-board { background: var(--c-sec-blue); }
.fx-board .fx-title { border-bottom-color: rgba(242, 239, 230, .18); }
.fx-board .fx-num { color: #8C9AAE; }
.board { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
.board-frame { position: relative; min-width: 0; }
.board-head { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; font-size: .9rem; color: #D6DCE4; }
.board-no { font-family: var(--f-head); }
.board-plan { font-family: var(--f-head); text-transform: lowercase; letter-spacing: .03em; color: #C2CAD6; }
.board-pic { position: relative; display: block; }
.board-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid #1B232F; box-shadow: 0 0 0 1px rgba(242, 239, 230, .35); background: #EDEDEA; transition: transform .2s ease; }
.board-frame:hover img { transform: translateY(-3px) rotate(-.6deg); }
.board-text { margin: .55rem 0 0; font-size: .86rem; line-height: 1.4; color: #C2CAD6; }
.board-sum { margin: 1.8rem 0 0; text-align: center; font-family: var(--f-head); font-size: 1.15rem; letter-spacing: .02em; }
@media (min-width: 600px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 960px) {
    .board { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 1.6rem; }
    .board-frame:not(:last-child) .board-pic::after { content: ""; position: absolute; top: 50%; left: 100%; width: 1.6rem; border-top: 2px dashed rgba(242, 239, 230, .55); }
}

/* Последние записи */
.fx-latest { background: #15161A; }

/* Блок 3 — разбор кадра */
.fx-frame { background: var(--c-sec-black); border: 2px solid var(--c-fuse); }
.fx-frame .fx-num { color: #A88A63; }
.frame { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
.frame-shot { position: relative; margin: 0; aspect-ratio: 2 / 1; background: #050505; display: flex; align-items: center; overflow: hidden; min-width: 0; }
.frame-shot img { width: 100%; aspect-ratio: 1600 / 580; object-fit: cover; }
.frame-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.frame-layer g { opacity: 0; transition: opacity .3s ease; }
.frame-layer g.is-on { opacity: 1; }
.frame-note { position: absolute; font-family: var(--f-head); font-size: clamp(.7rem, 1.3vw, .9rem); color: var(--c-paper); background: rgba(17, 18, 20, .72); padding: .1rem .4rem; line-height: 1.3; opacity: 0; transition: opacity .3s ease; pointer-events: none; white-space: nowrap; }
.frame-note.is-on { opacity: 1; }
.frame-note--thirds-h { left: 50%; bottom: 7%; transform: translate(-50%, 50%); }
.frame-note--thirds-v { left: 3%; top: 50%; transform: translateY(-50%); }
.frame-note--lines { left: 45.7%; top: 36%; transform: translate(-50%, -170%); }
.frame-note--pause { left: 74%; top: 18%; }
.frame-note--back { left: 27%; top: 13%; transform: translateX(-50%); color: var(--c-amber); }
.frame-note--shade { left: 43%; bottom: 22%; color: var(--c-fuse); }
.frame-side { min-width: 0; }
.frame-rules { display: flex; flex-direction: column; border-left: 2px solid var(--c-amber); padding-left: 1.2rem; }
.frame-rule { padding: .45rem 0; border: 0; border-bottom: 1px solid var(--c-line); background: transparent; color: var(--c-paper); font-family: var(--f-head); font-size: clamp(1.15rem, 2vw, 1.45rem); text-align: left; cursor: pointer; transition: color .15s ease, padding .15s ease; }
.frame-rule:last-child { border-bottom: 0; }
.frame-rule:hover { color: var(--c-amber); }
.frame-rule.is-active { color: var(--c-amber); padding-left: .5rem; }
.frame-text[hidden] { display: none !important; }
.frame-text { margin: 1.1rem 0 0; font-size: .95rem; color: #C9C5BC; }
@media (min-width: 960px) {
    .frame { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; gap: 2.4rem; }
}

/* Блок 4 — маршрут обработки */
.fx-route { background: var(--c-sec-green) radial-gradient(ellipse 70% 60% at 85% 100%, rgba(17, 18, 20, .35), transparent 70%); }
.fx-route .fx-title { border-bottom-color: rgba(242, 239, 230, .18); }
.fx-route .fx-num { color: #8FA399; }
.route { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.route-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.route-step { position: relative; }
.route-step:not(:last-child)::after { content: ""; position: absolute; left: 50%; top: 100%; height: 1.5rem; border-left: 2px solid var(--c-amber); }
.route-step:not(:last-child)::before { content: ""; position: absolute; left: 50%; top: calc(100% + 1.5rem - 7px); margin-left: -5px; border: 6px solid transparent; border-top-color: var(--c-amber); border-bottom: 0; z-index: 1; }
.route-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; max-width: 300px; margin-inline: auto; min-height: 3rem; padding: .55rem 1.2rem; border: 0; background: var(--c-step-1); color: #1C1A12; font-family: var(--f-text); font-size: 1.2rem; font-weight: 700; cursor: pointer; box-shadow: 0 3px 0 rgba(0, 0, 0, .25); transition: transform .15s ease, box-shadow .15s ease; }
.route-step--2 .route-btn { background: var(--c-amber); }
.route-step--3 .route-btn { background: var(--c-step-3); }
.route-step--4 .route-btn { background: var(--c-fuse); color: #1A0F0B; }
.route-btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(0, 0, 0, .3); }
.route-btn.is-active { outline: 2px solid var(--c-paper); outline-offset: 4px; }
.route-no { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; background: rgba(17, 18, 20, .85); color: var(--c-paper); font-family: var(--f-head); font-size: .9rem; font-weight: 400; }
.route-panel[hidden] { display: none !important; }
.route-panel { background: rgba(17, 18, 20, .45); border: 1px solid rgba(242, 239, 230, .2); border-left: 4px solid var(--c-amber); padding: 1.5rem 1.6rem; }
.route-kicker { margin: 0; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--c-amber); }
.route-name { margin: .2rem 0 .7rem; font-size: 1.6rem; text-transform: uppercase; letter-spacing: .03em; font-weight: 400; }
.route-panel p:not(.route-kicker) { color: #DCD8CE; }
.route-points { list-style: none; margin: 0; padding: 0; }
.route-points li { position: relative; padding-left: 1.6rem; margin-bottom: .4rem; font-size: .95rem; color: var(--c-paper); }
.route-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: .75rem; height: .5rem; background: var(--c-amber); clip-path: polygon(0 0, 100% 50%, 0 100%); }
@media (min-width: 960px) {
    .route { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 3rem; }
    .route-step--1 .route-btn { transform: translateX(-24px); }
    .route-step--2 .route-btn { transform: translateX(-8px); }
    .route-step--3 .route-btn { transform: translateX(8px); }
    .route-step--4 .route-btn { transform: translateX(24px); }
    .route-step--1 .route-btn:hover { transform: translate(-24px, -2px); }
    .route-step--2 .route-btn:hover { transform: translate(-8px, -2px); }
    .route-step--3 .route-btn:hover { transform: translate(8px, -2px); }
    .route-step--4 .route-btn:hover { transform: translate(24px, -2px); }
    .route-step--1::after, .route-step--2::after, .route-step--3::after { margin-left: 0; }
    /* петли возврата сбоку */
    .route-step--1 .route-btn::after, .route-step--2 .route-btn::after, .route-step--3 .route-btn::after { content: ""; position: absolute; top: 50%; height: calc(100% + 1.5rem); width: 26px; border: 2px solid rgba(240, 163, 43, .8); pointer-events: none; }
    .route-step--1 .route-btn::after, .route-step--3 .route-btn::after { left: 100%; border-left: 0; }
    .route-step--2 .route-btn::after { right: 100%; border-right: 0; }
}

/* ---------- Карточки записей ---------- */
.cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 600px) { .cards--three, .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.layout-single .cards--list { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .layout-single .cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .layout-single .cards--list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--c-card); border: 1px solid rgba(242, 239, 230, .85); border-radius: 3px; padding: .8rem; transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--c-amber); }
.card-thumb { position: relative; background: #050505; padding: 9px 0; }
.card-thumb::before, .card-thumb::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: repeating-linear-gradient(90deg, transparent 0 5px, #6E6C66 5px 12px, transparent 12px 16px) center / 100% 5px no-repeat; }
.card-thumb::before { top: 0; }
.card-thumb::after { bottom: 0; }
.card-thumb a { display: block; text-decoration: none; }
.card-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; clip-path: polygon(0 1%, 7% 0, 18% 1.5%, 31% .3%, 46% 1.2%, 60% 0, 74% 1.4%, 88% .2%, 100% 1%, 100% 99%, 91% 100%, 79% 98.6%, 64% 99.8%, 50% 98.8%, 35% 100%, 21% 98.7%, 9% 99.8%, 0 99%); filter: saturate(.95); transition: filter .2s ease; }
.card:hover .card-thumb img { filter: saturate(1.1) brightness(1.05); }
.card-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: .9rem .25rem .2rem; min-width: 0; }
.card-pin { font-family: var(--f-head); text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: var(--c-ink); background: var(--c-fuse); padding: .1rem .45rem; margin-bottom: .5rem; }
.card-title { margin: 0 0 .3rem; font-size: 1.22rem; line-height: 1.25; font-weight: 500; max-width: 100%; }
.card-title a { text-decoration: none; color: var(--c-paper); }
.card-title a:hover { color: var(--c-amber); }
.card-date { font-size: .85rem; color: var(--c-ash); }
.card-excerpt { margin: .55rem 0 .9rem; font-size: .93rem; line-height: 1.55; color: #C9C5BC; max-width: 100%; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: inherit; }
.card-more { margin-top: auto; }
.empty-note { color: var(--c-ash); }

/* ---------- Внутренние страницы ---------- */
.layout-single, .layout-with-sidebar { background: var(--c-panel); background: linear-gradient(180deg, #181A1E, #15161A); padding: clamp(1.6rem, 4vw, 3rem) var(--pad-x) clamp(2.4rem, 5vw, 4rem); }
.layout-single .content-area { width: 100%; }
@media (min-width: 960px) { .layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; } }
.layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
@media (min-width: 960px) {
    .layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); column-gap: 6%; align-items: start; }
}

.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem; margin-bottom: 1.4rem; font-size: .88rem; color: var(--c-ash); }
.crumbs a { color: var(--c-ash); text-decoration-color: rgba(240, 163, 43, .6); }
.crumbs a:hover { color: var(--c-amber); }
.crumbs-sep { color: var(--c-amber); padding: 0 .35rem; }
.crumbs-current { color: var(--c-paper); }

.page-head { margin-bottom: 1.8rem; border-bottom: 1px solid var(--c-line); padding-bottom: .9rem; }
.page-title, .entry-title { margin: 0; font-size: clamp(1.8rem, 4.4vw, 2.9rem); text-transform: uppercase; letter-spacing: .03em; font-weight: 400; }
.page-lead { margin: .6rem 0 0; color: var(--c-ash); }

.entry-head { margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--c-line); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin-top: .7rem; font-size: .9rem; color: var(--c-ash); }
.entry-cat a { color: var(--c-amber); text-decoration: none; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.entry-cover { margin: 0 0 1.8rem; background: #050505; padding: 12px 0; position: relative; }
.entry-cover::before, .entry-cover::after { content: ""; position: absolute; left: 0; right: 0; height: 12px; background: repeating-linear-gradient(90deg, transparent 0 7px, #6E6C66 7px 16px, transparent 16px 22px) center / 100% 6px no-repeat; }
.entry-cover::before { top: 0; }
.entry-cover::after { bottom: 0; }
.entry-cover img { width: 100%; }

.entry-content { font-size: 1.08rem; line-height: 1.75; color: #E6E2D8; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; letter-spacing: .03em; font-weight: 400; padding-bottom: .35rem; border-bottom: 1px solid var(--c-line); }
.entry-content h3 { font-size: 1.4rem; }
.entry-content h4 { font-size: 1.2rem; color: var(--c-amber); }
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul, .entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul { list-style: none; padding-left: 1.5em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: ""; position: absolute; left: -1.3em; top: .62em; width: .6em; height: .42em; background: var(--c-amber); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.entry-content ol { padding-left: 1.6em; }
.entry-content ol > li::marker { color: var(--c-amber); font-family: var(--f-head); }
.entry-content blockquote { margin: 1.6em 0; padding: 1.2rem 1.5rem; background: #23262C; border-left: 4px solid var(--c-amber); font-family: var(--f-head); font-size: 1.25rem; line-height: 1.45; color: var(--c-paper); }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; font-family: var(--f-text); font-size: .9rem; color: var(--c-ash); font-style: normal; }
.entry-content img { margin-block: 1em; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text { font-size: .88rem; color: var(--c-ash); margin-top: .4rem; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: .95rem; }
.entry-content .wp-block-table { overflow-x: auto; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: #262A31; font-family: var(--f-head); font-weight: 500; letter-spacing: .03em; color: var(--c-amber); }
.entry-content tr:nth-child(even) td { background: rgba(242, 239, 230, .03); }
.entry-content table { border: 1px solid var(--c-line); }
.entry-content pre { background: #0B0C0E; border: 1px solid var(--c-line); padding: 1rem; overflow-x: auto; font-size: .9rem; }
.entry-content code { background: #0B0C0E; padding: .1em .35em; font-size: .92em; }
.entry-content hr { border: 0; height: 9px; margin: 2em 0; background: repeating-linear-gradient(90deg, var(--c-line) 0 7px, transparent 7px 14px); }
.alignleft { float: left; margin: .3em 1.4em 1em 0; max-width: 50%; }
.alignright { float: right; margin: .3em 0 1em 1.4em; max-width: 50%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

.entry-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.entry-tags a { padding: .2rem .6rem; border: 1px solid var(--c-line); text-decoration: none; font-size: .88rem; color: var(--c-ash); }
.entry-tags a:hover { color: var(--c-amber); border-color: var(--c-amber); }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: 2.4rem; }
@media (min-width: 600px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav-link { display: block; padding: 1rem 1.2rem; border: 1px solid var(--c-line); text-decoration: none; font-family: var(--f-head); font-size: 1.05rem; line-height: 1.3; }
.post-nav-link span { display: block; margin-bottom: .3rem; font-family: var(--f-text); font-size: .82rem; color: var(--c-amber); text-transform: uppercase; letter-spacing: .06em; }
.post-nav-link--next { text-align: right; }
.post-nav-link:hover { border-color: var(--c-amber); }

/* ---------- Сайдбар ---------- */
.sidebar { margin-top: 2.6rem; min-width: 0; background: var(--c-side); border: 1px solid var(--c-line); border-top: 3px solid var(--c-amber); padding: 1.4rem 1.4rem .6rem; color: #D8D4CA; }
@media (min-width: 960px) { .sidebar { margin-top: 0; } }
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget-title { margin: 0 0 .9rem; padding-bottom: .4rem; border-bottom: 1px solid var(--c-line); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 400; color: var(--c-paper); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed var(--c-line); line-height: 1.35; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #E8E4DA; text-decoration: none; }
.sidebar a:hover { color: var(--c-amber); }
.sidebar .post-date { display: block; font-size: .82rem; color: var(--c-ash); }
.sidebar p { color: #D8D4CA; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 2.4rem; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid var(--c-line); background: #1A1C20; color: var(--c-paper); font-family: var(--f-head); font-size: 1rem; text-decoration: none; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.pager a.page-numbers:hover { border-color: var(--c-amber); color: var(--c-amber); }
.pager .page-numbers.current { background: var(--c-amber); border-color: var(--c-amber); color: var(--c-ink); box-shadow: inset 4px 0 0 var(--c-ink); }
.pager .page-numbers.dots { border: 0; background: none; min-width: 1.5rem; padding: 0; color: var(--c-ash); }
.pager--inner { margin-top: 1.6rem; }
.pager--inner > span, .pager--inner > a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.3rem; height: 2.3rem; border: 1px solid var(--c-line); text-decoration: none; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 520px; }
.search-field { flex: 1 1 200px; min-width: 0; min-height: 2.6rem; padding: .5rem .8rem; border: 1px solid var(--c-line); border-radius: 0; background: #0E0F11; color: var(--c-paper); font: inherit; font-size: 1rem; }
.search-field::placeholder { color: var(--c-ash); }
.search-field:focus { border-color: var(--c-amber); outline: none; }

/* ---------- 404 ---------- */
.lost { text-align: left; }
.lost-code { margin: 0; font-family: var(--f-head); font-size: clamp(5rem, 18vw, 10rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--c-amber); letter-spacing: .05em; }
.lost .page-title { margin: .4rem 0 1rem; }
.lost-text { color: #C9C5BC; max-width: 56ch; }
.lost .search-form { margin: 1.4rem 0; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--c-line); }
.comments-title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 400; margin: 0 0 1.2rem; }
.comment-reply-title small { margin-left: 1rem; font-family: var(--f-text); font-size: .85rem; text-transform: none; letter-spacing: 0; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: clamp(1rem, 4vw, 2.6rem); }
.note-body { margin-bottom: 1rem; padding: 1rem 1.2rem; background: #1F2227; border: 1px solid var(--c-line); border-left: 3px solid var(--c-amber); }
.note-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.note-head img { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; border-radius: 0; background: var(--c-line); font-size: 0; }
.note-meta { display: flex; flex-direction: column; line-height: 1.3; }
.note-author { font-family: var(--f-head); font-size: 1.05rem; }
.note-meta time { font-size: .82rem; color: var(--c-ash); }
.note-wait { color: var(--c-amber); font-size: .9rem; }
.note-text p:last-child { margin-bottom: 0; }
.note-reply { margin-top: .5rem; }
.note-reply a { font-size: .88rem; font-family: var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--c-amber); text-decoration: none; }
.comment-respond { margin-top: 2rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .9rem; color: var(--c-ash); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: .6rem .8rem; border: 1px solid var(--c-line); border-radius: 0; background: #0E0F11; color: var(--c-paper); font: inherit; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--c-amber); outline: none; }
.comment-form-cookies-consent { display: flex; gap: .6rem; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--c-ash); }
.comments-closed { color: var(--c-ash); }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

/* ---------- Подвал ---------- */
.site-foot { background: var(--c-panel); border-top: 1px solid var(--c-line); padding: clamp(2rem, 4vw, 3rem) var(--pad-x) 1.4rem; margin-bottom: 0; color: #D8D4CA; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
@media (min-width: 600px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1rem; }
.site-foot .widget-title { margin: 0 0 .7rem; font-family: var(--f-head); font-size: 1.2rem; font-weight: 400; color: var(--c-paper); }
.site-foot p, .site-foot .textwidget { color: #D8D4CA; font-size: .95rem; line-height: 1.55; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .35rem; }
.site-foot a { color: #A4A9B1; text-decoration: none; font-size: .95rem; }
.site-foot a:hover { color: var(--c-amber); text-decoration: underline; text-decoration-color: var(--c-amber); }
.foot-col--links .widget-title { color: var(--c-paper); }
.foot-copy { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--c-line); font-size: .88rem; color: var(--c-ash) !important; }
.site-foot { margin-bottom: 0; }
body { padding-bottom: 0; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner { position: fixed; left: 50%; bottom: 1rem; z-index: 150; transform: translateX(-50%); width: min(92%, 760px); display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; padding: 1rem 1.3rem; background: var(--c-panel); border: 1px solid var(--c-line); border-left: 5px solid var(--c-amber); box-shadow: 0 10px 30px rgba(0, 0, 0, .55); }
.cookie-text { flex: 1 1 280px; margin: 0; font-size: .92rem; line-height: 1.45; color: #E2DED4; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Мелкие экраны ---------- */
@media (max-width: 600px) {
    .fx { padding: 2rem 1.1rem; }
    .fx-frame { padding: 2rem 1.1rem; }
    .route-panel { padding: 1.2rem 1.1rem; }
    .cookie-banner { bottom: .5rem; padding: .9rem 1rem; }
    .lens-tag { font-size: 1.05rem; }
    .dials { gap: .5rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; max-width: 100%; }
}
