/* ShadowBox — monochrome dark design system */
:root {
  --bg: #0a0a0b;
  --bg-2: #0e0e10;
  --surface: #121214;
  --surface-2: #18181b;
  --surface-3: #202024;
  --border: #222226;
  --border-2: #2e2e33;
  --border-3: #3d3d43;
  --text: #ededee;
  --muted: #9d9da6;
  --faint: #6b6b74;
  --inverse: #0a0a0b;
  --ok: #46c08a;
  --warn: #d9a94e;
  --err: #e5676a;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 12px;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }
.i { flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 16px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.label { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -.03em; }
.logo .wm span { color: var(--faint); }
.logo .mark { width: 26px; height: 26px; }

/* buttons */
.btn {
  --h: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 16px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); font: 500 .94rem/1 var(--font);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, opacity .15s;
}
.btn:hover { background: var(--surface-2); border-color: var(--border-3); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.loading { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--text); border-color: var(--text); color: var(--inverse); }
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--surface); }
.btn-danger { background: transparent; border-color: rgba(229, 103, 106, .35); color: #f0a3a4; }
.btn-danger:hover { background: rgba(229, 103, 106, .08); border-color: rgba(229, 103, 106, .6); }
.btn-tg { background: transparent; }
.btn-sm { --h: 32px; padding: 0 12px; font-size: .85rem; border-radius: var(--r-sm); }
.btn-lg { --h: 50px; padding: 0 22px; font-size: 1rem; }
.btn-block { width: 100%; white-space: normal; height: auto; min-height: var(--h); padding-top: 8px; padding-bottom: 8px; text-align: center; line-height: 1.25; }
.btn-icon { width: var(--h); padding: 0; }
.btn.loading::after { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* surfaces */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.card-tight { padding: 16px; }
.card h3 { font-size: 1rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: var(--r-sm); border: 1px solid var(--border-2); color: var(--muted); font-size: .8rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: var(--r-sm); font-size: .76rem; font-weight: 500; border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--ok); border-color: rgba(70, 192, 138, .3); }
.badge.warn { color: var(--warn); border-color: rgba(217, 169, 78, .3); }
.badge.err { color: var(--err); border-color: rgba(229, 103, 106, .3); }
.badge.violet { color: var(--text); }
.badge.plain::before { display: none; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface); font-size: .92rem; color: var(--muted); }
.alert.warn { border-color: rgba(217, 169, 78, .3); }
.alert.err { border-color: rgba(229, 103, 106, .3); }
.alert .i { margin-top: 2px; color: var(--text); }
.alert.warn .i { color: var(--warn); }
.announce { background: var(--surface-2); border-bottom: 1px solid var(--border); color: var(--text); text-align: center; font-size: .86rem; padding: 8px 16px; }
.progress { height: 4px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--text); border-radius: inherit; transition: width .4s; }
.divider { height: 1px; background: var(--border); margin: 20px 0; border: 0; }

/* forms */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: .84rem; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--border-2);
  background: var(--bg); color: var(--text); font: 400 .96rem var(--font); transition: border-color .15s;
}
textarea.input { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.input:focus { outline: none; border-color: var(--muted); }
.input-sm { height: 34px; border-radius: var(--r-sm); font-size: .9rem; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--text); flex: none; }
.form-error { color: var(--err); font-size: .88rem; min-height: 1.2em; margin: 6px 0 10px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font: 500 .72rem var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: 11px 14px; background: var(--bg-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--bg-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
.empty { text-align: center; padding: 32px 16px; color: var(--faint); }

/* site header / footer */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(10, 10, 11, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: 60px; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); font-size: .92rem; text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-header .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.site-header .actions .link { color: var(--muted); text-decoration: none; font-size: .92rem; padding: 0 10px; }
.site-header .actions .link:hover { color: var(--text); }
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 28px; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: .8rem; }

/* landing */
.hero { padding: 88px 0 0; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; max-width: 820px; margin: 16px 0 22px; }
.hero h1 span { color: var(--faint); }
.hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; margin-bottom: 30px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .note { margin: 18px 0 0; font: .82rem var(--mono); color: var(--faint); }
.shot { margin: 56px 0 0; border: 1px solid var(--border-2); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.shot-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--border); font: .74rem var(--mono); color: var(--faint); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-3); }
.shot-bar span { margin-left: 12px; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: #0b0b0c; }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 72px; }
.facts > div { padding: 26px 24px; border-left: 1px solid var(--border); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.facts span { color: var(--muted); font-size: .88rem; }

.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 40px; }
.section-head.single { grid-template-columns: 1fr; max-width: 640px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; letter-spacing: -.03em; margin: 10px 0 0; }
.section-head p { color: var(--muted); margin: 0; }

.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); }
.cells > div { padding: 28px 26px 30px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cells h3 { font-size: 1.02rem; font-weight: 600; margin: 14px 0 8px; letter-spacing: -.01em; }
.cells p { color: var(--muted); font-size: .94rem; margin: 0; }
.cells.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.apps { margin-top: 28px; color: var(--faint); font-size: .92rem; }
.apps b { color: var(--muted); font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 24px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.plan.hl { border-color: var(--border-3); background: var(--surface-2); }
.plan.current { border-color: var(--ok); }
.plan .flag { position: absolute; top: 18px; right: 18px; font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.plan.current .flag { color: var(--ok); }
.plan h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 2px; }
.plan .tagline { color: var(--faint); font-size: .88rem; margin-bottom: 20px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 20px; }
.plan .price b { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.plan .price span { color: var(--faint); font-size: .88rem; }
.plan ul { list-style: none; padding: 20px 0 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: .9rem; border-top: 1px solid var(--border); }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.plan li b { color: var(--text); font-weight: 500; }
.plan li .i { color: var(--text); margin-top: 3px; }
.plan .btn { margin-top: auto; }
.plans-note { margin-top: 18px; color: var(--faint); font-size: .85rem; }

.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 500; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .2s; color: var(--faint); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 40px 20px 0; margin: 0; color: var(--muted); font-size: .95rem; }

.cta-band { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 48px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--surface); }
.cta-band h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 0 0 6px; letter-spacing: -.03em; }
.cta-band p { color: var(--muted); margin: 0; }

/* auth */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.5rem; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--border); margin-bottom: 20px; }
.tabs a { text-align: center; padding: 8px; border-radius: var(--r-sm); color: var(--muted); font-size: .92rem; text-decoration: none; }
.tabs a.on { background: var(--surface-3); color: var(--text); }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: .8rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* app shell (cabinet + admin) */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 20px 14px; border-right: 1px solid var(--border); background: var(--bg); }
.sidebar .logo { padding: 0 8px; margin-bottom: 26px; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a { display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--muted); font-size: .93rem; text-decoration: none; }
.sidebar nav a:hover { background: var(--surface); color: var(--text); }
.sidebar nav a.on { background: var(--surface-2); color: var(--text); }
.sidebar nav .sep { height: 1px; background: var(--border); margin: 10px 4px; }
.sidebar .nav-label { font: 500 .7rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); padding: 8px 10px 4px; }
.sidebar .me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r); border: 1px solid var(--border); }
.avatar { width: 32px; height: 32px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-3); color: var(--text); font-weight: 600; font-size: .9rem; flex: none; }
.sidebar .me .who { min-width: 0; font-size: .85rem; line-height: 1.3; }
.sidebar .me .who b { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { min-width: 0; padding: 32px 36px 56px; max-width: 1240px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.mobile-bar { display: none; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* cabinet: PC card */
.pc-card { padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.pc-card .top { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.pc-screen { width: 64px; height: 48px; flex: none; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--bg); display: grid; place-items: center; color: var(--faint); position: relative; }
.pc-screen.on { color: var(--text); border-color: var(--border-3); }
.pc-screen.on::after { content: ""; position: absolute; right: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.pc-status { font-size: 1.25rem; font-weight: 600; margin: 0; }
.pc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.pc-specs span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--border); font-size: .83rem; color: var(--muted); }
.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.big-time { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; }

/* admin */
.kpi { padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); }
.kpi span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.kpi b { display: block; font-size: 1.6rem; font-weight: 600; margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi small { color: var(--faint); font-size: .8rem; font-weight: 400; }
.bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; align-items: end; height: 180px; padding-top: 10px; }
.bars .bar { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars .bar i { display: block; width: 100%; max-width: 26px; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--border-3); }
.bars .bar:hover i { background: var(--text); }
.bars .bar em { font-style: normal; font: .66rem var(--mono); color: var(--faint); }
.bars .bar .tip { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--border-2); font-size: .74rem; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.bars .bar:hover .tip { opacity: 1; }
.meter { display: flex; align-items: center; gap: 12px; font-size: .88rem; margin-bottom: 12px; }
.meter > span:first-child { width: 92px; color: var(--muted); }
.meter .progress { flex: 1; }
.meter b { width: 56px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.tariff-form { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tariff-form .field { margin: 0; }
.tariff-form .w2 { grid-column: span 2; }
.tariff-form .w3 { grid-column: span 3; }
.tariff-form .w6 { grid-column: span 6; }

/* modal & toast */
.modal-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, .7); animation: fade .12s; }
.modal { width: 100%; max-width: 420px; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-2); }
.modal h3 { font-size: 1.12rem; }
.modal p { color: var(--muted); }
.modal .row { justify-content: flex-end; margin-top: 20px; }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 40px)); }
.toast { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border-2); font-size: .9rem; animation: rise .15s; }
.toast.err { border-color: rgba(229, 103, 106, .5); }
.toast.ok { border-color: rgba(70, 192, 138, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* PC viewer */
body.pc-body { overflow: hidden; background: #0b0b0c; }
.pc-frame { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0b0c; }
.pc-overlay { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--bg); transition: opacity .4s; }
.pc-overlay.fade { opacity: 0; pointer-events: none; }
.pc-overlay .box { width: min(360px, 100%); }
.pc-overlay h2 { font-size: 1.25rem; margin: 22px 0 6px; }
.pc-overlay p { color: var(--muted); }
.pc-loader { width: 56px; height: 56px; margin: 0 auto; }
.pc-loader svg { width: 56px; height: 56px; }
.pc-progress { height: 2px; background: var(--surface-3); border-radius: 1px; overflow: hidden; margin: 22px auto 0; width: 200px; position: relative; }
.pc-progress::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--text); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.pc-steps { margin: 20px auto 0; padding: 0; display: grid; gap: 8px; text-align: left; width: max-content; font-size: .88rem; color: var(--faint); }
.pc-steps li { display: flex; gap: 10px; align-items: center; list-style: none; }
.pc-steps li.on { color: var(--text); }
.pc-steps li.done { color: var(--muted); }
/* --kb-inset: height of the on-screen keyboard covering the page (set by pc.js), so bottom controls stay above it */
.pc-bar { position: fixed; z-index: 30; top: calc(env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 2px; padding: 5px; border-radius: var(--r-lg); background: rgba(18, 18, 20, .94); border: 1px solid var(--border-2); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .25s, opacity .25s; max-width: calc(100vw - 20px); }
.pc-bar.collapsed { transform: translate(-50%, calc(-100% - 24px - env(safe-area-inset-top, 0px))); }
#tbHide svg { transform: rotate(180deg); }
.pc-bar .logo { padding: 0 8px 0 6px; font-size: .9rem; gap: 7px; }
.pc-bar .logo .mark { width: 18px; height: 18px; }
.pc-bar .sep { width: 1px; height: 22px; background: var(--border-2); margin: 0 4px; }
.pc-bar .timer { display: flex; align-items: center; gap: 6px; padding: 0 8px; font: .82rem var(--mono); color: var(--muted); white-space: nowrap; }
.pc-bar .timer.low { color: var(--warn); }
.tb { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r); border: 0; background: transparent; color: var(--muted); cursor: pointer; position: relative; }
.tb:hover { background: var(--surface-3); color: var(--text); }
.tb.on { color: var(--text); background: var(--surface-3); }
.tb.danger:hover { background: rgba(229, 103, 106, .12); color: var(--err); }
.tb[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); font-size: .75rem; white-space: nowrap; pointer-events: none; }
/* brings the hidden toolbar back: a real button above the remote screen, thumb-sized on touch screens */
.pc-handle { position: fixed; z-index: 32; top: calc(env(safe-area-inset-top, 0px) + 6px); left: 50%; transform: translateX(-50%); width: 56px; height: 44px; padding: 0; display: none; place-items: center; border-radius: 22px; border: 1px solid var(--border-2); background: rgba(18, 18, 20, .9); color: var(--text); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pc-handle.show { display: grid; }
.pc-handle:hover { background: var(--surface-3); }
@media (hover: hover) and (pointer: fine) {
  .pc-handle { width: 48px; height: 28px; border-radius: 14px; }
}
.pc-panel { position: fixed; z-index: 31; top: calc(env(safe-area-inset-top, 0px) + 62px); left: 50%; transform: translateX(-50%); width: min(400px, calc(100vw - 20px)); max-height: 60vh; overflow: auto; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border-2); }
/* Phones and tablets: the toolbar lives at the bottom (the desktop's own panel is at the top) and rides above
   the on-screen keyboard; hover tooltips would stick after a tap. */
@media (max-width: 760px), (pointer: coarse) {
  .pc-bar { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 10px + var(--kb-inset, 0px)); }
  .pc-bar.collapsed { transform: translate(-50%, calc(100% + 24px + env(safe-area-inset-bottom, 0px) + var(--kb-inset, 0px))); }
  #tbHide svg { transform: none; }
  .pc-handle { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 12px + var(--kb-inset, 0px)); }
  .pc-handle svg { transform: rotate(180deg); }
  .pc-panel { top: auto; bottom: calc(env(safe-area-inset-bottom, 0px) + 66px + var(--kb-inset, 0px)); max-height: 50vh; }
}
@media (hover: none) {
  .tb[data-tip]:hover::after { display: none; }
}
.pc-panel h4 { font-size: .95rem; margin-bottom: 10px; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.file-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r); border: 1px solid var(--border); color: var(--text); font-size: .9rem; word-break: break-all; text-decoration: none; }
.file-list a:hover { border-color: var(--border-3); }
.upload-item { display: flex; justify-content: space-between; gap: 10px; font-size: .86rem; padding: 6px 0; color: var(--muted); }

/* responsive */
@media (max-width: 1020px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .sidebar.open { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .6); }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 50; height: 56px; padding: 0 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  .main { padding: 22px 16px 48px; }
  .tariff-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tariff-form .w2, .tariff-form .w3, .tariff-form .w6 { grid-column: span 2; }
  .section-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .container { gap: 12px; }
  .hero { padding-top: 48px; }
  .shot { margin-top: 36px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 44px; }
  .facts > div { padding: 18px 0 18px 16px; }
  .facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .cells, .cells.two, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .section { padding: 64px 0; }
  .cta-band { padding: 32px 22px; }
  .card { padding: 18px; }
  .pc-bar .logo .wm, .pc-bar .hide-sm { display: none; }
  .bars { gap: 3px; }
  .bars .bar em { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
