/* Открытые страницы: главная на 10 языках, уроки, конфиденциальность (новый вид 2026-10-19).
   Цвета и размеры — только из дизайн-системы клуба /club/ds.css (подключается перед этим файлом): белая поверхность,
   плоско и тонко, блоки «из воздуха», главное — чёрным, один тон бренда — зелёное сукно. Стол демо-раздачи — игровой. */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ds-top-h) + 12px); }
body { display: block; font-size: var(--ds-fs-m); line-height: 1.55; overflow-x: clip; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
a { color: var(--ds-accent); }
.wrap, .nav, .hero, .sec, .doc, .foot { padding-left: max(var(--ds-gut-m), env(safe-area-inset-left, 0px)); padding-right: max(var(--ds-gut-m), env(safe-area-inset-right, 0px)); }

/* ---------- шапка ---------- */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: var(--ds-top-h); background: var(--ds-bg); border-bottom: 1px solid var(--ds-line);
  padding-left: max(var(--ds-gut-m), calc(50vw - 600px)); padding-right: max(var(--ds-gut-m), calc(50vw - 600px)); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ds-ink); text-decoration: none; font-size: var(--ds-fs-l); font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.logo b { color: var(--ds-muted); font-weight: 500; }
.logo-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: var(--ds-r); background: var(--ds-accent); color: var(--ds-on-ink); font-size: 15px; }
.nav-links { display: flex; gap: 22px; align-self: stretch; }
.nav-links a { display: flex; align-items: center; color: var(--ds-muted); font-weight: 600; text-decoration: none; font-size: var(--ds-fs-m); }
.nav-links a:hover { color: var(--ds-ink); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.langs-inline { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.langs-inline a { font-size: 0; text-decoration: none; padding: 4px 5px; border-radius: var(--ds-r-s); color: var(--ds-faint); }
.langs-inline a::before { content: attr(hreflang); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.langs-inline a:hover { color: var(--ds-ink); }
.langs-inline a[aria-current] { color: var(--ds-ink); }
.nav-login { color: var(--ds-accent); font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--ds-ink); color: var(--ds-on-ink); text-decoration: none; font-weight: 700;
  border-radius: var(--ds-r-l); padding: 12px 22px; border: 1px solid var(--ds-ink); cursor: pointer; }
.btn:hover { opacity: .88; background: var(--ds-ink); }
.btn.small { padding: 7px 14px; font-size: var(--ds-fs); border-radius: var(--ds-r); }
.btn.big { padding: 14px 26px; font-size: var(--ds-fs-l); }
.ghost-btn { background: var(--ds-bg); color: var(--ds-ink); border-color: var(--ds-line-2); }
.ghost-btn:hover { background: var(--ds-soft); }

/* ---------- первый экран ---------- */
.hero { max-width: calc(1200px + 2 * var(--ds-gut-m)); margin: 0 auto; padding-top: 64px; padding-bottom: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; }
.kicker { color: var(--ds-accent); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); letter-spacing: -.03em; line-height: 1.04; }
.sub { color: var(--ds-muted); font-size: var(--ds-fs-l); margin: 18px 0 28px; max-width: 54ch; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-lead { font-weight: 700; margin: 0; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tg-login { min-height: 46px; }
.cta-note { color: var(--ds-muted); font-size: 13.5px; margin: 0; max-width: 54ch; }
.bot-login { background: none; border: 0; padding: 0; color: var(--ds-accent); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.bot-login:hover { background: none; }
#botWait a { font-weight: 700; }

/* ---------- настоящая раздача (demo.js) ---------- */
.demo { display: flex; flex-direction: column; gap: 10px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.demo-head b { font-size: var(--ds-fs-m); }
.demo-head span { color: var(--ds-muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.demo-ask { margin: 0; font-size: var(--ds-fs); min-height: 44px; }
.demo-note { color: var(--ds-faint); font-size: 12.5px; margin: 10px 0 0; }
.hero-demo { min-width: 0; }
.demo .pt.pt2 { width: 100%; max-width: none; margin: 6px 0 2px; }
body > main { padding: 0; max-width: none; }   /* стили стола клуба (workfield.css) задают поле страницы клуба — на главной своё */
.demo-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.da { position: relative; height: 58px; border: 0; border-radius: var(--ds-r-l); color: var(--ds-on-ink); font-weight: 800; font-size: var(--ds-fs-m); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; overflow: hidden; padding: 0; }
.da:hover { filter: brightness(1.08); }
.da small { font-weight: 600; font-size: 12px; opacity: .85; }
.da kbd { position: absolute; right: 8px; top: 5px; font: 600 10.5px var(--ds-font); opacity: .55; }
.da em { position: absolute; left: 0; right: 0; bottom: 0; height: 21px; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--ds-bg); color: var(--g-ink); }
.da.f { background: var(--ds-fold); } .da.c { background: var(--ds-call); } .da.r { background: var(--ds-raise); }
.da.none { background: none; border: 1px dashed var(--ds-line-2); color: var(--ds-faint); font-size: 12px; font-weight: 600; cursor: default; text-align: center; }
.demo-acts.done .da:not(.none) { filter: saturate(.25) brightness(1.2); cursor: default; }
.demo-acts.done .da small { visibility: hidden; }
.demo-acts.done .da.pick { filter: none; outline: 3px solid var(--g); outline-offset: 2px; }
.demo-next { min-height: 38px; display: flex; justify-content: center; align-items: center; }
.demo-done { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 6px 0 4px; }
.demo-done b { font-size: var(--ds-fs-xl); letter-spacing: -.01em; }
.demo-done p { margin: 0 0 6px; color: var(--ds-muted); max-width: 46ch; }

/* ---------- разделы «из воздуха» ---------- */
.sec { max-width: calc(1200px + 2 * var(--ds-gut-m)); margin: 0 auto; padding-top: 40px; padding-bottom: 40px; }
.sec h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -.02em; margin-bottom: 16px; }
.lead { color: var(--ds-muted); font-size: var(--ds-fs-l); max-width: 72ch; margin: -6px 0 22px; }
.lead.small { font-size: var(--ds-fs); margin: 16px 0 22px; }
.hh-rooms { margin: 22px 0 0; font-weight: 600; }
.hh h2 { font-size: clamp(26px, 3.4vw, 36px); max-width: 26ch; }
.sub-h { font-size: var(--ds-fs-l); margin: 36px 0 12px; }
.more { font-weight: 700; text-decoration: none; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ds-ink); }
.rows li { display: grid; grid-template-columns: 240px minmax(0, 1fr) 220px; gap: 28px; padding: 18px 0; border-bottom: 1px solid var(--ds-line); align-items: baseline; }
.rows li b { font-size: var(--ds-fs-l); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rows li p { margin: 0; color: var(--ds-muted); max-width: 70ch; }
.rows li span { font-size: 13px; font-weight: 600; text-align: right; color: var(--ds-accent); }
.cols3, .cols4, .cols5 { display: grid; gap: 36px; list-style: none; margin: 0; padding: 0; }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.cols3 > *, .cols4 > *, .cols5 > * { border-top: 2px solid var(--ds-ink); padding-top: 12px; display: grid; gap: 4px; align-content: start; }
.cols3 h3, .cols4 h3 { font-size: var(--ds-fs-l); margin: 4px 0 4px; }
.cols3 p, .cols4 p { margin: 0; color: var(--ds-muted); font-size: var(--ds-fs); }
.cols4 > article > b, .live-stats b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.live-stats span { color: var(--ds-muted); font-size: 13.5px; }
.steps li b { font-size: var(--ds-fs-l); } .steps li span { color: var(--ds-muted); }
.steps { counter-reset: step; } .steps li::before { counter-increment: step; content: counter(step); font-size: 13px; font-weight: 800; color: var(--ds-accent); }
.path-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--ds-line); }
.path-list li { padding: 12px 14px 0 0; display: grid; gap: 4px; align-content: start; position: relative; }
.path-list li::before { content: ""; position: absolute; left: 0; top: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--ds-bg); border: 2px solid var(--ds-accent); }
.path-list li:last-child::before { background: var(--ds-accent); }
.path-list b { font-size: var(--ds-fs-m); } .path-list span { color: var(--ds-muted); font-size: 13px; line-height: 1.4; }
.course-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; border-top: 2px solid var(--ds-ink); }
.course-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--ds-line); color: var(--ds-ink); text-decoration: none; }
.course-item:hover b { color: var(--ds-accent); }
.course-item i { font-style: normal; font-size: 22px; line-height: 1.2; }
.course-item span { display: grid; gap: 2px; } .course-item b { font-size: var(--ds-fs-m); } .course-item small { color: var(--ds-muted); font-size: 13.5px; }
.live .cols3 { margin-top: 28px; }
.live h3.top-week { margin-top: 18px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--ds-line); font-size: var(--ds-fs); }
.feed li:last-child { border-bottom: 0; }
.feed .nm { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .lv { font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: var(--ds-pill); background: var(--ds-soft); color: var(--ds-muted); white-space: nowrap; }
.feed .lv.advanced, .feed .lv.r2, .feed .lv.r3 { background: var(--ds-info-soft); color: var(--ds-info-ink); }
.feed .lv.r4 { background: var(--ds-ok-soft); color: var(--ds-ok-ink); }
.feed .lv.pro, .feed .lv.r5, .feed .lv.r6 { background: var(--ds-accent-soft); color: var(--ds-accent); }
.feed .sc { font-weight: 700; min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }
.feed .ago { color: var(--ds-muted); font-size: 13px; min-width: 84px; text-align: right; white-space: nowrap; }
.feed.top { counter-reset: top; }
.feed.top li::before { counter-increment: top; content: counter(top); width: 20px; font-size: 13px; font-weight: 700; color: var(--ds-faint); flex: none; }
.feed.top li:first-child::before { color: var(--ds-accent); }
.feed-empty { color: var(--ds-muted); margin: 0; }
.faq details { border-bottom: 1px solid var(--ds-line); padding: 14px 0; max-width: 860px; }
.faq details:first-of-type { border-top: 2px solid var(--ds-ink); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--ds-fs-m); }
.faq details p { color: var(--ds-muted); margin: 10px 0 0; }
.fair p { color: var(--ds-muted); max-width: 72ch; margin: 0 0 22px; }
.fair h2 { font-size: var(--ds-fs-xl); }

.foot { border-top: 1px solid var(--ds-line); text-align: center; padding-top: 26px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); color: var(--ds-muted); font-size: 14px; }
.foot a { color: var(--ds-muted); }
.foot-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-bottom: 10px; }
.foot-langs a { text-decoration: none; }
.foot-langs a[aria-current] { color: var(--ds-ink); font-weight: 700; }

/* ---------- текстовые страницы: конфиденциальность и уроки ---------- */
.doc { max-width: calc(780px + 2 * var(--ds-gut-m)); margin: 0 auto; padding-top: 28px; padding-bottom: 48px; }
.doc h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin-bottom: 6px; }
.doc-date { color: var(--ds-muted); margin: 0 0 24px; }
.doc section { border-top: 1px solid var(--ds-line); padding: 16px 0; }
.doc h2 { font-size: var(--ds-fs-l); margin-bottom: 6px; }
.doc section p { margin: 0; }
.nav-link { color: var(--ds-ink); text-decoration: none; font-weight: 600; font-size: var(--ds-fs-m); padding: 6px 4px; }
.nav-link:hover { color: var(--ds-accent); }
.crumbs { font-size: 14px; color: var(--ds-muted); margin-bottom: 10px; }
.crumbs a { color: var(--ds-muted); }
.lesson h1 { margin-bottom: 8px; }
.lead .lv { display: inline-block; font-size: 12.5px; font-weight: 700; background: var(--ds-soft); border-radius: var(--ds-pill); padding: 1px 10px; color: var(--ds-ink); }
.lesson section p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; }
.lesson section p:last-child { margin-bottom: 0; }
.lesson .intro { font-size: 18px; line-height: 1.6; margin: 4px 0 18px; }
.lesson section h2 { font-size: 21px; margin: 0 0 10px; }
.lesson section h2:not(:first-child) { margin-top: 18px; }
.lesson h2 { font-size: 22px; margin: 18px 0 6px; }
.lc-row { display: inline-flex; gap: 3px; vertical-align: middle; margin: 0 2px; }
.lc { display: inline-block; background: var(--ds-card); border: 1px solid var(--ds-card-edge); border-radius: 5px; padding: 0 5px; font-weight: 800; font-size: 15px; line-height: 1.5; }
.lc.s { color: var(--ds-cs); } .lc.h { color: var(--ds-ch); } .lc.d { color: var(--ds-cd); } .lc.c { color: var(--ds-cc); }
.learn-cta { border-left: 3px solid var(--ds-accent); padding: 4px 0 4px 16px; margin: 22px 0; display: grid; gap: 8px; justify-items: start; }
.learn-cta b { font-size: 19px; } .learn-cta p { margin: 0; color: var(--ds-muted); }
.lesson-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; margin: 10px 0 30px; }
.learn-list { display: grid; margin: 8px 0 20px; border-top: 2px solid var(--ds-ink); }
.learn-item { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-decoration: none; color: var(--ds-ink); border-bottom: 1px solid var(--ds-line); padding: 12px 0; }
.learn-item:hover b { color: var(--ds-accent); }
.learn-item i { grid-row: 1 / 3; font-style: normal; font-size: 26px; }
.learn-item b { font-size: 17px; } .learn-item span { color: var(--ds-muted); font-size: 14px; }
.learn-item em { grid-column: 2; font-style: normal; color: var(--ds-ink); font-size: 14px; line-height: 1.5; margin-top: 4px; }

/* ---------- телефон ---------- */
@media (max-width: 999px) {
  .nav { gap: 14px; }
  .nav-links { display: none; }
  /* телефон: тренажёр — сразу под заголовком, описание и вход — под ним */
  .hero { display: flex; flex-direction: column; gap: 0; padding-top: 24px; }
  .hero-text { display: contents; }
  .hero .kicker { order: 1; } .hero h1 { order: 2; margin-bottom: 18px; } .hero-demo { order: 3; margin-bottom: 28px; }
  .hero .sub { order: 4; margin-top: 0; } .hero .cta { order: 5; }
  .rows li { grid-template-columns: 1fr; gap: 4px; }
  .rows li span { text-align: left; }
  .cols3, .cols4, .cols5 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .path-list { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 18px; }
  .course-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .langs-inline { display: none; }
  .hero h1 { font-size: 34px; }
  .sub { font-size: var(--ds-fs-m); }
  .cols3 { grid-template-columns: 1fr; }
  .path-list { grid-template-columns: 1fr 1fr; }
  .demo .pt.pt2 { aspect-ratio: 1 / 1.05; --bw: 10cqw; --hw: 12cqw; --ow: 6cqw; --kw: 3.6cqw; }
  .demo .pt2 .pt-plate { min-width: 17cqw; padding: .8cqw 1.8cqw; border-radius: 1.6cqw; }
  .demo .pt2 .pt-p { font-size: max(11px, 3.1cqw); } .demo .pt2 .pt-s { font-size: max(10px, 2.7cqw); }
  .demo .pt2 .pt-bet, .demo .pt2 .pt-pot { font-size: max(11px, 3cqw); }
  .demo .pt2 .pt-act { font-size: max(9px, 2.4cqw); }
  .demo .pt2 .pt-brand { font-size: 9cqw; }
  .demo .pt-badge { font-size: max(11px, 3cqw); padding: 1cqw 3cqw; }
  .da { height: 62px; }
}
