:root {
  color-scheme: dark;
  --bg: #000;
  --fg: #fff;
  --muted: #a3a3a3;      /* 8.6:1 on #000, 7.9:1 on --card */
  --accent: #B5121B;     /* kluk cranberry: fills only (white on it 6.8:1); as text on black only 3.1:1 */
  --accent-hover: #9e1018;
  --card: #111;          /* brand ink */
  --line: #262626;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { line-height: 1.15; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: var(--fg); text-underline-offset: 3px; text-decoration-thickness: from-font; }
a, button { touch-action: manipulation; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 max(20px, env(safe-area-inset-left)); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 2; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* language blocks: Russian visible without JS, the rest switched by html[lang] */
.l { display: none; }
html[lang="ru"] .l[lang="ru"],
html[lang="en"] .l[lang="en"],
html[lang="zh-Hans"] .l[lang="zh-Hans"] { display: revert; }

/* header */
header { padding: 8px 0; border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 22%; }
.brand, .langs button { white-space: nowrap; }
.langs { display: flex; gap: 4px; }
.langs button {
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: none; border: 0; border-radius: 10px;
  color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--fg); background: #1f1f1f; }

/* buttons: one accent fill per block, secondary stays neutral */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  background: var(--accent); color: var(--fg); font-weight: 600; text-decoration: none;
  transition: background-color .15s ease-out, transform .16s ease-out;
}
.btn:active { transform: scale(.97); background: var(--accent-hover); }
.btn.alt { background: none; border-color: #3d3d3d; }
.btn.alt:active { background: #1a1a1a; }
.btn svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding: 64px 0 80px; }
.eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 20px; }
.lead { font-size: 20px; color: var(--muted); max-width: 32em; margin: 0 0 32px; }
.lead strong { color: var(--fg); font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; font-size: 15px; }
.facts li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

/* phone frame, same everywhere: 260-300px, at most 70% of a phone screen; radii concentric (48 = 38 + 10).
   The screenshot is cropped from the top (1:1.6) so the header and the translation card fill the frame, not the empty black bottom. */
.phone {
  margin: 0 auto; width: min(300px, 70vw); min-width: 240px;
  padding: 10px; border-radius: 48px; background: #151515;
  box-shadow: inset 0 0 0 1px #2e2e2e;
}
.phone img { width: 100%; aspect-ratio: 1 / 1.6; object-fit: cover; object-position: top; border-radius: 38px; background: #0b0b0b; }

/* sections */
.sec { padding: 0 0 88px; }
.sec > h2 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.02em; margin: 0 0 12px; }
.sec > .intro { color: var(--muted); max-width: 34em; margin: 0 0 40px; font-size: 18px; }

.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; }
.shots figure { margin: 0; text-align: center; }
.shots figcaption { max-width: 30em; margin: 24px auto 0; }
.shots h3 { font-size: 20px; margin: 0 0 8px; }
.shots figcaption p { color: var(--muted); margin: 0; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.01em; }
.card .sub { color: var(--muted); margin: 0 0 20px; }
.card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.card li { position: relative; padding-left: 26px; margin: 10px 0; }
.card li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 11px; height: 6px; border: solid var(--muted); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.req { margin: auto 0 24px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.req b { display: block; color: var(--fg); font-weight: 600; margin-bottom: 4px; }
.card .btn { align-self: flex-start; }

/* inner pages */
.page { padding: 48px 0 64px; max-width: 720px; }
.page h1 { font-size: 36px; letter-spacing: -0.02em; margin: 0 0 8px; }
.page h2 { font-size: 22px; margin: 36px 0 8px; }
.page ul { padding-left: 20px; }
.page li { margin: 8px 0; }
.page .date { color: var(--muted); }

footer { border-top: 1px solid var(--line); padding: 20px 0 max(32px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }

/* hover only where a real pointer exists, so it does not stick after a tap */
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
  .langs button:hover, footer a:hover { color: var(--fg); }
  .btn:hover { background: var(--accent-hover); }
  .btn.alt:hover { background: #1a1a1a; }
}

/* Chinese: taller leading, no negative tracking */
html[lang="zh-Hans"] body { line-height: 1.7; }
html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="zh-Hans"] h3 { letter-spacing: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 40px 0 64px; text-align: center; }
  .lead { margin-inline: auto; }
  .ctas, .facts { justify-content: center; }
  .shots { grid-template-columns: 1fr; }
  .products { grid-template-columns: 1fr; }
  .sec { padding-bottom: 64px; }
}
@media (max-width: 520px) {
  .lead { font-size: 18px; }
  .ctas .btn { flex: 1 1 100%; }
  .facts { flex-direction: column; align-items: center; }
  .card { padding: 24px 20px; }
  .card .btn { align-self: stretch; }
  .page h1 { font-size: 28px; }
}
/* very narrow phones: logo only, the name stays for screen readers */
@media (max-width: 360px) {
  .brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn:active { transform: none; }
}
