/*
Theme Name: dds_abratour.ru
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: vshobl
*/

/* ---------- Шрифты ---------- */
@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+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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-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: "PT Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-cyrillic-400-italic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "PT Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/pt-sans-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-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: "PT Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/pt-sans-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+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Переменные ---------- */
:root {
    --c-graphite: #23262B;
    --c-conifer: #1E2A26;
    --c-night: #141B26;
    --c-top: #12171D;
    --c-mast: #1B1F24;
    --c-panel: #2B2E30;
    --c-chalk: #F2EFE6;
    --c-moss: #9FA6A0;
    --c-amber: #E8A33D;
    --c-amber-ink: #9C620F;
    --c-teal: #5FB8A6;
    --c-slate: #4A5049;
    --c-paper: #D9D2C2;
    --c-paper-hi: #E6E0D2;
    --c-ink: #23262B;
    --c-ridge: #233836;
    --f-head: "Oswald", "Roboto Condensed", "Arial Narrow", "Liberation Sans Narrow", sans-serif;
    --f-text: "PT Sans", "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    --shell: min(85%, 1200px);
}

/* ---------- Скрытие по атрибуту hidden (до основных стилей) ---------- */
.cookie-banner[hidden] { display: none !important; }
.head-nav[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; } }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--c-chalk);
    background-color: var(--c-graphite);
    background-image: linear-gradient(180deg, rgba(18, 23, 29, .35) 0%, rgba(35, 38, 43, .15) 40%, rgba(20, 27, 38, .55) 100%), url("images/stone-tile.jpg");
    background-repeat: no-repeat, repeat;
    background-size: 100% 100%, 376px auto;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--c-teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s; }
a:hover { color: var(--c-amber); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--c-amber); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 1.6em 0 .6em;
    color: var(--c-chalk);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, li, dd, td, th, figcaption, blockquote, .card-title, .widget { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, h4, h5, h6, .card-title, .brand-desc, .stay-card p, .alt-note, .foot-col, .pack-check, .spec-table td, .gear figcaption { hyphens: manual; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--c-amber); color: #111; padding: .6rem 1rem; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.shell { width: var(--shell); margin-inline: auto; }

/* ---------- Кнопка-бирка ---------- */
.btn-tag {
    --eye: 7px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 2.3rem .5rem 1rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    line-height: 1.2;
    color: #14161A;
    background: var(--c-amber);
    border: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
    transition: transform .12s, background-color .12s;
}
.btn-tag::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: var(--eye);
    height: var(--eye);
    margin-top: calc(var(--eye) / -2);
    border-radius: 50%;
    background: #23262B;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
}
.btn-tag:hover, .btn-tag:focus-visible { color: #14161A; background: var(--c-teal); transform: translateX(3px); }

/* ---------- Метка секции ---------- */
.sec-mark {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--f-head);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--c-amber);
}
.sec-mark::before { content: ""; width: 34px; height: 2px; background: var(--c-teal); }
.sec-title { margin: .35rem 0 0; font-size: clamp(1.6rem, 3.4vw, 2.35rem); font-weight: 600; letter-spacing: .03em; }
.sec-head { margin-bottom: 1.8rem; }
.sec-head--center { text-align: center; }
.sec-head--center .sec-mark { justify-content: center; }

/* ---------- Шапка ---------- */
.site-head { position: relative; z-index: 5; }
.head-bar { background: var(--c-top); border-bottom: 1px solid #252b33; }
.head-bar-in { display: flex; justify-content: flex-end; align-items: center; min-height: 46px; }
.head-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.head-menu a {
    display: block;
    padding: .7rem 0;
    font-family: var(--f-head);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--c-chalk);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.head-menu a:hover, .head-menu .current-menu-item > a, .head-menu .current_page_item > a, .head-menu .current-menu-ancestor > a { color: var(--c-teal); border-bottom-color: var(--c-teal); }
.nav-toggle { display: none; }
.masthead {
    background: var(--c-mast);
    background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 22px);
    border-bottom: 1px solid #2c323a;
}
.masthead-in { display: flex; align-items: center; gap: 1.4rem; padding: 1.6rem 0 1.7rem; }
.brand-mark { flex: 0 0 auto; display: block; width: 100px; color: var(--c-teal); }
.brand-mark svg, .brand-mark .brand-logo { width: 100px; height: auto; display: block; }
.brand-text { min-width: 0; }
.brand-name { margin: 0; font-family: var(--f-head); font-size: clamp(1.45rem, 3.3vw, 2.6rem); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1; }
.brand-name a { color: var(--c-chalk); text-decoration: none; }
.brand-name a:hover { color: var(--c-teal); }
.brand-desc { margin: .45rem 0 0; color: var(--c-moss); font-size: 1rem; max-width: 92ch; line-height: 1.45; }

/* ---------- Главная: общие ---------- */
.site-main { display: block; }
.front { padding-bottom: 3rem; }
.fp-section { position: relative; margin-top: 2.6rem; }

/* Блок 1 — высота и нагрузка */
.fp-altitude { margin-top: 0; padding-top: 2.4rem; }
.fp-altitude::before {
    content: "";
    position: absolute;
    top: 2.4rem;
    bottom: 0;
    left: 50%;
    width: var(--shell);
    transform: translateX(-50%);
    background-color: var(--c-panel);
    background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(242, 239, 230, .07) 27px 28px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
}
.alt-head { position: relative; padding: 1.7rem 2.2rem 0; }
.alt-head .sec-title { padding-bottom: .55rem; border-bottom: 2px solid var(--c-teal); }
.alt-axis { margin: .6rem 0 0; font-size: .85rem; color: var(--c-teal); letter-spacing: .05em; }
.alt-ridge { position: relative; margin-top: -1rem; }
.alt-figure { position: relative; }
.alt-ridge-img { width: 100%; height: auto; aspect-ratio: 1536 / 408; }
.alt-points { list-style: none; margin: 0; padding: 0; }
.alt-point { position: absolute; left: var(--x); top: var(--y); width: 0; height: 0; }
.alt-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--c-amber); box-shadow: 0 0 0 3px rgba(35, 38, 43, .7); }
.alt-tag {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    padding: .2rem .55rem .15rem;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: clamp(.8rem, 1.35vw, 1.15rem);
    letter-spacing: .03em;
    white-space: nowrap;
    color: #14161A;
    background: var(--c-amber);
    border-radius: 2px;
}
.alt-tag::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0; border-top-color: var(--c-amber); }
.alt-notes { list-style: none; margin: 0; padding: 0; }
.alt-note { position: absolute; left: var(--x); top: 73%; width: 15.5%; transform: translateX(-50%); text-align: center; min-width: 0; }
.alt-note-h { display: none; }
.alt-note-title { display: block; font-family: var(--f-head); font-size: clamp(1rem, 1.7vw, 1.5rem); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--c-chalk); }
.alt-note-text { display: block; margin-top: .25rem; font-size: clamp(.78rem, 1vw, .95rem); line-height: 1.35; color: #C5CCC6; }

/* Блок 2 — рюкзак */
.pack-sheet {
    position: relative;
    background: var(--c-paper);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%), radial-gradient(rgba(35, 38, 43, .05) 1px, transparent 1px);
    background-size: auto, 5px 5px;
    color: var(--c-ink);
    padding: 2.2rem 2.4rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}
.pack-sheet::before, .pack-sheet::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #C9C1AE;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.pack-sheet::before { transform: translate(7px, 7px) rotate(.5deg); }
.pack-sheet::after { transform: translate(-5px, 4px) rotate(-.6deg); background: #BDB5A2; }
.pack-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 2.4rem; align-items: start; }
.pack-flatlay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .72fr) minmax(0, 1.2fr) minmax(0, .82fr);
    grid-template-areas: "boots axe helmet aid" "boots axe fleece thermos";
    gap: 1.2rem 1.1rem;
    align-items: center;
}
.gear { margin: 0; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.gear img { width: 100%; height: auto; }
.gear-boots { grid-area: boots; gap: 2.2rem; }
.gear-boots img { width: 92%; }
.gear-axe { grid-area: axe; }
.gear-axe img { width: 78%; }
.gear-helmet { grid-area: helmet; }
.gear-helmet img { width: 72%; }
.gear-aid { grid-area: aid; }
.gear-aid img { width: 78%; }
.gear-fleece { grid-area: fleece; }
.gear-fleece img { width: 92%; }
.gear-thermos { grid-area: thermos; }
.gear-thermos img { width: 40%; }
.gear figcaption {
    position: relative;
    margin-top: .55rem;
    padding: .1rem 0 .1rem .7rem;
    font-family: var(--f-head);
    font-size: .76rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #3A3D3B;
    white-space: nowrap;
    border-left: 1px solid #6B6E68;
}
.gear figcaption::before { content: ""; position: absolute; left: -1px; top: -14px; height: 14px; border-left: 1px dashed #6B6E68; }
.gear figcaption b { font-weight: 600; color: var(--c-amber-ink); }
.pack-list .sec-mark { color: var(--c-amber-ink); }
.pack-list .sec-mark::before { background: #2C7F70; }
.pack-list .sec-title { color: var(--c-ink); margin-bottom: .4rem; }
.pack-hint { margin: 0 0 .9rem; font-size: .92rem; color: #4D514C; }
.pack-checks { list-style: none; margin: 0; padding: 0; }
.pack-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    width: 100%;
    padding: .5rem 0 .45rem;
    font: inherit;
    font-size: .98rem;
    line-height: 1.35;
    text-align: left;
    color: var(--c-ink);
    background: none;
    border: 0;
    border-bottom: 1px solid #A9A190;
    cursor: pointer;
}
.pack-box { flex: 0 0 16px; width: 16px; height: 16px; margin-top: .12rem; border: 1.5px solid #4A5049; background: rgba(255, 255, 255, .35); position: relative; }
.pack-check[aria-pressed="true"] .pack-box { background: #2C7F70; border-color: #2C7F70; }
.pack-check[aria-pressed="true"] .pack-box::after { content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.pack-check[aria-pressed="true"] .pack-label { text-decoration: line-through; text-decoration-color: rgba(35, 38, 43, .5); color: #565A55; }
.pack-check:hover .pack-box { border-color: #2C7F70; }

/* Последние записи на главной */
.fp-latest .latest-panel {
    background: var(--c-graphite);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent);
    padding: 2.2rem 2.2rem 2.6rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
}
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.6rem; }
.empty-note { color: var(--c-moss); text-align: center; margin: 1rem 0 0; }

/* ---------- Карточка записи ---------- */
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #1F2226;
    border: 1px solid var(--c-teal);
    padding: 1.1rem 1.1rem 1.3rem;
    transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--c-amber); }
.card-title { margin: 0 0 .85rem; font-size: 1.22rem; font-weight: 600; line-height: 1.2; letter-spacing: .03em; }
.card-title a { color: var(--c-chalk); text-decoration: none; }
.card-title a:hover { color: var(--c-teal); }
.card-thumb { display: block; margin: 0 0 .9rem; overflow: hidden; background: #15181b; }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9.5; object-fit: cover; filter: saturate(.9) contrast(1.03); transition: transform .3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.card-excerpt { flex: 1; font-size: .96rem; line-height: 1.5; color: #D8D6CE; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--c-teal); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; margin-top: .9rem; }
.card-stamp {
    display: inline-block;
    padding: .18rem .5rem .12rem;
    font-family: var(--f-head);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--c-moss);
    border: 1px solid var(--c-slate);
    outline: 1px solid rgba(74, 80, 73, .55);
    outline-offset: 2px;
    transform: rotate(-2deg);
}
.card-foot .btn-tag { order: -1; }

/* Блок 3 — условия проживания */
.stay-panel {
    background: var(--c-conifer);
    background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(159, 166, 160, .045) 31px 32px);
    padding: 2.2rem 2.2rem 2.6rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
}
.stay-row { display: flex; align-items: stretch; justify-content: center; gap: 0; }
.stay-card {
    flex: 0 1 25%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.8rem 1.3rem 1.5rem;
    border: 1.5px solid #6E7A72;
    background: rgba(13, 20, 17, .35);
    color: var(--c-chalk);
    transition: border-color .15s, background-color .15s;
}
.stay-card:hover { border-color: var(--c-teal); background: rgba(13, 20, 17, .55); }
.stay-icon { width: 92px; height: 72px; color: #8C9A90; }
.stay-icon svg { width: 100%; height: 100%; }
.stay-card h3 { margin: .9rem 0 .6rem; font-size: 1.35rem; letter-spacing: .04em; }
.stay-card p { margin: 0; flex: 1; font-size: .93rem; line-height: 1.45; color: #C9D0CA; }
.stay-mini { margin-top: 1.1rem; width: 34px; height: 34px; color: #8C9A90; }
.stay-trail { flex: 0 0 9%; display: flex; align-items: center; justify-content: center; color: #9AA59D; }
.stay-trail svg { width: 100%; max-width: 76px; height: auto; }

/* Блок 4 — детали программы */
.spec-sheet {
    position: relative;
    width: 100%;
    background: var(--c-paper);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(255, 255, 255, 0) 50%);
    color: var(--c-ink);
    padding: 2.2rem 2.4rem 2.4rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .45);
}
.spec-sheet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #C3BBA8; transform: translate(-6px, 6px) rotate(-.45deg); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.spec-sheet .sec-mark { color: var(--c-amber-ink); }
.spec-sheet .sec-mark::before { background: #2C7F70; }
.spec-sheet .sec-title { color: var(--c-ink); }
.spec-wrap { width: min(100%, 560px); margin: 0 auto; }
.spec-caption { margin: 0 0 .6rem; font-size: .9rem; color: #555A54; text-align: center; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.spec-table th, .spec-table td { padding: .55rem 0 .45rem; border-bottom: 1px solid var(--c-slate); vertical-align: baseline; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--c-slate); }
.spec-table th { text-align: left; font-weight: 400; color: var(--c-ink); padding-right: 1rem; }
.spec-table td { text-align: right; font-weight: 700; color: var(--c-amber-ink); }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2.2rem 0 3.4rem; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67%) minmax(0, 27%); justify-content: space-between; align-items: start; }
.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }
.paper-panel {
    background: var(--c-graphite);
    padding: 2rem 2.2rem 2.4rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
    border-top: 3px solid var(--c-teal);
}
.crumbs { margin: 0 0 1.2rem; font-family: var(--f-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--c-moss); }
.crumbs a { color: var(--c-teal); text-decoration: none; }
.crumbs a:hover { color: var(--c-amber); }
.crumbs-sep { color: var(--c-amber); margin: 0 .35rem; }
.page-title { margin: 0 0 1.2rem; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.page-lead { margin: -0.4rem 0 1.6rem; color: var(--c-moss); }
.posts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.layout-single .posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.entry-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 1.4rem; font-size: .92rem; color: var(--c-moss); }
.entry-meta a { color: var(--c-teal); }
.entry-thumb { margin: 0 0 1.6rem; }
.entry-thumb img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--c-slate); }
.entry-content { font-size: 1.07rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; padding-bottom: .35rem; border-bottom: 1px solid var(--c-slate); }
.entry-content h3 { font-size: 1.3rem; color: var(--c-teal); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--c-amber); }
.entry-content ol li::marker { color: var(--c-amber); font-family: var(--f-head); }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.1rem 1.4rem 1.1rem 1.6rem;
    background: var(--c-conifer);
    border-left: 4px solid var(--c-amber);
    font-size: 1.12rem;
    font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .97rem; border: 1px solid var(--c-slate); }
.entry-content th, .entry-content td { border: 1px solid var(--c-slate); padding: .55rem .75rem; text-align: left; }
.entry-content th { background: var(--c-conifer); font-family: var(--f-head); font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.entry-content tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.entry-content img { height: auto; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--c-moss); margin-top: .4rem; }
.entry-content pre { overflow-x: auto; background: #181b1f; padding: 1rem; border: 1px solid var(--c-slate); }
.entry-content hr { border: 0; border-top: 1px dashed var(--c-slate); margin: 2em 0; }
.entry-tags { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.entry-tags a { display: inline-block; padding: .15rem .6rem; border: 1px solid var(--c-teal); font-size: .85rem; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--c-slate); }
.post-nav a { display: block; text-decoration: none; color: var(--c-chalk); }
.post-nav span { display: block; font-family: var(--f-head); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--c-amber); }
.post-nav .next { text-align: right; }
.post-nav a:hover { color: var(--c-teal); }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--c-conifer);
    padding: 1.6rem 1.5rem;
    border-top: 3px solid var(--c-amber);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .4);
    color: #DCE1DC;
}
.sidebar .widget { margin-bottom: 1.8rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { margin: 0 0 .9rem; font-size: 1.05rem; letter-spacing: .1em; color: var(--c-chalk); padding-bottom: .5rem; border-bottom: 1px solid #3F4B46; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed #3F4B46; }
.sidebar a { color: #E9EEE9; text-decoration: none; }
.sidebar a:hover { color: var(--c-amber); }
.sidebar .post-date { display: block; font-size: .82rem; color: var(--c-moss); }
.sidebar p { color: #DCE1DC; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 2.2rem; }
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 .75rem;
    font-family: var(--f-head);
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--c-chalk);
    text-decoration: none;
    border: 1px solid var(--c-slate);
    background: #1C1F23;
    transition: background-color .12s, color .12s, transform .12s;
}
.pager a.page-numbers:hover { border-color: var(--c-teal); color: var(--c-teal); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--c-amber); border-color: var(--c-amber); color: #14161A; }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: 0; max-width: 520px; }
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .65rem .9rem;
    font: inherit;
    color: var(--c-chalk);
    background: #181B1F;
    border: 1px solid var(--c-slate);
    border-right: 0;
}
.search-form input[type="search"]::placeholder { color: #8A918B; }
.search-form input[type="search"]:focus { outline: 2px solid var(--c-teal); outline-offset: -2px; }
.search-form button { flex: 0 0 auto; padding: .65rem 1.1rem; font-family: var(--f-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #14161A; background: var(--c-amber); border: 0; cursor: pointer; }
.search-form button:hover { background: var(--c-teal); }
.sidebar .search-form input[type="search"] { background: #15201C; }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost-code { font-family: var(--f-head); font-weight: 700; font-size: clamp(5rem, 16vw, 9rem); line-height: 1; color: var(--c-amber); letter-spacing: .05em; margin: .2rem 0 .4rem; }
.lost .search-form { margin: 1.4rem auto; }
.lost-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1.4rem; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--c-slate); }
.comments-title { margin-top: 0; font-size: 1.4rem; }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { margin-left: 1.6rem; }
.comment-body { margin-bottom: 1.2rem; padding: 1rem 1.2rem; background: #1D2024; border-left: 3px solid var(--c-teal); }
.comment-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.comment-avatar { border-radius: 50%; }
.comment-author { font-weight: 700; }
.comment-date { font-size: .85rem; color: var(--c-moss); }
.comment-wait { font-size: .9rem; color: var(--c-amber); }
.comment-reply a { font-family: var(--f-head); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; }
.comment-reply-title small { margin-left: .8rem; font-size: .8rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; font-size: .92rem; color: var(--c-moss); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    font: inherit;
    color: var(--c-chalk);
    background: #181B1F;
    border: 1px solid var(--c-slate);
}
.comment-form input:focus, .comment-form textarea:focus { outline: 2px solid var(--c-teal); outline-offset: -2px; }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; margin: 0; }
.comment-form .submit { padding: .65rem 1.4rem; font-family: var(--f-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #14161A; background: var(--c-amber); border: 0; cursor: pointer; }
.comment-form .submit:hover { background: var(--c-teal); }
.comments-nav { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.site-foot { margin-top: 1rem; padding-bottom: 2.4rem; }
.foot-panel {
    background: var(--c-night);
    background-image: radial-gradient(120% 80% at 50% 0%, rgba(95, 184, 166, .06), transparent 60%);
    padding: 2.4rem 2.4rem 1.6rem;
    border-top: 3px solid var(--c-teal);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
    color: #D7DBE0;
}
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; }
.foot-col { min-width: 0; }
.foot-col .widget-title { margin: 0 0 .9rem; font-size: 1.15rem; letter-spacing: .08em; color: var(--c-chalk); }
.foot-col, .foot-col p, .foot-col .textwidget { color: #C9CED6; font-size: .95rem; line-height: 1.55; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: .45rem; }
.foot-col a { color: #E4E7EC; text-decoration: none; border-bottom: 1px solid rgba(95, 184, 166, .45); }
.foot-col a:hover { color: var(--c-amber); border-bottom-color: var(--c-amber); }
.foot-col .textwidget a { color: var(--c-teal); }
.foot-copy { margin: 2rem 0 0; padding-top: 1.1rem; border-top: 1px solid #27313F; text-align: center; font-size: .88rem; color: #9AA3AE; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 920px;
    margin: 0 auto;
    padding: 1rem 1.4rem;
    background: var(--c-night);
    border: 1px solid var(--c-teal);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    color: #D7DBE0;
}
.cookie-banner p { margin: 0; font-size: .93rem; line-height: 1.45; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .alt-note-text { font-size: .8rem; }
}
@media (max-width: 960px) {
    :root { --shell: 92%; }
    .alt-notes { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.4rem; margin: -1px 0 0; padding: 1.2rem calc((100% - var(--shell)) / 2 + 1.2rem) 2rem; background: var(--c-ridge); }
    .alt-ridge { margin-bottom: 0; }
    .alt-note { position: static; width: auto; transform: none; text-align: left; padding-left: .8rem; border-left: 2px solid var(--c-amber); }
    .alt-note-h { display: inline; color: var(--c-amber); font-weight: 700; }
    .alt-note-text { font-size: .9rem; }
    .alt-note-title { font-size: 1.2rem; }
    .pack-layout { grid-template-columns: minmax(0, 1fr); }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stay-row { flex-direction: column; align-items: stretch; }
    .stay-card { flex: 1 1 auto; }
    .stay-trail { flex: 0 0 auto; height: 56px; }
    .stay-trail svg { width: 64px; transform: rotate(90deg); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 2rem; }
    .layout-single .content-area { width: 100%; }
    .layout-single .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        margin: .45rem 0;
        padding: .45rem .9rem;
        font-family: var(--f-head);
        font-size: .95rem;
        font-weight: 500;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--c-chalk);
        background: none;
        border: 1px solid var(--c-slate);
        cursor: pointer;
    }
    .nav-toggle-bars { width: 18px; height: 2px; background: var(--c-teal); box-shadow: 0 -6px 0 var(--c-teal), 0 6px 0 var(--c-teal); }
    .head-bar-in { flex-wrap: wrap; justify-content: flex-end; }
    .head-nav { flex: 1 0 100%; }
    .head-nav.is-collapsed { display: none; }
    .head-menu { flex-direction: column; gap: 0; padding-bottom: .6rem; }
    .head-menu a { padding: .6rem 0; border-bottom: 1px solid #252b33; }
    .masthead-in { gap: 1rem; padding: 1.2rem 0 1.3rem; align-items: flex-start; }
    .brand-mark, .brand-mark svg, .brand-mark .brand-logo { width: 62px; }
}
@media (max-width: 600px) {
    body { font-size: 1rem; }
    .fp-altitude::before { width: 100%; }
    .alt-head { padding: 1.3rem 1.2rem 0; }
    .alt-ridge { margin-top: .4rem; }
    .alt-tag { font-size: .72rem; padding: .12rem .35rem .08rem; bottom: 11px; }
    .alt-dot { width: 9px; height: 9px; left: -4.5px; top: -4.5px; }
    .alt-notes { grid-template-columns: minmax(0, 1fr); padding: 1rem 1.4rem 1.6rem; }
    .pack-sheet { padding: 1.5rem 1.2rem; }
    .pack-flatlay { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "boots axe" "helmet aid" "fleece thermos"; gap: 1.6rem .8rem; }
    .gear-boots { gap: 1rem; }
    .gear-boots img { width: 78%; }
    .gear-axe img { width: 50%; }
    .gear-thermos img { width: 34%; }
    .fp-latest .latest-panel, .stay-panel { padding: 1.6rem 1.1rem 1.9rem; }
    .card-grid, .posts-grid, .layout-single .posts-grid { grid-template-columns: minmax(0, 1fr); }
    .spec-sheet { padding: 1.6rem 1.2rem 1.8rem; }
    .spec-table { font-size: .97rem; }
    .paper-panel { padding: 1.4rem 1.1rem 1.8rem; }
    .sidebar { padding: 1.3rem 1.1rem; }
    .foot-panel { padding: 1.8rem 1.2rem 1.3rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav .next { text-align: left; }
    .comment-list .children { margin-left: .8rem; }
}
