/*
Theme Name: dds_filetmignon5.com
Theme URI: https://filetmignon5.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: ftmarch
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/roboto-cyrillic-300-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: 300; font-display: swap; src: url("fonts/roboto-latin-300-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"; 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+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"; 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+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: 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; }

/* ---------- Переменные ---------- */
:root {
    --ftm-bg: #16324F;
    --ftm-grid: #DCE6EE;
    --ftm-foot: #0C1B2A;
    --ftm-text: #F4F7FA;
    --ftm-muted: #9DB2C6;
    --ftm-acc: #E8FF3A;
    --ftm-acc2: #FF7A45;
    --ftm-mid: #FFB84A;
    --ftm-line: #F4F7FA;
    --ftm-hair: rgba(244, 247, 250, 0.22);
    --ftm-hair-strong: rgba(244, 247, 250, 0.7);
    --ftm-panel: #112A43;
    --ftm-ink: #0C1B2A;
    --ftm-sans: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --ftm-cond: "Roboto Condensed", "Arial Narrow", "Roboto", system-ui, sans-serif;
}

/* ---------- Состояния [hidden] — до основных блоков ---------- */
.ftm-cookie[hidden],
.cookie-banner[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;
    color: var(--ftm-text);
    font-family: var(--ftm-sans);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    background-color: var(--ftm-bg);
    background-image:
        linear-gradient(rgba(220, 230, 238, 0.085) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 230, 238, 0.085) 1px, transparent 1px),
        linear-gradient(rgba(220, 230, 238, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 230, 238, 0.035) 1px, transparent 1px);
    background-size: 40px 40px, 40px 40px, 8px 8px, 8px 8px;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ftm-cond);
    font-weight: 500;
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
    color: var(--ftm-text);
}

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

a {
    color: var(--ftm-text);
    text-decoration: underline;
    text-decoration-color: var(--ftm-acc);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.15s, text-decoration-thickness 0.15s;
}
a:hover { color: var(--ftm-acc); text-decoration-thickness: 2px; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px dashed var(--ftm-acc);
    outline-offset: 3px;
}

::selection { background: var(--ftm-acc); color: var(--ftm-ink); }

.ftm-visually-hidden,
.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;
}

.ftm-skip {
    position: absolute;
    left: 1rem; top: -4rem;
    z-index: 100;
    padding: 0.6rem 1rem;
    background: var(--ftm-acc);
    color: var(--ftm-ink);
    text-decoration: none;
    font-family: var(--ftm-cond);
}
.ftm-skip:focus { top: 1rem; }

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

.ftm-sheet {
    position: relative;
    margin: 6px 6px 0;
    border: 1px solid var(--ftm-hair-strong);
    border-bottom: 0;
}
.ftm-sheet::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 12px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(244, 247, 250, 0.55) 1px, transparent 1px),
        linear-gradient(rgba(244, 247, 250, 0.75) 1px, transparent 1px);
    background-size: 5px 8px, 11px 40px;
    background-repeat: repeat-y;
}

/* ---------- Кнопки ---------- */
.ftm-btn,
.comment-form input[type="submit"] {
    display: inline-block;
    padding: 0.7rem 1.35rem;
    border: 0;
    border-radius: 0;
    background: var(--ftm-acc);
    color: var(--ftm-ink);
    font-family: var(--ftm-cond);
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.ftm-btn:hover,
.comment-form input[type="submit"]:hover {
    color: var(--ftm-ink);
    transform: translate(-2px, -2px);
    box-shadow: 3px 3px 0 var(--ftm-line);
}
.ftm-btn--small { padding: 0.5rem 0.95rem; font-size: 0.85rem; }

.ftm-link { font-size: 0.92rem; }

/* ---------- Шапка ---------- */
.ftm-header {
    position: relative;
    background: rgba(8, 22, 38, 0.28);
}
.ftm-header__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.6rem 0 1.3rem;
}
.ftm-brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    color: var(--ftm-text);
    text-decoration: none;
}
.ftm-brand:hover { color: var(--ftm-text); }
.ftm-brand__mark { flex: 0 0 auto; display: block; line-height: 0; }
.ftm-brand__svg { display: block; width: 58px; height: 58px; }
.brand-logo { display: block; width: auto; max-height: 64px; }
.ftm-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ftm-brand__name {
    font-family: var(--ftm-sans);
    font-weight: 400;
    font-size: clamp(1.3rem, 2.3vw, 2rem);
    line-height: 1.1;
    letter-spacing: 0.01em;
    overflow-wrap: break-word;
}
.ftm-brand__desc {
    margin-top: 0.3rem;
    max-width: 44ch;
    color: var(--ftm-grid);
    font-size: 0.9rem;
    line-height: 1.35;
}

.ftm-nav { flex: 0 0 auto; }
.ftm-nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.4rem 1.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ftm-nav__list a {
    display: inline-block;
    padding: 0.2rem 0;
    color: var(--ftm-text);
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.ftm-nav__list a:hover { color: var(--ftm-acc); }
.ftm-nav__list .current-menu-item > a,
.ftm-nav__list .current_page_item > a,
.ftm-nav__list .current-menu-ancestor > a {
    color: var(--ftm-acc);
    border-bottom-color: var(--ftm-acc);
}

.ftm-burger {
    display: none;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.8rem;
    background: transparent;
    border: 1px solid var(--ftm-hair-strong);
    color: var(--ftm-text);
    font-family: var(--ftm-cond);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}
.ftm-burger__lines,
.ftm-burger__lines::before,
.ftm-burger__lines::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ftm-acc);
}
.ftm-burger__lines { position: relative; }
.ftm-burger__lines::before,
.ftm-burger__lines::after { content: ""; position: absolute; left: 0; }
.ftm-burger__lines::before { top: -6px; }
.ftm-burger__lines::after { top: 6px; }

.ftm-ruler {
    height: 14px;
    border-bottom: 1px solid var(--ftm-hair-strong);
    background-image:
        linear-gradient(90deg, rgba(244, 247, 250, 0.55) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 247, 250, 0.8) 1px, transparent 1px);
    background-size: 8px 5px, 40px 11px;
    background-position: left bottom, left bottom;
    background-repeat: repeat-x;
}

/* ---------- Главная: каркас ---------- */
.ftm-front {
    position: relative;
    width: 85%;
    margin: 0 auto;
    padding-bottom: 2.5rem;
}
.ftm-front::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    border-left: 1px dashed rgba(244, 247, 250, 0.16);
    pointer-events: none;
}

.ftm-sec {
    position: relative;
    z-index: 1;
    padding: 2.6rem 0 2.6rem;
}
.ftm-sec + .ftm-sec { border-top: 1px solid var(--ftm-hair); }
.ftm-sec + .ftm-sec::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: -5px;
    height: 9px;
    pointer-events: none;
    background:
        linear-gradient(var(--ftm-line), var(--ftm-line)) left center / 1px 9px no-repeat,
        linear-gradient(var(--ftm-line), var(--ftm-line)) 50% center / 1px 9px no-repeat,
        linear-gradient(var(--ftm-line), var(--ftm-line)) right center / 1px 9px no-repeat;
    opacity: 0.6;
}

.ftm-sec__head {
    position: relative;
    margin: 0 0 1.4rem;
    font-family: var(--ftm-cond);
    font-weight: 500;
    font-size: 1.12rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.ftm-sec__head::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 0.62em;
    width: clamp(18px, 6vw, 84px);
    margin-right: 0.9rem;
    height: 1px;
    background: var(--ftm-hair-strong);
    box-shadow: 0 -4px 0 -0.5px transparent;
}
.ftm-sec__num { color: var(--ftm-acc); font-weight: 400; }

/* ---------- Блок 01: план ---------- */
.ftm-plan__stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 482fr) minmax(0, 188fr);
}
.ftm-plan__drawing { position: relative; min-width: 0; }
.ftm-plan__img { display: block; width: 100%; height: auto; }

.ftm-zone {
    position: absolute;
    transform: translate(-50%, -50%);
    padding: 0.05em 0.4em;
    color: var(--ftm-text);
    font-size: clamp(0.72rem, 1.4vw, 1rem);
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
.ftm-zone.is-on { background: var(--ftm-acc); color: var(--ftm-ink); }
.ftm-zone--quiet { color: var(--ftm-grid); }

.ftm-pin {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ftm-acc);
    transform: translate(-50%, -50%);
}
.ftm-pin[data-zone="2"] { background: var(--ftm-mid); }
.ftm-pin[data-zone="3"] { background: var(--ftm-acc2); }
.ftm-pin span { display: none; }
.ftm-pin.is-on { box-shadow: 0 0 0 4px rgba(232, 255, 58, 0.3); }

.ftm-plan__leaders {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: visible;
}
.ftm-plan__leaders path {
    fill: none;
    stroke: var(--ftm-acc);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
    opacity: 0.85;
    transition: stroke-width 0.2s;
}
.ftm-plan__leaders path[data-zone="2"] { stroke: var(--ftm-mid); }
.ftm-plan__leaders path[data-zone="3"] { stroke: var(--ftm-acc2); }
.ftm-plan__leaders path.is-on { stroke-width: 2.5; opacity: 1; }

.ftm-plan__side {
    position: relative;
    min-width: 0;
    padding-left: 11.2%;
}
.ftm-plan__lead {
    margin: 0;
    font-size: clamp(1.05rem, 1.9vw, 1.45rem);
    line-height: 1.3;
}
.ftm-stickers { margin: 0; padding: 0; list-style: none; }
.ftm-sticker {
    position: absolute;
    left: 11.2%;
    right: 0;
    top: var(--y);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    cursor: default;
}
.ftm-sticker__num {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    background: var(--ftm-acc);
    color: var(--ftm-ink);
    font-family: var(--ftm-cond);
    font-weight: 500;
    font-size: 1.15rem;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
    transition: transform 0.15s;
}
.ftm-sticker__num::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0;
    width: 28%; height: 28%;
    background: linear-gradient(135deg, rgba(12, 27, 42, 0.35) 50%, transparent 50%);
}
.ftm-sticker[data-zone="2"] .ftm-sticker__num { background: var(--ftm-mid); }
.ftm-sticker--warm .ftm-sticker__num { background: var(--ftm-acc2); }
.ftm-sticker:hover .ftm-sticker__num,
.ftm-sticker:focus .ftm-sticker__num { transform: rotate(-4deg) scale(1.06); }
.ftm-sticker__txt {
    min-width: 0;
    color: var(--ftm-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}
.ftm-sticker__txt b {
    display: block;
    color: var(--ftm-text);
    font-family: var(--ftm-cond);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ---------- Блок 02: разрез ---------- */
.ftm-layers__row {
    display: grid;
    grid-template-columns: minmax(0, 358fr) minmax(0, 139fr) minmax(0, 171fr);
    align-items: stretch;
}
.ftm-layers__strip { min-width: 0; aspect-ratio: 341 / 132; }
.ftm-layers__strip img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ftm-layers__labels {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ftm-layer {
    position: absolute;
    left: 0;
    right: 1.6rem;
    bottom: calc(100% - var(--y));
    padding: 0 0 0.2rem 2.2rem;
    border-bottom: 1px solid var(--ftm-hair-strong);
    font-size: 0.92rem;
    line-height: 1.2;
}
.ftm-layer::before {
    content: "";
    position: absolute;
    left: -3px;
    bottom: -3.5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ftm-line);
}
.ftm-layers__photo { position: relative; min-width: 0; margin: 0; }
.ftm-layers__photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ftm-card,
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.7rem 0.7rem 0;
    border: 1px solid var(--ftm-hair-strong);
    background: rgba(12, 27, 42, 0.16);
    transition: border-color 0.2s, transform 0.2s;
}
.ftm-card:hover { border-color: var(--ftm-acc); transform: translateY(-3px); }
.ftm-card__thumb {
    display: block;
    margin: 0 -3px;
    overflow: hidden;
    background: var(--ftm-ink);
}
.ftm-card__thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    transition: transform 0.35s;
}
.ftm-card:hover .ftm-card__thumb img { transform: scale(1.03); }
.ftm-card__pin {
    position: absolute;
    top: -14px;
    right: 2.2rem;
    width: 3.1rem;
    height: 3.1rem;
    border: 2px solid var(--ftm-line);
    border-radius: 3px;
    background-color: var(--ftm-ink);
    background-size: cover;
    background-position: center;
    transform: rotate(3deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.ftm-card__body,
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1rem 0.3rem 1.1rem;
}
.ftm-card__flag {
    align-self: flex-start;
    margin-bottom: 0.5rem;
    padding: 0.1rem 0.5rem;
    background: var(--ftm-acc2);
    color: var(--ftm-ink);
    font-family: var(--ftm-cond);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.ftm-card__title {
    margin: 0 0 0.6rem;
    font-family: var(--ftm-sans);
    font-weight: 400;
    font-size: 1.3rem;
    line-height: 1.25;
}
.ftm-card__title a { color: var(--ftm-text); text-decoration: none; }
.ftm-card__title a:hover { color: var(--ftm-acc); }
.ftm-card__excerpt,
.card-excerpt {
    flex: 1;
    color: var(--ftm-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}
.card-excerpt p,
.ftm-card__excerpt p { margin: 0 0 0.5em; background: none; }
.ftm-card__excerpt a { color: var(--ftm-grid); }
.ftm-card__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.7rem;
    margin-top: 1rem;
}
.ftm-date { color: var(--ftm-muted); font-size: 0.82rem; }

.ftm-latest__more { margin: 1.8rem 0 0; }
.ftm-empty {
    padding: 1.4rem 1.6rem;
    border: 1px dashed var(--ftm-hair-strong);
    color: var(--ftm-muted);
}

/* ---------- Блок 04: материалы ---------- */
.ftm-mats__sub { margin: -0.9rem 0 1.3rem; font-size: 0.88rem; }
.ftm-mats__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.ftm-mat { min-width: 0; }
.ftm-mat img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 98 / 90;
    object-fit: cover;
    margin-bottom: 0.55rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.ftm-mat:hover img { transform: translate(-3px, -3px); box-shadow: 3px 3px 0 var(--ftm-acc); }
.ftm-mat__name { display: block; font-size: 0.95rem; line-height: 1.3; }
.ftm-mat__note { display: block; color: var(--ftm-muted); font-size: 0.76rem; line-height: 1.35; }

/* ---------- Блок 05: вопрос ---------- */
.ftm-question__body {
    margin: 0;
    padding: 0.3rem 0 0.4rem 1.8rem;
    border-left: 2px solid var(--ftm-acc);
}
.ftm-question__quote { margin: 0; }
.ftm-question__quote p {
    margin: 0;
    font-family: var(--ftm-cond);
    font-weight: 400;
    font-size: clamp(1.8rem, 4.4vw, 3.4rem);
    line-height: 1.12;
    letter-spacing: 0.005em;
}
.ftm-question__cap { margin-top: 1.3rem; color: var(--ftm-muted); font-size: 0.85rem; }

/* ---------- Внутренние страницы ---------- */
.ftm-crumbs {
    padding: 1.5rem 0 0.4rem;
    color: var(--ftm-muted);
    font-size: 0.85rem;
}
.ftm-crumbs a { color: var(--ftm-text); }
.ftm-crumbs__sep { color: var(--ftm-acc); margin: 0 0.25rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
    padding: 1.2rem 0 3.5rem;
}
.layout-single { display: block; padding: 1.2rem 0 3.5rem; }
.layout-single > .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.ftm-page-head { margin-bottom: 2rem; }
.ftm-page-title {
    margin: 0.4rem 0 0.8rem;
    font-family: var(--ftm-cond);
    font-weight: 500;
    font-size: clamp(1.6rem, 3.4vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ftm-page-intro { color: var(--ftm-grid); }

.ftm-article__head {
    margin-bottom: 1.6rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ftm-hair);
}
.ftm-article .ftm-page-title {
    font-family: var(--ftm-sans);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}
.ftm-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.2rem;
    align-items: center;
    font-size: 0.85rem;
}
.ftm-article__cats a {
    display: inline-block;
    margin-right: 0.4rem;
    padding: 0.1rem 0.55rem;
    border: 1px solid var(--ftm-acc);
    color: var(--ftm-acc);
    font-family: var(--ftm-cond);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
}
.ftm-article__cats a:hover { background: var(--ftm-acc); color: var(--ftm-ink); }
.ftm-article__cover { margin: 0 0 1.8rem; }
.ftm-article__cover img { display: block; width: 100%; height: auto; border: 1px solid var(--ftm-hair-strong); }
.ftm-article__tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.88rem; }

/* Текст записи */
.ftm-entry { font-size: 1.02rem; line-height: 1.78; }
.ftm-entry h2 {
    font-size: 1.45rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding-left: 0.9rem;
    border-left: 3px solid var(--ftm-acc);
}
.ftm-entry h3 { font-size: 1.2rem; letter-spacing: 0.03em; }
.ftm-entry h4 { font-size: 1.05rem; }
.ftm-entry ul,
.ftm-entry ol { margin: 0 0 1.2em; padding-left: 1.4rem; }
.ftm-entry li { margin-bottom: 0.35em; }
.ftm-entry li::marker { color: var(--ftm-acc); }
.ftm-entry blockquote {
    margin: 1.8em 0;
    padding: 1.1rem 1.4rem;
    border-left: 2px solid var(--ftm-acc);
    background: rgba(12, 27, 42, 0.35);
    font-family: var(--ftm-cond);
    font-size: 1.2rem;
    line-height: 1.45;
}
.ftm-entry blockquote p:last-child { margin-bottom: 0; }
.ftm-entry figure { margin: 1.8em 0; }
.ftm-entry figcaption,
.wp-element-caption { color: var(--ftm-muted); font-size: 0.82rem; margin-top: 0.4rem; }
.ftm-entry table {
    width: 100%;
    margin: 1.6em 0;
    border-collapse: collapse;
    border: 1px solid var(--ftm-hair-strong);
    font-size: 0.92rem;
}
.ftm-entry th,
.ftm-entry td {
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--ftm-hair-strong);
    text-align: left;
    vertical-align: top;
}
.ftm-entry th {
    background: rgba(232, 255, 58, 0.1);
    font-family: var(--ftm-cond);
    font-weight: 500;
    letter-spacing: 0.04em;
}
.ftm-entry .wp-block-table { overflow-x: auto; }
.ftm-entry code,
.ftm-entry pre { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 0.88em; }
.ftm-entry pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--ftm-ink);
    border: 1px solid var(--ftm-hair);
}
.ftm-entry hr { border: 0; border-top: 1px dashed var(--ftm-hair-strong); margin: 2em 0; }
.ftm-entry .alignleft { float: left; margin: 0.3rem 1.4rem 1rem 0; }
.ftm-entry .alignright { float: right; margin: 0.3rem 0 1rem 1.4rem; }
.ftm-entry .aligncenter { display: block; margin-left: auto; margin-right: auto; }

.ftm-postnav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 2.6rem 0 0;
}
.ftm-postnav__item {
    display: block;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ftm-hair-strong);
    text-decoration: none;
    line-height: 1.35;
}
.ftm-postnav__item span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ftm-acc);
    font-family: var(--ftm-cond);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ftm-postnav__item--next { grid-column: 2; text-align: right; }
.ftm-postnav__item:hover { border-color: var(--ftm-acc); }

/* ---------- Пагинация ---------- */
.ftm-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 2.6rem 0 0;
}
.ftm-pager .page-numbers,
.ftm-pager--inner .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.8rem;
    border: 1px solid var(--ftm-hair-strong);
    color: var(--ftm-text);
    font-family: var(--ftm-cond);
    font-size: 0.95rem;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.ftm-pager a.page-numbers:hover,
.ftm-pager--inner a.post-page-numbers:hover { border-color: var(--ftm-acc); color: var(--ftm-acc); transform: translateY(-2px); }
.ftm-pager .page-numbers.current,
.ftm-pager--inner .post-page-numbers.current {
    background: var(--ftm-acc);
    border-color: var(--ftm-acc);
    color: var(--ftm-ink);
}
.ftm-pager .page-numbers.dots { border: 0; min-width: 1.5rem; padding: 0; }

/* ---------- Сайдбар ---------- */
.ftm-sidebar {
    min-width: 0;
    padding: 1.5rem 1.4rem;
    background: var(--ftm-panel);
    border: 1px solid var(--ftm-hair-strong);
    color: var(--ftm-text);
}
.ftm-sidebar .ftm-widget + .ftm-widget { margin-top: 2rem; }
.ftm-sidebar .ftm-widget__title {
    margin: 0 0 1rem;
    padding-left: 0.7rem;
    border-left: 3px solid var(--ftm-acc);
    color: var(--ftm-text);
    font-family: var(--ftm-cond);
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.ftm-sidebar ul { margin: 0; padding: 0; list-style: none; }
.ftm-sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed var(--ftm-hair); line-height: 1.4; font-size: 0.92rem; }
.ftm-sidebar a { color: var(--ftm-text); text-decoration: none; }
.ftm-sidebar a:hover { color: var(--ftm-acc); }
.ftm-sidebar .post-date { display: block; color: var(--ftm-muted); font-size: 0.78rem; }
.ftm-sidebar p { color: var(--ftm-grid); }

/* ---------- Подвал ---------- */
.ftm-footer {
    margin: 0 6px 6px;
    padding: 2.6rem 0 1.4rem;
    background: var(--ftm-foot);
    color: var(--ftm-text);
}
.ftm-footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 3rem;
}
.ftm-footer__col { min-width: 0; }
.ftm-footer__col--2 { justify-self: center; }
.ftm-footer__col--3 { justify-self: end; }
.ftm-footer .ftm-widget__title {
    margin: 0 0 0.7rem;
    color: var(--ftm-text);
    font-family: var(--ftm-sans);
    font-weight: 400;
    font-size: 1.15rem;
}
.ftm-footer .ftm-widget,
.ftm-footer .textwidget,
.ftm-footer p { color: #C5D3DF; font-size: 0.86rem; line-height: 1.55; }
.ftm-footer .textwidget p { max-width: 32ch; }
.ftm-footer ul { margin: 0; padding: 0; list-style: none; }
.ftm-footer li { margin-bottom: 0.25rem; }
.ftm-footer a { color: var(--ftm-text); font-size: 0.86rem; }
.ftm-footer a:hover { color: var(--ftm-acc); }
.ftm-copy {
    margin: 2.2rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(244, 247, 250, 0.14);
    color: var(--ftm-muted);
    font-size: 0.8rem;
    text-align: center;
}

/* ---------- Поиск и формы ---------- */
.ftm-search { display: flex; gap: 0.5rem; max-width: 520px; margin: 1.4rem 0; }
.ftm-search__field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    min-width: 0;
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--ftm-hair-strong);
    border-radius: 0;
    background: rgba(12, 27, 42, 0.45);
    color: var(--ftm-text);
    font-family: var(--ftm-sans);
    font-size: 0.95rem;
}
.ftm-search__field { flex: 1; }
.ftm-search__field::placeholder { color: var(--ftm-muted); }
.ftm-search__btn { flex: 0 0 auto; }

/* ---------- 404 ---------- */
.ftm-404__code {
    margin: 0;
    color: transparent;
    -webkit-text-stroke: 1px var(--ftm-acc);
    font-family: var(--ftm-cond);
    font-weight: 700;
    font-size: clamp(5rem, 16vw, 10rem);
    line-height: 1;
    letter-spacing: 0.04em;
}
.ftm-404__text { color: var(--ftm-grid); max-width: 56ch; }

/* ---------- Комментарии ---------- */
.ftm-comments { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--ftm-hair); }
.ftm-comments__title,
.comment-reply-title {
    margin: 0 0 1.2rem;
    font-family: var(--ftm-cond);
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ftm-comments__list,
.ftm-comments__list .children { margin: 0; padding: 0; list-style: none; }
.ftm-comments__list .children { padding-left: 1.6rem; border-left: 1px dashed var(--ftm-hair-strong); }
.ftm-comment__body {
    margin-bottom: 1.1rem;
    padding: 1rem 1.2rem;
    border: 1px solid var(--ftm-hair);
    background: rgba(12, 27, 42, 0.25);
}
.ftm-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; margin-bottom: 0.5rem; }
.ftm-comment__head img { border-radius: 0; border: 1px solid var(--ftm-hair-strong); }
.ftm-comment__author { font-weight: 500; }
.ftm-comment__date { color: var(--ftm-muted); font-size: 0.8rem; }
.ftm-comment__wait { color: var(--ftm-acc2); font-size: 0.85rem; }
.ftm-comment__text p:last-child { margin-bottom: 0; }
.ftm-comment__reply a { font-size: 0.85rem; }
.ftm-form-note { color: var(--ftm-muted); font-size: 0.85rem; }
.ftm-req { color: var(--ftm-acc2); }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: 0.3rem; color: var(--ftm-grid); font-size: 0.85rem; }
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form textarea { resize: vertical; }
#cancel-comment-reply-link { margin-left: 0.8rem; font-size: 0.85rem; text-transform: none; letter-spacing: 0; }

/* ---------- Cookie-баннер ---------- */
.ftm-cookie {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 780px;
    margin: 0 auto;
    padding: 1rem 1.3rem;
    background: var(--ftm-foot);
    border: 1px solid var(--ftm-acc);
    color: var(--ftm-text);
    box-shadow: 6px 6px 0 rgba(232, 255, 58, 0.25);
}
.ftm-cookie__text { margin: 0; font-size: 0.86rem; line-height: 1.5; }
.ftm-cookie__btn { flex: 0 0 auto; }

/* ---------- WordPress ---------- */
.sticky { position: relative; }
.bypostauthor { position: relative; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.gallery img { display: block; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .ftm-header__row { flex-wrap: wrap; }
    .ftm-burger { display: inline-flex; }
    .ftm-nav { display: none; flex: 1 1 100%; width: 100%; }
    .ftm-nav.is-open { display: block; }
    .ftm-nav__list {
        flex-direction: column;
        gap: 0;
        padding: 0.6rem 0 0.3rem;
        border-top: 1px solid var(--ftm-hair);
    }
    .ftm-nav__list a { display: block; padding: 0.6rem 0; border-bottom: 1px dashed var(--ftm-hair); }
    .ftm-nav__list .current-menu-item > a { border-bottom-color: var(--ftm-acc); }

    .ftm-front { width: auto; }
    .ftm-front::before { display: none; }

    .ftm-plan__stage { grid-template-columns: minmax(0, 1fr); }
    .ftm-plan__leaders { display: none; }
    .ftm-plan__side { padding: 1.3rem 0 0; }
    .ftm-stickers {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.9rem;
        margin-top: 1rem;
    }
    .ftm-sticker { position: static; transform: none; align-items: flex-start; }
    .ftm-pin {
        display: grid;
        place-items: center;
        width: 1.35rem;
        height: 1.35rem;
        color: var(--ftm-ink);
        font-family: var(--ftm-cond);
        font-size: 0.75rem;
        font-weight: 500;
    }
    .ftm-pin span { display: inline; }
    .ftm-pin[data-zone="3"] { left: 87% !important; }

    .ftm-layers__row { grid-template-columns: minmax(0, 1fr) minmax(0, 0.6fr); gap: 1rem; }
    .ftm-layers__strip { grid-column: 1 / -1; }
    .ftm-layers__labels { display: flex; flex-direction: column; gap: 0.6rem; }
    .ftm-layer {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        padding: 0 0 0.3rem 1.1rem;
        border-bottom: 1px solid var(--ftm-hair);
    }
    .ftm-layer::before { left: 0; bottom: auto; top: 0.4em; }
    .ftm-layer br { display: none; }
    .ftm-layers__photo { min-height: 180px; }

    .ftm-cards--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ftm-mats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2.5rem; }
    .layout-single > .content-area { width: auto; }

    .ftm-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ftm-footer__col--2,
    .ftm-footer__col--3 { justify-self: start; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    .ftm-sheet { margin: 4px 4px 0; }
    .ftm-sheet::before { width: 8px; }
    .ftm-footer { margin: 0 4px 4px; }
    .ftm-header__row { padding: 1.1rem 0 1rem; gap: 1rem; }
    .ftm-brand { gap: 0.7rem; }
    .ftm-brand__svg { width: 44px; height: 44px; }
    .ftm-brand__desc { font-size: 0.8rem; }
    .ftm-sec { padding: 2rem 0; }
    .ftm-sec__head { font-size: 1rem; }
    .ftm-sec__head::before { width: 14px; margin-right: 0.5rem; }
    .ftm-stickers { grid-template-columns: minmax(0, 1fr); }
    .ftm-sticker { align-items: center; }
    .ftm-zone { font-size: 0.66rem; padding: 0 0.2em; }
    .ftm-layers__row { grid-template-columns: minmax(0, 1fr); }
    .ftm-layers__photo { min-height: 0; }
    .ftm-layers__photo img { position: static; height: auto; aspect-ratio: 4 / 3; }
    .ftm-cards--three { grid-template-columns: minmax(0, 1fr); }
    .ftm-mats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; }
    .ftm-question__body { padding-left: 1.1rem; }
    .ftm-postnav { grid-template-columns: minmax(0, 1fr); }
    .ftm-postnav__item--next { grid-column: auto; }
    .ftm-footer__cols { grid-template-columns: minmax(0, 1fr); }
    .ftm-cookie { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; }
    .ftm-search { flex-direction: column; }
    .ftm-entry .alignleft,
    .ftm-entry .alignright { float: none; margin: 1rem 0; }
}

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