
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/Onest-cyrillic.woff2") format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/Onest-latin.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:"Onest";font-style:normal;font-weight:100 900;font-display:swap;src:url("fonts/Onest-rub.woff2") format("woff2");unicode-range:U+20BD}

:root{
  --night:#08191d;--night-deep:#05100f;--panel:#0d2326;
  --gold:#f0b83a;--gold-soft:#ffdf8e;--bone:#f4efe0;--mist:#a7bfb9;--line:rgba(240,184,58,.32);--line-soft:rgba(167,191,185,.22);
  --pad-x:clamp(20px,6.7vw,110px);
  --pad-y:clamp(18px,3.2vw,44px);
}
*,*::before,*::after{box-sizing:border-box}
html{background:var(--night);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}
body{margin:0;background:var(--night);color:var(--bone);font:400 1rem/1.5 "Onest",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased;min-height:100dvh;display:flex;flex-direction:column;overflow-x:hidden}

/* общий фон: та же сцена, что на главной, приглушена и закреплена в верхней части страницы */
.page-bg{position:absolute;inset:0 0 auto 0;height:clamp(300px,46vh,460px);z-index:-1;pointer-events:none;
  background:
    radial-gradient(circle 22vmax at 74% 28%,rgba(255,186,72,.14),rgba(255,186,72,0)),
    linear-gradient(180deg,rgba(8,25,29,.25) 0,rgba(8,25,29,.62) 55%,var(--night) 100%),
    url("img/layer-bg.webp") center top/cover no-repeat,
    linear-gradient(180deg,#0e3a40,#08191d)}
body{position:relative;isolation:isolate}

.wrap{width:100%;padding-inline:calc(var(--pad-x) + env(safe-area-inset-left)) calc(var(--pad-x) + env(safe-area-inset-right))}

.top{padding-top:calc(var(--pad-y) + env(safe-area-inset-top))}
.wordmark{font-weight:500;font-size:1.05rem;letter-spacing:-.01em;color:var(--bone);text-decoration:none}
.wordmark span{color:var(--gold)}

.head{padding-top:clamp(36px,9vh,84px)}
h1{margin:0;max-width:16em;font-weight:500;font-size:clamp(2rem,4.6vw,3.6rem);line-height:1.04;letter-spacing:-.03em;text-wrap:balance}

/* ---------- Текст статьи ---------- */
.prose{max-width:46rem;margin-top:clamp(24px,4vh,40px);padding-bottom:clamp(40px,7vh,72px);font-size:clamp(1rem,.35vw + .93rem,1.1875rem);line-height:1.7;color:#dbe5df}
.prose>*:first-child{margin-top:0}
.prose p{margin:0 0 1.05em;text-wrap:pretty}
.prose h2,.prose h3,.prose h4{color:var(--bone);font-weight:500;letter-spacing:-.02em;text-wrap:balance}
.prose h2{margin:1.9em 0 .55em;font-size:clamp(1.45rem,1.4vw + 1rem,2rem);line-height:1.15}
.prose h3{margin:1.6em 0 .45em;font-size:clamp(1.2rem,.8vw + 1rem,1.45rem);line-height:1.25}
.prose h4{margin:1.4em 0 .4em;font-size:1.05rem;line-height:1.3;color:var(--gold-soft)}
.prose a{color:var(--gold-soft);text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:.2em;text-decoration-thickness:1px;transition:text-decoration-color .2s ease-out,color .2s ease-out}
.prose a:hover{color:#fff;text-decoration-color:var(--gold)}
.prose a:active{color:var(--gold)}
.prose a:focus-visible,.wordmark:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:2px}
.prose strong,.prose b{font-weight:600;color:var(--bone)}
.prose ul,.prose ol{margin:0 0 1.1em;padding-left:1.4em}
.prose li{margin:.3em 0;padding-left:.2em}
.prose ul li::marker{color:var(--gold)}
.prose ol li::marker{color:var(--gold-soft);font-variant-numeric:tabular-nums}
.prose blockquote{margin:1.5em 0;padding:.15em 0 .15em 1.1em;border-left:2px solid var(--gold);color:var(--bone);font-size:1.06em}
.prose blockquote p:last-child{margin-bottom:0}
.prose hr{margin:2.2em 0;border:0;border-top:1px solid var(--line-soft)}
.prose code{font:.9em ui-monospace,SFMono-Regular,Menlo,monospace;padding:.12em .38em;border-radius:4px;background:rgba(240,184,58,.1);color:var(--gold-soft)}
.prose figure{margin:1.6em 0}
.prose img{display:block;max-width:100%;height:auto;border-radius:6px}
.prose figcaption{margin-top:.6em;font-size:.86em;line-height:1.4;color:var(--mist)}
.prose .tablewrap{margin:1.5em 0;overflow-x:auto;-webkit-overflow-scrolling:touch}
.prose table{width:100%;border-collapse:collapse;font-size:.94em;font-variant-numeric:tabular-nums}
.prose th,.prose td{padding:.65em .9em .65em 0;text-align:left;border-bottom:1px solid var(--line-soft);vertical-align:top}
.prose th{font-weight:500;color:var(--gold-soft);border-bottom-color:var(--line)}
.prose td:last-child,.prose th:last-child{padding-right:0}

footer{margin-top:auto;padding-block:clamp(16px,2.6vh,26px) calc(clamp(16px,2.6vh,26px) + env(safe-area-inset-bottom));font-size:.78rem;color:var(--mist)}
.foot{border-top:1px solid var(--line-soft);padding-top:clamp(14px,2vh,20px)}

@media (prefers-reduced-motion:no-preference){
  .head,.prose{animation:rise .8s cubic-bezier(.22,1,.36,1) both}
  .prose{animation-delay:.1s}
}
@keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media print{.page-bg{display:none}body{background:#fff;color:#111}.prose,.prose strong,h1,.prose h2,.prose h3,.prose h4,.prose a{color:#111}}
