/* Сайт таймера: главная о продукте, вход и регистрация, личный кабинет, документы.
   Цвета, кнопки и карточки — из control.css (подключается первым). */
html { scroll-behavior: smooth; }
a { color: var(--mint); }
/* Шапка и подвал — семейства OKVideo (brand/family.css, _brand/family/README.md «Шапка»): плашка слева,
   «Продукты» справа, колонка 1080 px, не липкая и без подложки. Здесь — только тёмные цвета кита
   (восемь переменных) и своё в .okv-topbar__extra. */
.okv-family, .okv-footer { --surface: #121a30; --surface-subtle: #18223d; --surface-accent: #133a36; --text: #e8ecf6; --muted: #93a0bd; --line: #26314f; --accent: #43e0b2; --brand-mint: #43e0b2; }
/* Кнопка «Продукты» меряется в rem и шрифтом канона (okvideo-tokens.css --font-sans): корень 16 px,
   как у всех продуктов, иначе кнопка выходит мельче эталона (приёмка check-header.mjs). Текст
   страницы остаётся своим — 15 px Onest из control.css на body. */
html { font-size: 16px; }
.okv-family { font-family: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif; }
.site-nav { display: flex; gap: 18px; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.site-nav a:hover { color: var(--text); }
.site-auth { display: flex; gap: 8px; align-items: center; }
.site-auth .who { color: var(--muted); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1040px) { .okv-topbar .site-nav { display: none; } }
@media (max-width: 620px) { .site-auth .who { max-width: 150px; } }
.btn-lg { min-height: 46px; padding: 10px 20px; font-size: 16px; border-radius: 10px; }
.site-main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 56px; }
.site-foot { width: min(1080px, calc(100% - 32px)); margin: 0 auto; border-top: 1px solid var(--line); }
@media (max-width: 620px) { .site-main, .site-foot { width: min(calc(100% - 20px), 1080px); } }

/* Главная */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; letter-spacing: -.01em; }
.hero h1 em { font-style: normal; color: var(--mint); }
.lead { font-size: 18px; line-height: 1.5; color: #c9d2e6; margin: 18px 0 24px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.demo-screen { background: #000; border: 10px solid #1a2238; border-radius: 16px; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); position: relative; }
.demo-display { position: absolute; inset: 0; }
.demo-cap { color: var(--muted); font-size: 14px; margin: 12px 4px 0; }
.site-section { padding: 36px 0; }
.site-section > h2 { font-size: 28px; margin-bottom: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 17px; }
.feature p { margin: 0; color: #c2cbe0; line-height: 1.5; }
.feature .ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(67, 224, 178, .12); color: var(--mint); font-weight: 800; margin-bottom: 10px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kind { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.kind h3 { margin: 0 0 8px; font-size: 20px; }
.kind p { margin: 0 0 8px; color: #c2cbe0; line-height: 1.5; }
.kind .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--mint); color: var(--mint-ink); margin-bottom: 10px; }
.kind .tag.tag-alt { background: #2b3a63; color: var(--text); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; counter-increment: s; line-height: 1.5; color: #c2cbe0; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); font-weight: 800; margin-bottom: 10px; }
.steps b { color: var(--text); display: block; margin-bottom: 4px; }
.cta-bottom { text-align: center; padding: 48px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; margin-top: 24px; }
.cta-bottom h2 { font-size: 26px; margin-bottom: 8px; }
.cta-bottom p { color: var(--muted); margin: 0 0 18px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; gap: 28px; }
  .kinds, .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .lead { font-size: 16px; }
}

/* Вход и регистрация */
.auth-main { display: grid; place-items: start center; padding: 6vh 16px 48px; }
.auth-card { width: min(440px, 100%); display: grid; gap: 14px; padding: 24px; }
.auth-card h1 { font-size: 24px; }
.auth-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field input, .field select, .field textarea { font-weight: 400; min-height: 42px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 16px; width: 100%; }
.field textarea { min-height: 0; font-size: 14px; font-family: ui-monospace, Consolas, monospace; resize: vertical; }
.field .hint-text { font-weight: 400; }
.field > span:first-child:not(.pass-wrap) { line-height: 1.35; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 76px; }
.pass-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.auth-error { color: var(--bad); font-weight: 600; min-height: 1.4em; }
.auth-note { padding: 10px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); line-height: 1.45; }
.auth-alt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 14px; }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #c2cbe0; line-height: 1.4; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--mint); }

/* Личный кабинет */
.app-main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 56px; }
@media (max-width: 620px) { .app-main { width: min(calc(100% - 20px), 1080px); } }
.app-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.app-bar h1 { font-size: 24px; margin-right: auto; }
.app-count { color: var(--muted); font-size: 14px; }
.kind-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(67, 224, 178, .14); color: var(--mint); vertical-align: middle; margin-right: 8px; }
.kind-badge.is-timer { background: #2b3a63; color: #d6def2; }
.show-online { color: var(--mint); font-weight: 600; }
.empty-card { text-align: center; padding: 36px 20px; display: grid; gap: 12px; justify-items: center; }
.empty-card p { margin: 0; color: #c2cbe0; max-width: 34em; line-height: 1.5; }
.more { position: relative; }
.more-menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; min-width: 210px; display: grid; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.more-menu button { text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 14px; }
.more-menu button:hover, .more-menu button:focus-visible { background: #24304f; outline: none; }
.more-menu .is-danger { color: #ff9d9d; }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind-pick label { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; font-size: 13px; color: var(--muted); }
.kind-pick label b { color: var(--text); font-size: 15px; }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick label:has(input:checked) { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint) inset; }
.kind-pick label:has(input:focus-visible) { outline: 2px solid var(--mint); outline-offset: 2px; }
.account-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text); }
.account-dialog::backdrop { background: rgba(5, 8, 18, .7); }
.account-dialog section { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.account-dialog section:first-of-type { border-top: 0; }
.account-dialog h3 { margin: 0; font-size: 15px; }
.btn-danger { background: #4a1414; border-color: #7a2323; color: #ffe1e1; }
.btn-danger:hover:not(:disabled) { background: #5c1a1a; border-color: #973030; }
@media (max-width: 560px) { .kind-pick { grid-template-columns: 1fr; } }

/* Документы */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 16px 56px; line-height: 1.6; color: #d3daea; }
.doc h1 { font-size: 30px; color: var(--text); margin-bottom: 8px; }
.doc h2 { font-size: 19px; color: var(--text); margin: 28px 0 8px; }
.doc .meta { color: var(--muted); font-size: 14px; }
.doc li { margin: 4px 0; }
.doc { overflow-wrap: break-word; }
.doc code { overflow-wrap: anywhere; }

/* Живое демо на главной: экран спикера в рамке 16:9 и пульт во всю колонку (оба — свои страницы в iframe) */
.demo-live__lead { font-size: 17px; line-height: 1.55; color: #c9d2e6; max-width: 46em; margin: 0 0 18px; }
.demo-live__start { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-live__row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 16px; }
.demo-live__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.demo-live__side h3 { margin: 0 0 6px; font-size: 18px; }
.demo-live__side p { margin: 0 0 10px; color: #c2cbe0; line-height: 1.5; }
.demo-live__links { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 600; }
.demo-live__pult { display: block; width: 100%; height: min(880px, 88vh); border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
@media (max-width: 900px) { .demo-live__row { grid-template-columns: 1fr; } }
