/* Palmer Sports - тема v2: структура "база знаний", блоки доверия, тёмная палитра (есть светлая). Шрифты свои, без внешних запросов. */
@font-face { font-family: "Barlow"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/barlow-400.woff2) format("woff2"); }
@font-face { font-family: "Barlow"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/barlow-600.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/barlow-condensed-700.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/barlow-condensed-800.woff2) format("woff2"); }

:root, :root[data-theme="dark"] {
  --bg: #0E0F10; --s: #151719; --s2: #1D2023; --ln: #2A2E32;
  --t: #EDEDED; --t2: #C9CDD1; --m: #8E949A;
  --acc: #C6FF3D; --accBg: #C6FF3D; --onAcc: #0E0F10; --soft: rgba(198,255,61,.08);
  --warn: #FFB74D; --warnBg: rgba(255,183,77,.08); --ok: #7FD49B; --okBg: rgba(127,212,155,.1); --err: #FF8A80; --errBg: rgba(255,138,128,.1);
  --hdr: rgba(14,15,16,.92); --shadow: 0 20px 40px rgba(0,0,0,.45);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #FFFFFF; --s: #F6F6F3; --s2: #ECECE8; --ln: #E0E0DB;
  --t: #141516; --t2: #2E3135; --m: #676C72;
  --acc: #3F6B00; --accBg: #C6FF3D; --onAcc: #0E0F10; --soft: #F1FADF;
  --warn: #9A5B00; --warnBg: #FFF6E5; --ok: #11643A; --okBg: #E8F6EE; --err: #8A1F11; --errBg: #FDECEA;
  --hdr: rgba(255,255,255,.92); --shadow: 0 16px 36px rgba(20,23,28,.14);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--t); font: 18px/1.7 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .C { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.04; color: var(--t); }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin: 0 0 .25em; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--accBg); color: var(--onAcc); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* Верхняя строка доверия */
.trust-bar { background: var(--s); border-bottom: 1px solid var(--ln); font-size: 13px; color: var(--m); }
.trust-in { display: flex; justify-content: space-between; gap: 16px; padding: 7px 20px; }
.trust-in a { color: var(--acc); white-space: nowrap; }
.trust-in a:hover { text-decoration: underline; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 20px; padding: 0 20px; background: var(--hdr); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--ln); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 24px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .02em; flex: none; width: 230px; }
.brand-mark { display: inline-block; width: 14px; height: 14px; background: var(--accBg); transform: skewX(-12deg); flex: none; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--ln); background: var(--s); border-radius: 6px; cursor: pointer; padding: 0; position: relative; flex: none; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 16px; height: 2px; background: var(--t); content: ""; }
.nav-toggle span { top: 18px; } .nav-toggle span::before { top: -6px; left: 0; } .nav-toggle span::after { top: 6px; left: 0; }
.search { position: relative; flex: 1; max-width: 520px; }
.search-box { display: flex; align-items: center; gap: 8px; border: 1px solid var(--ln); background: var(--s); border-radius: 8px; padding: 7px 12px; color: var(--m); }
.search-box:focus-within { border-color: var(--acc); }
.search-box svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--t); font: 15px "Barlow", sans-serif; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box kbd { font: 12px "Barlow", sans-serif; border: 1px solid var(--ln); border-radius: 4px; padding: 0 6px; }
.search-res { position: absolute; top: 46px; left: 0; right: 0; background: var(--s); border: 1px solid var(--ln); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; z-index: 40; }
.search-res a, .search-res p { display: block; padding: 10px 14px; border-bottom: 1px solid var(--ln); font-size: 15px; line-height: 1.35; margin: 0; }
.search-res a:last-child { border-bottom: 0; }
.search-res a:hover, .search-res a.hl { background: var(--soft); }
.search-res small { display: block; color: var(--m); font-size: 12px; margin-top: 2px; }
.search-res p { color: var(--m); }
.top-nav { display: flex; gap: 18px; margin-left: auto; font: 700 15px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--m); white-space: nowrap; }
.top-nav a:hover { color: var(--acc); }
.theme-btn { flex: none; background: var(--s); border: 1px solid var(--ln); color: var(--t); border-radius: 6px; padding: 6px 10px; font: 600 13px "Barlow", sans-serif; cursor: pointer; }
.theme-btn:hover { border-color: var(--acc); }
:root[data-theme="dark"] .t-dark, :root:not([data-theme]) .t-dark, :root[data-theme="light"] .t-light { display: none; }

/* Раскладка: левое меню + контент */
.lay { display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.no-side .lay { grid-template-columns: minmax(0, 1fr); }
.no-side .side { display: none; }
.side { background: var(--s); border-right: 1px solid var(--ln); padding: 18px 14px 40px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow: auto; font-size: 15px; overscroll-behavior: contain; }
.side-h { display: flex; justify-content: space-between; margin: 18px 8px 6px; font: 700 14px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--m); }
.side-h:first-child { margin-top: 4px; }
.side-h a:hover { color: var(--acc); }
.side-h-info { margin-top: 28px; }
.side-lk { display: block; padding: 6px 10px; border-radius: 6px; color: var(--t2); line-height: 1.35; border-left: 2px solid transparent; }
.side-lk:hover { background: var(--s2); }
.side-lk.on { background: var(--soft); color: var(--acc); border-left-color: var(--acc); font-weight: 600; }
.side-sm { font-size: 14px; color: var(--m); padding: 4px 10px; }
.side-ov { display: none; }
#main { padding: 36px 44px 64px; max-width: 1180px; min-height: 60vh; }
.no-side #main { margin: 0 auto; max-width: 1280px; width: 100%; }

/* Общие элементы */
.tag { display: inline-block; background: var(--accBg); color: var(--onAcc); font: 800 13px/1 "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; transform: skewX(-8deg); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: 14px; color: var(--m); }
.crumbs li + li::before { content: "/"; margin-right: 6px; }
.crumbs a:hover { color: var(--acc); }
.crumbs li[aria-current] { display: none; }
.crumbs li:nth-last-child(2)::after { content: none; }
.sec-h { font-size: 30px; margin: 0 0 14px; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--s2); border: 1px solid var(--ln); color: var(--t); display: inline-grid; place-items: center; font: 600 13px "Barlow", sans-serif; flex: none; }
.av-ok { color: var(--acc); }
.av-lg { width: 56px; height: 56px; font-size: 17px; }

/* Главная */
.hub-head { max-width: 860px; }
.hub-intro { color: var(--t2); max-width: 700px; }
.hub-intro p { margin: 0 0 .6em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 30px; }
.chips li { font-size: 14px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: var(--soft); color: var(--acc); }
.chips li::before { content: "\2713\00a0"; }
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.goal { background: var(--s); border: 1px solid var(--ln); border-radius: 6px; padding: 16px 18px; transition: border-color .15s; }
.goal:hover { border-color: var(--acc); }
.goal span { font: 800 13px "Barlow Condensed", sans-serif; color: var(--acc); letter-spacing: .1em; }
.goal b { display: block; font: 800 26px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 4px 0; }
.goal small { color: var(--m); font-size: 14px; }
.hub-sec { margin-bottom: 40px; }
.mr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mr a { display: flex; gap: 12px; align-items: center; background: var(--s); border: 1px solid var(--ln); border-radius: 6px; padding: 12px; }
.mr a:hover { border-color: var(--acc); }
.mr img, .mr-ph { width: 64px; height: 64px; border-radius: 4px; object-fit: cover; object-position: top; flex: none; background: var(--s2); }
.mr b { display: block; font-size: 16px; line-height: 1.3; }
.mr small { color: var(--m); font-size: 13px; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.topic { background: var(--s); border: 1px solid var(--ln); border-radius: 6px; padding: 18px 20px; }
.topic h3 { font-size: 26px; margin: 0; }
.topic h3 a { display: flex; align-items: center; gap: 10px; }
.topic h3 a:hover { color: var(--acc); }
.topic h3 i { width: 12px; height: 12px; background: var(--accBg); transform: skewX(-12deg); display: inline-block; }
.topic > p { font-size: 14px; color: var(--m); margin: 2px 0 10px; }
.topic ul { list-style: none; padding: 0; margin: 0; }
.topic li a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ln); font-size: 16px; line-height: 1.4; }
.topic li a:hover { color: var(--acc); }
.topic li span { color: var(--m); font-size: 13px; white-space: nowrap; }
.more { display: inline-block; margin-top: 10px; font: 700 15px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--acc); }
.more:hover { text-decoration: underline; }
.std { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border: 1px solid var(--ln); border-radius: 6px; padding: 22px; }
.std b { display: block; font: 800 20px "Barlow Condensed", sans-serif; text-transform: uppercase; color: var(--acc); }
.std p { margin: 4px 0 0; font-size: 14px; color: var(--m); line-height: 1.5; }

/* Рубрики, автор */
.list-head { margin-bottom: 26px; max-width: 820px; }
.list-intro { color: var(--t2); }
.page-n { color: var(--m); font-size: .5em; }
.empty { color: var(--m); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--s); border: 1px solid var(--ln); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.card:hover { border-color: var(--acc); }
.card-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--s2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.03); }
.card-img .tag { position: absolute; left: 14px; top: 14px; }
.card-ph { display: grid; place-items: center; height: 100%; font: 800 56px "Barlow Condensed", sans-serif; color: var(--ln); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 24px; line-height: 1.05; margin: 0 0 8px; }
.card-title a:hover { color: var(--acc); }
.card-text { margin: 0 0 10px; color: var(--t2); font-size: 15px; line-height: 1.55; }
.card-meta { margin: auto 0 0; font-size: 13px; color: var(--m); }
.pager { display: flex; gap: 8px; margin-top: 34px; }
.pager a, .pager span { padding: 6px 14px; border: 1px solid var(--ln); border-radius: 6px; }
.pager a:hover { border-color: var(--acc); }
.pager span { background: var(--accBg); color: var(--onAcc); border-color: var(--accBg); font-weight: 600; }

/* Статья */
.doc { display: grid; grid-template-columns: minmax(0, 740px) 230px; gap: 48px; }
.post-tag { margin: 0 0 12px; }
.post h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; border-top: 1px solid var(--ln); border-bottom: 1px solid var(--ln); padding: 12px 0; margin: 18px 0 22px; font-size: 14px; color: var(--m); }
.by { display: flex; align-items: center; gap: 8px; }
.by a { color: var(--t); font-weight: 600; }
.by a:hover, .by-d a:hover { color: var(--acc); }
.by-d { margin-left: auto; text-align: right; line-height: 1.5; }
.by-d span { display: block; }
.by-d a { color: var(--acc); }
.sum { border: 1px solid var(--acc); border-radius: 6px; overflow: hidden; margin: 0 0 24px; }
.sum-h { margin: 0; background: var(--accBg); color: var(--onAcc); padding: 7px 16px; font: 800 15px "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.sum ul { margin: 0; padding: 12px 16px 12px 36px; color: var(--t2); }
.sum li { margin: 3px 0; }
.post-cover { margin: 0 0 24px; border-radius: 6px; overflow: hidden; background: var(--s2); }
.post-cover img { width: 100%; max-height: 640px; object-fit: contain; }
.toc-m { display: none; background: var(--s); border: 1px solid var(--ln); border-radius: 6px; padding: 12px 18px; margin: 0 0 24px; }
.toc-m summary { font: 800 18px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.toc-m ol { margin: 10px 0 4px; padding-left: 22px; color: var(--t2); }
.toc-m li { margin: 4px 0; }
.toc-m a:hover { color: var(--acc); }
.prose { color: var(--t2); }
.prose > p:first-child { font-size: 20px; color: var(--t); }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 1.6em 0 .4em; }
.prose h3 { font-weight: 700; font-size: 1.55rem; margin: 1.4em 0 .3em; }
.prose h3::before { content: "// "; color: var(--acc); }
.prose h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; font-size: 1.2rem; color: var(--t); margin: 1.3em 0 .3em; }
.prose p { margin: 0 0 1.05em; }
.prose a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; }
.prose strong, .prose b { color: var(--t); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: .3em 0; }
.prose li::marker { color: var(--acc); }
.prose img { border-radius: 6px; margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--acc); color: var(--t); font-size: 1.1rem; }
.prose sup a { text-decoration: none; font-weight: 700; font-size: 12px; }
.table-wrap { overflow-x: auto; margin: 1.2em 0 1.5em; border: 1px solid var(--ln); border-radius: 6px; background: var(--s); }
.prose table { border-collapse: collapse; width: 100%; font-size: 16px; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid var(--ln); text-align: left; vertical-align: top; }
.prose th { font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); }
.prose tr:last-child td { border-bottom: 0; }
.prose caption { caption-side: top; text-align: left; padding: 10px 14px; font-weight: 600; color: var(--t); }
.safe { background: var(--warnBg); border-left: 4px solid var(--warn); padding: 14px 18px; border-radius: 0 6px 6px 0; font-size: 16px; margin: 26px 0; color: var(--t2); }
.safe b { color: var(--warn); }
.refs { margin-top: 40px; border-top: 2px solid var(--ln); padding-top: 12px; font-size: 15px; color: var(--m); }
.refs h2 { font-size: 24px; margin: 0 0 6px; }
.refs ol { padding-left: 20px; margin: 0; }
.refs li { margin: 4px 0; }
.refs a { color: var(--acc); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
.refs li:target { background: var(--soft); }
.disclaimer { font-size: 14px; color: var(--m); border-top: 1px solid var(--ln); padding-top: 14px; margin-top: 32px; }
.disclaimer a { color: var(--acc); text-decoration: underline; }
.author-box { display: flex; gap: 16px; background: var(--s); border: 1px solid var(--ln); border-radius: 6px; padding: 20px; margin-top: 24px; }
.author-name { margin: 0; font: 800 22px "Barlow Condensed", sans-serif; text-transform: uppercase; }
.author-name a:hover { color: var(--acc); }
.author-role { margin: 0; font-size: 14px; color: var(--acc); }
.author-bio p { margin: 4px 0 0; color: var(--m); font-size: 15px; line-height: 1.6; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.pn a { background: var(--s); border: 1px solid var(--ln); border-radius: 6px; padding: 14px 16px; font-weight: 600; line-height: 1.35; }
.pn a:hover { border-color: var(--acc); }
.pn small { display: block; color: var(--acc); font: 700 13px "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.pn-next { text-align: right; }
.rel-m { display: none; margin-top: 28px; }
.rel-m h2 { font-size: 26px; margin: 0 0 8px; }
.rel-m ul { list-style: none; padding: 0; margin: 0; }
.rel-m li a { display: block; padding: 9px 0; border-top: 1px solid var(--ln); }
.rel-m li a:hover { color: var(--acc); }
.otp { position: sticky; top: 96px; align-self: start; font-size: 14px; max-height: calc(100vh - 110px); overflow: auto; }
.otp-h { margin: 0 0 8px; font: 700 14px "Barlow Condensed", sans-serif; letter-spacing: .1em; text-transform: uppercase; color: var(--m); }
.otp-h + nav { margin-bottom: 26px; }
.otp nav a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--ln); color: var(--m); line-height: 1.4; }
.otp nav a:hover { color: var(--t); }
.otp nav a.on { border-color: var(--acc); color: var(--t); font-weight: 600; }

/* Страницы, форма, 404 */
.page { max-width: 760px; }
.post-meta { color: var(--m); font-size: 14px; }
.contact-form { display: grid; gap: 14px; margin-top: 18px; max-width: 560px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--ln); border-radius: 6px; width: 100%; background: var(--s); color: var(--t); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--acc); border-color: transparent; }
.contact-form button { justify-self: start; background: var(--accBg); color: var(--onAcc); border: 0; border-radius: 6px; padding: 12px 22px; font: 800 17px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }
.contact-form button:hover { filter: brightness(.92); }
.contact-form .hp { position: absolute; left: -9999px; }
.form-sent, .form-error { padding: 14px 16px; border-radius: 6px; margin-top: 16px; }
.form-sent { background: var(--okBg); color: var(--ok); }
.form-error { background: var(--errBg); color: var(--err); }
.notfound { max-width: 760px; margin-bottom: 30px; }
.notfound p { color: var(--t2); }
.hero-topics { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.hero-topics a { display: inline-block; padding: 6px 14px; border: 1px solid var(--ln); border-radius: 999px; background: var(--s); font-weight: 600; font-size: 15px; }
.hero-topics a:hover { border-color: var(--acc); color: var(--acc); }
.list-body { margin-top: 10px; }

/* Подвал */
.site-footer { border-top: 1px solid var(--ln); color: var(--m); font-size: 15px; padding: 36px 44px 28px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; max-width: 1180px; }
.no-side .footer-in, .no-side .footer-bottom { max-width: 1280px; margin-left: auto; margin-right: auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--t); font: 800 22px "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 0 0 8px; }
.footer-h { color: var(--t); font: 700 15px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 8px; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: 4px 0; }
.site-footer a:hover { color: var(--acc); }
.footer-bottom { border-top: 1px solid var(--ln); padding-top: 16px; margin-top: 24px; font-size: 13px; max-width: 1180px; }

/* Адаптив */
@media (max-width: 1280px) { .top-nav { display: none; } }
@media (max-width: 1100px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .otp { display: none; }
  .toc-m, .rel-m { display: block; }
  .goals, .std { grid-template-columns: repeat(2, 1fr); }
  .mr { grid-template-columns: 1fr; }
}
@media (max-width: 1280px) {
  .no-side .nav-toggle { display: block; }
  .no-side .lay > .side { display: block; }
  .no-side .lay > .side { position: fixed; left: 0; top: 64px; bottom: 0; width: 300px; height: auto; z-index: 25; transform: translateX(-100%); transition: transform .2s; }
  .no-side.nav-open .lay > .side { transform: none; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .brand { width: auto; }
  .lay { grid-template-columns: minmax(0, 1fr); }
  .lay > .side { position: fixed; left: 0; top: 64px; bottom: 0; width: 300px; height: auto; z-index: 25; transform: translateX(-100%); transition: transform .2s; display: block; }
  .nav-open .lay > .side { transform: none; }
  .nav-open .side-ov { display: block; position: fixed; inset: 64px 0 0; background: rgba(0,0,0,.5); z-index: 24; }
  #main { padding: 24px 18px 48px; }
  .site-footer { padding: 28px 18px 24px; }
  .footer-in { grid-template-columns: 1fr; gap: 18px; }
  .topics { grid-template-columns: 1fr; }
  .byline { display: block; }
  .by { margin-bottom: 8px; }
  .by-d { text-align: left; margin: 0; }
  .search { max-width: none; }
  .search-box kbd { display: none; }
  .theme-btn { padding: 6px 8px; }
}
@media (max-width: 1280px) and (min-width: 901px) {
  .no-side.nav-open .side-ov { display: block; position: fixed; inset: 64px 0 0; background: rgba(0,0,0,.5); z-index: 24; }
}
@media (max-width: 600px) {
  .trust-in span { display: none; }
  .trust-in { justify-content: flex-end; }
  .site-header { gap: 10px; padding: 0 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .theme-btn { font-size: 12px; padding: 5px 7px; }
  .std { grid-template-columns: 1fr; }
  .goal { padding: 12px 14px; }
  .goal b { font-size: 21px; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { text-align: left; }
  .cards { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}
@media (max-width: 380px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Эксперты: фото, цитаты, профиль */
img.av { object-fit: cover; object-position: top; padding: 0; background: var(--s2); }
.by > span { display: flex; flex-direction: column; line-height: 1.3; }
.by small { color: var(--m); font-size: 12px; }
.by .av { width: 40px; height: 40px; }
.xq { margin: 30px 0; padding: 20px 22px; background: var(--s); border: 1px solid var(--ln); border-left: 4px solid var(--acc); border-radius: 0 6px 6px 0; }
.xq blockquote { margin: 0; padding: 0; border: 0; font-size: 19px; line-height: 1.55; color: var(--t); }
.xq blockquote p { margin: 0; }
.xq blockquote p::before { content: "\201C"; color: var(--acc); font: 800 34px/0 "Barlow Condensed", sans-serif; vertical-align: -10px; margin-right: 4px; }
.xq blockquote p::after { content: "\201D"; color: var(--acc); }
.xq figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; }
.xq figcaption span { display: flex; flex-direction: column; line-height: 1.3; }
.xq figcaption a { font-weight: 600; color: var(--t); text-decoration: none; }
.xq figcaption a:hover { color: var(--acc); }
.xq figcaption small { color: var(--m); font-size: 13px; }
.author-kicker { margin: 0 0 2px; font: 700 12px "Barlow Condensed", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--m); }
.author-box + .author-box { margin-top: 12px; }
.profile { display: flex; gap: 22px; align-items: center; margin-bottom: 18px; }
.av-xl { width: 120px; height: 120px; font-size: 32px; border: 2px solid var(--acc); }
.profile h1 { margin: 0; }
.profile-role { margin: 4px 0 0; color: var(--acc); font: 700 20px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; }
.profile-links { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.profile-links a { color: var(--m); text-decoration: underline; text-underline-offset: 2px; }
.profile-links a:hover { color: var(--acc); }
.profile-h { margin-top: 26px; }
@media (max-width: 600px) { .profile { flex-direction: column; align-items: flex-start; } .av-xl { width: 96px; height: 96px; } }
.prose figure.pose { margin: 14px 0 18px; }
.prose figure.pose img { margin: 0; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #0E0F10; }

/* Калькулятор калорий */
.calc { background: var(--s); border: 1px solid var(--acc); border-radius: 6px; padding: 18px 20px; margin: 24px 0; }
.calc-h { margin: 0 0 12px; font: 800 20px "Barlow Condensed", sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--t); }
.calc-in { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 14px; }
.calc-in label { display: grid; gap: 4px; font-size: 14px; color: var(--m); }
.calc-in span { display: flex; gap: 6px; }
.calc-in input, .calc-in select { font: inherit; font-size: 16px; padding: 7px 10px; border: 1px solid var(--ln); border-radius: 6px; background: var(--bg); color: var(--t); width: 110px; }
.calc-in select { width: auto; }
.calc-out { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc-out td { padding: 7px 0; border-top: 1px solid var(--ln); vertical-align: middle; }
.calc-out td:nth-child(2) { width: 38%; padding: 0 14px; }
.calc-bar { display: block; height: 8px; border-radius: 4px; background: var(--accBg); }
.calc-k { text-align: right; font-weight: 600; color: var(--t); white-space: nowrap; }
.calc-note { margin: 10px 0 0; font-size: 13px; color: var(--m); }
@media (max-width: 600px) { .calc-out td:nth-child(2) { display: none; } }
.calc-in [hidden] { display: none; }
.calc-in input.calc-s { width: 64px; }
.calc-in span { align-items: center; }
.calc-res { margin: 0 0 10px; font-size: 17px; color: var(--m); }
.calc-res strong { font: 800 30px "Barlow Condensed", sans-serif; color: var(--t); margin: 0 4px; }
