/*
Theme Name: dds_drusyakshak.com
Theme URI: https://drusyakshak.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: drkayak
*/

/* ---------- Шрифты ---------- */
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/oswald-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Oswald"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/oswald-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fira Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-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: "Fira Sans Condensed"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-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: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-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: "Fira Sans Condensed"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/fira-sans-condensed-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+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: "Fira Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-condensed-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: "Fira Sans Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/fira-sans-condensed-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 {
    --river: #123A3E;
    --river-2: #0F3235;
    --deep: #0B2224;
    --sand: #E8D9A8;
    --paper: #F2EAD3;
    --muted: #8FA9A4;
    --ink: #123A3E;
    --ink-muted: #5B6B5E;
    --orange: #F26B21;
    --orange-dark: #D4561A;
    --teal: #4FC3B0;
    --line: rgba(79, 195, 176, 0.28);
    --line-soft: rgba(242, 234, 211, 0.14);
    --head: "Oswald", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    --body: "Fira Sans Condensed", "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
    --wave-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q12 0 24 5 T48 5' fill='none' stroke='%234FC3B0' stroke-width='1.4'/%3E%3C/svg%3E");
    --wave-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Cpath d='M0 5 Q12 0 24 5 T48 5' fill='none' stroke='%23123A3E' stroke-opacity='.55' stroke-width='1.4'/%3E%3C/svg%3E");
}

/* ---------- Скрытие по атрибуту 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;
    font-family: var(--body);
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--paper);
    background-color: var(--river);
    background-image:
        linear-gradient(rgba(79, 195, 176, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 176, 0.09) 1px, transparent 1px),
        linear-gradient(rgba(79, 195, 176, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 176, 0.035) 1px, transparent 1px),
        url("images/water.jpg");
    background-size: 180px 180px, 180px 180px, 30px 30px, 30px 30px, 636px 720px;
    background-position: center top;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration: underline dashed 1px; text-underline-offset: 3px; transition: color .15s ease; }
a:hover { color: var(--orange); text-decoration-style: solid; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 700; line-height: 1.15; margin: 1.4em 0 .55em; letter-spacing: -0.005em; }
h1, h2, h3, h4, h5, h6, p, li, dd, dt, td, th, blockquote, figcaption { overflow-wrap: break-word; hyphens: auto; }
h1, h2, h3, .brand-name, .sec-title, .safety-quote p { hyphens: manual; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--orange); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

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

/* ---------- Кнопки ---------- */
.btn, .comment-form .submit, .wp-block-button__link {
    display: inline-block;
    font-family: var(--head);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--paper);
    background: var(--orange);
    border: 1px solid var(--paper);
    border-radius: 0;
    padding: .6rem 1.4rem;
    transform: rotate(-2deg);
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
    box-shadow: 3px 3px 0 var(--deep);
}
.btn:hover, .comment-form .submit:hover, .wp-block-button__link:hover {
    color: var(--paper);
    background: var(--orange-dark);
    transform: rotate(0deg) translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--deep);
}

/* ---------- Шапка ---------- */
.masthead {
    background-color: var(--deep);
    background-image:
        linear-gradient(rgba(79, 195, 176, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 176, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    position: relative;
}
.topbar { border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; justify-content: flex-end; align-items: center; min-height: 52px; }
.topnav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.topnav-list li { border-left: 1px solid var(--line-soft); }
.topnav-list li:first-child { border-left: 0; }
.topnav-list a {
    display: block;
    padding: .7rem 1.15rem;
    font-family: var(--head);
    font-weight: 500;
    font-size: .98rem;
    letter-spacing: .02em;
    color: var(--paper);
    text-decoration: none;
}
.topnav-list a:hover { color: var(--teal); }
.topnav-list .current-menu-item > a, .topnav-list .current_page_item > a { color: var(--orange); }
.nav-toggle { display: none; }

.brand { display: flex; align-items: center; gap: 1.6rem; padding: 2.4rem 0 2.2rem; }
.brand-logo-link { flex: 0 0 auto; display: block; text-decoration: none; }
.brand-mark { width: 96px; height: 96px; display: block; transition: transform .3s ease; }
.brand-logo-link:hover .brand-mark { transform: rotate(-12deg); }
.brand-logo { display: block; max-width: 110px; max-height: 110px; width: auto; height: auto; }
.brand-text { min-width: 0; }
.brand-name {
    margin: 0;
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(1.5rem, 3.1vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    max-width: 30ch;
}
.brand-name a { color: var(--paper); text-decoration: none; }
.brand-name a:hover { color: var(--paper); }
.brand-desc { margin: .55rem 0 0; color: var(--muted); font-size: 1rem; line-height: 1.45; max-width: 62ch; }

.waterline {
    height: 22px;
    background-color: transparent;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='22' viewBox='0 0 64 22'%3E%3Cpath d='M0 7 Q16 0 32 7 T64 7 V15 Q48 22 32 15 T0 15 Z' fill='%234FC3B0'/%3E%3C/svg%3E"),
        linear-gradient(var(--deep) 50%, transparent 50%);
    background-repeat: repeat-x, no-repeat;
    background-size: 64px 22px, 100% 100%;
    margin-bottom: -11px;
    position: relative;
    z-index: 2;
}

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
    text-transform: uppercase;
    margin: 0 0 1.6rem;
    padding-bottom: .9rem;
    color: var(--paper);
}
.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    background: var(--wave-teal) repeat-x left center / 48px 10px;
}
.sec-num {
    display: inline-block;
    font-family: var(--head);
    font-weight: 500;
    font-size: .38em;
    letter-spacing: .08em;
    color: var(--orange);
    border: 1px solid var(--orange);
    padding: .05em .4em;
    margin-right: .6em;
    vertical-align: .55em;
    line-height: 1.4;
}
.sec-title-center { text-align: center; }

/* ---------- Главная ---------- */
.fs { padding: 4.2rem 0; position: relative; }

/* Блок 1 */
.fs-choose .sec-title { text-transform: none; }
.choose-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.choose-col { text-align: center; padding: .4rem 2.4rem 0; min-width: 0; }
.choose-col + .choose-col { border-left: 1px solid var(--line); }
.choose-name {
    margin: 0 0 1.2rem;
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: var(--sand);
}
.choose-img { display: block; width: 100%; max-width: 460px; margin: 0 auto 1.4rem; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); transition: transform .4s ease; }
.choose-col:hover .choose-img { transform: translateX(10px) rotate(-1deg); }
.choose-tags { list-style: none; margin: 0 0 1.1rem; padding: 0; font-size: 1.3rem; line-height: 1.55; }
.choose-tags li { color: var(--paper); }
.choose-text { color: var(--muted); max-width: 46ch; margin: 0 auto; }

/* Блок 2 */
.fs-layers {
    background-color: var(--sand);
    background-image:
        linear-gradient(rgba(18, 58, 62, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 58, 62, 0.06) 1px, transparent 1px);
    background-size: 30px 30px;
    color: var(--ink);
    padding-top: 4.6rem;
}
.fs-layers .sec-title { color: var(--ink); margin-bottom: 1rem; }
.fs-layers .sec-title::after { background-image: var(--wave-ink); }
.layers-lead { text-align: center; color: var(--ink-muted); margin: 0 auto 2.4rem; max-width: 60ch; }
.layers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    position: relative;
}
.layers::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 75px;
    height: 2px;
    background: var(--ink-muted);
}
.layers::after {
    content: "";
    position: absolute;
    right: 0;
    top: 69px;
    width: 2px;
    height: 14px;
    background: var(--ink-muted);
}
.layer { position: relative; text-align: center; padding: 0 .6rem; min-width: 0; }
.layer::before {
    content: "";
    position: absolute;
    left: 0;
    top: 69px;
    width: 2px;
    height: 14px;
    background: var(--ink-muted);
}
.layer-pic { height: 150px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.layer-pic img { display: block; width: auto; height: 100px; max-width: 100%; object-fit: contain; transition: transform .25s ease; }
.layer:hover .layer-pic img { transform: translateY(-6px); }
.layer:nth-child(1) .layer-pic img { height: 88px; }
.layer:nth-child(2) .layer-pic img { height: 138px; }
.layer:nth-child(3) .layer-pic img { height: 98px; }
.layer:nth-child(4) .layer-pic img { height: 62px; }
.layer:nth-child(5) .layer-pic img { height: 128px; }
.layer:nth-child(6) .layer-pic img { height: 70px; }
.layer-num { display: block; margin-top: .9rem; font-family: var(--head); font-weight: 700; font-size: 2.1rem; line-height: 1; color: var(--orange); }
.layer-name { margin: .45rem 0 .35rem; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.layer-note { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-muted); }

/* Последние записи */
.fs-latest { padding-bottom: 5rem; }
.latest-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; position: relative; margin-bottom: 1.8rem; }
.latest-head .sec-title { margin: 0; flex: 1 1 100%; }
.latest-all { position: absolute; right: 0; top: .4rem; font-size: 1rem; }

/* Карточки записей */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.8rem; align-items: start; }
.cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-single .cards-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
    border-radius: 0;
    min-width: 0;
    position: relative;
    transition: transform .2s ease;
}
.card:nth-child(3n+2) { margin-top: 1.6rem; transform: rotate(.6deg); }
.card:nth-child(3n+3) { margin-top: .5rem; transform: rotate(-.5deg); }
.card:nth-child(3n+1) { transform: rotate(-.3deg); }
.card:hover { transform: rotate(0deg) translateY(-4px); }
.card-thumb { display: block; border-bottom: 1px solid var(--ink); }
.card-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1.1rem 1.3rem 1.3rem; min-width: 0; }
.card-title { margin: 0 0 .55rem; font-size: 1.32rem; line-height: 1.2; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--orange); }
.card-excerpt { color: var(--ink-muted); font-size: .98rem; line-height: 1.55; margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt a { color: var(--ink); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .6rem 1rem; flex-wrap: wrap; }
.card-date { font-size: .88rem; color: var(--ink-muted); letter-spacing: .03em; }
.card-more {
    display: inline-block;
    font-family: var(--head);
    font-weight: 500;
    font-size: .92rem;
    letter-spacing: .03em;
    color: var(--deep);
    background: var(--teal);
    border: 1px solid var(--deep);
    padding: .4rem 1rem;
    text-decoration: none;
    transform: rotate(-2deg);
    transition: background .15s ease, color .15s ease, transform .15s ease;
}
.card-more:hover { background: var(--orange); color: var(--paper); transform: rotate(0deg); }
.empty-note { color: var(--muted); font-size: 1.1rem; }

/* Блоки 3 и 4 */
.duo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: stretch; padding: 1rem 0 4.5rem; border-top: 1px solid var(--line); }
.duo > .fs { padding: 3rem 0 0; min-width: 0; }
.duo > .fs-safety { padding: 2.6rem 2.4rem 2.4rem; }
.check-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 1.4rem; }
.check-main { min-width: 0; }
.sec-title-big { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.08; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { margin: 0; }
.check-item {
    display: flex;
    align-items: center;
    gap: .9rem;
    width: 100%;
    padding: .35rem 0;
    background: none;
    border: 0;
    color: var(--paper);
    font: inherit;
    font-size: 1.15rem;
    text-align: left;
    cursor: pointer;
}
.check-num { font-family: var(--head); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--orange); min-width: 2.4rem; }
.check-box { flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid var(--paper); position: relative; transition: background .15s ease, border-color .15s ease; }
.check-text { flex: 1; min-width: 0; padding-bottom: .35rem; border-bottom: 1px solid var(--line-soft); transition: color .15s ease; }
.check-item:hover .check-box { border-color: var(--teal); }
.check-item[aria-pressed="true"] .check-box { background: var(--orange); border-color: var(--orange); }
.check-item[aria-pressed="true"] .check-box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--paper);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.check-item[aria-pressed="true"] .check-text { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--orange); }
.check-hint { margin: 1.1rem 0 0; color: var(--muted); font-size: .95rem; }
.check-paddle { position: relative; min-height: 320px; }
.check-paddle img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; display: block; }

.fs-safety {
    align-self: start;
    background: var(--deep);
    border: 1px solid var(--line);
    margin-top: 3rem;
    box-shadow: 10px 10px 0 rgba(11, 34, 36, 0.45);
}
.safety-label { margin: 0 0 1.2rem; font-size: 1rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.safety-label .sec-num { font-size: .8em; vertical-align: .1em; }
.safety-quote { margin: 0 0 2rem; padding: 0; }
.safety-quote p {
    margin: 0;
    font-family: var(--head);
    font-weight: 700;
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
    line-height: 1.04;
    text-transform: uppercase;
    color: var(--paper);
}
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.fact { min-width: 0; }
.fact + .fact { border-left: 1px solid var(--line-soft); padding-left: 1.2rem; }
.fact-num { margin: 0 0 .3rem; font-family: var(--head); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--paper); }
.fact-num span { display: block; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; margin-top: .25rem; color: var(--orange); }
.fact-text { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.45; }

/* ---------- Внутренние страницы ---------- */
.inner { padding: 2.6rem 0 4.5rem; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 1.8rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); }
.crumbs a { color: var(--teal); }
.crumbs-sep { color: var(--orange); margin: 0 .3rem; }
.crumbs span:last-child { color: var(--paper); }
.layout-single { display: block; }
.layout-with-sidebar { display: grid; grid-template-columns: minmax(0, 67fr) minmax(0, 27fr); gap: 0 6%; align-items: start; }
.content-area { min-width: 0; }
.page-head { margin-bottom: 2rem; }
.page-title { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.page-intro { margin-top: 1rem; }
.archive-desc { color: var(--muted); }
.page-search { margin-top: 1rem; max-width: 520px; }

.entry {
    background: rgba(11, 34, 36, 0.78);
    border: 1px solid var(--line);
    padding: 2.4rem 2.6rem;
}
.entry-head { margin-bottom: 1.6rem; padding-bottom: 1.1rem; background: var(--wave-teal) repeat-x left bottom / 48px 10px; }
.entry-title { margin: 0 0 .6rem; font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-transform: uppercase; line-height: 1.08; color: var(--paper); }
.entry-meta { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.entry-cat a { color: var(--orange); }
.entry-thumb { margin: 0 0 1.8rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.entry-content { font-size: 1.1rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.85rem; color: var(--paper); }
.entry-content h2::before { content: ""; display: inline-block; width: .5em; height: .5em; background: var(--orange); margin-right: .45em; vertical-align: .12em; }
.entry-content h3 { font-size: 1.45rem; color: var(--sand); }
.entry-content h4 { font-size: 1.2rem; color: var(--sand); }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--orange); }
.entry-content ol li::marker { color: var(--orange); font-family: var(--head); font-weight: 700; }
.entry-content blockquote {
    margin: 1.6em 0;
    padding: 1.3rem 1.6rem;
    background: var(--river-2);
    border-left: 4px solid var(--orange);
    font-size: 1.2rem;
    color: var(--paper);
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content blockquote cite { display: block; margin-top: .6rem; color: var(--muted); font-size: .95rem; font-style: normal; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 1rem; border: 1px solid var(--teal); }
.entry-content th, .entry-content td { border: 1px solid rgba(79, 195, 176, 0.5); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.entry-content th { background: var(--river); font-family: var(--head); font-weight: 500; letter-spacing: .02em; color: var(--sand); }
.entry-content .wp-block-table { overflow-x: auto; margin: 1.4em 0; }
.entry-content .wp-block-table table { margin: 0; }
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.entry-content pre { background: var(--deep); border: 1px solid var(--line); padding: 1rem; overflow-x: auto; font-size: .95rem; }
.entry-content code { background: rgba(79, 195, 176, 0.12); padding: .1em .35em; }
.entry-content hr { border: 0; height: 10px; background: var(--wave-teal) repeat-x center / 48px 10px; margin: 2em 0; }
.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; }
.entry-tags { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a { border: 1px solid var(--line); padding: .15rem .6rem; text-decoration: none; font-size: .95rem; }
.entry-nav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-nav a { display: block; text-decoration: none; color: var(--paper); font-family: var(--head); font-size: 1.1rem; line-height: 1.25; }
.entry-nav a span { display: block; font-size: .85rem; color: var(--orange); letter-spacing: .05em; text-transform: uppercase; margin-bottom: .25rem; }
.entry-nav a:hover { color: var(--teal); }
.entry-nav-next { grid-column: 2; text-align: right; }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--river-2);
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    padding: 1.6rem 1.5rem;
    color: var(--paper);
}
.sidebar .wgt + .wgt { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.sidebar .wgt-title { margin: 0 0 1rem; font-size: 1.25rem; text-transform: uppercase; color: var(--paper); padding-bottom: .6rem; background: var(--wave-teal) repeat-x left bottom / 48px 10px; }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: .5rem 0; border-bottom: 1px dashed var(--line-soft); line-height: 1.35; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--paper); text-decoration: none; }
.sidebar a:hover { color: var(--orange); }
.sidebar .post-date { display: block; color: var(--muted); font-size: .88rem; }
.sidebar p, .sidebar .textwidget { color: var(--paper); }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.6rem; align-items: center; }
.pager .page-numbers, .pager-inline .post-page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 .8rem;
    font-family: var(--head);
    font-weight: 500;
    color: var(--paper);
    border: 1px solid var(--line);
    background: var(--deep);
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}
.pager a.page-numbers:hover, .pager-inline a.post-page-numbers:hover { background: var(--teal); color: var(--deep); transform: rotate(-2deg); }
.pager .page-numbers.current, .pager-inline .post-page-numbers.current { background: var(--orange); border-color: var(--paper); color: var(--paper); transform: rotate(-2deg); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; }

/* ---------- Поиск ---------- */
.search-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.search-field {
    flex: 1 1 200px;
    min-width: 0;
    font: inherit;
    color: var(--paper);
    background: var(--deep);
    border: 1px solid var(--teal);
    border-radius: 0;
    padding: .6rem .9rem;
}
.search-field::placeholder { color: var(--muted); }
.search-submit { transform: none; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 2rem 1.5rem; background: rgba(11, 34, 36, 0.78); border: 1px solid var(--line); }
.lost-code { margin: 0; font-family: var(--head); font-weight: 700; font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--orange); }
.lost-text { color: var(--muted); max-width: 52ch; margin: 0 auto 1.6rem; }
.lost-search { max-width: 520px; margin: 0 auto 1.8rem; }

/* ---------- Комментарии ---------- */
.comments { margin-top: 2.4rem; background: rgba(11, 34, 36, 0.78); border: 1px solid var(--line); padding: 2rem 2.4rem; }
.comments-title, .comment-reply-title { font-size: 1.6rem; text-transform: uppercase; margin: 0 0 1.2rem; color: var(--paper); }
.comment-list, .comment-list .children { list-style: none; margin: 0; padding: 0; }
.comment-list .children { padding-left: 1.6rem; border-left: 1px solid var(--line); margin-left: .6rem; }
.note-body { padding: 1rem 0; border-bottom: 1px dashed var(--line-soft); }
.note-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin-bottom: .5rem; }
.note-ava { border-radius: 0; display: block; }
.note-author { font-family: var(--head); font-weight: 500; color: var(--sand); }
.note-date { color: var(--muted); font-size: .88rem; }
.note-wait { color: var(--orange); font-size: .95rem; }
.note-reply a { font-size: .92rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-form p { margin: 0 0 1rem; }
.comment-form label { display: block; margin-bottom: .3rem; color: var(--sand); font-size: .98rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    font: inherit;
    color: var(--paper);
    background: var(--deep);
    border: 1px solid var(--line);
    border-radius: 0;
    padding: .6rem .8rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--teal); }
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; color: var(--muted); }
.form-note { color: var(--muted); font-size: .95rem; }
.req { color: var(--orange); }
#cancel-comment-reply-link { margin-left: .8rem; font-size: .9rem; }

/* ---------- Подвал ---------- */
.sitefoot {
    background-color: var(--deep);
    background-image:
        linear-gradient(rgba(79, 195, 176, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 176, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    border-top: 1px solid var(--line);
    color: var(--paper);
    padding: 3.4rem 0 2rem;
}
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.foot-col { min-width: 0; }
.sitefoot .wgt-title { margin: 0 0 1rem; font-size: 1.35rem; color: var(--paper); }
.sitefoot .wgt, .sitefoot .textwidget, .sitefoot p { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.sitefoot ul { list-style: none; margin: 0; padding: 0; }
.sitefoot li { margin: 0 0 .4rem; }
.sitefoot a { color: var(--paper); text-decoration: none; }
.sitefoot a:hover { color: var(--orange); }
.copyright { margin: 2.6rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: .92rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: var(--deep);
    border: 1px solid var(--teal);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.35);
    padding: 1.1rem 1.4rem;
    color: var(--paper);
}
.cookie-text { margin: 0; font-size: .95rem; line-height: 1.5; flex: 1; min-width: 0; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
    .layers { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 2.4rem; }
    .layers::before, .layers::after, .layer::before { display: none; }
    .layer-pic { height: 140px; border-bottom: 2px solid var(--ink-muted); }
}
@media (max-width: 960px) {
    .shell { width: 92%; }
    .topbar-in { justify-content: space-between; }
    .nav-toggle {
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        background: none;
        border: 1px solid var(--line);
        color: var(--paper);
        font-family: var(--head);
        font-size: 1rem;
        letter-spacing: .05em;
        text-transform: uppercase;
        padding: .45rem .8rem;
        cursor: pointer;
        margin: .45rem 0;
    }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: var(--orange); position: relative; transition: transform .2s ease; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
    .nav-toggle-bars::before { top: -6px; }
    .nav-toggle-bars::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
    .topnav { display: none; position: absolute; left: 0; right: 0; top: 52px; z-index: 50; background: var(--deep); border-bottom: 2px solid var(--teal); }
    .topnav.is-open { display: block; }
    .topnav-list { flex-direction: column; width: 92%; margin: 0 auto; padding: .4rem 0 .8rem; }
    .topnav-list li { border-left: 0; border-top: 1px solid var(--line-soft); }
    .topnav-list li:first-child { border-top: 0; }
    .topnav-list a { padding: .75rem 0; }
    .brand { padding: 1.8rem 0; gap: 1.1rem; }
    .brand-mark { width: 72px; height: 72px; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-single .cards-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card:nth-child(n) { margin-top: 0; }
    .duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .fs-safety { margin-top: 2.4rem; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-col-3 { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    body { font-size: 1.02rem; }
    .fs { padding: 3rem 0; }
    .brand { align-items: flex-start; }
    .brand-mark { width: 56px; height: 56px; }
    .brand-desc { font-size: .95rem; }
    .choose-grid { grid-template-columns: minmax(0, 1fr); }
    .choose-col { padding: 0; }
    .choose-col + .choose-col { border-left: 0; border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 2rem; }
    .layers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards, .cards-list, .layout-single .cards-list { grid-template-columns: minmax(0, 1fr); }
    .card:nth-child(n) { transform: none; }
    .latest-all { position: static; }
    .check-wrap { grid-template-columns: minmax(0, 1fr) 40px; gap: .8rem; }
    .check-num { font-size: 1.6rem; min-width: 2rem; }
    .check-item { font-size: 1.05rem; gap: .65rem; }
    .duo > .fs-safety { padding: 2rem 1.4rem 1.8rem; }
    .facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .fact + .fact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-soft); padding-top: 1rem; }
    .entry, .comments { padding: 1.5rem 1.2rem; }
    .lost { padding: 1.6rem 1.2rem; }
    .entry-nav { grid-template-columns: minmax(0, 1fr); }
    .entry-nav-next { grid-column: 1; text-align: left; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.1rem; left: .6rem; right: .6rem; bottom: .6rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}
