@font-face { font-family: "PT Serif"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/pt-serif-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 Serif"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/pt-serif-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212,U+20BD; }
@font-face { font-family: "PT Serif"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/pt-serif-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 Serif"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/pt-serif-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+2000-206F,U+20AC,U+2122,U+2212,U+20BD; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/manrope-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: "Manrope"; font-style: normal; font-display: swap; font-weight: 400; src: url(/assets/fonts/manrope-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,U+20BD,U+2190-2192; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/manrope-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: "Manrope"; font-style: normal; font-display: swap; font-weight: 600; src: url(/assets/fonts/manrope-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,U+20BD,U+2190-2192; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/manrope-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: "Manrope"; font-style: normal; font-display: swap; font-weight: 700; src: url(/assets/fonts/manrope-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,U+20BD,U+2190-2192; }

/* «Заборный» — спокойный журнальный стиль: тёплый белый, серые линии, охра точечно. Тёмная тема — для чтения ночью */
:root, [data-theme="light"] {
  --bg: #fbfaf7; --bg-2: #f3f1ec; --bg-3: #e9e6df; --line: rgba(29,29,27,.1); --line-2: rgba(29,29,27,.2);
  --text: #1d1d1b; --text-2: #3d3c39; --muted: #77746d; --accent: #c9952b; --accent-ink: #8a6418; --on-accent: #1d1d1b;
  --display: "PT Serif", Georgia, serif; --body: "Manrope", system-ui, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 40px); --r: 4px; color-scheme: light;
}
[data-theme="dark"] {
  --bg: #161614; --bg-2: #1e1e1b; --bg-3: #282824; --line: rgba(255,255,255,.09); --line-2: rgba(255,255,255,.18);
  --text: #ebe8e1; --text-2: #c9c5bc; --muted: #929088; --accent: #d6a440; --accent-ink: #e2b85e; --on-accent: #161614; color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
html, body { background: var(--bg); color: var(--text); }
body { font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 99px; }
.skip:focus { left: 12px; }

/* шапка */
.jh { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.jh-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; gap: 20px; justify-content: space-between; }
.jlogo { display: inline-flex; align-items: center; gap: 10px; font: 700 23px/1 var(--display); letter-spacing: -.01em; white-space: nowrap; color: var(--text); }
.jlogo svg { flex: none; }
.jlogo em { font: 400 13px/1.25 var(--body); font-style: normal; color: var(--muted); margin-left: 6px; padding-left: 12px; border-left: 1px solid var(--line-2); white-space: normal; max-width: 230px; }
@media (max-width: 620px) { .jlogo em { display: none; } }
.jh-nav { border-top: 1px solid var(--line); }
.jh-nav-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.jh-nav-in::-webkit-scrollbar { display: none; }
.jh-nav a { font-size: 14px; color: var(--text-2); padding: 11px 0; white-space: nowrap; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.jh-nav a:hover, .jh-nav a[aria-current] { color: var(--text); border-bottom-color: var(--text); }
.jh-r { display: flex; align-items: center; gap: 4px; }
.jh-btn { font-size: 14px; padding: 8px 12px; color: var(--text-2); }
.jh-btn:hover, .jh-btn[aria-expanded="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.jtheme { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.jtheme:hover { color: var(--text); background: var(--bg-2); }
.jrubs { border-top: 1px solid var(--line); background: var(--bg); }
.jrubs-in { max-width: 1240px; margin: 0 auto; padding: 18px var(--pad) 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 28px; font-size: 15px; }
.jrubs-in a, .jrubs-in span { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.jrubs-in a:hover { color: var(--accent-ink); }
.jrubs-in span { color: var(--muted); }
.jrubs-in small { color: var(--muted); font-size: 12px; }

/* лента */
.jwrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.jnarrow { max-width: 760px; padding-top: 40px; padding-bottom: 60px; }
.jlist-head { padding: 56px 0 36px; max-width: 820px; }
h1 { font: 700 clamp(30px, 4.4vw, 48px)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.jlead { margin-top: 16px; font-size: 19px; color: var(--text-2); max-width: 680px; }
.jlead a, .jbody a, .jf a:hover { color: var(--accent-ink); }
.jlead a:hover, .jbody a:hover { text-decoration: underline; }
.jcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.jcrumbs a:hover { color: var(--text); }
.jcrumbs span { opacity: .5; margin: 0 4px; }
.jgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
@media (max-width: 1000px) { .jgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .jgrid { grid-template-columns: 1fr; } }
.jc { display: flex; flex-direction: column; gap: 14px; }
.jc-img { aspect-ratio: 16/9; border-radius: var(--r); overflow: hidden; background: var(--bg-3); border: 1px solid var(--line); }
.jc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.jc:hover .jc-img img { transform: scale(1.03); }
.jc-ph { display: grid; place-items: end start; height: 100%; padding: 18px; font: 700 20px/1.2 var(--display); color: var(--muted); background: var(--bg-2); }
.jchip { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.jchip:hover { color: var(--accent-ink); }
.jc-t { font: 700 20px/1.28 var(--display); letter-spacing: 0; margin-top: 4px; text-wrap: balance; }
.jc-t a:hover { color: var(--accent-ink); }
.jc-x { font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; }
.jc-m { font-size: 13px; color: var(--muted); margin-top: 8px; }
.jempty { color: var(--muted); padding: 40px 0 120px; }
.jpager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 48px 0 80px; }
.jpager a { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 99px; border: 1px solid var(--line); font-size: 14px; }
.jpager a[aria-current] { background: var(--text); color: var(--bg); }
.jlist-head .jlead { font-size: 18px; }
.js .jpager { display: none; }
.jmore { text-align: center; color: var(--muted); padding: 40px 0 80px; font-size: 14px; }

/* статья */
.jpost { display: grid; grid-template-columns: minmax(0, 720px) 300px; gap: 64px; justify-content: center; padding-top: 40px; }
@media (max-width: 1100px) { .jpost { grid-template-columns: minmax(0, 720px); } .ja-side { display: none; } }
.ja-head { margin-bottom: 28px; }
.ja-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 20px; font-size: 14px; color: var(--muted); }
.ja-meta span:first-child { color: var(--text-2); font-weight: 600; }
.ja-cover { margin: 0 0 28px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/9; background: var(--bg-3); }
.ja-cover img { width: 100%; height: 100%; object-fit: cover; }
.ja-toc { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 22px; margin: 28px 0; background: var(--bg-2); }
.ja-toc summary { cursor: pointer; font-weight: 600; }
.ja-toc ol { margin: 10px 0 0 20px; font-size: 15px; color: var(--text-2); display: grid; gap: 4px; }
.ja-toc a:hover { color: var(--accent-ink); }
.jbody { font-size: 18px; color: var(--text-2); }
.jbody > * + * { margin-top: 1.1em; }
.jbody h2 { font: 700 clamp(23px, 2.6vw, 29px)/1.25 var(--display); letter-spacing: -.02em; color: var(--text); margin-top: 1.9em; }
.jbody h3 { font: 700 21px/1.35 var(--body); color: var(--text); margin-top: 1.6em; }
.jbody h4 { font: 700 18px/1.4 var(--body); color: var(--text); margin-top: 1.4em; }
.jbody strong { color: var(--text); }
.jbody ul, .jbody ol { padding-left: 1.3em; display: grid; gap: .45em; }
.jbody li::marker { color: var(--accent); }
.jbody ol > li::marker { font-weight: 700; }
.jbody ul.j-check { list-style: none; padding-left: 0; }
.jbody ul.j-check > li { position: relative; padding-left: 34px; }
.j-cb { position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 6px; }
.j-cb.is-on { background: var(--accent); }
.j-cb.is-on::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.jbody blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; color: var(--text); font-style: italic; }
.jbody code { font: 15px var(--mono); background: var(--bg-3); padding: 2px 6px; border-radius: 6px; }
.jbody pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; }
.jbody pre code { background: none; padding: 0; font-size: 14px; line-height: 1.6; }
.jbody img { border-radius: 14px; margin: 1.4em 0; }
.jbody hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.j-table { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.j-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.j-table th, .j-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.j-table th { background: var(--bg-2); color: var(--text); font-weight: 600; }
.j-table tr:last-child td { border-bottom: 0; }
.ja-faq { margin-top: 48px; }
.ja-faq h2 { font: 500 26px/1.25 var(--display); margin-bottom: 14px; }
.ja-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.ja-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.ja-faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.ja-faq details[open] summary::after { content: "−"; }
.ja-faq p { margin-top: 10px; color: var(--text-2); }

/* баннеры */
.jb { border-radius: var(--r); }
.jb-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.jb-t { font: 700 19px/1.3 var(--display); letter-spacing: -.02em; color: var(--text); }
.jb-x { font-size: 15px; color: var(--text-2); margin-top: 8px; }
.jb-p { display: block; font: 700 18px/1 var(--display); color: var(--text); white-space: nowrap; }
.jbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--text); color: var(--bg); font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 3px; transition: transform .2s, filter .2s; white-space: nowrap; }
.jbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.jb-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; border: 1px solid var(--line); background: var(--bg-2); font-size: 15px; color: var(--text-2); }
.jb-top .jb-k { margin: 0; }
.jb-top span:nth-child(2) { flex: 1; }
.jb-top b { color: var(--accent); }
.jb-top:hover { border-color: var(--line-2); color: var(--text); }
.jb-mid { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin: 40px 0; padding: 26px 28px; background: var(--bg-2); border: 1px solid var(--line); }
.jb-mid .jb-a { display: grid; gap: 12px; justify-items: end; }
@media (max-width: 640px) { .jb-mid { flex-direction: column; align-items: stretch; } .jb-mid .jb-a { justify-items: stretch; } }
.jb-end { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.jb-end-h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.jb-end-h a { color: var(--accent-ink); font-size: 15px; white-space: nowrap; }
.jb-tpls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .jb-tpls { grid-template-columns: 1fr 1fr; } .jb-tpl:nth-child(3) { display: none; } }
.jb-tpl { display: grid; gap: 4px; font-size: 14px; }
.jb-tpl img { aspect-ratio: 400/260; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 6px; }
.jb-tpl span { font-weight: 600; }
.jb-tpl small { color: var(--muted); }
.jb-tpl:hover span { color: var(--accent-ink); }
.jb-svcs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 36px; font-size: 14px; color: var(--muted); }
.jb-svcs a { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--text-2); }
.jb-svcs a:hover { border-color: var(--accent); color: var(--accent-ink); }
.jb-tg { display: flex; gap: 20px; align-items: center; justify-content: space-between; margin: 40px 0 0; padding: 22px 24px; border: 1px dashed var(--line-2); }
.jb-tg p { color: var(--text-2); font-size: 16px; }
.jb-tg b { color: var(--text); }
@media (max-width: 640px) { .jb-tg { flex-direction: column; align-items: stretch; } }
.ja-side { position: relative; }
.jb-side { position: sticky; top: 96px; padding: 24px; border: 1px solid var(--line-2); background: var(--bg-2); display: grid; gap: 12px; }
.jb-side .jb-x { margin: 0; }
.jb-tglink { font-size: 14px; color: var(--muted); text-align: center; }
.jb-tglink:hover { color: var(--text); }
.jrel { padding-top: 72px; padding-bottom: 40px; }
.jrel-h { font: 500 26px/1.2 var(--display); margin-bottom: 24px; }

/* подвал и согласие */
.jf { border-top: 1px solid var(--line); margin-top: 80px; }
.jf-in { max-width: 1240px; margin: 0 auto; padding: 40px var(--pad); display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; font-size: 14px; color: var(--muted); }
.jf-in p { margin-top: 10px; max-width: 420px; }
.jf nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.jf nav a:hover, .jf nav button:hover { color: var(--text); }
.jf nav button { font-size: 14px; color: var(--muted); padding: 0; }
.jf-c { grid-column: 1 / -1; font-size: 13px; }
@media (max-width: 700px) { .jf-in { grid-template-columns: 1fr; } }
.jtop { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-2); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s; }
.jtop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.jtop:hover { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.jcookie { position: fixed; left: 16px; bottom: 16px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); padding: 16px 18px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); font-size: 14px; color: var(--text-2); }
.jcookie b { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.jcookie a { color: var(--accent-ink); text-decoration: underline; }
.jcookie div { display: flex; gap: 8px; margin-top: 12px; }
.jcookie button { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line-2); font-size: 14px; }
.jcookie button:first-child { background: var(--text); color: var(--bg); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* «Заборный»: партнёрские блоки, рубрики сбоку, примечание */
.jb-ad { font-size: 11px; color: var(--muted); margin-top: 10px; letter-spacing: .02em; }
.jb.is-in { animation: jbIn .4s ease both; }
@keyframes jbIn { from { opacity: 0; transform: translateY(6px); } }
.jbanners { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: -8px 0 36px; }
.jbanners .jb-mid { margin: 0; }
.ja-side { display: grid; gap: 22px; align-content: start; }
.ja-side .jb-side { position: static; }
.ja-side-rubs { position: sticky; top: 140px; display: grid; gap: 2px; font-size: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.ja-side-rubs .jb-k { margin-bottom: 8px; }
.ja-side-rubs a { color: var(--muted); padding: 4px 0; }
.ja-side-rubs a:hover, .ja-side-rubs a[aria-current] { color: var(--text); }
.ja-meta a { color: var(--text-2); font-weight: 600; }
.ja-note { margin-top: 40px; padding: 14px 18px; font-size: 14px; color: var(--muted); background: var(--bg-2); border-radius: var(--r); }


/* главная: первая статья крупно, как в журнале */
.jgrid > .jc-lead { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: center; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.jc-lead .jc-t { font-size: clamp(24px, 3vw, 34px); line-height: 1.18; }
.jc-lead .jc-x { -webkit-line-clamp: 4; font-size: 17px; }
@media (max-width: 760px) { .jgrid > .jc-lead { grid-template-columns: 1fr; gap: 14px; } }
.jc-img, .ja-cover { border-radius: var(--r); }
.jbody a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; color: var(--text); }
.jbody a:hover { text-decoration-color: var(--accent); }
.jbody li::marker { color: var(--muted); }
.jc-nocover { padding-top: 18px; border-top: 2px solid var(--text); }
.jgrid > .jc-lead.jc-nocover { grid-template-columns: minmax(0, 820px); border-top: 0; padding-top: 0; }
