/*
Theme Name: dds_screenrecordervideoeditor.com
Theme URI: https://screenrecordervideoeditor.com/
Author: Алексей Кравцов
Description: Тёмная тема «Монтажный стол» для информационного сайта о видеообзорах квартир и виртуальных турах: дорожки таймлайна, линия playhead, технические таймкоды.
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: kadrtl
*/

/* ---------- Шрифты ---------- */
@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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-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: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-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 {
    --bg: #14161A;
    --track-1: #1B1E24;
    --track-2: #101215;
    --track-accent: #23262E;
    --head: #0C0D10;
    --text: #E8EAED;
    --muted: #7A828E;
    --soft: #A9AFB8;
    --hot: #FF4D2E;
    --cool: #4FE3C1;
    --line: #2E323B;
    --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", "DejaVu Sans Mono", monospace;
    --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 40' fill='%234FE3C1'%3E%3Crect x='0.5' y='3.0' width='1.6' height='34'/%3E%3Crect x='3.5' y='12.0' width='1.6' height='16'/%3E%3Crect x='6.5' y='7.0' width='1.6' height='26'/%3E%3Crect x='9.5' y='17.0' width='1.6' height='6'/%3E%3Crect x='12.5' y='15.0' width='1.6' height='10'/%3E%3Crect x='15.5' y='16.0' width='1.6' height='8'/%3E%3Crect x='18.5' y='15.0' width='1.6' height='10'/%3E%3Crect x='21.5' y='3.0' width='1.6' height='34'/%3E%3Crect x='24.5' y='10.0' width='1.6' height='20'/%3E%3Crect x='27.5' y='17.0' width='1.6' height='6'/%3E%3Crect x='30.5' y='16.0' width='1.6' height='8'/%3E%3Crect x='33.5' y='9.0' width='1.6' height='22'/%3E%3Crect x='36.5' y='17.0' width='1.6' height='6'/%3E%3Crect x='39.5' y='15.0' width='1.6' height='10'/%3E%3Crect x='42.5' y='7.0' width='1.6' height='26'/%3E%3Crect x='45.5' y='7.0' width='1.6' height='26'/%3E%3C/svg%3E");
}

/* ---------- Правила для [hidden] (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- База ---------- */
*, *::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(90deg, rgba(46, 50, 59, .22) 0 1px, transparent 1px 96px);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: break-word;
}
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.12;
    margin: 0 0 .6em;
    letter-spacing: .02em;
    color: var(--text);
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
img { max-width: 100%; height: auto; }
a { color: var(--cool); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, .tl-scroller:focus-visible {
    outline: 2px solid var(--cool);
    outline-offset: 2px;
}
::selection { background: var(--hot); color: var(--head); }

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}
.skip-link {
    position: absolute;
    left: 12px; top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--hot);
    color: var(--head);
    font-family: var(--font-head);
    text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* Единственный контейнер ширины */
.shell { width: min(92%, 1240px); margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    padding: .72em 1.5em;
    border: 1px solid transparent;
    border-radius: 0;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: .95rem;
    letter-spacing: .1em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .12s, box-shadow .12s, background-color .12s, color .12s;
}
.btn-fill { background: var(--hot); color: var(--head); border-color: var(--hot); }
.btn-fill:hover { color: var(--head); transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--cool); }
.btn-ghost { background: transparent; color: var(--cool); border-color: var(--cool); }
.btn-ghost:hover { background: var(--cool); color: var(--head); }
.btn:active { transform: translate(0, 0); box-shadow: none; }

.rec-dot {
    display: inline-block;
    width: .62em; height: .62em;
    border-radius: 50%;
    background: var(--hot);
    margin-right: .45em;
    vertical-align: .05em;
    box-shadow: 0 0 0 3px rgba(255, 77, 46, .22);
}

/* ---------- Шапка ---------- */
.masthead { background: var(--head); border-bottom: 1px solid var(--line); }
.masthead-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex: 1 1 320px; position: relative; padding-left: 14px; }
.brand-playhead {
    position: absolute;
    left: 0; top: -16px; bottom: -16px;
    width: 2px;
    background: var(--hot);
}
.brand-playhead::before {
    content: "";
    position: absolute;
    top: 0; left: -5px;
    width: 12px; height: 10px;
    background: var(--hot);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.brand-mark { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { display: block; width: 56px; height: 56px; object-fit: contain; }
.brand-text { min-width: 0; }
.brand-name {
    display: block;
    max-width: 640px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .98rem;
    line-height: 1.25;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
    hyphens: auto;
}
.brand-name:hover { color: var(--cool); }
.brand-desc {
    margin: 6px 0 0;
    max-width: 640px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: .9rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--hot);
    position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.primary-nav { display: none; width: 100%; }
.primary-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.nav-list li { border-bottom: 1px solid var(--line); }
.nav-list a {
    display: block;
    padding: 12px 4px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text);
    text-decoration: none;
}
.nav-list a:hover { color: var(--cool); }
.nav-list .current-menu-item > a { color: var(--hot); }

/* Линейка-таймлайн под шапкой */
.ruler { background: var(--track-2); border-top: 1px solid var(--line); }
.ruler-inner {
    position: relative;
    height: 36px;
    background-image:
        repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 20%),
        repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 2%);
    background-size: 100% 14px, 100% 7px;
    background-position: left bottom, left bottom;
    background-repeat: no-repeat;
    overflow: hidden;
}
.ruler-tc {
    position: absolute;
    top: 4px;
    padding-left: 5px;
    font-size: 10px;
    line-height: 1;
    color: var(--muted);
    letter-spacing: .04em;
}
.ruler-in { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--hot); }
.ruler-in::before {
    content: "";
    position: absolute;
    top: 0; left: -5px;
    width: 12px; height: 10px;
    background: var(--hot);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

/* ---------- Секции главной ---------- */
.fs { padding: 56px 0; border-top: 1px solid var(--line); }
.fs-timeline { background: var(--track-1); border-top: 0; }
.fs-tools { background: var(--track-2); }
.fs-latest { background: var(--track-1); }
.fs-frame { background: var(--track-accent); border-top: 3px solid var(--hot); }
.fs-works { background: var(--track-2); }
.fs-head { margin-bottom: 30px; max-width: 900px; }
.fs-head-split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.fs-kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cool);
}
.fs-kicker::before { content: "▸ "; color: var(--hot); }
.fs-title {
    margin: 0;
    font-size: clamp(2.1rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: .05em;
}
.fs-lead { margin: 16px 0 0; color: var(--soft); max-width: 760px; }
.link-tc {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.empty-note {
    margin: 0;
    padding: 22px 24px;
    background: var(--track-2);
    border: 1px dashed var(--line);
    color: var(--soft);
}

/* --- Блок 1: таймлайн --- */
.tl-hint { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tl-scroller {
    overflow-x: auto;
    border: 1px solid var(--line);
    background: var(--track-2);
    scrollbar-color: var(--line) var(--track-2);
}
.tl-board {
    --tl-label: 64px;
    position: relative;
    min-width: 900px;
    padding-top: 32px;
}
.tl-row {
    display: grid;
    grid-template-columns: var(--tl-label) minmax(0, 1fr);
    border-top: 1px solid var(--line);
}
.tl-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 1.15rem;
    color: var(--muted);
    background: var(--bg);
}
.tl-label-a { color: var(--cool); }
.tl-lane { position: relative; min-width: 0; height: 120px; }
.tl-row-a .tl-lane { height: 76px; }
.tl-row-thin .tl-lane { height: 60px; }
.tl-clip {
    position: absolute;
    top: 10px;
    bottom: 28px;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 2px solid var(--hot);
    background: var(--hot);
    z-index: 1;
}
.tl-clip-cool { border-color: var(--cool); background: var(--cool); }
.tl-clip-name {
    padding: 2px 7px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .82rem;
    line-height: 1.35;
    color: var(--head);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tl-clip img {
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: cover;
    object-position: left center;
}
.tl-clip-tc {
    position: absolute;
    left: 0;
    bottom: -21px;
    font-size: 10.5px;
    line-height: 1;
    color: var(--muted);
    white-space: nowrap;
}
.tl-diamond {
    position: absolute;
    top: calc(50% - 15px);
    width: 11px; height: 11px;
    margin-left: -5px;
    background: var(--text);
    border: 2px solid var(--track-2);
    transform: rotate(45deg);
    z-index: 2;
}
.tl-wave {
    position: absolute;
    top: 9px; bottom: 9px;
    border: 1px solid rgba(79, 227, 193, .7);
    background-color: rgba(79, 227, 193, .14);
    background-image: var(--wave);
    background-repeat: repeat-x;
    background-position: left center;
    background-size: 48px 78%;
}
.tl-wave-fx { background-size: 24px 60%; }
.tl-playhead {
    position: absolute;
    top: 0; bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--hot);
    z-index: 4;
    pointer-events: none;
}
.tl-playhead-tc {
    position: absolute;
    top: 3px; left: 50%;
    transform: translateX(-50%);
    padding: 3px 7px;
    background: var(--hot);
    color: var(--head);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.tl-playhead-tc::after {
    content: "";
    position: absolute;
    left: 50%; top: 100%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: var(--hot);
}
.tl-legend {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
}
.tl-legend-item {
    min-width: 0;
    padding: 16px 18px;
    background: var(--track-2);
    border: 1px solid var(--line);
    border-top: 3px solid var(--hot);
}
.tl-legend-item.is-cool { border-top-color: var(--cool); }
.tl-legend-tc { font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.tl-legend-name { margin: 4px 0 6px; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; }
.tl-legend-item p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--soft); }

/* --- Блок 2: инструменты --- */
.tools-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.tw {
    position: relative;
    margin: 0;
    container-type: inline-size;
    border: 1px solid var(--line);
    background: var(--track-2);
}
.tw img { display: block; width: 100%; height: auto; }
.tw-panel { position: absolute; left: 8.2%; width: 24.6%; top: 0; bottom: 0; pointer-events: none; }
.tw-project {
    position: absolute;
    top: 11.4%;
    left: 0; right: 14%;
    font-size: 11px;
    font-size: 1.55cqw;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tw-files {
    position: absolute;
    top: 34.5%;
    left: 0; right: 0;
    display: flex;
    flex-direction: column;
    gap: .45em;
    font-size: 11px;
    font-size: 1.42cqw;
    line-height: 1.25;
}
.tw-folder { color: var(--soft); }
.tw-file { color: var(--text); padding-left: 1.2em; position: relative; }
.tw-file::before { content: ""; position: absolute; left: .2em; top: .38em; width: .5em; height: .5em; background: var(--cool); }
.tw-file:last-child::before { background: var(--hot); }
.tw-rec {
    position: absolute;
    left: 41%;
    top: 15.5%;
    padding: .25em .6em;
    background: rgba(12, 13, 16, .85);
    border: 1px solid var(--line);
    color: var(--text);
    font-size: 11px;
    font-size: 1.3cqw;
    font-weight: 600;
    letter-spacing: .08em;
    line-height: 1.3;
}
.tools-list { min-width: 0; }
.tools-lead { color: var(--soft); margin-bottom: 18px; }
.tools-table { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.tools-row {
    display: grid;
    grid-template-columns: 34px 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 16px 10px 16px 0;
    border-top: 1px solid var(--line);
    transition: background-color .15s;
}
.tools-row:hover { background: rgba(79, 227, 193, .05); }
.tools-num { font-size: 11px; color: var(--muted); padding-top: 4px; }
.tools-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    color: var(--cool);
}
.tools-ico svg { display: block; }
.tools-text strong {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.12rem;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.tools-text span { display: block; font-size: 13px; color: var(--soft); line-height: 1.55; }

/* ---------- Карточки записей ---------- */
.cards-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.cards-list { display: flex; flex-direction: column; gap: 20px; }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--track-1);
    border: 1px solid var(--line);
    border-top: 3px solid var(--hot);
    position: relative;
    transition: border-color .15s, transform .15s;
}
.cards-grid .card:nth-child(even), .cards-list .card:nth-child(even) { border-top-color: var(--cool); }
.card:hover { transform: translateY(-3px); border-color: var(--muted); border-top-color: var(--hot); }
.card-thumb-wrap { position: relative; overflow: hidden; background: var(--head); }
.card-thumb-wrap a { display: block; }
.card-thumb-wrap img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform .3s;
}
.card:hover .card-thumb-wrap img { transform: scale(1.03); }
.card-tc, .card-pin {
    position: absolute;
    top: 10px;
    padding: 3px 7px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .04em;
    pointer-events: none;
}
.card-tc { right: 10px; background: rgba(12, 13, 16, .86); color: var(--text); border: 1px solid var(--line); }
.card-pin { left: 10px; background: var(--hot); color: var(--head); text-transform: uppercase; }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px 20px; }
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: .06em;
    color: var(--muted);
}
.card-cat { color: var(--cool); text-transform: uppercase; text-decoration: none; }
.card-cat:hover { color: var(--text); }
.card-title { margin: 0 0 10px; font-size: 1.32rem; letter-spacing: .03em; text-transform: uppercase; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--cool); }
.card-excerpt { flex: 1; font-size: 13.5px; line-height: 1.65; color: var(--soft); }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-more { align-self: flex-start; margin-top: 14px; padding: .55em 1.1em; font-size: .85rem; }

/* ---------- Разбор кадра ---------- */
.frame-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; align-items: start; }
.frame-shot { position: relative; margin: 0; min-width: 0; }
.frame-shot img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1445 / 829;
    object-fit: cover;
    border: 1px solid var(--cool);
}
.callout {
    position: absolute;
    display: flex;
    align-items: center;
    transform: translate(-7px, -7px);
    z-index: 2;
}
.callout-dot {
    flex: 0 0 auto;
    width: 14px; height: 14px;
    border: 2px solid var(--hot);
    border-radius: 50%;
    background: rgba(255, 77, 46, .35);
}
.callout-label {
    position: relative;
    margin-left: 18px;
    padding: 3px 8px;
    background: rgba(12, 13, 16, .88);
    border-left: 2px solid var(--cool);
    color: var(--text);
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.callout-label::before {
    content: "";
    position: absolute;
    right: 100%; top: 50%;
    width: 18px; height: 1px;
    background: var(--cool);
}
.callout-right { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -7px); }
.callout-right .callout-label { margin-left: 0; margin-right: 18px; border-left: 0; border-right: 2px solid var(--cool); }
.callout-right .callout-label::before { right: auto; left: 100%; }
.frame-cap { margin-top: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.frame-spec {
    min-width: 0;
    padding: 24px 24px 20px;
    background: var(--track-2);
    border: 1px solid var(--line);
}
.frame-spec-title { font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.spec-list { margin: 0 0 18px; }
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}
.spec-row dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.spec-row dd { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--cool); white-space: nowrap; }
.frame-note { margin: 0; font-size: 13px; line-height: 1.65; color: var(--soft); }

/* ---------- Примеры работ ---------- */
.works-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.work { margin: 0; min-width: 0; }
.work-frame {
    position: relative;
    overflow: hidden;
    border: 3px solid var(--cool);
    background: var(--head);
}
.work-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 816 / 442;
    object-fit: cover;
    transition: transform .35s;
}
.work:hover .work-frame img { transform: scale(1.04); }
.work-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(12, 13, 16, .55) 0, rgba(12, 13, 16, .2) 22%, transparent 42%),
        linear-gradient(180deg, transparent 62%, rgba(12, 13, 16, .82) 100%);
    pointer-events: none;
}
.work-play {
    position: absolute;
    left: 50%; top: 48%;
    width: 64px; height: 64px;
    transform: translate(-50%, -50%);
    border: 2px solid var(--text);
    border-radius: 50%;
    background: rgba(12, 13, 16, .6);
    z-index: 2;
    transition: background-color .15s, border-color .15s;
}
.work-play::after {
    content: "";
    position: absolute;
    left: 52%; top: 50%;
    transform: translate(-40%, -50%);
    border-style: solid;
    border-width: 11px 0 11px 18px;
    border-color: transparent transparent transparent var(--text);
}
.work:hover .work-play { background: var(--hot); border-color: var(--hot); }
.work-bar {
    position: absolute;
    left: 14px; right: 14px; bottom: 14px;
    height: 3px;
    background: rgba(232, 234, 237, .3);
    z-index: 2;
}
.work-bar::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 38%; background: var(--hot); }
.work-badge {
    position: absolute;
    left: 10px; top: 10px;
    padding: 3px 8px;
    background: var(--hot);
    color: var(--head);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .08em;
    z-index: 2;
}
.work-badge::after { content: "°"; }
.work-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; }
.work-title { font-family: var(--font-head); font-weight: 500; font-size: 1.08rem; letter-spacing: .04em; text-transform: uppercase; }
.work-tc { font-size: 11px; color: var(--muted); white-space: nowrap; }
.works-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 28px 0 64px; }
.crumbs {
    margin-bottom: 26px;
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--muted);
}
.crumbs a { color: var(--cool); }
.crumbs .sep { color: var(--hot); margin: 0 4px; }
.crumbs-current { color: var(--soft); }
.layout-single, .layout-with-sidebar { display: block; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-title { margin: 0; font-size: clamp(1.9rem, 4.6vw, 3rem); text-transform: uppercase; letter-spacing: .04em; }
.page-intro { margin-top: 16px; }
.archive-desc { margin-top: 12px; color: var(--soft); }
.page-search { margin-top: 18px; }

.entry-head { margin-bottom: 24px; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 12px;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--muted);
}
.entry-tc { color: var(--hot); }
.entry-thumb { margin: 0 0 28px; border: 1px solid var(--line); border-top: 3px solid var(--hot); }
.entry-thumb img { display: block; width: 100%; height: auto; }
.entry-content { font-size: 15px; line-height: 1.8; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2, .entry-content h3, .entry-content h4 { margin-top: 1.6em; text-transform: uppercase; letter-spacing: .04em; }
.entry-content h2 { font-size: 1.7rem; padding-left: 14px; border-left: 3px solid var(--hot); }
.entry-content h3 { font-size: 1.3rem; color: var(--cool); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .4em; }
.entry-content ul li::marker { color: var(--cool); }
.entry-content ol li::marker { color: var(--hot); font-weight: 600; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 18px 24px;
    background: var(--track-1);
    border-left: 3px solid var(--hot);
    font-size: 16px;
    color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content code { padding: 1px 6px; background: var(--head); border: 1px solid var(--line); font-size: .92em; }
.entry-content pre { padding: 16px 20px; overflow-x: auto; background: var(--head); border: 1px solid var(--line); }
.entry-content pre code { padding: 0; border: 0; background: none; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
.entry-content table { width: 100%; margin: 1.6em 0; border-collapse: collapse; border: 1px solid var(--line); font-size: 14px; }
.entry-content th, .entry-content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.entry-content th { background: var(--track-1); font-family: var(--font-head); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--cool); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }
.entry-content .alignleft { float: left; margin: 0 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: 0 0 1em 1.4em; }
.entry-content .aligncenter { margin-inline: auto; }
.page-links { margin-top: 20px; font-size: 13px; }
.entry-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.entry-tags a { padding: 4px 10px; border: 1px solid var(--line); font-size: 12px; text-decoration: none; }
.entry-tags a:hover { border-color: var(--cool); }

.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.post-navigation a {
    display: block;
    height: 100%;
    padding: 16px 20px;
    background: var(--track-1);
    border: 1px solid var(--line);
    text-decoration: none;
}
.post-navigation a:hover { border-color: var(--cool); }
.nav-sub { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nav-name { display: block; margin-top: 4px; font-family: var(--font-head); font-size: 1.1rem; color: var(--text); }
.nav-next { text-align: right; }

/* Пагинация (type => plain) */
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: var(--track-1);
    color: var(--text);
    font-size: 13px;
    text-decoration: none;
}
.pager a.page-numbers:hover { border-color: var(--cool); color: var(--cool); }
.pager .page-numbers.current { background: var(--hot); border-color: var(--hot); color: var(--head); font-weight: 600; }
.pager .page-numbers.dots { border-color: transparent; background: none; color: var(--muted); }

/* Сайдбар */
.sidebar {
    min-width: 0;
    margin-top: 40px;
    padding: 22px 22px 8px;
    background: var(--track-2);
    border: 1px solid var(--line);
    border-top: 3px solid var(--cool);
    color: var(--soft);
}
.sidebar .widget { margin-bottom: 26px; font-size: 13.5px; color: var(--soft); }
.sidebar .widget-title {
    margin-bottom: 12px;
    padding-left: 12px;
    border-left: 2px solid var(--hot);
    font-size: 1.05rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--cool); }
.sidebar .post-date { display: block; font-size: 11px; color: var(--muted); }

/* Поиск */
.search-form { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 11px 14px;
    background: var(--track-2);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { border-color: var(--cool); outline: none; }
.search-submit { flex: 0 0 auto; }

/* 404 */
.nf { position: relative; padding: 40px 0 20px; max-width: 760px; }
.nf-code {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(6rem, 22vw, 12rem);
    line-height: .9;
    color: transparent;
    -webkit-text-stroke: 2px var(--hot);
    letter-spacing: .04em;
    margin-bottom: 12px;
}
.nf-text { margin: 16px 0 22px; color: var(--soft); }
.nf-search { margin-bottom: 22px; }
.empty-block .search-form { margin-top: 18px; }

/* Комментарии */
.comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font-size: 1.5rem; text-transform: uppercase; letter-spacing: .05em; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 24px; border-left: 1px solid var(--line); margin-left: 8px; }
.note-body { margin-bottom: 16px; padding: 16px 20px; background: var(--track-1); border: 1px solid var(--line); }
.note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.note-head img { display: block; border-radius: 0; }
.note-author { font-family: var(--font-head); font-size: 1.05rem; letter-spacing: .04em; }
.note-date { font-size: 11px; color: var(--muted); }
.note-wait { color: var(--hot); font-size: 13px; }
.note-text { font-size: 14px; }
.note-reply a { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.comment-respond { margin-top: 28px; padding: 22px 24px; background: var(--track-1); border: 1px solid var(--line); }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; margin-bottom: 5px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--track-2);
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    font: inherit;
    font-size: 14px;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--cool); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.comment-form-cookies-consent label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 12px; }
.comment-form .submit {
    padding: .72em 1.5em;
    background: var(--hot);
    border: 1px solid var(--hot);
    border-radius: 0;
    color: var(--head);
    font-family: var(--font-head);
    font-size: .95rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.comment-form .submit:hover { box-shadow: 3px 3px 0 var(--cool); transform: translate(-2px, -2px); }
.comment-notes, .logged-in-as, .must-log-in { font-size: 12px; color: var(--muted); }

/* ---------- Подвал ---------- */
.sitefoot { background: var(--head); border-top: 1px solid var(--line); color: #9AA1AC; padding-top: 48px; }
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
.foot-col { min-width: 0; }
.sitefoot .widget { font-size: 13px; line-height: 1.7; color: #9AA1AC; }
.sitefoot .widget-title {
    margin-bottom: 14px;
    font-size: 1.05rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text);
}
.sitefoot .widget-title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; background: var(--hot); vertical-align: .12em; }
.sitefoot .foot-col-2 .widget-title::before, .sitefoot .foot-col-3 .widget-title::before { background: var(--cool); }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { padding: 4px 0; }
.sitefoot a { color: var(--text); text-decoration: none; }
.sitefoot a:hover { color: var(--cool); }
.sitefoot .textwidget a { color: var(--cool); text-decoration: underline; }
.sitefoot .textwidget a:hover { color: var(--text); }
.foot-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 40px;
    padding: 18px 0 22px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.foot-line p { margin: 0; }
.copyright { color: #8E95A0; }
.foot-tc { letter-spacing: .08em; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 14px;
    z-index: 60;
    width: min(92%, 820px);
    margin-inline: auto;
}
.cookie-clip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    padding: 16px 20px;
    background: var(--track-1);
    border: 1px solid var(--line);
    border-top: 3px solid var(--hot);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.cookie-tc { font-size: 11px; color: var(--hot); letter-spacing: .06em; }
.cookie-text { flex: 1 1 320px; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text); }
.cookie-accept { padding: .55em 1.3em; }

/* ---------- Адаптив: от 600px ---------- */
@media (min-width: 600px) {
    body { font-size: 15.5px; }
    .tl-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .callout-label { font-size: 11px; }

    .card-row { flex-direction: row; }
    .card-row .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
        overflow: hidden;
        min-height: 190px;
    }
    .card-row .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
    .card-row .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
        display: block;
    }
    .card-row .card-tc { right: auto; left: 10px; top: auto; bottom: 10px; }
}

/* ---------- Адаптив: до 600px (сброс горизонтальных карточек) ---------- */
@media (max-width: 599px) {
    .fs { padding: 44px 0; }
    .brand-name { font-size: .86rem; }
    .brand-logo { width: 46px; height: 46px; }
    .card-row .card-thumb-wrap { flex: none; width: 100%; position: static; }
    .card-row .card-thumb-wrap a { position: static; }
    .card-row .card-thumb-wrap img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .frame-spec { padding: 20px 18px 16px; }
    .comment-respond { padding: 18px 16px; }
    .cookie-clip { padding: 14px 16px; }
    .callout-label { font-size: 9px; padding: 2px 5px; margin-left: 10px; }
    .callout-label::before { width: 10px; }
    .callout-right .callout-label { margin-right: 10px; }
    .tw-rec { display: none; }
}

/* ---------- Адаптив: от 960px ---------- */
@media (min-width: 960px) {
    .home .shell { width: min(85%, 1240px); }
    h1 { font-size: 3rem; }
    .fs { padding: 76px 0; }

    .nav-toggle { display: none; }
    .primary-nav { display: block; width: auto; }
    .nav-list { display: flex; flex-wrap: wrap; gap: 4px 30px; border: 0; }
    .nav-list li { border: 0; }
    .nav-list a { position: relative; padding: 10px 0; }
    .nav-list .current-menu-item > a { color: var(--text); }
    .nav-list .current-menu-item > a::after,
    .nav-list a:hover::after {
        content: "";
        position: absolute;
        left: 0; right: 0; bottom: 2px;
        height: 2px;
        background: var(--hot);
    }
    .nav-list a:hover::after { background: var(--cool); }

    .tl-hint { display: none; }
    .tl-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .tools-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 44px; }
    .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cards-grid > .card:nth-child(3n+1):last-child { grid-column: 1 / -1; flex-direction: row; }
    .cards-grid > .card:nth-child(3n+1):last-child .card-thumb-wrap { flex: 0 0 calc((100% - 44px) / 3); }
    .cards-grid > .card:nth-child(3n+1):last-child .card-thumb-wrap img { height: auto; aspect-ratio: 16 / 9; }
    .frame-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 40px; }
    .works-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }

    .layout-with-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
        column-gap: 6%;
        align-items: start;
    }
    .layout-with-sidebar .sidebar { margin-top: 0; }
    .layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
    .card-row .card-thumb-wrap { flex-basis: 300px; }
}

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