/* Значения перенесены из прототипов D2 (1440), T2 (планшет) и S2 (390). */
:root {
  --accent: #0F766E;
  --accent-hover: #115E59;
  --accent-light: #ECF7F4;
  --text: #14213D;
  --text-2: #3D4657;
  --muted: #5B6475;
  --line: #E6E8EC;
  --line-2: #CBD2DC;
  --bg: #F6F7F9;
  --danger: #B42318;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Onest', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.45; }
[hidden] { display: none !important; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; }

/* ---------- Оболочка ---------- */
.shell { display: flex; min-height: 100vh; }

.side {
  width: 248px; flex-shrink: 0; background: #FFFFFF; border-right: 1px solid var(--line);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 16px; font-weight: 800; font-size: 24px; letter-spacing: -0.6px; color: var(--accent); }
.side .rail-cat { display: none; }
.nav-item {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 10px;
  background: transparent; color: var(--text-2); text-decoration: none; font-size: 15px; font-weight: 500;
  border: 0; width: 100%; text-align: left; cursor: pointer;
}
.nav-item svg { flex-shrink: 0; }
.nav-item[aria-current="page"] { background: var(--accent-light); color: var(--accent); font-weight: 700; }
.nav-item[aria-disabled="true"] { color: #9AA1AE; cursor: default; }
.nav-item[aria-current="page"][aria-disabled="true"] { color: var(--accent); }
.nav-item .soon { display: none; }
.nav-sep { height: 1px; background: #EEF0F3; margin: 10px 0; }
.vizi-box { margin-top: 16px; display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px; }
.vizi-box svg { flex-shrink: 0; }
.vizi-box span { font-size: 13px; line-height: 1.4; color: var(--text-2); }

.main { flex: 1; min-width: 0; padding: 28px 32px 40px; }
.wrap { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

/* ---------- Шапка экрана ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; justify-content: space-between; }
.page-head .titles { display: flex; flex-direction: column; gap: 4px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -0.5px; line-height: 1.2; }
.page-head .sub { font-size: 14px; color: var(--muted); }
.page-head .sub-short, .page-head .profile-line { display: none; }

.profile { position: relative; }
.profile-btn {
  display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line);
  border-radius: 12px; background: #FFFFFF; color: var(--text); font-size: 14px; cursor: pointer; text-align: left;
}
.profile-btn .addr { color: var(--muted); }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 1000; min-width: 280px; max-width: 90vw;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 6px; margin: 0; list-style: none;
  box-shadow: 0 8px 24px rgba(20, 33, 61, .12);
}
.profile-menu button { width: 100%; min-height: 44px; border: 0; background: transparent; border-radius: 8px; padding: 6px 10px; text-align: left; cursor: pointer; }
.profile-menu button:hover, .profile-menu button[aria-current="true"] { background: var(--accent-light); }
.profile-menu .addr { display: block; font-size: 13px; color: var(--muted); }

/* ---------- Запросы ---------- */
.queries { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line-2); background: #FFFFFF;
  color: var(--text); font-size: 15px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.soon-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 600; color: #9AA1AE; cursor: default; }

.notice { background: var(--accent-light); border-radius: 12px; padding: 12px 16px; font-size: 14px; }

/* ---------- Карта и панель точки ---------- */
.board { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.map-card { flex: 2 1 520px; min-width: 0; }
.point-card { flex: 1 1 300px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.map-head h2, .point-card h2 { margin: 0; font-size: 18px; }
.seg { display: inline-flex; background: #F1F3F5; border-radius: 10px; padding: 3px; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #FFFFFF; }

.map { height: 540px; border-radius: 14px; overflow: hidden; background: #F3EFE6; position: relative; z-index: 0; }
.map .leaflet-tile-pane { filter: saturate(.55) brightness(1.04); }
.map .leaflet-control-attribution { font-size: 10px; }

.cat { position: relative; display: block; cursor: pointer; }
.cat svg { position: absolute; left: 0; top: 0; overflow: visible; z-index: 0 !important; }
.cat > span { position: absolute; left: 0; right: 0; z-index: 1; text-align: center; font-weight: 700; line-height: 1; font-family: "Onest", system-ui, sans-serif; }
.cat:focus-visible { outline: none; }
.cat:focus-visible svg circle { stroke: var(--text); stroke-width: 3.5; }
.heat-label { font-size: 13px; font-weight: 700; text-align: center; line-height: 1; }

.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--text-2); }
.legend b.l1 { color: #15803D; } .legend b.l2 { color: #B7791F; } .legend b.l3 { color: #C2410C; } .legend b.l0 { color: #6B7280; }

.point-card .rank { font-size: 15px; }
.point-card .muted { font-size: 14px; color: var(--muted); }
.point-card ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.point-card .hint { font-size: 13px; color: var(--muted); }

.m-detail { display: none; }

.center-box { text-align: center; padding: 48px 16px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: 0 auto 12px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ---------- Нижнее меню телефона и лист «Меню» ---------- */
.tabbar { display: none; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 33, 61, .35); z-index: 2000; display: flex; align-items: flex-end; }
.sheet { background: #FFFFFF; width: 100%; max-height: 85vh; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 16px 12px 24px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 0 8px 8px; }
.sheet-head h2 { margin: 0; font-size: 18px; }

/* ---------- Шаг 1 подключения (D15 1440 / T15 834 / S15 390) ---------- */
.connect { line-height: normal; }
.connect-wide { min-height: 100vh; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.connect-top { width: 100%; max-width: 1040px; display: flex; justify-content: space-between; align-items: center; }
.connect-top .logo { font-weight: 800; font-size: 26px; letter-spacing: -0.6px; color: var(--accent); }
.connect-top .step, .connect-body .step { font-size: 14px; color: var(--muted); }
.connect-body { width: 100%; max-width: 1040px; display: flex; flex-direction: column; gap: 20px; }
.connect-body header { display: flex; flex-direction: column; gap: 4px; }
.connect-body h1 { margin: 0; font-size: 28px; letter-spacing: -0.5px; }
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.connect-grid .card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.connect-grid h2 { margin: 0; font-size: 18px; }
.vizi-line { display: flex; gap: 10px; align-items: center; }
.vizi-line svg { flex-shrink: 0; }
.vizi-line span { font-size: 15px; line-height: 1.45; }
.connect-grid .lead { margin: 0; font-size: 16px; line-height: 1.55; }
.btn-wide, .other-link { display: flex; width: 100%; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-wide { background: var(--accent); color: #FFFFFF; border: 1px solid var(--accent); cursor: pointer; }
.btn-wide:hover { background: var(--accent-hover); }
.btn-wide:disabled, .btn-google:disabled { opacity: .6; cursor: default; }
.other-link { color: var(--accent); cursor: default; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.steps .dot, .steps .state { color: var(--muted); font-weight: 700; }
.steps .label { flex: 1; font-size: 15px; line-height: 1.45; }
.steps .state { font-size: 12px; }
.steps li.now { background: #FFF7E6; }
.steps li.now .dot, .steps li.now .state { color: #B45309; }
.connect-grid .hint, .phone-main .hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.comp-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.kw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.kw-chip { box-sizing: content-box; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line-2); background: #FFFFFF; color: var(--text); font-size: 14px; font-weight: 600; }
a.btn-wide:hover { color: #FFFFFF; }
.connect-phone { display: none; }
.card-picked { border-color: var(--accent) !important; background: #F3FAF8 !important; }
.btn-text { background: transparent; color: var(--accent); border: 1px solid transparent; }
a.btn-text:hover { color: var(--accent-hover); }

/* ---------- Первый замер (D24 / T24 / S24) ---------- */
.fs-head { align-items: flex-end; }
.fs-profile { cursor: default; }
.fs-pills { display: grid; gap: 4px; background: #F3EFE6; border-radius: 12px; padding: 10px 8px; }
.fs-pills span { height: 22px; border-radius: 11px; }
.fs-progress { display: flex; flex-direction: column; gap: 4px; }
.fs-progress .row { display: flex; justify-content: space-between; font-size: 14px; }
.fs-progress .bar { height: 10px; border-radius: 5px; background: #EEF0F3; }
.fs-progress .bar > div { height: 10px; border-radius: 5px; background: var(--accent); }
.btn-white { background: #FFFFFF; color: var(--text); border: 1px solid var(--line-2); }
a.btn-white:hover { background: var(--bg); color: var(--text); }
.fs-phone { display: none; }

@media (max-width: 1099px) {
  .fs-shell .main { padding: 24px 24px 32px; }
  .fs-wide { gap: 18px; }
  .fs-wide h1 { font-size: 24px; }
  .fs-wide .connect-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
  .connect-wide { padding: 32px 24px; }
  .connect-top, .connect-body { max-width: 760px; }
  .connect-body h1 { font-size: 24px; }
  .connect-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
}

@media (max-width: 699px) {
  .connect-wide { display: none; }
  .connect { background: #FFFFFF; }
  .connect-phone { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; padding: 20px; background: #FFFFFF; }
  .connect-phone .connect-top .logo { font-weight: 700; font-size: 22px; letter-spacing: -0.5px; }
  .connect-phone .connect-top .step { font-size: 13px; }
  .connect-phone .bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 12px 0 20px; }
  .connect-phone .bars div { height: 4px; border-radius: 2px; background: var(--line); }
  .connect-phone .bars div.on { background: var(--accent); }
  .connect-phone .hero { flex: 1; display: flex; flex-direction: column; gap: 16px; justify-content: center; align-items: center; text-align: center; }
  .connect-phone h1 { margin: 0; font-size: 26px; line-height: 1.2; }
  .connect-phone p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); }
  .connect-phone .actions { display: flex; flex-direction: column; gap: 8px; }
  .fs-wide { display: none; }
  .fs-shell .main { padding: 0 0 90px; }
  .fs-phone { display: flex; flex-direction: column; min-height: 100%; background: var(--bg); line-height: normal; }
  .fs-phone-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 12px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
  .fs-phone-head .logo { font-weight: 700; font-size: 22px; letter-spacing: -0.5px; color: var(--accent); }
  .fs-phone-head .name { font-size: 14px; }
  .fs-phone-main { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
  .fs-phone .card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .fs-phone .h { font-size: 16px; font-weight: 600; }
  .fs-phone .fs-vizi { flex-direction: row; gap: 12px; align-items: center; }
  .fs-vizi svg { flex-shrink: 0; }
  .fs-vizi > div { display: flex; flex-direction: column; gap: 2px; }
  .fs-vizi .h { font-weight: 700; }
  .fs-vizi .s { font-size: 14px; line-height: 1.4; color: var(--text-2); }
  .fs-dots { display: grid; gap: 6px; background: #F3EFE6; border-radius: 12px; padding: 12px 10px; }
  .fs-dots div { width: 30px; height: 30px; border-radius: 50%; justify-self: center; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
  .fs-phone .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
  .fs-phone .bar > div { height: 8px; background: var(--accent); }
  .fs-phone .hint { font-size: 13px; color: var(--muted); }
  .fs-did { gap: 8px !important; font-size: 14px; }
  .fs-did .wait { color: #8A5A00; }
  .fs-did .ok { color: #15803D; }
  .fs-note { font-size: 12px; color: var(--muted); text-align: center; }
  .connect-phone.sheet-layout { padding: 0; background: var(--bg); }
  .connect:has(.sheet-layout) { background: var(--bg); }
  .phone-head { padding: 6px 20px 12px; background: #FFFFFF; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
  .phone-head h1 { margin: 0; font-size: 22px; font-weight: 700; line-height: normal; }
  .phone-head .sub { font-size: 13px; color: var(--muted); line-height: 1.4; }
  .phone-main { flex: 1; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
  .phone-main .card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
  .phone-main h2 { margin: 0; font-size: 16px; }
  .phone-main .comp-list { font-size: 14px; }
  .nt-phone { gap: 16px; }
  .nt-body { flex: 1; display: flex; flex-direction: column; gap: 14px; }
  .nt-body h1 { margin: 0; font-size: 24px; line-height: 1.25; }
  .nt-body > p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
  .nt-option { min-height: 72px; padding: 12px 14px; border: 2px solid var(--accent); border-radius: 14px; background: #F3FAF8; display: flex; flex-direction: column; gap: 4px; }
  .nt-option .name { display: flex; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 700; }
  .nt-option .tag { font-size: 12px; font-weight: 700; color: var(--accent); }
  .nt-option .hint { font-size: 13px; line-height: 1.45; color: var(--text-2); }
  .nt-mail { display: flex; gap: 10px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px; font-size: 13px; line-height: 1.45; }
  .nt-mail svg { flex-shrink: 0; }
  .nt-body .spacer { flex: 1; }
  .btn-phone { min-height: 52px; border: 0; border-radius: 12px; background: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 600; cursor: pointer; }
  .btn-google { min-height: 52px; border: 1px solid var(--line-2); border-radius: 12px; background: #FFFFFF; font-size: 16px; font-weight: 600; color: var(--text); cursor: pointer; }
  .connect-phone .other-link { min-height: 44px; font-size: 14px; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; background: var(--accent); color: #FFFFFF; font-weight: 600; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.btn:disabled { opacity: .6; cursor: default; }
.link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; min-height: 44px; padding: 0 8px; }
.link-btn:hover { color: var(--text); text-decoration: underline; }
.error { color: var(--danger); font-size: 14px; margin: 0; }

/* ---------- Планшет (прототип T2): узкая колонка иконок ---------- */
@media (max-width: 1099px) {
  .side { width: 76px; padding: 16px 12px; align-items: center; gap: 4px; }
  .side .logo { display: none; }
  .side .rail-cat { display: block; margin-bottom: 12px; }
  .nav-item { width: 52px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 12px; }
  .nav-item .label, .nav-item .soon { display: none; }
  .nav-sep { width: 40px; }
  .vizi-box { display: none; }
  .main { padding: 24px; }
}

/* ---------- Телефон (прототип S2) ---------- */
@media (max-width: 699px) {
  .side { display: none; }
  .main { padding: 0 0 90px; }
  .wrap { gap: 12px; }
  .page-head { background: #FFFFFF; border-bottom: 1px solid var(--line); padding: 16px 20px 10px; gap: 10px; }
  .page-head h1 { font-size: 22px; letter-spacing: 0; }
  .page-head .sub { display: none; }
  .page-head .profile-line { display: block; font-size: 13px; color: var(--muted); }
  .profile { display: none; }
  .queries { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 0 20px 10px; margin-top: -12px; background: #FFFFFF; border-bottom: 1px solid var(--line); }
  .chip { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
  .queries .soon-link { display: none; }
  .m-bar { display: flex !important; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; padding: 0 16px; }
  .m-bar span { color: var(--muted); }
  .board { padding: 0 16px; gap: 12px; }
  .card { border-radius: 16px; padding: 12px 8px; gap: 12px; }
  .map-card { flex-basis: 100%; }
  .map-head h2 { font-size: 15px; padding: 0 4px; }
  .map { height: 360px; }
  .point-card { display: none; }
  .m-detail { display: flex; background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px; flex-direction: column; gap: 6px; flex-basis: 100%; }
  .m-detail .where { font-size: 13px; color: var(--muted); }
  .m-detail .title { font-size: 17px; font-weight: 700; }
  .m-detail .text { font-size: 14px; line-height: 1.45; color: var(--text-2); }
  .legend { gap: 10px; padding: 0 4px; }
  .notice { margin: 0 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500;
    background: #FFFFFF; border-top: 1px solid var(--line); padding: 6px 4px 18px;
  }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; justify-content: center; text-decoration: none; color: var(--muted); font-size: 12px; background: none; border: 0; cursor: pointer; }
  .tab[aria-current="page"] { color: var(--accent); font-weight: 600; }
  .tab[aria-disabled="true"] { color: #B0B6C0; cursor: default; }
  .tab[aria-current="page"][aria-disabled="true"] { color: var(--accent); }
}
.m-bar { display: none; }

/* ---------- Демо-экраны по прототипу (черновик) ---------- */
.demo-main { padding: 0 !important; line-height: normal; font-family: 'Onest', system-ui, sans-serif; }
.demo-screen { min-height: 100%; }
.demo-wide-frame { box-sizing: border-box; min-width: 0; }
.demo-phone-frame { width: 100% !important; min-height: 100vh; min-height: 100dvh; padding-bottom: 90px; box-sizing: border-box; }
.soon-badge {
  display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 7px; border-radius: 999px;
  background: #FFF4D6; color: #8A5A00; font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: 0; vertical-align: middle;
  white-space: nowrap; font-family: 'Onest', system-ui, sans-serif;
}
[data-soon="1"] { cursor: default; }
[data-soon="1"] { opacity: .6; }
.soon-badge.corner { position: absolute; top: -9px; right: -6px; margin: 0; z-index: 2; box-shadow: 0 0 0 2px #FFFFFF; pointer-events: none; }
[data-unbuilt], [data-noop] { cursor: default; }

/* ---------- Страница «Все экраны» ---------- */
.screens-page { max-width: 1080px; margin: 0 auto; padding: 32px 20px 48px; display: flex; flex-direction: column; gap: 18px; }
.screens-page header { display: flex; flex-direction: column; gap: 6px; }
.screens-page .logo { font-weight: 800; font-size: 24px; letter-spacing: -0.6px; color: var(--accent); }
.screens-page h1 { margin: 0; font-size: 28px; letter-spacing: -0.5px; }
.screens-page header p { margin: 0; color: var(--muted); font-size: 15px; }
.screens-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--text-2); }
.screens-table { background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; overflow-x: auto; }
.screens-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.screens-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.screens-table td { padding: 10px 14px; border-bottom: 1px solid #EEF0F3; vertical-align: middle; }
.screens-table tr:last-child td { border-bottom: 0; }
.screens-table .num { color: var(--muted); width: 48px; }
.screens-table .note { color: var(--muted); font-size: 13px; }
.screens-table .sizes { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.screens-table .sizes a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.st { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; margin-right: 4px; }
.st-real { background: #DCFCE7; color: #166534; }
.st-demo { background: var(--accent-light); color: var(--accent); }
.st-soon { background: #FFF4D6; color: #8A5A00; }
.st-none { background: #F1F3F5; color: var(--muted); }

/* Просмотр экрана в рамке нужного размера */
.viewer { padding: 12px 16px 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.viewer-bar { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; font-size: 15px; }
.viewer-bar a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.viewer-sizes { display: flex; gap: 12px; }
.viewer-sizes a[aria-current="page"] { color: var(--text); text-decoration: none; }
.viewer-stage { position: relative; overflow: hidden; border-radius: 12px; box-shadow: 0 6px 24px rgba(20, 33, 61, .14); background: #FFFFFF; }
.viewer-stage iframe { border: 0; display: block; transform-origin: 0 0; position: absolute; left: 0; top: 0; }
