/* qrcodeapp.org — сайт Scan QR. Токены и вёрстка — макет «Scan QR — Web», страница «Сайт» (Main.dc.html, L2, L4).
   Тема: по умолчанию ТЁМНАЯ (владелец 28.09: «по дефолту всё в тёмной, а не только тёмная»), светлая — переключателем
   в шапке (js/theme.js, выбор в localStorage; настройки системы не учитываются). Акцент «cyan». Шрифты системные:
   сторонних загрузок нет (sites/README.md). Без инлайн-стилей — CSP style-src 'self'. */
:root {
  --acc: #00F5FA; --accf: #00BFC2; --acci: #00F5FA; --onacc: #001A1C; --acct: #00F5FA2E;
  --bg: #0B0B0D; --sf: #18181B; --lb: #F4F4F6; --lb2: #A6A6AF; --lb3: #7E7E88;
  --sep: rgba(255,255,255,.1); --fill: rgba(120,120,128,.26);
  --hdr: rgba(24,24,27,.84); --hdr-h: 72px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --acc: #00787A; --accf: #00787A; --onacc: #fff; --acct: #00787A1F;
  --bg: #F5F5F7; --sf: #fff; --lb: #111114; --lb2: #5B5B63; --lb3: #8A8A93;
  --sep: rgba(0,0,0,.09); --fill: rgba(120,120,128,.12);
  --hdr: rgba(255,255,255,.84);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 16px); }   /* якоря не уходят под закреплённую шапку */
body {
  margin: 0; background: var(--bg); color: var(--lb);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", sans-serif;
  letter-spacing: -.01em; -webkit-font-smoothing: antialiased;
}
a { color: var(--acc); }
svg.i { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; display: block; }
svg.i .f { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* подвал — внизу окна, когда страница короче экрана (владелец 29.09) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* шапка — закреплена сверху (владелец 29.09: как у NoirPanther), полупрозрачная с размытием */
.hdr { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: var(--hdr-h); padding: 0 max(20px, calc(50% - 560px));
  background: var(--hdr); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--sep); }
.brandlink { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--lb); text-decoration: none; min-width: 0; }
.logo { width: 30px; height: 30px; border-radius: 7px; background: #031014; overflow: hidden; flex: none;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.14); }
.logo svg { display: block; width: 30px; height: 30px; }
.brand { font-weight: 700; font-size: 17px; }
.nav { display: flex; gap: 26px; align-items: center; margin-right: 12px; }
.nav a { color: var(--lb2); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--lb); }
/* выбор языка — выпадающий список (владелец 29.09: языков станет больше двух); закрытие по клику мимо — js/ui.js */
.drop { position: relative; flex: none; margin-right: 6px; }
.drop summary { list-style: none; height: 36px; padding: 0 12px 0 9px; border-radius: 18px; display: flex; align-items: center; gap: 6px;
  cursor: pointer; color: var(--lb2); font-size: 13px; font-weight: 700; letter-spacing: .04em; -webkit-user-select: none; user-select: none; }
.drop summary::-webkit-details-marker { display: none; }
.drop summary:hover, .drop[open] summary { color: var(--lb); background: var(--fill); }
.drop summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.drop-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 172px; padding: 6px; display: grid; gap: 2px; z-index: 5;
  background: var(--sf); border: 1px solid var(--sep); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.drop-list a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--lb); font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.drop-list a:hover, .drop-list a:focus-visible { background: var(--fill); }
.drop-list a.on { color: var(--acc); }
.drop-list a.on::after { content: "✓"; float: right; margin-left: 16px; }
.theme { width: 36px; height: 36px; border-radius: 18px; border: 0; background: transparent; color: var(--lb2);
  display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; margin-right: 2px; }
.theme:hover { color: var(--lb); background: var(--fill); }
.theme .sun { display: block; }
.theme .moon { display: none; }
:root[data-theme="light"] .theme .sun { display: none; }
:root[data-theme="light"] .theme .moon { display: block; }
.getapp { height: 36px; border-radius: 18px; padding: 0 14px; display: flex; align-items: center; background: var(--acct);
  color: var(--acc); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* разделы */
.sec { max-width: 1120px; margin: 0 auto; padding: 40px 0 56px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); }
h1 { margin: 0; font-size: 60px; line-height: 1.04; letter-spacing: -.02em; }
h2 { font-size: 38px; line-height: 1.12; margin: 10px 0 26px; letter-spacing: -.01em; }
h2 .short { display: none; }
.sub { color: var(--lb2); font-size: 17px; margin: 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: start; }
.cols h2 { margin-bottom: 12px; }
.card { background: var(--sf); border: 1px solid var(--sep); border-radius: 22px; }

/* первый экран */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; padding: 72px 0 64px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.lead { font-size: 20px; color: var(--lb2); line-height: 1.45; max-width: 500px; margin: 0; }
.note { font-size: 14px; color: var(--lb3); margin: 0; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; } /* значки вровень по верху: подпись «Скоро» висит под своим значком и не сдвигает соседний */
.store { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; }
.store img { height: 46px; width: auto; display: block; }
.store.soon img { opacity: .45; filter: grayscale(1); }
.store.soon span { font-size: 12px; color: var(--lb3); }
.hero-art { display: flex; justify-content: center; }
.phone { width: 300px; height: 620px; border-radius: 48px; border: 10px solid #1C1C1E; position: relative; overflow: hidden; flex: none;
  box-shadow: 0 40px 80px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.08);
  background: radial-gradient(130% 75% at 70% 12%, #5d6b73 0%, #343b41 38%, #171a1d 70%, #0b0c0d 100%); }
.poster { position: absolute; left: 50%; top: 110px; margin-left: -66px; width: 132px; background: #f6f3ec; border-radius: 8px;
  padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; transform: rotate(-3deg);
  box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.poster-title { font-size: 9px; font-weight: 800; letter-spacing: .08em; color: #2a2620; }
.mock-qr { display: block; width: 96px; height: 96px; fill: #000; }
.mock-qr-bg { fill: #fff; }
.mock-qr-eye { fill: none; stroke: #000; stroke-width: 1; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; border-radius: 30px; padding: 16px; color: #fff;
  background: rgba(44,44,48,.55); -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: .5px solid rgba(255,255,255,.16); box-shadow: 0 12px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.14); }
.grab { width: 30px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); margin: 0 auto 10px; }
.sheet-row { display: flex; gap: 10px; align-items: center; }
.sheet-ic { width: 38px; height: 38px; border-radius: 11px; background: #00F5FA2E; color: #00F5FA; display: flex; align-items: center; justify-content: center; }
.sheet-kind { font-size: 11px; color: rgba(255,255,255,.6); font-weight: 600; }
.sheet-value { font-size: 18px; font-weight: 700; }
.sheet-btn { margin-top: 12px; height: 40px; border-radius: 20px; background: #00BFC2; color: #001A1C; display: flex;
  align-items: center; justify-content: center; gap: 6px; font-weight: 600; font-size: 14px; }

/* возможности */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fcard { background: var(--sf); border: 1px solid var(--sep); border-radius: 22px; padding: 24px; }
.fic { width: 44px; height: 44px; border-radius: 13px; background: var(--acct); color: var(--acc); display: flex; align-items: center; justify-content: center; }
.fcard h3 { font-size: 18px; font-weight: 600; margin: 16px 0 0; letter-spacing: -.01em; }
.fcard p { color: var(--lb2); margin: 6px 0 0; font-size: 15px; }

/* как это работает */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.num { width: 34px; height: 34px; border-radius: 17px; background: var(--accf); color: var(--onacc); font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex: none; }
.step-t { font-weight: 600; font-size: 17px; }
.step-d { color: var(--lb2); font-size: 15px; }

/* Pro */
.pro { padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px;
  background: linear-gradient(135deg, var(--acct), var(--sf) 65%); }
.pro h2 { margin-bottom: 12px; }
.pro-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px; align-content: center; font-size: 16px; }
.pro-list li { display: flex; gap: 12px; align-items: center; }
.pro-list .chk { color: var(--acc); }
.pro-list .chk svg { stroke-width: 2.4; }

/* вопросы */
.faq { margin-top: 10px; }
.faq details { border-top: 1px solid var(--sep); padding: 18px 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { color: var(--lb3); }
.faq .ans { color: var(--lb2); margin-top: 8px; font-size: 15px; }
.faq .ans p { margin: 0; }

/* поддержка */
.form { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.form-intro { font-size: 15px; color: var(--lb2); margin: 0 0 6px; }
.form label { font-size: 13px; color: var(--lb2); margin-top: 4px; }
.form input, .form textarea { font: inherit; font-size: 15px; color: var(--lb); background: var(--bg); border: 1px solid var(--sep);
  border-radius: 12px; padding: 12px 14px; width: 100%; }
.form input { height: 48px; width: 100%; }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; }
.form-pair label { display: block; margin-bottom: 8px; }
.form textarea { min-height: 110px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--acc); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.btn { height: 50px; border-radius: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit;
  font-weight: 600; font-size: 16px; padding: 0 22px; border: 0; cursor: pointer; white-space: nowrap; }
.bp { background: var(--accf); color: var(--onacc); }
.btn:disabled { opacity: .6; cursor: default; }
#form-status { font-size: 14px; color: var(--lb2); }
#form-status.ok { color: var(--acc); }
#form-status.err { color: #D2461E; }

/* подвал */
.foot { background: var(--sf); border-top: 1px solid var(--sep); padding: 40px max(20px, calc(50% - 560px)) 30px; color: var(--lb2); font-size: 14px; }
.foot-main { display: flex; align-items: center; gap: 28px; }
.foot-text { flex: 1; }
.foot-tag { font-size: 15px; color: var(--lb); }
.foot-copy { font-size: 13px; color: var(--lb3); margin-top: 6px; }
.foot-copy a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot-links { display: flex; gap: 16px; }
.foot a { color: var(--lb2); }
.fine { font-size: 12px; color: var(--lb3); margin: 22px 0 0; }

/* юридические страницы */
.legal-wrap { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; padding: 56px 0 80px; }
.toc { position: sticky; top: calc(var(--hdr-h) + 24px); align-self: start; max-height: calc(100vh - var(--hdr-h) - 48px); overflow: auto; }
.toc-title { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-bottom: 6px; }
.toc a { display: block; color: var(--lb3); font-size: 14px; line-height: 1.35; padding: 7px 0 7px 12px; text-decoration: none;
  border-left: 2px solid var(--sep); transition: color .15s ease, border-color .15s ease; }
.toc a:hover { color: var(--lb); }
.toc a.on { color: var(--lb2); border-left-color: var(--lb3); }      /* раздел сейчас на экране */
.toc a.now { color: var(--acc); border-left-color: var(--acc); font-weight: 600; }   /* его сейчас читают */
.legal { min-width: 0; }
.legal h1 { font-size: 40px; line-height: 1.15; margin: 0 0 8px; }
.legal h2 { font-size: 21px; line-height: 1.3; margin: 34px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.62; color: var(--lb); }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal .meta { color: var(--lb2); font-size: 14px; margin-bottom: 22px; }
.legal .box { background: var(--acct); border-radius: 16px; padding: 16px 18px; margin: 0 0 8px; }
.legal .box p { margin: 0; }
.legal .caps { font-size: 15px; letter-spacing: .01em; color: var(--lb2); }   /* не меньше 11 pt: DL 446/85, ст. 21 i) */
.legal code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 14px; background: var(--fill); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.legal a { overflow-wrap: anywhere; }
.legal-note { background: var(--fill); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--lb2); margin: 0 0 20px; }
.legal-next { margin-top: 34px; font-weight: 600; }

/* 404 */
.nf { padding: 96px 0 120px; text-align: center; }
.nf h1 { font-size: 44px; margin-bottom: 16px; }

/* телефон и узкие экраны — макет L4 (390) */
@media (max-width: 860px) {
  :root { --hdr-h: 64px; }
  .nav { display: none; }
  .sec { padding: 20px 20px 28px; }
  .hero { grid-template-columns: minmax(0, 1fr); padding: 36px 20px 28px; gap: 28px; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; margin-bottom: 16px; }
  h2 .long { display: none; }
  h2 .short { display: inline; }
  .lead { font-size: 18px; }
  .phone { transform: scale(.82); transform-origin: top center; margin-bottom: -112px; }
  .features { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .form-pair { grid-template-columns: minmax(0, 1fr); }
  .cols, .pro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pro { padding: 24px; }
  .pro-list { grid-template-columns: minmax(0, 1fr); }
  .foot-main { flex-direction: column; align-items: flex-start; gap: 16px; }
  .legal-wrap { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 20px 56px; }
  .toc { display: none; }                  /* в макете телефона (L5) оглавления нет */
  .legal h1 { font-size: 30px; }
}
