:root {
  color-scheme: light;
  --ink: #15213f;
  --muted: #66738d;
  --line: #e4e8ee;
  --green: #61bd12;
  --green-dark: #45980a;
  --soft: #f5f7f9;
  --max: 1074px;
}

:root {
  --ink: #f0f3f7;
  --muted: #b2bdcc;
  --line: rgba(255, 255, 255, .14);
  --soft: rgba(19, 23, 29, .82);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--ink); background: #0b0d10 url("../assets/site-dark-background.webp") center / cover fixed no-repeat; font-family: "Segoe UI", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
.shell { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.top { color: #fff; background: #333; }
.top .shell { min-height: 34px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; }
.site-header { background: rgba(10, 12, 15, .94); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.site-header .shell { min-height: 88px; display: flex; align-items: center; gap: 30px; }
.brand { color: #8c9aaa; font-size: 28px; font-weight: 900; }
.brand span { color: var(--green); }
.site-header nav { margin-left: auto; display: flex; gap: 24px; }
.site-header nav a { color: #aab4c5; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.site-header nav a:hover { color: var(--green-dark); }

.article-hero { padding: 56px 0 42px; background: rgba(7, 9, 12, .8); border-bottom: 1px solid var(--line); backdrop-filter: blur(5px); }
.back { display: inline-block; margin-bottom: 24px; color: var(--green-dark); font-size: 12px; font-weight: 800; }
.eyebrow { color: var(--green-dark); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.article-hero h1 { max-width: 850px; margin: 10px 0 15px; font-size: 43px; line-height: 1.08; text-shadow: 0 2px 18px rgba(0, 0, 0, .55); }
.dek { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: #8994a8; font-size: 12px; }
.article-meta span:first-child { color: var(--green-dark); font-weight: 800; }

.article-grid { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 720px) 270px; gap: 60px; padding: 56px 0 88px; }
.article-grid::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: rgba(8, 10, 14, .88); border-bottom: 1px solid var(--line); backdrop-filter: blur(7px); }
.article-body { min-width: 0; }
.article-body h2 { margin: 48px 0 15px; color: #fff; font-size: 26px; line-height: 1.25; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 28px 0 10px; font-size: 18px; }
.article-body p, .article-body li { color: #d7dde6; font-size: 17px; line-height: 1.82; }
.article-body p { margin: 0 0 21px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li + li { margin-top: 8px; }
.article-body code { padding: 2px 5px; color: #dce6f2; background: rgba(36, 43, 53, .92); border-radius: 3px; font-size: .9em; }
.article-media { margin: 30px 0 40px; overflow: hidden; background: #0b0e12; border: 1px solid rgba(255, 255, 255, .13); border-radius: 6px; box-shadow: 0 18px 45px rgba(0, 0, 0, .25); }
.article-media-link { display: block; overflow: hidden; background: #080a0d; }
.article-media img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.article-media:hover img { transform: scale(1.012); }
.article-media figcaption { padding: 13px 16px 15px; color: #aeb8c7; border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13px; line-height: 1.55; }
.article-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 30px 0 40px; }
.article-gallery .article-media { margin: 0; }
.article-gallery .article-media-link { aspect-ratio: 16 / 9; display: grid; place-items: center; }
.article-gallery .article-media img { width: 100%; height: 100%; object-fit: contain; }
.callout { margin: 32px 0; padding: 22px 24px; background: rgba(25, 30, 37, .96); border: 1px solid rgba(255, 255, 255, .1); border-left: 3px solid var(--green); }
.callout strong { display: block; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 14px; }
.article-side { align-self: start; position: sticky; top: 24px; padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .16); }
.side-box { margin-bottom: 28px; }
.side-box h2 { margin: 0; padding-bottom: 10px; color: var(--green); border-bottom: 1px solid var(--green); font-size: 13px; }
.side-box ol { margin: 0; padding: 8px 0 0; list-style: none; counter-reset: section; }
.side-box li { border-bottom: 1px solid var(--line); }
.side-box li a { display: block; padding: 10px 0; color: #c1cad7; font-size: 12px; line-height: 1.4; }
.side-box li a:hover { color: var(--green-dark); }
.techs { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 13px; }
.techs span { padding: 7px 9px; color: #e2e8f0; background: var(--soft); border: 1px solid var(--line); border-radius: 4px; font-size: 11px; font-weight: 700; }
.next-article { display: block; margin-top: 50px; padding: 24px; color: #fff; background: rgba(27, 32, 39, .96); border: 1px solid rgba(255, 255, 255, .12); }
.next-article small { color: #a8ee4b; font-weight: 800; }
.next-article strong { display: block; margin-top: 7px; font-size: 18px; }
footer { color: #9da7b8; background: rgba(7, 9, 12, .88); border-top: 1px solid var(--line); font-size: 12px; }
footer .shell { min-height: 65px; display: flex; align-items: center; justify-content: space-between; }

@media (max-width: 780px) {
  .site-header .shell { min-height: 78px; }
  .site-header nav a:not(:first-child) { display: none; }
  .article-hero { padding-top: 34px; background: rgba(7, 9, 12, .88); }
  .article-hero h1 { font-size: 32px; }
  .dek { font-size: 16px; }
  .article-grid { grid-template-columns: 1fr; gap: 42px; padding: 42px 0 68px; }
  .article-grid::before { background: rgba(8, 10, 14, .93); backdrop-filter: blur(5px); }
  .article-body p, .article-body li { font-size: 16px; line-height: 1.78; }
  .article-gallery { grid-template-columns: 1fr; gap: 18px; }
  .article-media { margin: 26px 0 34px; }
  .article-side { position: static; padding: 30px 0 0; border-top: 1px solid rgba(255, 255, 255, .16); border-left: 0; }
  footer .shell { min-height: 80px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 7px; }
}
