@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("assets/manrope-latin.woff2") format("woff2"); }
/* Fallback sized close to Manrope, so the hero lines barely move when the font arrives. */
@font-face { font-family: "Manrope Fallback"; src: local("Arial"); size-adjust: 104%; ascent-override: 102%; descent-override: 29%; }
:root {
  color-scheme: dark;
  --bg: #0b0b0c; --panel: #151517; --ink: #f2efe9; --muted: #a8a49c; --line: #26262a;
  --accent: #d9b56e; --on-accent: #16120a; --focus: #f0d49a;
  --font: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 18px;
}
.top, .hero { --accent: #d9b56e; --focus: #f0d49a; } /* the header and hero stay dark in both themes */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f4ef; --panel: #ffffff; --ink: #141414; --muted: #55524c; --line: #e1ddd4;
  --accent: #7d5f27; --on-accent: #ffffff; --focus: #7d5f27;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; gap: 24px; }

/* Header floats over the hero */
.top { position: absolute; top: 0; left: 0; right: 0; z-index: 10; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .02em; text-decoration: none; color: #f2efe9; }
.brand img { filter: invert(1); }
nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
nav a { color: #e6e1d8; text-decoration: none; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center; }
nav a:hover { color: #fff; }
.nav-cta { color: var(--accent) !important; font-weight: 700; }
.theme { font: inherit; font-size: 14px; color: #f2efe9; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; backdrop-filter: blur(8px); white-space: nowrap; }

/* Hero: a still picture first, live layers fade in over it */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; align-items: flex-end; overflow: hidden; background: #0b0b0c; color: #f2efe9; isolation: isolate; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-live { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero.live .hero-live { opacity: 1; }
.logo-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .9s ease; }
.hero-logo canvas { opacity: 0; transition: opacity .9s ease; }
.hero.live .hero-logo canvas { opacity: 1; }
.hero.live .logo-still { opacity: 0; }
.capture .hero-still, .capture .logo-still { display: none; }
.capture-bg .hero-logo { display: none; }
.capture-logo, .capture-logo::after, .capture-logo .hero-live { background: transparent !important; } .capture-logo::after { display: none; }
html:has(.capture-logo), html:has(.capture-logo) body { background: transparent !important; }
.hero-bg { position: absolute; inset: 0; }
.hero-logo { position: absolute; right: 6%; top: 50%; width: min(42vw, 520px); aspect-ratio: 1; transform: translateY(-58%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,11,12,.15) 0%, rgba(11,11,12,.0) 40%, rgba(11,11,12,.72) 100%); pointer-events: none; }
.hero-copy { padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: #e9cf95; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.demo-tag { text-transform: none; letter-spacing: .02em; font-weight: 600; color: #d9d4ca; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 3px 10px; }
h1 { font-size: clamp(40px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; max-width: 12ch; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 56ch; margin: 0 0 26px; }
.hero .lead { color: #d9d4ca; }
.actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .2s ease; }
.hero .btn { background: #d9b56e; color: #16120a; }
.btn:hover { filter: brightness(1.06); } .btn:active { transform: scale(.98); }
.link { color: #f2efe9; font-weight: 600; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* Sections */
.block { padding: clamp(72px, 11vw, 128px) 0; }
.block.alt { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 28px; max-width: 20ch; }
h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.01em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.card p { color: var(--muted); margin: 0; }
.two { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 14px 0; }
.facts b { font-size: 22px; } .facts span { color: var(--muted); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--panel); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 16px 22px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child th, tr:last-child td { border-bottom: 0; }
th { width: 32%; color: var(--muted); font-weight: 500; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
.narrow { max-width: 560px; }
form { display: grid; gap: 10px; }
label { font-weight: 600; font-size: 15px; }
input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid #6e6a62; border-radius: 12px; padding: 12px 14px; min-height: 48px; }
input:focus-visible { border-color: var(--accent); }
:root[data-theme="light"] input { border-color: #8c877d; }
form .btn { margin-top: 8px; justify-self: start; }
.status { min-height: 1.6em; color: var(--muted); margin: 4px 0 0; }
.foot { padding: 36px 0 56px; color: var(--muted); font-size: 14px; }

/* Appear on scroll — only when JS runs and motion is allowed */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .hero-live, .logo-still, .hero-logo canvas { transition: none; } }

@media (max-width: 860px) {
  nav a:not(.nav-cta) { display: none; }
  .grid3, .two { grid-template-columns: 1fr; }
  /* Phone: logo about half the width, so the heading and the button fit in the first screen (Штаб 26.09). */
  .hero-logo { right: 50%; top: 24%; width: min(52vw, 240px); transform: translate(50%, -50%); }
  h1 { font-size: clamp(34px, 10.5vw, 46px); margin-bottom: 14px; }
  .eyebrow { margin-bottom: 10px; }
  .hero .lead { font-size: 16px; margin-bottom: 18px; }
  .hero-copy { padding-top: 0; padding-bottom: 28px; }
  .hero { align-items: flex-end; min-height: 100svh; }
}
@media (max-width: 480px) { .wrap { padding: 0 16px; } .theme { padding: 10px 12px; } th, td { padding: 14px 16px; } }
