/* ===== Страница статьи ===== */
.a-hero { position: relative; height: 72vh; min-height: 460px; max-height: 720px; overflow: hidden; display: flex; align-items: flex-end; }
.a-hero__img { position: absolute; inset: -60px 0 0; will-change: transform; }
.a-hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; animation: heroZoom 1.6s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.15); filter: blur(6px); } to { transform: scale(1); filter: none; } }
.a-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(5,16,36,.7) 40%, rgba(5,16,36,.15) 100%); }
.a-hero__in { position: relative; z-index: 2; padding-bottom: 50px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.crumbs a:hover { color: #fff; }
.a-title { font-size: clamp(32px, 5vw, 64px); font-weight: 900; line-height: 1.04; max-width: 1000px; text-wrap: balance; }
.a-title .w { display: inline-block; opacity: 0; transform: translateY(40px) rotate(3deg); animation: wordIn .8s var(--ease) forwards; animation-delay: calc(var(--i) * 45ms + .25s); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.a-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; color: var(--muted); font-size: 14px; align-items: center; }
.a-meta span { display: inline-flex; align-items: center; gap: 7px; }
.a-author { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--red), #0f4fb8); }

.a-layout { display: grid; grid-template-columns: 70px minmax(0, 760px) 1fr; gap: 50px; padding-top: 30px; }
.a-side { position: sticky; top: 100px; align-self: start; display: grid; gap: 10px; justify-items: center; }
.a-side .icon-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); }
.a-side .icon-btn:hover { border-color: var(--red); background: rgba(30,136,255,.12); }
.like.is-liked { color: var(--red-2); border-color: var(--red) !important; }
.like.is-liked svg { animation: heartPop .5s var(--ease-back); fill: currentColor; }
.a-side hr { width: 24px; border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }

.a-lead { font-size: 22px; line-height: 1.5; font-weight: 500; color: #fff; padding-left: 22px; border-left: 4px solid var(--red); }
.a-figure { margin: 30px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.a-figure img { width: 100%; height: auto; display: block; }
.a-body { --fs: 18px; font-size: var(--fs); line-height: 1.75; color: rgba(255,255,255,.86); margin-top: 34px; }
.a-body p + p { margin-top: 1.1em; }
.a-body > p:first-of-type::first-letter { float: left; font-family: var(--font-head); font-weight: 900; font-style: italic; font-size: 4.2em; line-height: .8; margin: .08em .12em 0 0; color: var(--red-2); }
.a-body h2 { font-size: 1.5em; font-weight: 800; margin: 1.6em 0 .6em; display: flex; align-items: center; gap: 12px; color: #fff; }
.a-body h2::before { content: ""; width: 8px; height: 1em; background: var(--red); transform: skewX(-20deg); border-radius: 2px; }
.callout { margin: 1.6em 0; padding: 24px 26px 24px 70px; border-radius: 18px; background: linear-gradient(135deg, rgba(30,136,255,.14), rgba(94,214,92,.08)); border: 1px solid rgba(30,136,255,.3); position: relative; color: #fff; font-weight: 600; }
.callout::before { content: "!"; position: absolute; left: 22px; top: 22px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); display: grid; place-items: center; font-family: var(--font-head); font-weight: 900; }
.callout small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-2); margin-bottom: 6px; }

.a-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line); }

.a-aside { align-self: start; position: sticky; top: 100px; display: grid; gap: 22px; }
.mini { display: flex; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; transition: background .25s, transform .3s var(--ease); }
.mini:hover { background: rgba(255,255,255,.05); transform: translateX(4px); }
.mini img { width: 86px; height: 64px; object-fit: cover; border-radius: 10px; }
.mini__t { font-weight: 600; font-size: 14px; line-height: 1.35; }
.mini__m { font-size: 12px; color: var(--muted); margin-top: 4px; }

.fs-ctrl { display: flex; align-items: center; gap: 6px; }
.fs-ctrl button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 800; font-family: var(--font-head); transition: all .2s; }
.fs-ctrl button:hover { border-color: var(--red); background: rgba(30,136,255,.12); }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 50px; }
.pn a { position: relative; height: 150px; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border: 1px solid var(--line); }
.pn a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.pn a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,16,36,.95), rgba(5,16,36,.4)); }
.pn a:hover img { transform: scale(1.08); }
.pn small { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.pn b { font-family: var(--font-head); font-size: 16px; line-height: 1.25; margin-top: 4px; }
.pn a:last-child { text-align: right; }
.pn { isolation: isolate; }

.share-pop { position: absolute; left: calc(100% + 12px); top: 0; display: flex; gap: 6px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); opacity: 0; visibility: hidden; transform: translateX(-8px); transition: all .3s var(--ease); white-space: nowrap; }
.share-wrap { position: relative; }
.share-wrap.is-open .share-pop { opacity: 1; visibility: visible; transform: none; }
.share-pop button { padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.share-pop button:hover { background: rgba(255,255,255,.08); }

.not-found { padding: 120px 0; text-align: center; }
.not-found h1 { font-size: 120px; font-style: italic; font-weight: 900; color: var(--red); }
