:root {
  color-scheme: dark;
  --bg: #070a08;
  --surface: #0d120f;
  --text: #f2f5f0;
  --muted: #939d96;
  --line: rgba(242, 245, 240, .13);
  --green: #68e59b;
  --green-soft: rgba(104, 229, 155, .12);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.en { display: none !important; }
[data-lang="en"] .ru { display: none !important; }
[data-lang="en"] .en { display: revert !important; }

.blog-header,
main,
footer { width: min(calc(100% - clamp(36px, 8vw, 132px)), 1440px); margin-inline: auto; }

.blog-header { min-height: 78px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); }
.blog-brand { font-size: .95rem; font-weight: 600; letter-spacing: -.04em; }
.blog-header nav { display: flex; gap: 28px; color: var(--muted); font-size: .82rem; }
.blog-header nav a:hover { color: var(--text); }
.blog-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.06); }
.lang-switch button { min-width: 34px; min-height: 28px; padding: 0; border: 0; border-radius: 999px; color: var(--muted); background: transparent; cursor: pointer; font-size: .7rem; font-weight: 600; }
.lang-switch button.active { color: #07110b; background: var(--green); }
.icon-link { width: 32px; height: 32px; display: grid; place-items: center; color: var(--muted); }
.icon-link:hover { color: var(--green); }
.icon-link svg { width: 17px; height: 17px; fill: currentColor; }

.blog-hero { min-height: min(580px, calc(100svh - 78px)); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); background: radial-gradient(circle at 72% 38%, rgba(41, 133, 78, .18), transparent 26%); }
.eyebrow { margin: 0 0 28px; color: var(--green); font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.blog-hero h1 { max-width: 1050px; margin: 0; font-size: clamp(3.6rem, 8.7vw, 9rem); font-weight: 500; line-height: .91; letter-spacing: -.075em; }
.blog-hero h1 em { color: var(--muted); font-style: normal; }
.blog-hero > p:last-child,
.blog-hero > p.ru { max-width: 610px; margin: clamp(36px, 5vw, 70px) 0 0 auto; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.65; }

.latest-articles { padding: clamp(64px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.latest-heading { display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: clamp(48px, 10vw, 150px); margin-bottom: clamp(40px, 5vw, 72px); }
.latest-heading h2 { max-width: 15ch; margin: 0; font-size: clamp(2.5rem, 5.2vw, 5.8rem); font-weight: 500; line-height: .96; letter-spacing: -.065em; }
.article-index-list { border-top: 1px solid var(--line); }
.article-index-row { display: grid; grid-template-columns: minmax(260px, .62fr) 1fr; gap: clamp(34px, 7vw, 110px); align-items: center; padding: clamp(28px, 3.5vw, 48px) 0; border-bottom: 1px solid var(--line); }
.article-index-row:nth-child(even) { grid-template-columns: 1fr minmax(260px, .62fr); }
.article-index-row:nth-child(even) .article-index-media { order: 2; }
.article-index-media { overflow: hidden; border-radius: 18px; background: var(--surface); }
.article-index-media img { width: 100%; height: auto; aspect-ratio: 1.4 / 1; display: block; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.article-index-row:hover .article-index-media img { transform: scale(1.018); }
.article-index-copy small { display: block; margin-bottom: 18px; color: var(--green); font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.article-index-copy h3 { max-width: 19ch; margin: 0; font-size: clamp(2rem, 3.8vw, 4.2rem); font-weight: 500; line-height: .98; letter-spacing: -.058em; text-wrap: balance; transition: color .2s ease; }
.article-index-copy p { max-width: 620px; margin: 22px 0 0; color: #b9c2bb; font-size: 1.0625rem; line-height: 1.6; }
.article-index-copy span { display: block; margin-top: 26px; color: #c8d0ca; font-size: .875rem; }
.article-index-row:hover h3,
.article-index-row:hover .article-index-copy span { color: var(--green); }

.editorial,
.field-notes { display: grid; grid-template-columns: minmax(260px, .58fr) 1fr; gap: clamp(50px, 10vw, 170px); padding: clamp(64px, 7vw, 104px) 0; border-bottom: 1px solid var(--line); }
.section-heading h2 { max-width: 15ch; margin: 0; font-size: clamp(2.2rem, 4.5vw, 5rem); font-weight: 500; line-height: 1; letter-spacing: -.06em; }
.section-heading.compact h2 { font-size: clamp(2rem, 3.5vw, 3.7rem); }
.track-list,
.note-list { border-top: 1px solid var(--line); }
.track,
.note-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding: 34px 0; border-bottom: 1px solid var(--line); }
.track h3,
.note-row h3 { margin: 0 0 10px; font-size: clamp(1.3rem, 2vw, 2rem); font-weight: 500; letter-spacing: -.035em; }
.track p,
.note-row p { max-width: 620px; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.65; }
.track-link,
.note-row > span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.track:hover h3,
.track:hover .track-link,
.note-row:hover h3,
.note-row:hover > span { color: var(--green); }

.blog-principle { padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); }
.principle { max-width: 1080px; margin: 0; font-size: clamp(2.3rem, 5.3vw, 6.3rem); font-weight: 500; line-height: 1.01; letter-spacing: -.06em; }

.blog-cta { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; padding: clamp(64px, 7vw, 100px) 0; }
.blog-cta h2 { max-width: 800px; margin: 0; font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.blog-cta > a { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 24px; border-radius: 999px; color: #06140c; background: var(--green); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.blog-cta > a:hover { background: #8cf0b2; }

/* Long-form articles */
.article-page {
  --article-display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --article-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background:
    radial-gradient(circle at 72% 7%, rgba(41, 133, 78, .13), transparent 23%),
    var(--bg);
}

.article-page .blog-header,
.article-page main,
.article-page footer { width: min(calc(100% - clamp(36px, 8vw, 132px)), 1440px); }

.article-hero { max-width: 1180px; margin-inline: auto; padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3.5vw, 48px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; color: var(--muted); font-size: .75rem; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb span[aria-hidden="true"] { opacity: .45; }
.article-category { margin: 0 0 18px; color: var(--green); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.article-hero h1 { max-width: 18ch; margin: 0; font-family: var(--article-display); font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 560; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.article-dek { max-width: 720px; margin: clamp(20px, 2.4vw, 30px) 0 0; color: #cdd5ce; font-size: clamp(1.08rem, 1.4vw, 1.3rem); line-height: 1.55; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 20px 0 0; max-width: 720px; color: #aab4ac; font-size: .84rem; }
.article-meta time { color: var(--text); }

/* Hero figure sits on the same centred system as the reading column: max 1040px, caption below the image. */
.article-visual { position: relative; max-width: 1040px; margin: 0 auto; overflow: hidden; border-radius: 20px; background: var(--surface); }
.article-visual img { width: 100%; height: clamp(240px, 32vw, 460px); display: block; object-fit: cover; }
.article-visual figcaption { position: static; padding: 10px 16px 12px; color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* Reading system: one centred column (TOC 220px + body max 720px) instead of edge-to-edge columns. */
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); justify-content: center; gap: clamp(40px, 5vw, 64px); max-width: 1180px; margin-inline: auto; padding: clamp(36px, 4.5vw, 64px) 0; }
.article-toc { align-self: start; position: sticky; top: 106px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-toc strong { display: block; margin-bottom: 14px; color: var(--text); font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.article-toc a { display: block; padding: 6px 0; color: #aab4ac; font-size: .84rem; line-height: 1.45; }
.article-toc a:hover { color: var(--green); }

.article-body { min-width: 0; font-family: var(--article-body); }
.article-body > p,
.article-body li { color: #d3dad4; font-size: 1.125rem; line-height: 1.65; }
.article-body > p { margin: 0 0 1em; }
.article-body .article-lead { margin-top: 0; color: var(--text); font-size: clamp(1.25rem, 1.7vw, 1.45rem); line-height: 1.5; letter-spacing: -.012em; }
.article-body h2 { margin: 44px 0 14px; font-family: var(--article-display); font-size: clamp(1.75rem, 2.8vw, 2.4rem); font-weight: 560; line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.article-body h3 { margin: 28px 0 10px; font-family: var(--article-display); font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 560; line-height: 1.2; letter-spacing: -.02em; }
.article-body > :first-child { margin-top: 0; }
.article-body img,
.article-body table { max-width: 100%; }
.article-body .article-visual { margin: 32px 0; border-radius: 16px; }
.article-body .article-visual img { height: auto; max-height: 420px; object-fit: contain; }
.article-body a:not(.article-cta) { color: var(--text); text-decoration: underline; text-decoration-color: rgba(104, 229, 155, .45); text-underline-offset: 4px; }
.article-body a:not(.article-cta):hover { color: var(--green); }
.article-body ul,
.article-body ol { margin: 18px 0 26px; padding-left: 1.25em; }
.article-body li { margin: 8px 0; padding-left: .35em; }
.article-body strong { color: var(--text); font-weight: 600; }

.quick-answer { margin: 40px 0 48px; padding: clamp(28px, 4vw, 46px); border-radius: 18px; background: var(--surface); }
.quick-answer small { display: block; margin-bottom: 14px; color: var(--green); font-size: .7rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.quick-answer p { margin: 0; color: var(--text); font-size: clamp(1.25rem, 2vw, 1.72rem); line-height: 1.48; letter-spacing: -.025em; }

.article-rows { margin: 28px 0 44px; border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: minmax(150px, .42fr) 1fr; gap: 32px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.article-row h3 { margin: 0; font-size: clamp(1.25rem, 1.7vw, 1.68rem); }
.article-row div > p { margin: 0; color: #aeb8b0; font-size: .98rem; line-height: 1.72; }
.article-row div > p + p { margin-top: 12px; }

.article-table-wrap { margin: 30px 0 44px; overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .88rem; }
.article-table th,
.article-table td { padding: 18px 18px 18px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.55; }
.article-table th { color: var(--text); font-weight: 600; }
.article-table td { color: var(--muted); }
.article-table tr:last-child td { border-bottom: 0; }

/* Reusable semantic blocks for articles. One subtle surface tone, no stacked outlined cards, no monospace. */
.article-body .article-table-wrap { margin: 28px 0 36px; -webkit-overflow-scrolling: touch; }
.article-body .article-table { font-size: 1rem; }
.article-body .article-table td { color: #c5cdc7; }

.article-figure { margin: 36px 0; }
.article-figure img,
.article-figure svg { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.article-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .875rem; line-height: 1.5; }

/* Process diagram: ordered list, horizontal on desktop, vertical on mobile. Plain numbers in the body font. */
.article-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 32px 0 40px; padding: 0; list-style: none; counter-reset: step; border-radius: 14px; overflow: hidden; }
.article-body .article-steps li { counter-increment: step; position: relative; margin: 0; padding: 18px 18px 20px; background: var(--surface); color: #d3dad4; font-size: 1rem; line-height: 1.5; }
.article-steps li::before { content: counter(step); display: block; margin-bottom: 8px; color: var(--green); font-family: var(--article-body); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.article-steps li strong { display: block; margin-bottom: 4px; color: var(--text); }

.article-callout { margin: 32px 0; padding: 22px 24px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; background: var(--surface); }
.article-callout > :last-child { margin-bottom: 0; }
.article-callout p { margin: 0 0 .7em; color: #d3dad4; font-size: 1.0625rem; line-height: 1.6; }
.article-label { display: block; margin-bottom: 10px; color: var(--green); font-family: var(--article-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.article-example { margin: 36px 0; padding: 4px 0 4px 22px; border-left: 1px solid var(--line); }
.article-example h3,
.article-example h4 { margin: 0 0 10px; color: var(--text); font-family: var(--article-body); font-size: 1rem; font-weight: 700; letter-spacing: 0; }
.article-body .article-example p { margin: 0 0 .8em; font-size: 1.0625rem; }

.article-calc { margin: 32px 0 40px; padding: 20px 24px; border-radius: 14px; background: var(--surface); overflow-x: auto; }
.article-calc .article-label { color: var(--muted); }
.article-calc table { width: 100%; min-width: 420px; border-collapse: collapse; font-family: var(--article-body); font-size: 1rem; font-variant-numeric: tabular-nums; }
.article-calc th,
.article-calc td { padding: 10px 14px 10px 0; text-align: left; border-bottom: 1px solid var(--line); line-height: 1.45; }
.article-calc th { color: var(--text); font-weight: 600; }
.article-calc td { color: #d3dad4; }
.article-calc tr:last-child th,
.article-calc tr:last-child td { border-bottom: 0; color: var(--text); font-weight: 700; }
.article-calc > p { margin: 12px 0 0; color: var(--muted); font-size: .875rem; line-height: 1.5; }

.article-pullquote { margin: clamp(36px, 4.5vw, 60px) 0; padding: 6px 0 6px clamp(22px, 3.4vw, 40px); border-left: 2px solid var(--green); color: var(--text); font-family: var(--article-display); font-size: clamp(1.6rem, 2.9vw, 2.9rem); line-height: 1.1; letter-spacing: -.045em; }

.article-sources { margin-top: clamp(44px, 5vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.article-sources h2 { margin: 0 0 20px; font-size: 1.35rem; letter-spacing: -.03em; }
.article-sources ol { margin: 0; padding-left: 1.2em; }
.article-sources li { color: var(--muted); font-size: .84rem; line-height: 1.6; }

.related-reading { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.related-reading h2 { margin: 0 0 20px; font-size: 1.35rem; letter-spacing: -.03em; }
.related-reading a { display: block; padding: 12px 0; color: #c6cec8; text-decoration: none !important; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.45; }

.article-endcap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 50px; align-items: end; margin-bottom: clamp(48px, 6vw, 80px); padding: clamp(32px, 4.5vw, 56px); border-radius: 24px; background: #111813; }
.article-endcap small { display: block; margin-bottom: 18px; color: var(--green); font-size: .7rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.article-endcap h2 { max-width: 820px; margin: 0; font-family: var(--article-display); font-size: clamp(2rem, 4.2vw, 4.5rem); font-weight: 540; line-height: .98; letter-spacing: -.055em; }
.article-cta { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 8px; color: #06140c; background: var(--green); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.article-cta:hover { background: #8cf0b2; }

footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

@media (max-width: 840px) {
  .blog-header { grid-template-columns: 1fr auto; padding: 14px 0 12px; }
  .blog-header nav { grid-column: 1 / -1; display: flex; gap: 22px; width: 100%; overflow-x: auto; padding: 3px 0 2px; scrollbar-width: none; white-space: nowrap; }
  .blog-header nav::-webkit-scrollbar { display: none; }
  .blog-hero { min-height: 480px; }
  .editorial,
  .field-notes { grid-template-columns: 1fr; gap: 64px; }
  .latest-heading { grid-template-columns: 1fr; gap: 32px; }
  .article-index-row,
  .article-index-row:nth-child(even) { grid-template-columns: 1fr; }
  .article-index-row:nth-child(even) .article-index-media { order: 0; }
  .blog-cta { grid-template-columns: 1fr; align-items: start; }
  .blog-cta > a { justify-self: start; }
  .article-page .blog-header,
  .article-page main,
  .article-page footer { width: calc(100% - 40px); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-toc { display: none; }
  .article-steps { grid-template-columns: 1fr; }
  .article-endcap { grid-template-columns: 1fr; align-items: start; }
  .article-cta { justify-self: start; }
}

@media (max-width: 560px) {
  .blog-header,
  main,
  footer { width: calc(100% - 36px); }
  .blog-header { min-height: 68px; gap: 10px 12px; }
  .blog-header-actions { gap: 6px; }
  .icon-link { display: grid; }
  .blog-hero { min-height: 420px; padding-top: 48px; padding-bottom: 40px; }
  .blog-hero h1 { font-size: clamp(3.15rem, 15vw, 4.7rem); }
  .blog-hero > p:last-child,
  .blog-hero > p.ru { margin-left: 0; }
  .track,
  .note-row { grid-template-columns: 1fr; align-items: start; padding: 28px 0; }
  .article-index-media { border-radius: 14px; }
  .article-index-copy h3 { font-size: clamp(2.15rem, 11vw, 3.35rem); }
  .track-link,
  .note-row > span { color: var(--green); }
  .article-hero { padding-top: 32px; padding-bottom: 28px; }
  .breadcrumb { margin-bottom: 22px; }
  .article-hero h1 { font-size: clamp(2.45rem, 11.5vw, 3.4rem); line-height: 1; }
  .article-dek,
  .article-meta { margin-left: 0; }
  .article-visual { border-radius: 14px; }
  .article-visual img { height: 220px; }
  .article-layout { padding: 36px 0 44px; }
  .article-body h2 { margin: 40px 0 14px; }
  .article-body h3 { margin: 28px 0 10px; }
  .article-body > p,
  .article-body li { font-size: 1.0625rem; }
  .article-callout,
  .article-calc { padding: 18px; }
  .quick-answer { margin: 32px 0 36px; border-radius: 14px; }
  .article-pullquote { margin: 32px 0; }
  .article-sources { margin-top: 40px; }
  .article-row { grid-template-columns: 1fr; gap: 14px; }
  .article-endcap { margin-bottom: 44px; padding: 30px 24px; border-radius: 16px; }
  footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
