/*
Theme Name: dds_bowling-video-analysis.com
Theme URI: https://bowling-video-analysis.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: bwlvid
*/

/* ---------- Шрифты (OFL-1.1, вложены в тему) ---------- */
@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+2000-206F, U+2074, 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: 600; font-display: swap; src: url("fonts/oswald-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: "Oswald"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/oswald-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-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"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-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"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/roboto-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+2000-206F, U+2074, 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+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --bg: #101A26;
    --wood: #1B2A3A;
    --deep: #0B1219;
    --ivory: #F2EDE3;
    --foot: #070C12;
    --head: #0D1620;
    --line: #2E4A63;
    --text: #EDF1F4;
    --muted: #8FA3B5;
    --orange: #FF5A1F;
    --lime: #D8F24B;
    --teal: #4FD1C5;
    --ink: #1B2A3A;
    --panel: #1B2D39;
    --card: #111A22;
    --plate: #13202D;
    --ivory-rule: #D6CCBA;
    --font-head: "Oswald", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-cond: "Roboto Condensed", "Arial Narrow", "Segoe UI", Arial, sans-serif;
}

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

/* ---------- База ---------- */
*, *::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;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(27, 42, 58, 0.38) 46px 47px),
        repeating-linear-gradient(90deg, transparent 0 9px, rgba(27, 42, 58, 0.12) 9px 10px, transparent 10px 23px),
        linear-gradient(180deg, rgba(27, 42, 58, 0) 0, rgba(27, 42, 58, 0.45) 45%, rgba(27, 42, 58, 0) 100%);
    background-attachment: scroll;
}

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

p, li, dd, h1, h2, h3, h4, h5, h6, blockquote, figcaption, td, th {
    overflow-wrap: break-word;
    hyphens: auto;
}

p { margin: 0 0 1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.6em;
    letter-spacing: 0.01em;
}

a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover { color: var(--orange); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.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: 100;
    padding: 0.6rem 1rem;
    background: var(--orange);
    color: var(--deep);
    font-family: var(--font-head);
    text-transform: uppercase;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn,
.comment-form .submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4em;
    padding: 0.55rem 1.15rem;
    border: 1px solid var(--orange);
    border-radius: 0;
    background: var(--orange);
    color: var(--deep);
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:hover,
.comment-form .submit:hover {
    background: transparent;
    color: var(--orange);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--orange);
}
.btn:active { transform: none; box-shadow: none; }

.link-line {
    font-family: var(--font-head);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
}

/* ---------- Заголовки секций ---------- */
.kicker {
    margin: 0 0 0.35rem;
    font-family: var(--font-cond);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--orange); }

.fs-title {
    margin: 0 0 1.4rem;
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3.4rem);
    line-height: 1.02;
    text-transform: uppercase;
    color: var(--text);
}

/* ---------- Шапка ---------- */
.topzone { position: relative; }
.topzone--lane { background-color: var(--bg); }

.masthead {
    position: relative;
    z-index: 5;
    background: rgba(13, 22, 32, 0.9);
    border-bottom: 1px solid var(--line);
}

.masthead-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    padding: 0.75rem 0;
}

.brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    flex: 1 1 260px;
}

.brand-mark { display: block; flex: 0 0 auto; line-height: 0; }
.brand-logo { width: 44px; height: 44px; object-fit: contain; }

.brand-text { min-width: 0; }

.brand-name {
    margin: 0;
    hyphens: manual;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(0.98rem, 1.5vw, 1.2rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    max-width: 30ch;
}
.brand-name a { color: var(--text); text-decoration: none; }
.brand-name a:hover { color: var(--orange); }

.brand-tagline {
    margin: 0.3rem 0 0;
    hyphens: manual;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 62ch;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.nav-toggle:hover { border-color: var(--orange); color: var(--orange); }
.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s;
}
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before,
.nav-toggle-lines::after { content: ""; position: absolute; left: 0; }
.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; flex-basis: 100%; }
.site-nav.is-open { display: block; }

.site-menu {
    list-style: none;
    margin: 0;
    padding: 0.4rem 0 0.6rem;
    border-top: 1px solid var(--line);
}
.site-menu li { margin: 0; }
.site-menu a {
    display: block;
    padding: 0.6rem 0;
    font-family: var(--font-cond);
    font-size: 1.02rem;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid rgba(46, 74, 99, 0.45);
}
.site-menu a:hover { color: var(--orange); }
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a,
.site-menu .current-menu-ancestor > a { color: var(--orange); }

@media (min-width: 961px) {
    .nav-toggle { display: none; }
    .site-nav { display: block; flex-basis: auto; }
    .site-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 0.2rem 1.6rem;
        padding: 0;
        border-top: 0;
    }
    .site-menu a {
        padding: 0.3rem 0;
        border-bottom: 1px solid transparent;
    }
    .site-menu a:hover { border-bottom-color: var(--teal); color: var(--text); }
    .site-menu .current-menu-item > a,
    .site-menu .current_page_item > a { border-bottom-color: var(--orange); }
}

/* Главная: дорожка под шапкой */
.topzone--lane::after {
    content: "";
    display: block;
    height: clamp(170px, 27vw, 430px);
    margin-bottom: calc(-1 * clamp(36px, 7vw, 120px));
    background:
        repeating-linear-gradient(90deg, transparent 0 46px, rgba(27, 42, 58, 0.38) 46px 47px),
        linear-gradient(180deg, rgba(16, 26, 38, 0) 55%, var(--bg) 100%),
        linear-gradient(90deg, rgba(16, 26, 38, 0.92) 0, rgba(16, 26, 38, 0.55) 30%, rgba(16, 26, 38, 0) 52%),
        url("images/lane-hero.jpg") center top / cover no-repeat;
}

@media (min-width: 961px) {
    .topzone--lane .brand-tagline {
        position: absolute;
        left: 0;
        top: calc(100% + 1.6rem);
        width: min(38ch, 40vw);
        font-size: 0.98rem;
        line-height: 1.5;
        color: var(--text);
        text-shadow: 0 1px 8px rgba(7, 12, 18, 0.9);
    }
}

/* ---------- Секции главной ---------- */
.site-main { display: block; }

.fs { position: relative; padding: 2.6rem 0; }

/* Фазы броска */
.fs-phases { z-index: 1; padding-top: 1rem; }

.reel { overflow-x: auto; padding-bottom: 0.4rem; scrollbar-color: var(--line) transparent; }
.reel-inner { min-width: 760px; }

.reel-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}
.reel-frame { min-width: 0; }

.reel-shot {
    position: relative;
    margin: 0;
    border: 2px solid var(--orange);
    border-radius: 3px;
    background: #101D25;
    box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.06);
    transition: transform 0.15s, box-shadow 0.15s;
}
.reel-shot img {
    width: 100%;
    height: auto;
    aspect-ratio: 396 / 340;
    object-fit: cover;
    display: block;
}
.reel-frame:hover .reel-shot { transform: translateY(-3px); box-shadow: 0 6px 0 -2px var(--orange); }

.reel-num {
    position: absolute;
    left: 0.45rem;
    bottom: 0.15rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(1.1rem, 1.6vw, 1.45rem);
    line-height: 1.2;
    color: var(--orange);
}

.reel-caption {
    margin: 0.55rem 0 0;
    font-family: var(--font-cond);
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--text);
}

.reel-scale {
    position: relative;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
    padding-top: 1.1rem;
}
.reel-scale::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 4px;
    height: 2px;
    background: linear-gradient(90deg, var(--lime) 0, var(--lime) 82%, var(--teal) 100%);
    opacity: 0.85;
}
.reel-mark {
    position: relative;
    min-width: 0;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: clamp(1.05rem, 1.6vw, 1.4rem);
    line-height: 1;
    color: var(--lime);
}
.reel-mark::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(-1.1rem - 0px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(216, 242, 75, 0.18);
}
.reel-mark:last-child { color: var(--teal); }
.reel-mark:last-child::before { background: var(--teal); box-shadow: 0 0 0 3px rgba(79, 209, 197, 0.2); }

@media (min-width: 961px) {
    .reel { overflow: visible; }
    .reel-inner { min-width: 0; }
}

/* Частые ошибки */
.fs-mistakes { background: rgba(15, 28, 37, 0.55); }

.faults { display: grid; gap: 0.75rem; }

.fault {
    position: relative;
    display: grid;
    grid-template-columns: clamp(110px, 18%, 172px) minmax(0, 1fr);
    align-items: stretch;
    min-height: 86px;
    background: var(--panel);
    border: 1px solid rgba(46, 74, 99, 0.55);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.15s, transform 0.15s;
}
.fault:hover { border-color: var(--orange); transform: translateX(4px); }

.fault-pic { position: relative; background: #EFE9DC; min-height: 86px; }
.fault-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fault-body {
    min-width: 0;
    padding: 0.9rem 1.1rem;
    align-self: center;
}
.fault-title {
    margin: 0 0 0.25rem;
    font-weight: 600;
    font-size: clamp(1.2rem, 2.3vw, 1.9rem);
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--text);
}
.fault-text { margin: 0; font-size: 0.9rem; line-height: 1.45; color: #C2CED9; }

.fault-code { display: none; }

@media (min-width: 600px) {
    .fault { grid-template-columns: clamp(130px, 18%, 172px) minmax(0, 1fr) auto; }
    .fault-body { padding: 0.9rem 1.6rem; }
    .fault-code {
        display: block;
        align-self: center;
        padding: 0 1.6rem;
        font-family: var(--font-head);
        font-size: 1.6rem;
        letter-spacing: 0.04em;
        color: var(--lime);
        opacity: 0.75;
    }
}

/* Последние записи */
.fs-latest {
    background: var(--deep);
    border-top: 1px solid rgba(46, 74, 99, 0.4);
    padding: 3rem 0;
}
.fs-more { margin: 1.6rem 0 0; }

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.15s, transform 0.15s;
}
.card:hover { border-color: var(--orange); transform: translateY(-3px); }

.card-thumb {
    position: relative;
    margin: 10px 10px 0 -7px;
}
.card-thumb a { display: block; }
.card-thumb img,
.card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid var(--line);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
}

.card-flag {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 0.15rem 0.5rem;
    background: var(--lime);
    color: var(--deep);
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-body {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 2.6rem 1.2rem 1.1rem;
}

.card-date {
    position: absolute;
    top: 1rem;
    right: 0.75rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    color: var(--muted);
}

.card-title {
    margin: 0 0 0.5rem;
    font-weight: 500;
    font-size: 1.2rem;
    line-height: 1.2;
    text-transform: uppercase;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--orange); }

.card-excerpt { font-size: 0.9rem; line-height: 1.5; color: #B7C4CF; margin-bottom: 0.9rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--teal); }

.card-btn { margin-top: auto; align-self: flex-start; }

/* ---------- Светлая полоса: разбор по кадрам + вопросы ---------- */
.ivory-band {
    background-color: var(--ivory);
    color: var(--ink);
    padding: 3.2rem 0 3.6rem;
}

.ivory-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; }
@media (min-width: 961px) {
    .ivory-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
}

.ivory-band .fs { padding: 0; min-width: 0; }
.ivory-band .kicker { color: #5D6E7E; }
.ivory-band .fs-title { color: var(--ink); }
.ivory-band a { color: #0E7C72; }
.ivory-band a:hover { color: #C93E0B; }

.fs-lead { max-width: 52ch; color: #3A4A5A; margin-bottom: 1.6rem; }

/* Раскадровка */
.board {
    --sb-gap: 1.5rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: var(--sb-gap);
    row-gap: 1.2rem;
    align-items: start;
}

.board-main {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    position: relative;
    z-index: 1;
}
.board-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 648 / 564;
    object-fit: cover;
    display: block;
    box-shadow: 0 14px 30px -14px rgba(11, 18, 25, 0.65);
}

.board-detail { margin: 0; position: relative; z-index: 2; min-width: 0; }
.board-detail--shoulders { grid-column: 1; grid-row: 1; }
.board-detail--wrist { grid-column: 1; grid-row: 2; }
.board-detail--angle { grid-column: 3; grid-row: 1; }
.board-detail--feet { grid-column: 3; grid-row: 2; }

.board-pic {
    position: relative;
    display: block;
    border: 2px solid var(--orange);
    border-radius: 7px;
    background: #101A26;
}
.board-pic img {
    width: 100%;
    height: auto;
    aspect-ratio: 375 / 310;
    object-fit: cover;
    display: block;
    border-radius: 5px;
}

.board-pic::after,
.board-pic::before {
    content: "";
    position: absolute;
    top: 50%;
    background: var(--orange);
}
.board-pic::after { height: 2px; width: calc(var(--sb-gap) + 22px); transform: translateY(-50%); }
.board-pic::before { width: 9px; height: 9px; border-radius: 50%; transform: translateY(-50%); }

.board-detail--shoulders .board-pic::after,
.board-detail--wrist .board-pic::after { left: 100%; }
.board-detail--shoulders .board-pic::before,
.board-detail--wrist .board-pic::before { left: calc(100% + var(--sb-gap) + 18px); }
.board-detail--angle .board-pic::after,
.board-detail--feet .board-pic::after { right: 100%; }
.board-detail--angle .board-pic::before,
.board-detail--feet .board-pic::before { right: calc(100% + var(--sb-gap) + 18px); }

.board-detail figcaption {
    margin-top: 0.45rem;
    font-family: var(--font-cond);
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--ink);
}

@media (max-width: 600px) {
    .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; }
    .board-main { grid-column: 1 / 3; grid-row: 1; }
    .board-detail--shoulders { grid-column: 1; grid-row: 2; }
    .board-detail--angle { grid-column: 2; grid-row: 2; }
    .board-detail--wrist { grid-column: 1; grid-row: 3; }
    .board-detail--feet { grid-column: 2; grid-row: 3; }
    .board-pic::after, .board-pic::before { display: none; }
}

/* Вопросы тренеру */
.fs-questions { padding-top: 0; }
@media (min-width: 961px) {
    .fs-questions { padding-top: 4.2rem; }
}

.notepad-hint {
    margin: -0.5rem 0 1rem;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ink);
}

.notepad {
    list-style: none;
    margin: 0 0 1.2rem;
    padding: 0 0 0 1.1rem;
    border-left: 2px solid rgba(255, 90, 31, 0.55);
}
.notepad-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--ivory-rule);
}
.notepad-box {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 2px solid var(--ink);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.notepad-box:hover { border-color: var(--orange); }
.notepad-box[aria-checked="true"] { background: var(--orange); border-color: var(--orange); }
.notepad-box[aria-checked="true"]::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid var(--ivory);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.notepad-text { min-width: 0; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.notepad-box[aria-checked="true"] + .notepad-text { color: #6B7A88; }
.notepad-note { font-size: 0.85rem; color: #5D6E7E; max-width: 52ch; margin: 0; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 1.4rem 0 3.4rem; }

.crumbs {
    margin: 0 0 1.6rem;
    font-family: var(--font-cond);
    font-size: 0.88rem;
    color: var(--muted);
}
.crumbs a { color: var(--teal); }
.crumbs-sep { color: var(--orange); margin: 0 0.25rem; }

.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
@media (min-width: 961px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        gap: 0;
        align-items: start;
    }
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 1.8rem; }
.page-title,
.entry-title {
    margin: 0 0 0.4rem;
    font-weight: 600;
    font-size: clamp(1.9rem, 4vw, 3rem);
    line-height: 1.08;
    text-transform: uppercase;
    color: var(--text);
}
.page-sub { color: var(--muted); }
.page-sub p { margin: 0; }

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

/* Сайдбар */
.sidebar {
    min-width: 0;
    padding: 1.4rem 1.4rem 0.6rem;
    background: var(--head);
    border: 1px solid var(--line);
    border-top: 3px solid var(--orange);
    color: #C7D2DC;
}
.sidebar .widget { margin-bottom: 1.6rem; }
.sidebar .widget-title {
    font-weight: 500;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 0.8rem;
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px solid #1F3346; font-size: 0.93rem; line-height: 1.4; color: #C7D2DC; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--orange); }
.sidebar .post-date { display: block; font-size: 0.8rem; color: var(--muted); }
.sidebar p { color: #C7D2DC; }

/* Запись */
.entry-head { margin-bottom: 1.4rem; }
.entry-meta { margin: 0.4rem 0 0; font-family: var(--font-cond); color: var(--muted); font-size: 0.92rem; letter-spacing: 0.06em; }
.entry-cover { margin: 0 0 1.6rem; }
.entry-cover img { width: 100%; height: auto; border: 1px solid var(--line); }

.entry-content { font-size: 1.03rem; line-height: 1.72; color: #DCE3E9; }
.entry-content > * { margin-top: 0; }
.entry-content p { margin: 0 0 1.1em; }
.entry-content h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); text-transform: uppercase; margin: 1.8em 0 0.6em; color: var(--text); }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin: 1.5em 0 0.5em; color: var(--text); }
.entry-content h4 { font-size: 1.1rem; margin: 1.3em 0 0.5em; color: var(--text); }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content ol li::marker { color: var(--lime); font-family: var(--font-head); }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem;
    background: var(--plate);
    border-left: 3px solid var(--orange);
    font-size: 1.08rem;
    color: var(--text);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 0.95rem; border: 1px solid var(--line); }
.entry-content th,
.entry-content td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--plate); font-family: var(--font-head); font-weight: 500; letter-spacing: 0.03em; color: var(--text); }
.entry-content code { background: var(--deep); padding: 0.1em 0.35em; font-size: 0.92em; }
.entry-content pre { background: var(--deep); padding: 1rem 1.2rem; overflow-x: auto; border: 1px solid var(--line); }
.entry-content hr { border: 0; border-top: 1px dashed var(--line); margin: 2em 0; }
.entry-content .wp-block-table { overflow-x: auto; }

.entry-pages { margin: 1.4rem 0; font-family: var(--font-cond); }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0 0; }
.entry-tags a {
    padding: 0.25rem 0.65rem;
    border: 1px solid var(--line);
    font-family: var(--font-cond);
    font-size: 0.88rem;
    color: var(--teal);
    text-decoration: none;
}
.entry-tags a:hover { border-color: var(--orange); color: var(--orange); }

.post-nav { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 2.6rem 0 0; }
@media (min-width: 600px) {
    .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.post-nav-link {
    display: block;
    padding: 1rem 1.2rem;
    background: var(--plate);
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-head);
    font-size: 1.02rem;
    line-height: 1.3;
}
.post-nav-link span { display: block; margin-bottom: 0.3rem; font-family: var(--font-cond); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.post-nav-link--next { text-align: right; }
.post-nav-link:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Пагинация (type => plain) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin: 2.4rem 0 0;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 1rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.pager a.page-numbers:hover { border-color: var(--orange); color: var(--orange); }
.pager .page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--deep); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.2rem; color: var(--muted); }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.4rem; max-width: 520px; }
.search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--deep);
    color: var(--text);
    font: inherit;
}
.search-field::placeholder { color: var(--muted); }
.search-field:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }

/* ---------- 404 ---------- */
.miss { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem 3rem; align-items: center; padding: 1rem 0 2rem; }
@media (min-width: 961px) {
    .miss { grid-template-columns: auto minmax(0, 1fr); }
}
.miss-code {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: clamp(6rem, 16vw, 12rem);
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 2px var(--orange);
}
.miss-body { min-width: 0; max-width: 60ch; }

/* ---------- Комментарии ---------- */
.talks { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.talks-title,
.comment-reply-title { font-size: 1.5rem; text-transform: uppercase; color: var(--text); }
.talk-list,
.talk-list .children { list-style: none; margin: 0; padding: 0; }
.talk-list .children { margin-left: clamp(1rem, 4vw, 2.6rem); }
.talk { margin-bottom: 1rem; }
.talk-body { padding: 1rem 1.2rem; background: var(--plate); border: 1px solid var(--line); }
.talk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.6rem; }
.talk-avatar { border-radius: 50%; width: 44px; height: 44px; }
.talk-author { font-family: var(--font-head); font-size: 1.05rem; color: var(--text); }
.talk-date { font-size: 0.82rem; color: var(--muted); }
.talk-text { font-size: 0.97rem; color: #DCE3E9; }
.talk-text p:last-child { margin-bottom: 0; }
.talk-moderation { color: var(--lime); font-size: 0.9rem; }
.talk-reply { margin-top: 0.6rem; }
.talk-reply a { font-family: var(--font-cond); font-size: 0.88rem; letter-spacing: 0.1em; text-transform: uppercase; }

.comment-respond { margin-top: 2rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; font-family: var(--font-cond); font-size: 0.92rem; color: var(--muted); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--deep);
    color: var(--text);
    font: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.form-note { font-size: 0.88rem; color: var(--muted); }
.req { color: var(--orange); }
#cancel-comment-reply-link { margin-left: 0.6rem; font-size: 0.85rem; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--foot);
    color: #BAC6D1;
    padding: 2.8rem 0 1.4rem;
    border-top: 1px solid #142233;
}
.foot-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
@media (min-width: 600px) {
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 961px) {
    .foot-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; }
}
.foot-col { min-width: 0; }
.site-foot .widget { margin-bottom: 1.2rem; }
.site-foot .widget-title {
    font-weight: 500;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.7rem;
}
.site-foot p,
.site-foot .textwidget { font-size: 0.9rem; line-height: 1.55; color: #BAC6D1; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0 0 0.45rem; font-size: 0.9rem; }
.site-foot a { color: var(--teal); }
.site-foot a:hover { color: var(--orange); }
.foot-copy {
    margin: 1.8rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid #172535;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(13, 22, 32, 0.97);
    border-top: 2px solid var(--orange);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.4);
    padding: 1rem 4%;
}
.cookie-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.6rem;
    max-width: 1320px;
    margin: 0 auto;
}
.cookie-text { margin: 0; flex: 1 1 320px; min-width: 0; font-size: 0.9rem; color: var(--text); }

/* ---------- Адаптив ---------- */
@media (max-width: 600px) {
    .fs { padding: 2rem 0; }
    .fs-phases { padding-top: 0.6rem; }
    .fs-latest { padding: 2.2rem 0; }
    .ivory-band { padding: 2.4rem 0 2.8rem; }
    .brand-tagline { font-size: 0.78rem; }
    .card-thumb { margin-left: -5px; }
    .sidebar { padding: 1.2rem 1.1rem 0.4rem; }
    .cookie-banner { padding: 0.9rem 5%; }
}

/* ---------- Стандартные классы WordPress ---------- */
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); }
.sticky { position: relative; }
.bypostauthor { position: relative; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.6rem; }

/* Заголовки переносим по словам, а не по слогам */
.fs-title, .page-title, .entry-title, .card-title, .fault-title, .widget-title { hyphens: manual; }
