/*
Theme Name: dds_tiqetti.com
Theme URI: https://tiqetti.com/
Author: Рогов Савва Николаевич
Description: Тема для информационного сайта о недорогих путешествиях: смета поездки, разбор скидок и тарифов, маршруты с расчётом расходов. Оформление в виде полевого путевого журнала с чеками, багажными ярлыками и штампами.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
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: tiqsm
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/roboto-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/roboto-condensed-cyrillic-800-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: 800; font-display: swap; src: url("fonts/roboto-condensed-latin-800-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 Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-slab-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 Slab"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/roboto-slab-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 Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-slab-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: "Roboto Slab"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/roboto-slab-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; }
@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 {
    --paper: #E7DCC3;
    --paper-light: #F1E9D6;
    --sheet: #FBF8EF;
    --ink: #1F2E4A;
    --muted: #8A7A5E;
    --marker: #E0592A;
    --ticket: #2E6B57;
    --line: #2B3A55;
    --kalka: #D6E2D2;
    --kraft: #C9A877;
    --ink-soft: #3B4863;
    --grid: rgba(43, 58, 85, .12);
    --f-head: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --f-stamp: "Roboto Slab", "Rockwell", Georgia, serif;
    --f-mono: "IBM Plex Mono", "Courier New", Consolas, monospace;
}

/* ---------- Скрытие через hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.traps__hint[hidden] { display: none !important; }
.topnav__toggle[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: var(--paper) url("images/paper.jpg") repeat;
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: 15px;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline wavy var(--marker) 1px; text-underline-offset: 4px; }
a:hover { color: var(--marker); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--marker); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; font-family: var(--f-head); font-weight: 800; line-height: 1.15; color: var(--ink); }
p, li, dd, dt, td, th, figcaption { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, h4, h5, h6, .card-title, .brand__title, .brand__desc, .stamp-head { overflow-wrap: break-word; hyphens: manual; }
table { border-collapse: collapse; }
button { font: inherit; }
.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: 12px; top: -60px; z-index: 100; padding: .6rem 1rem; background: var(--ink); color: #fff; text-decoration: none; font-family: var(--f-head); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Журнал: сетка бумаги и сгибы ---------- */
.journal { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.journal::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: clamp(10px, 3%, 40px);
    right: clamp(10px, 3%, 40px);
    background-image:
        linear-gradient(var(--grid) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
}
.journal::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, transparent calc(50% - 2px), rgba(120, 98, 60, .14) 50%, rgba(255, 255, 255, .28) calc(50% + 1px), transparent calc(50% + 4px)),
        repeating-linear-gradient(180deg, transparent 0, transparent 897px, rgba(120, 98, 60, .12) 898px, rgba(255, 255, 255, .3) 900px, transparent 903px, transparent 1100px);
    pointer-events: none;
    z-index: 0;
}
.masthead, .site-main, .foot { position: relative; z-index: 1; }
.site-main { flex: 1 0 auto; padding-bottom: 3rem; }

.shell { width: min(92%, 1180px); margin-inline: auto; }
.shell--front { width: min(85%, 1180px); }

/* ---------- Кнопки-ярлыки с перфорацией ---------- */
.tq-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    padding: .62rem 1.25rem;
    background: var(--ticket);
    color: #fff;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    -webkit-mask:
        radial-gradient(circle at left center, transparent 2.6px, #000 3.2px) left / 51% 9px repeat-y,
        radial-gradient(circle at right center, transparent 2.6px, #000 3.2px) right / 51% 9px repeat-y;
    mask:
        radial-gradient(circle at left center, transparent 2.6px, #000 3.2px) left / 51% 9px repeat-y,
        radial-gradient(circle at right center, transparent 2.6px, #000 3.2px) right / 51% 9px repeat-y;
    transition: background-color .15s, transform .15s;
}
.tq-btn::before {
    content: "";
    position: absolute;
    inset: 4px 7px;
    border: 1.5px dashed rgba(255, 255, 255, .7);
    pointer-events: none;
}
.tq-btn:hover { background: var(--ink); color: #fff; transform: translate(-2px, -2px); }
.tq-btn:focus-visible { background: var(--marker); color: #fff; outline: none; }
.tq-btn--small { padding: .45rem 1rem; font-size: .86rem; }

/* ---------- Заголовки-штампы ---------- */
.stamp-head {
    display: inline-block;
    margin: 0 0 1.6rem;
    padding: .38em .85em .42em;
    background: var(--paper-light);
    color: var(--ink);
    font-family: var(--f-stamp);
    font-weight: 600;
    font-size: clamp(1.35rem, 1rem + 1.3vw, 2rem);
    line-height: 1.15;
    border: 2px solid var(--line);
    border-radius: 3px;
    box-shadow: inset 0 0 0 4px var(--paper-light), inset 0 0 0 6px var(--line), 2px 3px 0 rgba(43, 58, 85, .18);
    transform: rotate(-1.5deg);
}
.stamp-tag {
    display: inline-block;
    padding: .3rem .8rem;
    background: #EEF2EA;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .95rem;
    border: 2px solid var(--line);
    border-radius: 3px;
    box-shadow: inset 0 0 0 3px #EEF2EA, inset 0 0 0 4.5px var(--line);
}

/* ---------- Шапка ---------- */
.masthead { padding: 2.2rem 0 1.4rem; }
.masthead__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: start; }
.brand { display: flex; gap: 1.4rem; align-items: center; min-width: 0; }
.brand__stamp { flex: 0 0 auto; display: block; width: 118px; height: 118px; color: var(--ink); text-decoration: none; transform: rotate(-8deg); }
.brand__svg { display: block; width: 100%; height: 100%; }
.brand-logo { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.brand__text { min-width: 0; }
.brand__title {
    margin: 0 0 .5rem;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: clamp(1.55rem, 1rem + 2.1vw, 2.65rem);
    line-height: 1.04;
    letter-spacing: -.005em;
    transform: skewX(-7deg);
    transform-origin: left bottom;
}
.brand__title a { color: var(--ink); text-decoration: none; }
.brand__title a:hover { color: var(--ink); text-decoration: underline wavy var(--marker) 2px; text-underline-offset: 6px; }
.brand__desc { margin: 0; max-width: 62ch; font-size: .86rem; line-height: 1.45; color: var(--ink); }

.topnav { position: relative; }
.topnav__toggle { display: none; }
.topnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.topnav__list li { filter: drop-shadow(1px 2px 0 rgba(43, 58, 85, .2)); }
.topnav__list li:nth-child(1) { transform: rotate(-1.2deg); margin-right: 6px; }
.topnav__list li:nth-child(2) { transform: rotate(1.4deg); margin-right: 18px; }
.topnav__list li:nth-child(3) { transform: rotate(-.7deg); }
.topnav__list li:nth-child(4) { transform: rotate(1deg); margin-right: 10px; }
.topnav__list a {
    display: block;
    padding: .38rem 1.35rem .42rem;
    background: #F2EBDA;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    clip-path: polygon(2% 0, 30% 6%, 62% 0, 98% 4%, 100% 50%, 97% 100%, 66% 94%, 34% 100%, 1% 96%, 0 48%);
    transition: background-color .15s, color .15s, transform .15s;
}
.topnav__list a:hover, .topnav__list a:focus-visible { background: var(--marker); color: #fff; transform: translateX(-4px); outline: none; }
.topnav__list .current-menu-item > a { background: var(--ink); color: #fff; }

/* ---------- Хлебные крошки ---------- */
.crumbs { padding: 1rem 0 1.4rem; font-size: .82rem; color: var(--ink-soft); }
.crumbs a { color: var(--ink); }
.crumbs-sep { color: var(--muted); margin: 0 .2rem; }
.crumbs span:last-child { color: var(--ink-soft); }

/* ---------- Раскладки ---------- */
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

/* ---------- Главная: секции ---------- */
.fs { position: relative; padding: 2.2rem 0; }
.fs-estimate { padding-top: 1.6rem; }

/* Блок 1: смета */
.estimate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 270px); gap: 1.2rem; align-items: start; }
.estimate__sheet {
    position: relative;
    min-width: 0;
    padding: 2.4rem 2.4rem 2rem;
    background:
        linear-gradient(rgba(255, 255, 255, .22), rgba(255, 255, 255, 0)),
        var(--kalka);
    border-radius: 7px;
    box-shadow: 0 1px 0 rgba(43, 58, 85, .12), 0 10px 24px -18px rgba(31, 46, 74, .55);
}
.estimate__stamp { position: absolute; top: -16px; right: 7%; transform: rotate(4deg); }
.estimate__title { font-size: clamp(1.45rem, 1rem + 1.6vw, 2.1rem); margin-bottom: .5rem; transform: skewX(-4deg); transform-origin: left bottom; }
.estimate__lead { max-width: 60ch; font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.estimate__scroll { overflow-x: auto; }
.ledger { width: 100%; min-width: 440px; border: 2px solid var(--line); background: rgba(255, 255, 255, .28); font-size: .95rem; }
.ledger th, .ledger td { border: 1.5px solid var(--line); padding: .55rem .9rem; text-align: center; }
.ledger thead th { font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; background: rgba(46, 107, 87, .1); }
.ledger tbody th, .ledger tfoot th { text-align: left; font-weight: 400; font-family: var(--f-mono); }
.ledger thead th:first-child { text-align: left; }
.ledger__diff { color: #B33F17; font-weight: 600; white-space: nowrap; }
.ledger tfoot th, .ledger tfoot td { font-weight: 600; background: rgba(46, 107, 87, .14); }

.receipt { position: relative; margin: -36px 0 0; container-type: inline-size; }
.receipt__img { display: block; width: 100%; height: auto; filter: drop-shadow(3px 6px 6px rgba(31, 46, 74, .28)); }
.receipt__print {
    position: absolute;
    left: 25%;
    top: 12%;
    width: 52%;
    display: flex;
    flex-direction: column;
    gap: .2em;
    font-family: var(--f-mono);
    font-size: 4.6cqw;
    line-height: 1.3;
    color: #4C5260;
    transform: rotate(8.5deg);
    transform-origin: left top;
}
.receipt__head { text-align: center; font-weight: 600; padding-bottom: .45em; margin-bottom: .3em; border-bottom: 1px dashed #8C92A0; }
.receipt__line { display: flex; justify-content: space-between; gap: .5em; }
.receipt__line--sum { margin-top: .4em; padding-top: .4em; border-top: 1px dashed #8C92A0; font-weight: 600; color: #2D3340; }
.receipt__marker {
    position: absolute;
    left: -6%;
    bottom: 22%;
    padding: .3em .9em .35em .7em;
    background: var(--marker);
    color: #1A1A1A;
    font-family: var(--f-head);
    font-weight: 800;
    font-size: 9.5cqw;
    line-height: 1.05;
    white-space: nowrap;
    clip-path: polygon(1% 12%, 18% 4%, 52% 9%, 99% 0, 96% 50%, 100% 88%, 70% 96%, 30% 92%, 0 100%, 3% 55%);
    transform: rotate(-6deg);
}

/* Блок 2: ловушки */
.traps { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr); gap: 2rem; align-items: center; }
.traps__intro { position: relative; min-width: 0; }
.traps__title { max-width: 14ch; font-size: clamp(1.4rem, 1rem + 1.5vw, 2.1rem); }
.traps__arrow { display: block; width: 150px; height: auto; margin: -.6rem 0 .6rem auto; color: var(--marker); transform: rotate(-8deg); }
.traps__note {
    padding: 1rem 1.2rem;
    background: rgba(255, 253, 246, .88);
    border-left: 4px solid var(--marker);
    box-shadow: 2px 3px 0 rgba(43, 58, 85, .14);
    font-size: .88rem;
    line-height: 1.55;
}
.traps__hint { margin: 0; }
.traps__tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.3rem; min-width: 0; }
.trap {
    position: relative;
    display: block;
    padding: 0;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    container-type: inline-size;
    transition: transform .18s, filter .18s;
    filter: drop-shadow(2px 4px 3px rgba(31, 46, 74, .22));
}
.trap img { display: block; width: 100%; height: auto; }
.trap--2 { margin-top: 10px; }
.trap--4 { margin-top: 4px; }
.trap__num, .trap__txt { position: absolute; top: 50%; }
.trap__num { left: 21%; font-family: var(--f-stamp); font-weight: 600; font-size: 15cqw; line-height: 1; }
.trap__txt { left: 41%; right: 6%; font-family: var(--f-head); font-weight: 700; font-size: 7.4cqw; line-height: 1.02; text-align: left; }
.trap--1 .trap__num, .trap--1 .trap__txt { transform: translateY(-50%) rotate(-3deg); }
.trap--2 .trap__num, .trap--2 .trap__txt { transform: translateY(-50%) rotate(-4deg); }
.trap--3 .trap__num, .trap--3 .trap__txt { transform: translateY(-50%) rotate(-6deg); }
.trap--4 .trap__num, .trap--4 .trap__txt { transform: translateY(-50%) rotate(6deg); }
.trap--4 .trap__num { left: 17%; }
.trap--4 .trap__txt { left: 36%; }
.trap:hover { transform: translateY(-4px) rotate(-1deg); }
.trap.is-active { filter: drop-shadow(0 0 0 var(--marker)) drop-shadow(3px 6px 4px rgba(31, 46, 74, .3)); }
.trap.is-active .trap__num { color: var(--marker); }

/* Последние записи */
.fs-latest { padding-top: 2.6rem; }
.scrap { position: absolute; display: block; pointer-events: none; z-index: 0; }
.scrap--left { left: -7.5%; top: 34%; width: 52px; height: auto; }
.scrap--right { right: -1%; top: 5.4rem; width: 270px; height: auto; transform: rotate(-3deg); clip-path: polygon(0 18%, 8% 0, 40% 10%, 72% 0, 100% 14%, 98% 100%, 0 100%); }
.fs-latest .stamp-head, .cards--front { position: relative; z-index: 1; }
.fs-latest__more { position: relative; z-index: 1; margin: 2rem 0 0; text-align: center; }
.empty-note { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Карточки ---------- */
.cards { display: grid; gap: 2rem 1.8rem; }
.cards--front { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 16px;
    background: #FFFEF9;
    overflow: hidden;
    box-shadow: 0 12px 18px -10px rgba(31, 46, 74, .42), 0 1px 1px rgba(31, 46, 74, .12);
    transition: transform .2s;
}
.cards .card:nth-child(3n+1) { transform: rotate(-2.4deg); }
.cards .card:nth-child(3n+2) { transform: rotate(1.2deg); margin-top: 6px; }
.cards .card:nth-child(3n) { transform: rotate(-1.6deg); }
.cards .card:hover { transform: rotate(0) translateY(-5px); }
.card-thumb { position: relative; }
.card-thumb a { display: block; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; filter: saturate(.92) contrast(1.03); }
.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: .9rem .3rem 0; }
.card-title { margin: 0 0 .45rem; font-family: var(--f-head); font-weight: 800; font-size: 1.22rem; line-height: 1.15; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { text-decoration: underline wavy var(--marker) 1.5px; text-underline-offset: 4px; }
.card-excerpt { font-size: .84rem; line-height: 1.5; color: var(--ink-soft); margin-bottom: .9rem; }
.card-excerpt p { margin: 0 0 .5em; background: none; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.card-date { font-size: .8rem; color: var(--muted); letter-spacing: .03em; }
.sticky .card-date::before { content: "Закреплено · "; color: var(--marker); }

/* Пара блоков: маршрут и разбор билета */
.fs-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; align-items: center; padding: 1.5rem 0 1rem; }
.fs-pair .fs { min-width: 0; }

/* Блок 3: маршрут-билет */
.route-ticket {
    position: relative;
    padding: 2.2rem 2.6rem 1.8rem;
    background: var(--ink);
    color: #fff;
    transform: rotate(-2.5deg);
    -webkit-mask:
        radial-gradient(circle at left center, transparent 6px, #000 6.6px) left / 51% 20px repeat-y,
        radial-gradient(circle at right center, transparent 6px, #000 6.6px) right / 51% 20px repeat-y;
    mask:
        radial-gradient(circle at left center, transparent 6px, #000 6.6px) left / 51% 20px repeat-y,
        radial-gradient(circle at right center, transparent 6px, #000 6.6px) right / 51% 20px repeat-y;
}
.route-ticket::before {
    content: "";
    position: absolute;
    inset: 10px 16px;
    border: 1px dashed rgba(231, 220, 195, .28);
    pointer-events: none;
}
.route-ticket__title {
    position: relative;
    display: inline-block;
    margin: 0 0 .4rem;
    color: #fff;
    font-family: var(--f-stamp);
    font-weight: 400;
    font-size: clamp(1.4rem, 1rem + 1.4vw, 2.05rem);
}
.route-ticket__title::after {
    content: "";
    display: block;
    height: 3px;
    margin-top: .35rem;
    background: var(--marker);
    transform: rotate(-1.2deg);
    border-radius: 2px;
}
.route-ticket__map { position: relative; aspect-ratio: 600 / 150; margin: .6rem 0 .2rem; }
.route-ticket__line { position: absolute; inset: 0; width: 100%; height: 100%; }
.route-ticket__dot { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--marker); box-shadow: 0 0 0 3px var(--ink), 0 0 0 4.5px rgba(255, 255, 255, .7); transform: translate(-50%, -50%); }
.route-ticket__days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; text-align: center; }
.route-ticket__days li { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.route-ticket__days li:nth-child(2) { margin-top: .5rem; }
.route-ticket__days b { font-family: var(--f-head); font-weight: 700; font-size: 1.1rem; }
.route-ticket__days span { font-size: .9rem; color: #F3B79E; }
.route-ticket__days em { font-style: normal; font-size: .72rem; line-height: 1.35; color: #B8C3D6; }
.route-ticket__total { margin: 1.2rem 0 0; padding-top: .7rem; border-top: 2px solid rgba(255, 255, 255, .85); font-size: .82rem; color: #E7DCC3; }

/* Блок 4: разбор билета */
.anatomy__title { font-family: var(--f-stamp); font-weight: 400; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.05rem); margin-bottom: .4rem; }
.anatomy { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: .8rem; align-items: stretch; }
.anatomy__fig { position: relative; aspect-ratio: 1112 / 720; container-type: inline-size; min-width: 0; }
.anatomy__img { position: absolute; left: 0; top: 16.94%; display: block; width: 100%; height: auto; filter: drop-shadow(2px 4px 4px rgba(31, 46, 74, .2)); }
.anatomy__arrows { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.anatomy__arrow { transition: stroke .15s; }
.anatomy__arrow.is-lit { stroke: var(--marker); }
.anatomy__stub {
    position: absolute;
    left: 75%;
    top: 19.2%;
    width: 24%;
    height: 11.2%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 3.1cqw;
    pointer-events: none;
}
.anatomy__label {
    position: absolute;
    padding: .1em .3em;
    background: none;
    border: 0;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(.8rem, 3.6cqw, 1.3rem);
    line-height: 1.1;
    cursor: help;
    white-space: nowrap;
}
.anatomy__label.is-lit { color: var(--marker); text-decoration: underline wavy var(--marker) 1.5px; text-underline-offset: 4px; }
.anatomy__label--fare { left: 14%; top: 4%; }
.anatomy__label--bag { left: 54%; top: 4%; }
.anatomy__label--fees { left: 17%; bottom: 3%; }
.anatomy__label--refund { left: 61%; bottom: 3%; }

.budget-scale { display: flex; flex-direction: column; min-width: 0; padding: 2.2rem 0 1.4rem; }
.budget-scale__cap { font-family: var(--f-head); font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.budget-scale__bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 200px;
    border-left: 3px solid var(--ink);
    background: repeating-linear-gradient(180deg, var(--ink) 0 2px, transparent 2px 25%) left top / 12px 100% no-repeat;
    padding-left: 6px;
}
.budget-scale__seg { position: relative; display: flex; align-items: center; min-height: 30px; padding-left: 20px; cursor: help; transition: background-color .15s; }
.budget-scale__seg::before { content: ""; position: absolute; left: 6px; top: 2px; bottom: 2px; width: 10px; background: var(--ticket); }
.budget-scale__seg[data-part="fees"]::before { background: var(--marker); }
.budget-scale__seg[data-part="bag"]::before { background: var(--muted); }
.budget-scale__seg[data-part="refund"]::before { background: var(--ink); }
.budget-scale__seg i { font-style: normal; font-size: .7rem; line-height: 1.2; color: var(--ink); }
.budget-scale__seg.is-lit { background: rgba(224, 89, 42, .12); }

.anatomy__legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 1.2rem 0 0; }
.anatomy__legend div { min-width: 0; padding: .7rem .9rem; background: rgba(255, 253, 246, .6); border: 1.5px dashed var(--line); transition: border-color .15s, background-color .15s; }
.anatomy__legend dt { font-family: var(--f-head); font-weight: 700; font-size: 1rem; }
.anatomy__legend dd { margin: .15rem 0 0; font-size: .8rem; line-height: 1.45; color: var(--ink-soft); }
.anatomy__legend div.is-lit { border-color: var(--marker); background: rgba(224, 89, 42, .08); }

/* ---------- Заголовок страниц-списков ---------- */
.page-head { margin-bottom: 1.8rem; }
.page-head__title { margin-bottom: 1rem; }
.page-head__intro { max-width: 70ch; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Лист записи и страницы ---------- */
.sheet {
    position: relative;
    padding: 2.4rem 2.6rem 2.2rem 3.4rem;
    background: var(--sheet);
    box-shadow: 0 14px 26px -18px rgba(31, 46, 74, .55), 0 1px 1px rgba(31, 46, 74, .1);
}
.sheet::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 24px;
    bottom: 24px;
    width: 12px;
    background: radial-gradient(circle, var(--paper) 4px, rgba(43, 58, 85, .25) 4.6px, transparent 5.4px) center top / 12px 64px repeat-y;
}
.sheet::after { content: ""; position: absolute; left: 36px; top: 0; bottom: 0; width: 1.5px; background: rgba(224, 89, 42, .45); }
.sheet__head { margin-bottom: 1.4rem; }
.sheet__title { font-size: clamp(1.7rem, 1.1rem + 2vw, 2.6rem); line-height: 1.08; transform: skewX(-5deg); transform-origin: left bottom; margin-bottom: .8rem; }
.sheet__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0; font-size: .82rem; }
.date-stamp {
    display: inline-block;
    padding: .12rem .55rem;
    border: 2px solid var(--ticket);
    color: var(--ticket);
    font-family: var(--f-head);
    font-weight: 700;
    letter-spacing: .06em;
    transform: rotate(-3deg);
}
.sheet__cats { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.sheet__cover { margin: 0 0 1.6rem; }
.sheet__cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 8px solid #fff; box-shadow: 0 6px 14px -8px rgba(31, 46, 74, .45); }
.sheet__tags { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin: 1.6rem 0 0; font-size: .84rem; }

.entry-content { font-size: .98rem; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.8rem; }
.entry-content h3 { font-size: 1.3rem; margin-top: 1.5rem; }
.entry-content h4 { font-size: 1.1rem; margin-top: 1.3rem; }
.entry-content ul, .entry-content ol { margin: 0 0 1.1em; padding-left: 1.5em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul { list-style: none; padding-left: 1.4em; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: ""; position: absolute; left: -1.2em; top: .62em; width: .55em; height: .55em; background: var(--marker); transform: rotate(45deg); }
.entry-content ol > li::marker { color: var(--marker); font-weight: 600; }
.entry-content blockquote {
    margin: 1.5em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    background: var(--kalka);
    border-left: 5px solid var(--marker);
    font-family: var(--f-stamp);
    font-size: 1.08rem;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; margin: 1.4em 0; border: 2px solid var(--line); font-size: .9rem; }
.entry-content th, .entry-content td { border: 1.5px solid var(--line); padding: .5rem .75rem; text-align: left; vertical-align: top; }
.entry-content th { font-family: var(--f-head); background: rgba(46, 107, 87, .12); }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .8rem; color: var(--muted); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; padding: 1rem 1.2rem; background: var(--ink); color: #E7DCC3; font-size: .86rem; }
.entry-content code { font-family: var(--f-mono); }
.entry-content hr { border: 0; border-top: 2px dashed var(--line); margin: 2em 0; }
.entry-content .wp-block-button__link { background: var(--ticket); color: #fff; border-radius: 0; text-decoration: none; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin-top: 1.4rem; font-family: var(--f-head); }

.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 0; }
.post-nav__link { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.2rem; background: rgba(255, 253, 246, .8); border: 1.5px dashed var(--line); text-decoration: none; font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; min-width: 0; }
.post-nav__link span { font-family: var(--f-mono); font-weight: 400; font-size: .76rem; color: var(--muted); }
.post-nav__link--next { grid-column: 2; text-align: right; }
.post-nav__link:hover { border-color: var(--marker); }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; padding: 2rem 2.2rem; background: rgba(255, 253, 246, .85); box-shadow: 2px 3px 0 rgba(43, 58, 85, .12); }
.comments__title, .comment-reply-title { font-size: 1.4rem; }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 1.6rem; border-left: 2px dashed rgba(43, 58, 85, .3); }
.comment-card { padding: 1rem 0 1.1rem; border-bottom: 1px dashed rgba(43, 58, 85, .35); }
.comment-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-bottom: .5rem; }
.comment-card__head .avatar { border-radius: 50%; border: 2px solid var(--line); }
.comment-card__author { font-family: var(--f-head); font-weight: 700; font-size: 1.02rem; }
.comment-card__date { font-size: .78rem; color: var(--muted); }
.comment-card__wait { font-size: .82rem; color: var(--marker); }
.comment-card__text { font-size: .92rem; }
.comment-card__reply { margin: .3rem 0 0; font-size: .82rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-family: var(--f-head); font-weight: 700; margin-bottom: .3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .6rem .8rem;
    background: var(--sheet);
    border: 2px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: .92rem;
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .82rem; }
.comment-form-cookies-consent label { display: inline; font-family: var(--f-mono); font-weight: 400; }
.comment-form .submit {
    padding: .65rem 1.4rem;
    background: var(--ticket);
    color: #fff;
    border: 0;
    border-radius: 0;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .98rem;
    cursor: pointer;
    outline: 1.5px dashed rgba(255, 255, 255, .7);
    outline-offset: -6px;
}
.comment-form .submit:hover { background: var(--ink); }
.comment-notes, .logged-in-as { font-size: .82rem; color: var(--ink-soft); }
.required { color: var(--marker); }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    padding: 1.8rem 1.5rem 1.6rem;
    background: #F6F0E1;
    color: var(--ink);
    box-shadow: 0 10px 20px -14px rgba(31, 46, 74, .5);
    -webkit-mask:
        conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 14px 51% repeat-x,
        conic-gradient(from 135deg at top, transparent, #000 1deg 89deg, transparent 90deg) top / 14px 51% repeat-x;
    mask:
        conic-gradient(from -45deg at bottom, transparent, #000 1deg 89deg, transparent 90deg) bottom / 14px 51% repeat-x,
        conic-gradient(from 135deg at top, transparent, #000 1deg 89deg, transparent 90deg) top / 14px 51% repeat-x;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    display: inline-block;
    padding: .25rem .7rem;
    margin-bottom: 1rem;
    border: 2px solid var(--line);
    box-shadow: inset 0 0 0 2px #F6F0E1, inset 0 0 0 3.5px var(--line);
    font-family: var(--f-stamp);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--ink);
    transform: rotate(-1.5deg);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .55rem 0; border-bottom: 1px dashed rgba(43, 58, 85, .35); font-size: .88rem; line-height: 1.4; color: var(--ink); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--ink); text-decoration: none; }
.sidebar a:hover { color: var(--marker); text-decoration: underline wavy var(--marker) 1px; }
.sidebar .post-date { display: block; font-size: .76rem; color: #6E6049; }
.sidebar p, .sidebar .textwidget { font-size: .88rem; color: var(--ink); }
.sidebar .search-form { flex-direction: column; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .6rem; align-items: stretch; max-width: 520px; }
.search-form__field {
    flex: 1;
    min-width: 0;
    padding: .6rem .85rem;
    background: var(--sheet);
    border: 2px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    font-family: var(--f-mono);
    font-size: .92rem;
}

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 2.4rem 0 0; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: .45rem .8rem;
    background: var(--sheet);
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none;
    transition: background-color .15s, color .15s, transform .15s;
}
.pager a.page-numbers:hover { background: var(--marker); border-color: var(--marker); color: #fff; transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--ink); color: #fff; transform: rotate(-3deg); }
.pager .page-numbers.dots { background: none; border: 0; min-width: auto; padding: .45rem .2rem; }

/* ---------- 404 ---------- */
.lost { padding: 2.5rem 2.4rem; background: rgba(255, 253, 246, .85); box-shadow: 2px 4px 0 rgba(43, 58, 85, .14); text-align: center; }
.lost__code {
    display: inline-block;
    margin: 0 0 1rem;
    padding: .05em .4em;
    border: 6px double var(--marker);
    color: var(--marker);
    font-family: var(--f-stamp);
    font-weight: 600;
    font-size: clamp(4rem, 3rem + 5vw, 7.5rem);
    line-height: 1;
    transform: rotate(-6deg);
}
.lost__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); }
.lost__text { max-width: 56ch; margin: 0 auto 1.4rem; color: var(--ink-soft); }
.lost .search-form { margin: 0 auto; }
.lost__back { margin: 1.6rem 0 0; }
.empty-box { padding: 1.6rem 1.8rem; background: rgba(255, 253, 246, .85); }

/* ---------- Подвал ---------- */
.foot { padding: 3rem 0 1.6rem; background: var(--ink); color: #E7DCC3; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.foot__col { min-width: 0; }
.foot .widget { margin-bottom: 1.4rem; }
.foot .widget-title { margin-bottom: .9rem; font-family: var(--f-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; color: #F3A57F; }
.foot p, .foot .textwidget { font-size: .86rem; line-height: 1.6; color: #E7DCC3; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .55rem; font-size: .9rem; color: #E7DCC3; }
.foot a { color: #F7F1E3; text-decoration: underline wavy rgba(224, 89, 42, .9) 1px; text-underline-offset: 5px; }
.foot a:hover { color: #F3A57F; }
.foot .post-date { display: block; font-size: .76rem; color: #B8C3D6; }
.foot__copy { margin: 1.8rem 0 0; padding-top: 1.2rem; border-top: 1px dashed rgba(231, 220, 195, .35); text-align: center; font-size: .8rem; color: #D8CDB3; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 90;
    width: min(92%, 760px);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem 1.3rem;
    background: var(--ink);
    color: #E7DCC3;
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
    outline: 1.5px dashed rgba(231, 220, 195, .4);
    outline-offset: -7px;
    transform: translateX(-50%);
}
.cookie-banner__text { margin: 0; font-size: .82rem; line-height: 1.5; }
.cookie-banner__btn { flex: 0 0 auto; }
.cookie-banner__btn:hover { background: var(--marker); }

/* ---------- Адаптив ---------- */
@media (max-width: 1240px) {
    .scrap--left { display: none; }
}
@media (max-width: 960px) {
    .masthead__row { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
    .brand { gap: 1rem; }
    .brand__stamp { width: 84px; height: 84px; }
    .topnav__toggle {
        display: inline-flex;
        align-items: center;
        gap: .55rem;
        padding: .55rem .9rem;
        background: var(--ink);
        color: #fff;
        border: 0;
        font-family: var(--f-head);
        font-weight: 700;
        cursor: pointer;
    }
    .topnav__bars, .topnav__bars::before, .topnav__bars::after { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
    .topnav__bars::before, .topnav__bars::after { content: ""; position: absolute; left: 0; }
    .topnav__bars::before { top: -6px; }
    .topnav__bars::after { top: 6px; }
    .topnav__list { display: none; position: absolute; right: 0; top: calc(100% + .6rem); z-index: 20; min-width: 240px; padding: .9rem .8rem; background: var(--paper-light); box-shadow: 0 12px 24px -10px rgba(31, 46, 74, .5); align-items: stretch; }
    .topnav__list.is-open { display: flex; }
    .topnav__list li { margin-right: 0 !important; }
    .estimate { grid-template-columns: minmax(0, 1fr); }
    .receipt { width: min(100%, 270px); justify-self: center; margin-top: -10px; }
    .traps { grid-template-columns: minmax(0, 1fr); }
    .traps__arrow { transform: rotate(60deg); width: 90px; margin: -.4rem auto .4rem; }
    .cards--front { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .scrap--right { display: none; }
    .fs-pair { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .shell--front { width: min(92%, 1180px); }
    .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    body { font-size: 14px; }
    .masthead { padding: 1.4rem 0 .6rem; }
    .masthead__row { grid-template-columns: minmax(0, 1fr); }
    .brand { align-items: flex-start; }
    .brand__stamp { width: 62px; height: 62px; }
    .brand__desc { font-size: .78rem; }
    .topnav__toggle { width: 100%; justify-content: center; }
    .topnav__list { left: 0; right: 0; min-width: 0; }
    .fs { padding: 1.6rem 0; }
    .estimate__sheet { padding: 2rem 1.2rem 1.4rem; }
    .estimate__stamp { right: 4%; font-size: .82rem; }
    .ledger { font-size: .76rem; min-width: 0; }
    .ledger th, .ledger td { padding: .42rem .35rem; }
    .ledger thead th { font-size: .86rem; }
    .traps__title { max-width: none; font-size: 1.35rem; }
    .stamp-head { font-size: 1.3rem; }
    .traps__tags { grid-template-columns: minmax(0, 1fr); max-width: 320px; margin-inline: auto; width: 100%; }
    .cards--front, .cards--list { grid-template-columns: minmax(0, 1fr); }
    .cards .card:nth-child(n) { transform: rotate(-1deg); margin-top: 0; }
    .route-ticket { padding: 1.8rem 1.5rem 1.5rem; transform: rotate(-1.5deg); }
    .route-ticket__days { gap: .4rem; }
    .route-ticket__days em { font-size: .66rem; }
    .anatomy { grid-template-columns: minmax(0, 1fr); }
    .budget-scale { padding: 0; }
    .budget-scale__bar { flex-direction: row; min-height: 0; border-left: 0; border-top: 3px solid var(--ink); background: none; padding: 6px 0 0; }
    .budget-scale__seg { flex-direction: column; align-items: flex-start; padding: 16px 2px 0; min-height: 0; min-width: 0; }
    .budget-scale__seg::before { left: 0; right: 1px; top: 0; bottom: auto; width: auto; height: 10px; }
    .budget-scale__seg i { font-size: .64rem; }
    .anatomy__legend { grid-template-columns: minmax(0, 1fr); }
    .sheet { padding: 1.6rem 1.1rem 1.5rem 2.2rem; }
    .sheet::before { left: 6px; }
    .sheet::after { left: 24px; }
    .comments { padding: 1.5rem 1.1rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav__link--next { grid-column: 1; }
    .lost { padding: 1.8rem 1.1rem; }
    .search-form { flex-direction: column; }
    .foot__cols { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
    .cookie-banner { flex-direction: column; align-items: stretch; gap: .8rem; padding: 1rem 1.1rem; }
}
