:root {
  color-scheme: dark;
  --ink: #edf4e9;
  --muted: #aebfb3;
  --accent: #bde9b3;
  --ground: #101812;
  --panel: #17231a;
  --line: #35473b;
  --sans: 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --serif: 'Iowan Old Style', Georgia, serif;
  font: 16px/1.6 var(--sans);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
body { margin: 0; background: var(--ground); color: var(--ink); }
a { color: inherit; text-underline-offset: .25em; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--ground); }
.shell { width: min(1220px, calc(100% - clamp(32px, 9vw, 128px))); margin-inline: auto; }
.site-header, footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; }
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -.02em; white-space: nowrap; }
nav, .language { display: flex; align-items: center; gap: clamp(10px, 2.6vw, 30px); }
nav { font-size: 14px; }
nav a { text-decoration: none; }
nav a:hover { color: var(--accent); }
.language { gap: 3px; }
.language a { display: grid; place-items: center; min-width: 44px; min-height: 44px; color: var(--muted); }
.language [aria-current] { color: var(--accent); text-decoration: underline; }
.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); align-items: end; gap: clamp(22px, 4vw, 58px); padding-block: clamp(40px, 6.4vw, 94px) clamp(32px, 5vw, 70px); }
h1, h2, p { margin: 0; }
h1, .benchmark h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(40px, 6.2vw, 92px); line-height: .99; }
:lang(ru) h1 { font-size: clamp(39px, 5.2vw, 75px); }
h1 em { color: var(--accent); }
.hero-copy p, .benchmark-heading p { color: var(--muted); max-width: 39ch; }
.primary { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; margin-top: 22px; padding: 8px 17px; border: 1px solid transparent; border-radius: 6px; background: var(--accent); color: var(--ground); text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color 180ms ease; }
.primary:hover { background: #ddf0d9; }
.replay { overflow: clip; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.section-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 18px; padding: 8px clamp(14px, 2vw, 27px); border-bottom: 1px solid var(--line); }
.section-bar h2 { font-size: 17px; font-weight: 700; }
.section-bar a { display: grid; align-items: center; min-height: 44px; font-size: 13px; color: var(--muted); }
iframe { display: block; width: 100%; height: clamp(480px, 42vw, 610px); border: 0; }
.benchmark { max-width: 1040px; margin: clamp(70px, 10vw, 140px) auto; }
.benchmark-heading { display: grid; grid-template-columns: 1.25fr 1fr; align-items: end; gap: 24px; margin-bottom: 32px; }
.benchmark h2 { font-size: clamp(32px, 4.5vw, 63px); line-height: 1.04; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { padding: 0 0 12px; text-align: left; color: var(--muted); font-size: 13px; }
th, td { padding: 13px 10px; border-block-start: 1px solid var(--line); text-align: right; }
th:first-child { padding-inline-start: 0; text-align: left; }
th:last-child, td:last-child { padding-inline-end: 0; }
thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
tbody tr:first-child td { color: var(--accent); font-weight: 700; }
tbody small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.benchmark details { border-top: 1px solid var(--line); }
.benchmark summary { cursor: pointer; padding: 13px 0; }
.benchmark details p { margin-bottom: 12px; max-width: 73ch; color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

.playback { background: var(--panel); }
.player { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(225px, 1fr); gap: clamp(14px, 2.6vw, 28px); padding: clamp(12px, 2.2vw, 26px); }
.capture { min-width: 0; margin: 0; }
.capture img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; border-radius: 7px; background: #edede4; }
.capture img[data-animation] { animation: expose 620ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes expose { from { opacity: .48; clip-path: inset(0 9% 0 0 round 7px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 7px); } }
figcaption { margin-top: 10px; color: var(--muted); min-height: 2.9em; font-size: 13px; }
.player-controls { min-width: 0; }
.player-controls h1 { font: 700 18px/1.25 var(--sans); letter-spacing: -.02em; }
.player-controls > p { margin: 7px 0 16px; color: var(--muted); font-size: 13px; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 53px; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--muted); text-align: left; cursor: pointer; }
.steps button[aria-current] { color: var(--ink); font-weight: 650; }
.steps button:hover, .steps button[aria-current] span:first-child { color: var(--accent); }
.steps button span:first-child { font-size: 12px; font-variant-numeric: tabular-nums; }
#play { cursor: pointer; margin-top: 14px; }

@media (max-width: 760px) {
  .hero, .benchmark-heading, .player { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  iframe { height: 700px; }
  .player .capture { order: 1; }
  .steps button { min-height: 44px; }
}
@media (max-width: 430px) {
  .site-header { flex-wrap: wrap; gap: 0 8px; }
  .hero h1 { font-size: clamp(31px, 10vw, 48px); }
  iframe { height: 630px; }
  th, td { padding-inline: 5px; font-size: 13px; }
  thead th, tbody small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .capture img[data-animation] { animation: none; }
  .primary { transition: none; }
}
