:root {
    color-scheme: dark;
    --bg: #050a11;
    --bg-soft: #09111d;
    --surface: rgba(14, 25, 40, 0.72);
    --surface-strong: rgba(13, 24, 39, 0.94);
    --surface-muted: rgba(255, 255, 255, 0.045);
    --border: rgba(177, 211, 238, 0.14);
    --border-strong: rgba(122, 194, 255, 0.30);
    --text: #f5f9fc;
    --text-soft: #a9b8c7;
    --text-faint: #758596;
    --primary: #67b9ff;
    --primary-strong: #2e93f1;
    --primary-soft: rgba(80, 174, 255, 0.14);
    --cyan: #59e3d1;
    --green: #5fe49a;
    --yellow: #ffd66d;
    --danger: #ff7a8f;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
    --shadow-soft: 0 12px 38px rgba(0, 0, 0, 0.20);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --header-height: 78px;
    --container: 1220px;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg: #eef4f9;
    --bg-soft: #e5edf4;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.95);
    --surface-muted: rgba(31, 75, 112, 0.055);
    --border: rgba(29, 70, 105, 0.13);
    --border-strong: rgba(30, 129, 211, 0.28);
    --text: #102132;
    --text-soft: #536779;
    --text-faint: #708396;
    --primary: #147fd9;
    --primary-strong: #096fca;
    --primary-soft: rgba(20, 127, 217, 0.12);
    --cyan: #059e90;
    --green: #15935a;
    --yellow: #9b7100;
    --danger: #d43f59;
    --shadow: 0 24px 70px rgba(41, 76, 104, 0.16);
    --shadow-soft: 0 10px 32px rgba(41, 76, 104, 0.11);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% -10%, rgba(49, 139, 218, .15), transparent 35%),
        radial-gradient(circle at 90% 18%, rgba(30, 177, 166, .09), transparent 27%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { display: block; }
button { color: inherit; }
::selection { background: rgba(84, 175, 250, .32); color: var(--text); }

.ambient {
    position: fixed;
    z-index: -3;
    width: 44vw;
    height: 44vw;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    opacity: .11;
}
.ambient--one { top: -24vw; right: -12vw; background: #36a8ff; }
.ambient--two { bottom: -25vw; left: -16vw; background: #34d8c0; }
.noise-layer {
    position: fixed;
    inset: 0;
    z-index: -2;
    opacity: .025;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.container.narrow { width: min(calc(100% - 40px), 840px); }
.section { position: relative; padding: 88px 0; }
.section--tight { padding-top: 34px; }
.section--page { padding-top: calc(var(--header-height) + 70px); padding-bottom: 54px; }
.glass-card {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(255,255,255,.035), transparent 52%), var(--surface);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 80;
    height: var(--header-height);
    border-bottom: 1px solid transparent;
    transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-color: var(--border);
    box-shadow: 0 8px 40px rgba(0, 0, 0, .12);
    backdrop-filter: blur(24px);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__mark {
    width: 41px;
    height: 41px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--primary);
    background: linear-gradient(145deg, rgba(103,185,255,.20), rgba(78,226,208,.08));
    border: 1px solid var(--border-strong);
    box-shadow: inset 0 1px rgba(255,255,255,.08), 0 8px 26px rgba(36, 136, 218, .14);
}
.brand__mark svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 14px; letter-spacing: -.01em; }
.brand small { margin-top: 4px; color: var(--text-faint); font-size: 10px; letter-spacing: .075em; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.main-nav a { position: relative; padding: 10px 14px; border-radius: 11px; color: var(--text-soft); font-size: 14px; font-weight: 600; transition: .2s ease; }
.main-nav a:hover { color: var(--text); background: var(--surface-muted); }
.main-nav a.active { color: var(--text); background: var(--primary-soft); }
.main-nav a.active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; border-radius: 2px; background: var(--primary); transform: translateX(-50%); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.connection-pill { display: flex; align-items: center; gap: 7px; min-width: 68px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.connection-pill > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 15%, transparent); }
.connection-pill.ok > span:first-child { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 15%, transparent); }
.connection-pill.error > span:first-child { background: var(--danger); }
.icon-button { width: 39px; height: 39px; display: grid; place-items: center; padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); cursor: pointer; transition: .2s ease; }
.icon-button:hover { border-color: var(--border-strong); background: var(--primary-soft); transform: translateY(-1px); }
.icon-button svg { width: 20px; height: 20px; fill: currentColor; }
.theme-toggle .theme-icon { width: 18px; height: 18px; fill: currentColor; }
html[data-theme="dark"] .theme-icon--sun, html[data-theme="light"] .theme-icon--moon { display: none; }
.mobile-menu-button { display: none; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); cursor: pointer; }
.mobile-menu-button span { display: block; width: 18px; height: 2px; margin: 3px 0; border-radius: 2px; background: currentColor; transition: .2s ease; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 43px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; fill: currentColor; }
.button--primary { color: #06111d; background: linear-gradient(135deg, #88ccff, #4aa7f4); box-shadow: 0 13px 34px rgba(52, 151, 234, .23); }
html[data-theme="light"] .button--primary { color: white; }
.button--primary:hover { box-shadow: 0 17px 42px rgba(52, 151, 234, .32); }
.button--soft { color: var(--text); border-color: var(--border); background: var(--surface-muted); }
.button--soft:hover, .button--ghost:hover { border-color: var(--border-strong); background: var(--primary-soft); }
.button--ghost { color: var(--text-soft); border-color: var(--border); background: transparent; }
.button--large { min-height: 51px; padding-inline: 22px; border-radius: 15px; }
.button--full { width: 100%; }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-weight: 700; font-size: 14px; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.link-button { width: 100%; padding: 12px 0 0; border: 0; background: none; color: var(--primary); font-size: 13px; cursor: pointer; }

.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(95,228,154,.10), 0 0 18px rgba(95,228,154,.55); animation: livePulse 2s infinite; }
@keyframes livePulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.55;transform:scale(.82)} }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
h1 { font-size: clamp(44px, 6vw, 78px); }
h2 { margin-bottom: 16px; font-size: clamp(31px, 4vw, 50px); }
h3 { margin-bottom: 10px; font-size: 21px; }
p { color: var(--text-soft); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; margin-bottom: 30px; }
.section-heading h2 { margin: 7px 0 0; }
.section-heading--stack { display: block; align-self: center; }
.section-heading--stack p { max-width: 560px; margin-bottom: 0; }
.section-heading--center { display: block; max-width: 720px; margin: 0 auto 38px; text-align: center; }
.section-heading--center .section-kicker { justify-content: center; }

.hero { min-height: 760px; display: flex; align-items: center; padding-top: calc(var(--header-height) + 64px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(480px, .93fr); align-items: center; gap: 72px; }
.hero-title { margin: 18px 0 24px; font-size: clamp(50px, 6.1vw, 82px); letter-spacing: -.06em; }
.hero-title span { color: transparent; background: linear-gradient(110deg, var(--primary), var(--cyan)); -webkit-background-clip: text; background-clip: text; }
.hero-copy { max-width: 650px; margin-bottom: 30px; font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-metrics { display: flex; gap: 34px; margin-top: 40px; }
.hero-metrics div { display: flex; flex-direction: column; }
.hero-metrics strong { font-size: 25px; letter-spacing: -.04em; }
.hero-metrics span { color: var(--text-faint); font-size: 12px; }
.hero-visual { position: relative; min-height: 500px; display: flex; align-items: center; }
.hero-visual::before { content: ""; position: absolute; inset: 5% -10% 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(60,159,240,.18), transparent 67%); filter: blur(18px); }
.hero-camera { width: 100%; overflow: hidden; border-radius: var(--radius-xl); transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); box-shadow: var(--shadow); }
.hero-camera__top, .hero-camera__bottom { display: flex; align-items: center; justify-content: space-between; padding: 17px 19px; }
.hero-camera__top > div { display: flex; align-items: center; gap: 9px; }
.hero-camera__top strong { font-size: 14px; }
.hero-camera__top > span { padding: 5px 9px; border-radius: 8px; background: var(--surface-muted); color: var(--text-soft); font-size: 11px; font-weight: 800; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(95,228,154,.7); }
.hero-camera__image { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #02060b; }
.hero-camera__image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 58%, rgba(0,0,0,.45)); }
.hero-camera__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.hero-camera__image:hover img { transform: scale(1.035); }
.hero-camera__play { position: absolute; z-index: 2; inset: 50% auto auto 50%; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(245,250,255,.9); color: #0b1824; box-shadow: 0 12px 36px rgba(0,0,0,.35); transform: translate(-50%,-50%); transition: transform .2s ease; }
.hero-camera__play svg { width: 27px; height: 27px; margin-left: 3px; fill: currentColor; }
.hero-camera__image:hover .hero-camera__play { transform: translate(-50%,-50%) scale(1.08); }
.hero-camera__time { position: absolute; z-index: 2; right: 15px; bottom: 13px; padding: 5px 9px; border-radius: 7px; background: rgba(2,8,14,.68); color: white; font: 700 11px/1 ui-monospace, monospace; backdrop-filter: blur(8px); }
.hero-camera__bottom { gap: 16px; }
.hero-camera__bottom div { min-width: 0; display: flex; flex-direction: column; }
.hero-camera__bottom small { color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.hero-camera__bottom strong { overflow: hidden; margin-top: 4px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.signal-card, .online-float { position: absolute; display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 17px; box-shadow: var(--shadow-soft); }
.signal-card { left: -30px; bottom: 35px; }
.online-float { right: -34px; top: 48px; }
.signal-card strong, .online-float strong { display: block; font-size: 12px; }
.signal-card small, .online-float small { display: block; color: var(--text-faint); font-size: 10px; }
.signal-bars { height: 24px; display: flex; align-items: flex-end; gap: 2px; }
.signal-bars i { width: 4px; border-radius: 4px; background: var(--green); }
.signal-bars i:nth-child(1){height:7px}.signal-bars i:nth-child(2){height:12px}.signal-bars i:nth-child(3){height:18px}.signal-bars i:nth-child(4){height:24px}
.avatar-stack { display: flex; padding-left: 8px; }
.avatar-stack i { width: 26px; height: 26px; display: grid; place-items: center; margin-left: -8px; border: 2px solid var(--surface-strong); border-radius: 50%; background: linear-gradient(145deg, var(--primary), var(--cyan)); color: #06111c; font-size: 9px; font-style: normal; font-weight: 900; }

.camera-grid { display: grid; gap: 20px; }
.camera-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.camera-card { min-width: 0; overflow: hidden; border-radius: var(--radius-lg); transition: transform .28s var(--ease), border-color .25s ease, box-shadow .25s ease; }
.camera-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.camera-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #02060b; }
.camera-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.camera-card:hover .camera-card__media img { transform: scale(1.045); }
.camera-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18), transparent 45%, rgba(0,0,0,.45)); }
.live-badge, .quality-badge { position: absolute; z-index: 2; top: 12px; padding: 6px 9px; border-radius: 8px; color: white; background: rgba(3,10,17,.65); backdrop-filter: blur(10px); font-size: 10px; font-weight: 900; letter-spacing: .07em; }
.live-badge { left: 12px; display: inline-flex; align-items: center; gap: 6px; }
.live-badge span { width: 6px; height: 6px; border-radius: 50%; background: #ff526d; box-shadow: 0 0 8px rgba(255,82,109,.8); }
.quality-badge { right: 12px; }
.camera-card__play { position: absolute; z-index: 3; inset: 50% auto auto 50%; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; background: rgba(246,251,255,.88); color: #07121d; box-shadow: 0 10px 32px rgba(0,0,0,.34); opacity: 0; transform: translate(-50%,-45%) scale(.92); cursor: pointer; transition: .25s var(--ease); }
.camera-card:hover .camera-card__play, .camera-card__play:focus-visible { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.camera-card__play svg { width: 23px; height: 23px; margin-left: 2px; fill: currentColor; }
.camera-card__body { padding: 18px; }
.camera-card__meta { display: flex; align-items: center; gap: 7px; color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.dot-separator { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.camera-card h3 { margin: 8px 0 9px; font-size: 19px; }
.camera-card h3 a:hover { color: var(--primary); }
.camera-card p { min-height: 63px; margin-bottom: 16px; font-size: 13px; line-height: 1.6; }
.camera-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-soft); font-size: 10px; font-weight: 800; }
.status-chip span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-chip--online { color: var(--green); border-color: color-mix(in srgb, var(--green) 22%, transparent); background: color-mix(in srgb, var(--green) 8%, transparent); }
.status-chip--error { color: var(--red); border-color: color-mix(in srgb, var(--red) 24%, transparent); background: color-mix(in srgb, var(--red) 8%, transparent); }
.camera-latency { color: var(--text-faint); font-size: 10px; }

.status-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: 70px; }
.status-board { padding: 22px; border-radius: var(--radius-xl); }
.status-board__header { display: flex; justify-content: space-between; margin-bottom: 12px; padding: 2px 4px 14px; border-bottom: 1px solid var(--border); }
.status-board__header span { color: var(--text-faint); font-size: 11px; }
.status-row { display: grid; grid-template-columns: 45px minmax(0,1fr) auto; align-items: center; gap: 13px; padding: 15px 4px; border-bottom: 1px solid var(--border); }
.status-row:last-child { border-bottom: 0; }
.status-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 900; }
.status-row strong { display: block; font-size: 13px; }
.status-row small { color: var(--text-faint); font-size: 10px; }
.status-ok { color: var(--green); font-size: 11px; font-weight: 800; }
.benefits-section::before { content:""; position:absolute; inset: 12% 0; z-index:-1; background: linear-gradient(90deg, transparent, rgba(45,145,226,.055), transparent); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit-card { padding: 25px; border-radius: var(--radius-lg); transition: .25s var(--ease); }
.benefit-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.benefit-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 28px; border-radius: 13px; color: var(--primary); background: var(--primary-soft); font-size: 11px; font-weight: 900; }
.benefit-card h3 { font-size: 20px; }
.benefit-card p { margin-bottom: 0; font-size: 13px; line-height: 1.65; }
.story-grid { display: grid; grid-template-columns: 1fr .95fr; align-items: center; gap: 74px; }
.story-copy p { font-size: 16px; line-height: 1.75; }
.story-copy .text-link { margin-top: 10px; }
.timeline { padding: 20px 25px; border-radius: var(--radius-xl); }
.timeline-item { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 17px; padding: 20px 0; }
.timeline-item:not(:last-child)::after { content:""; position:absolute; left: 34px; top: 50px; bottom: -8px; width: 1px; background: linear-gradient(var(--primary), transparent); opacity:.45; }
.timeline-item > span { width: 70px; height: 31px; display: grid; place-items: center; border-radius: 9px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 900; }
.timeline-item strong { font-size: 14px; }
.timeline-item p { margin: 5px 0 0; font-size: 12px; }
.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 40px; border-radius: var(--radius-xl); overflow: hidden; }
.cta-panel::before { content:""; position:absolute; width:320px; height:320px; right:-100px; border-radius:50%; background:rgba(71,165,242,.12); filter:blur(30px); }
.cta-panel h2 { max-width: 720px; margin: 7px 0 10px; font-size: clamp(28px,3.4vw,44px); }
.cta-panel p { margin: 0; }
.cta-panel__actions { position: relative; display: flex; flex-wrap: wrap; gap: 10px; flex: 0 0 auto; }

.page-hero h1 { margin: 15px 0 17px; }
.page-hero p { max-width: 720px; font-size: 18px; }
.catalog-toolbar { display: flex; align-items: center; gap: 18px; margin-top: 32px; padding: 14px; border-radius: 18px; }
.search-field { min-width: 260px; flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 13px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-muted); }
.search-field svg { width: 19px; height: 19px; fill: var(--text-faint); }
.search-field input { width: 100%; height: 45px; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-field input::placeholder { color: var(--text-faint); }
.filter-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display:none; }
.filter-chips button, .period-switch button { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: transparent; color: var(--text-soft); font-size: 12px; font-weight: 700; cursor: pointer; }
.filter-chips button:hover, .filter-chips button.active, .period-switch button:hover, .period-switch button.active { border-color: var(--border-strong); background: var(--primary-soft); color: var(--primary); }
.catalog-summary { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.catalog-summary strong { font-size: 23px; }
.catalog-summary span { color: var(--text-faint); font-size: 12px; }
.empty-state { padding: 55px 20px; border-radius: var(--radius-lg); text-align: center; }
.empty-state strong { font-size: 22px; }
.empty-state p { margin: 8px 0 0; }
.camera-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; visibility: hidden; opacity: 0; transition: .22s ease; }
.camera-modal.open { visibility: visible; opacity: 1; }
.camera-modal__backdrop { position: absolute; inset: 0; background: rgba(1,5,10,.78); backdrop-filter: blur(13px); }
.camera-modal__dialog { position: relative; width: min(100%, 1030px); overflow: hidden; border-radius: var(--radius-xl); transform: translateY(18px) scale(.98); transition: .28s var(--ease); }
.camera-modal.open .camera-modal__dialog { transform: translateY(0) scale(1); }
.camera-modal__header, .camera-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 18px; }
.camera-modal__header > div { display: flex; align-items: center; gap: 12px; }
.camera-modal__header .live-badge { position: static; }
.camera-modal__player { aspect-ratio: 16/9; background: #02060b; }
.camera-modal__player iframe { width: 100%; height: 100%; border: 0; }
.camera-modal__footer { color: var(--text-faint); font-size: 11px; }

.breadcrumbs { display: flex; gap: 8px; margin-bottom: 24px; color: var(--text-faint); font-size: 12px; }
.breadcrumbs a:hover { color: var(--primary); }
.camera-detail__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.camera-detail__heading h1 { margin: 12px 0 8px; font-size: clamp(40px,5vw,66px); }
.camera-detail__heading p { margin: 0; }
.camera-detail__metrics { display: flex; gap: 10px; }
.camera-detail__metrics span { min-width: 92px; padding: 11px 13px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); color: var(--text-faint); font-size: 10px; }
.camera-detail__metrics strong { display: block; color: var(--text); font-size: 15px; }
.camera-player-shell { aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-xl); background: #02060b; box-shadow: var(--shadow); }
.camera-player-shell iframe { width: 100%; height: 100%; border: 0; }
.camera-detail__grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 20px; margin-top: 20px; }
.info-panel { padding: 28px; border-radius: var(--radius-lg); }
.info-panel h2, .info-panel h3 { margin-top: 10px; }
.info-panel p { line-height: 1.7; }
.info-panel dl { margin: 24px 0; }
.info-panel dl div { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.info-panel dt { color: var(--text-faint); font-size: 12px; }
.info-panel dd { margin: 0; font-size: 12px; font-weight: 700; }

.stats-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.current-online-card { min-width: 210px; padding: 23px 26px; border-radius: var(--radius-lg); }
.current-online-card small { color: var(--text-faint); }
.current-online-card strong { display: block; margin: 2px 0; font-size: 55px; line-height: 1; letter-spacing: -.06em; }
.current-online-card span { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 11px; font-weight: 800; }
.current-online-card i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.metric-card { padding: 22px; border-radius: var(--radius-lg); }
.metric-card > span, .metric-card small { color: var(--text-faint); font-size: 11px; }
.metric-card strong { display: block; margin: 6px 0 2px; font-size: 34px; letter-spacing: -.05em; }
.chart-panel { padding: 26px; border-radius: var(--radius-xl); }
.chart-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.chart-panel__header h2 { margin: 5px 0 0; font-size: 26px; }
.period-switch { display: flex; gap: 6px; }
.chart-wrap { position: relative; height: 390px; margin-top: 24px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }
.chart-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--text-soft); font-size: 13px; }
.spinner { width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chart-legend { display: flex; justify-content: space-between; gap: 20px; margin-top: 13px; color: var(--text-faint); font-size: 10px; }
.chart-legend > span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 17px; height: 3px; border-radius: 3px; background: var(--primary); }
.stats-info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }

.speed-layout { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: 76px; }
.speed-copy h1 { margin: 16px 0 20px; }
.speed-copy > p { max-width: 530px; font-size: 18px; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 32px 0 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; color: var(--text-soft); font-size: 13px; }
.check-list li::before { content:"✓"; width: 23px; height: 23px; display:grid; place-items:center; border-radius:50%; background:color-mix(in srgb,var(--green) 12%,transparent); color:var(--green); font-weight:900; }
.speedometer { position: relative; padding: 24px 30px 28px; border-radius: var(--radius-xl); text-align: center; overflow: hidden; }
.speedometer::before { content:""; position:absolute; width:260px; height:260px; top:40px; left:50%; border-radius:50%; background:rgba(72,164,240,.12); filter:blur(55px); transform:translateX(-50%); }
.speedometer__server { position: relative; display: flex; align-items: center; gap: 8px; text-align: left; }
.speedometer__server span:nth-child(2) { font-size: 12px; font-weight: 800; }
.speedometer__server small { margin-left: auto; color: var(--green); font-size: 10px; }
.gauge { position: relative; width: min(100%, 430px); height: 235px; margin: 6px auto -5px; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge path { fill: none; stroke-width: 13; stroke-linecap: round; }
.gauge__track { stroke: var(--surface-muted); }
.gauge__progress { stroke: url(#none); stroke: var(--primary); filter: drop-shadow(0 0 9px color-mix(in srgb,var(--primary) 60%,transparent)); transition: stroke-dashoffset .25s ease; }
.gauge__value { position: absolute; inset: 90px 0 auto; }
.gauge__value strong { display: block; font-size: 65px; line-height: 1; letter-spacing: -.07em; }
.gauge__value > span { color: var(--text-soft); font-size: 12px; }
.gauge__value small { display: block; margin-top: 8px; color: var(--text-faint); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.speed-start { position: relative; width: 96px; height: 96px; margin: -4px auto 23px; border: 1px solid var(--border-strong); border-radius: 50%; background: linear-gradient(145deg, rgba(91,181,255,.24), rgba(38,130,209,.12)); color: var(--text); box-shadow: inset 0 0 0 7px var(--surface-muted), 0 12px 35px rgba(35,136,219,.18); cursor: pointer; transition: .25s var(--ease); }
.speed-start:hover { transform: scale(1.05); box-shadow: inset 0 0 0 7px var(--primary-soft), 0 15px 42px rgba(35,136,219,.28); }
.speed-start:disabled { cursor: wait; opacity: .72; animation: speedPulse 1.4s infinite; }
@keyframes speedPulse { 50% { box-shadow: inset 0 0 0 7px var(--primary-soft), 0 0 0 12px rgba(70,160,235,.05); } }
.speed-start span { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.speed-results { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.speed-results div { padding: 12px 8px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-muted); }
.speed-results span { display: block; color: var(--text-faint); font-size: 9px; text-transform: uppercase; }
.speed-results strong { display: inline-block; margin: 4px 3px 0 0; font-size: 20px; }
.speed-results small { color: var(--text-faint); font-size: 9px; }
.speed-note { position: relative; margin: 15px 0 0; font-size: 10px; }

.auth-layout { display: grid; grid-template-columns: 1fr 520px; align-items: center; gap: 90px; min-height: 650px; }
.auth-copy h1 { margin: 16px 0 22px; font-size: clamp(42px,5.3vw,67px); }
.auth-copy > p { max-width: 600px; font-size: 18px; }
.auth-benefits { display: grid; gap: 13px; margin-top: 35px; }
.auth-benefits > div { display: flex; align-items: center; gap: 14px; }
.auth-benefits > div > span { width: 38px; height: 38px; display:grid; place-items:center; border-radius:12px; background:var(--primary-soft); color:var(--primary); font-size:10px; font-weight:900; }
.auth-benefits p { display:flex; flex-direction:column; margin:0; }
.auth-benefits strong { color:var(--text); font-size:13px; }
.auth-benefits small { color:var(--text-faint); font-size:11px; }
.auth-card { padding: 24px; border-radius: var(--radius-xl); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 13px; background: var(--surface-muted); }
.auth-tabs button { padding: 11px; border: 0; border-radius: 10px; background: transparent; color: var(--text-soft); font-weight: 800; cursor: pointer; }
.auth-tabs button.active { background: var(--surface-strong); color: var(--text); box-shadow: var(--shadow-soft); }
.auth-card form { display: grid; gap: 15px; padding-top: 27px; }
.form-heading { margin-bottom: 3px; }
.form-heading h2 { margin-bottom: 7px; font-size: 27px; }
.form-heading p { margin: 0; font-size: 12px; }
.auth-card label, .support-panel label { display: grid; gap: 7px; color: var(--text-soft); font-size: 11px; font-weight: 700; }
.auth-card input, .support-panel input, .support-panel select, .support-panel textarea, .setting-row select {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: 0;
    background: var(--surface-muted);
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-card input:focus, .support-panel input:focus, .support-panel select:focus, .support-panel textarea:focus, .setting-row select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.auth-card label small { color: var(--text-faint); font-weight: 500; }
.checkbox-field { grid-template-columns: 18px 1fr !important; align-items: start; }
.checkbox-field input { width: 17px; height: 17px; min-height: 0; padding: 0; accent-color: var(--primary); }
.auth-message { margin-top: 17px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 12px; }
.auth-message.success { border-color: color-mix(in srgb,var(--green) 30%,transparent); background: color-mix(in srgb,var(--green) 8%,transparent); color: var(--green); }
.auth-message.error { border-color: color-mix(in srgb,var(--danger) 30%,transparent); background: color-mix(in srgb,var(--danger) 8%,transparent); color: var(--danger); }

.settings-grid { display: grid; gap: 20px; }
.settings-panel { padding: 27px; border-radius: var(--radius-xl); }
.settings-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.settings-panel__heading h2 { margin: 6px 0 0; font-size: 27px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 0; border-top: 1px solid var(--border); }
.setting-row strong { display: block; font-size: 13px; }
.setting-row small { color: var(--text-faint); font-size: 10px; }
.setting-row select { width: 190px; min-height: 40px; }
.switch { position: relative; width: 48px; height: 27px; flex: 0 0 auto; }
.switch input { position:absolute; opacity:0; }
.switch span { position:absolute; inset:0; border:1px solid var(--border); border-radius:999px; background:var(--surface-muted); cursor:pointer; transition:.2s; }
.switch span::after { content:""; position:absolute; width:19px; height:19px; left:3px; top:3px; border-radius:50%; background:var(--text-faint); transition:.2s var(--ease); }
.switch input:checked + span { border-color:var(--primary); background:var(--primary-soft); }
.switch input:checked + span::after { transform:translateX(21px); background:var(--primary); }
.certificate-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }
.certificate-card { padding: 19px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-muted); }
.certificate-card__head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.certificate-icon { width: 42px; height: 42px; display:grid; place-items:center; border-radius:12px; background:var(--primary-soft); color:var(--primary); font-size:10px; font-weight:900; }
.certificate-card__head strong { display:block; font-size:13px; }
.certificate-card__head small { color:var(--text-faint); font-size:10px; word-break:break-all; }
.certificate-card dl { margin: 12px 0 0; }
.certificate-card dl > div { padding: 10px 0; border-bottom: 1px solid var(--border); }
.certificate-card dl > div:last-child { border-bottom:0; }
.certificate-card dt { margin-bottom:5px; color:var(--text-faint); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.certificate-card dd { display:flex; align-items:center; gap:8px; margin:0; font-size:11px; }
.certificate-card code { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-soft); font-size:10px; }
.certificate-card dd button, .command-box button { margin-left:auto; padding:4px 7px; border:1px solid var(--border); border-radius:7px; background:transparent; color:var(--primary); font-size:9px; cursor:pointer; }
.command-box { margin-top: 17px; padding: 14px; border: 1px solid var(--border); border-radius: 14px; background: #030810; }
html[data-theme="light"] .command-box { background: #e9f0f6; }
.command-box > div { display:flex; justify-content:space-between; margin-bottom:8px; color:var(--text-faint); font-size:10px; }
.command-box code { color:var(--green); font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.form-note { margin: 12px 0 0; color: var(--text-faint); font-size: 10px; }
.diagnostic-list { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.diagnostic-list > div { padding:15px; border:1px solid var(--border); border-radius:13px; background:var(--surface-muted); }
.diagnostic-list span { display:block; color:var(--text-faint); font-size:10px; }
.diagnostic-list strong { display:block; margin-top:5px; font-size:12px; }
.diagnostic-list strong.ok { color:var(--green); }
.diagnostic-list strong.error { color:var(--danger); }

.support-widget { position: fixed; z-index: 100; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); }
.support-launcher { position: relative; height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 18px 0 15px; border: 1px solid var(--border-strong); border-radius: 999px; background: linear-gradient(135deg, rgba(73,165,241,.95), rgba(54,135,211,.95)); color: white; box-shadow: 0 14px 42px rgba(29,114,186,.34); cursor: pointer; }
.support-launcher svg { width: 23px; height: 23px; fill: currentColor; }
.support-launcher__label { font-size: 12px; font-weight: 800; }
.support-launcher__pulse { position:absolute; width:9px; height:9px; top:1px; right:5px; border:2px solid #fff; border-radius:50%; background:var(--green); }
.support-panel { position: absolute; right: 0; bottom: 68px; width: min(380px, calc(100vw - 28px)); max-height: min(650px, calc(100vh - 110px)); display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; visibility: hidden; opacity: 0; transform: translateY(15px) scale(.97); transform-origin: right bottom; transition: .25s var(--ease); }
.support-panel.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.support-panel__header { display: grid; grid-template-columns: 44px 1fr 39px; align-items: center; gap: 11px; padding: 16px; border-bottom: 1px solid var(--border); background: var(--surface-strong); }
.support-avatar { width:44px; height:44px; display:grid; place-items:center; border-radius:14px; background:linear-gradient(145deg,var(--primary),var(--cyan)); color:#06121c; font-size:11px; font-weight:900; }
.support-panel__header strong { display:block; font-size:13px; }
.support-status { display:flex; align-items:center; gap:6px; color:var(--text-faint); font-size:10px; }
.support-status > span:first-child { width:6px; height:6px; border-radius:50%; background:var(--yellow); }
.support-status.online { color:var(--green); }
.support-status.online > span:first-child { background:var(--green); }
.support-status.offline > span:first-child { background:var(--text-faint); }
.support-intro { padding: 18px; overflow-y:auto; }
.support-intro > p { margin-bottom:17px; font-size:12px; }
.support-intro form { display:grid; gap:12px; }
.support-panel select { appearance:none; }
.support-chat { min-height: 420px; display:flex; flex-direction:column; overflow:hidden; }
.support-messages { flex:1; display:flex; flex-direction:column; gap:10px; padding:16px; overflow-y:auto; scroll-behavior:smooth; }
.support-message { max-width:84%; padding:10px 12px; border-radius:14px; font-size:12px; line-height:1.5; }
.support-message small { display:block; margin-top:5px; opacity:.62; font-size:8px; }
.support-message--visitor { align-self:flex-end; border-bottom-right-radius:4px; background:linear-gradient(135deg,var(--primary-strong),#3f9fea); color:white; }
.support-message--operator { align-self:flex-start; border:1px solid var(--border); border-bottom-left-radius:4px; background:var(--surface-muted); }
.support-message--system { align-self:center; max-width:94%; padding:7px 9px; color:var(--text-faint); background:transparent; text-align:center; font-size:10px; }
.support-composer { display:grid; grid-template-columns:1fr 42px; align-items:end; gap:8px; padding:12px; border-top:1px solid var(--border); background:var(--surface-strong); }
.support-composer textarea { min-height:42px; max-height:110px; resize:none; }
.support-composer button { width:42px; height:42px; display:grid; place-items:center; border:0; border-radius:12px; background:var(--primary); color:#07121d; cursor:pointer; }
.support-composer button svg { width:20px; height:20px; fill:currentColor; }

.site-footer { margin-top: 80px; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg-soft) 72%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 50px; padding: 55px 0 42px; }
.brand--footer { margin-bottom: 16px; }
.footer-grid p { max-width: 340px; font-size: 12px; }
.footer-grid > div:not(:first-child) { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.footer-grid > div:not(:first-child) > strong { margin-bottom:4px; font-size:12px; }
.footer-grid a:not(.brand) { color:var(--text-faint); font-size:11px; }
.footer-grid a:not(.brand):hover { color:var(--primary); }
.footer-status { display:flex; align-items:center; gap:7px; color:var(--green); font-size:10px; }
.footer-status span { width:7px; height:7px; border-radius:50%; background:currentColor; }
.footer-grid small { color:var(--text-faint); font-size:10px; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; padding:19px 0; border-top:1px solid var(--border); color:var(--text-faint); font-size:10px; }
.toast-stack { position:fixed; z-index:200; left:50%; bottom:24px; display:grid; gap:8px; transform:translateX(-50%); pointer-events:none; }
.toast { min-width:250px; max-width:calc(100vw - 32px); padding:11px 15px; border:1px solid var(--border); border-radius:12px; background:var(--surface-strong); box-shadow:var(--shadow); color:var(--text); font-size:11px; text-align:center; backdrop-filter:blur(18px); }
.toast.error { border-color:color-mix(in srgb,var(--danger) 35%,transparent); color:var(--danger); }
.toast.success { border-color:color-mix(in srgb,var(--green) 35%,transparent); color:var(--green); }
.legal-content { padding: 38px; border-radius: var(--radius-xl); }
.legal-content h2 { margin: 32px 0 10px; font-size: 22px; }
.legal-content h2:first-child { margin-top:0; }
.legal-content p { line-height:1.8; }
.error-page { min-height:550px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.error-code { color:transparent; background:linear-gradient(135deg,var(--primary),var(--cyan)); -webkit-background-clip:text; background-clip:text; font-size:clamp(100px,20vw,220px); font-weight:900; line-height:.8; letter-spacing:-.08em; opacity:.8; }
.error-page h1 { margin:30px 0 10px; font-size:40px; }
.error-page p { max-width:500px; }
.error-page > div:last-child { display:flex; gap:10px; margin-top:15px; }

[hidden] { display: none !important; }

@media (max-width: 1100px) {
    .hero__grid { grid-template-columns: 1fr 470px; gap: 38px; }
    .hero-title { font-size: 58px; }
    .camera-grid--three { grid-template-columns: repeat(2, 1fr); }
    .benefit-grid { grid-template-columns: repeat(2, 1fr); }
    .auth-layout { grid-template-columns: 1fr 480px; gap: 45px; }
    .speed-layout { gap: 40px; }
    .diagnostic-list { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 860px) {
    :root { --header-height: 70px; }
    .container { width: min(calc(100% - 28px), var(--container)); }
    .header-login, .connection-pill { display:none; }
    .mobile-menu-button { display:block; }
    .main-nav { position:absolute; top:calc(100% + 8px); left:14px; right:14px; display:grid; padding:10px; border:1px solid var(--border); border-radius:16px; background:var(--surface-strong); box-shadow:var(--shadow); backdrop-filter:blur(20px); visibility:hidden; opacity:0; transform:translateY(-8px); transition:.2s ease; }
    .main-nav.open { visibility:visible; opacity:1; transform:none; }
    .main-nav a { padding:12px 13px; }
    .site-header__inner { gap:15px; }
    .header-actions { margin-left:auto; }
    .hero { min-height:auto; padding-top:calc(var(--header-height) + 70px); }
    .hero__grid, .status-layout, .story-grid, .speed-layout, .auth-layout { grid-template-columns: 1fr; }
    .hero__grid { gap:45px; }
    .hero__content { text-align:center; }
    .hero__content .eyebrow { justify-content:center; }
    .hero-copy { margin-inline:auto; }
    .hero-actions, .hero-metrics { justify-content:center; }
    .hero-visual { width:min(100%,620px); min-height:440px; margin-inline:auto; }
    .hero-camera { transform:none; }
    .status-layout, .story-grid, .speed-layout, .auth-layout { gap:34px; }
    .story-copy, .auth-copy { text-align:center; }
    .auth-copy .eyebrow { justify-content:center; }
    .auth-copy > p { margin-inline:auto; }
    .auth-benefits { width:min(100%,500px); margin-inline:auto; text-align:left; }
    .auth-card { width:min(100%,560px); margin-inline:auto; }
    .camera-detail__heading { align-items:flex-start; flex-direction:column; }
    .camera-detail__grid { grid-template-columns:1fr; }
    .stats-hero { align-items:flex-start; }
    .cta-panel { align-items:flex-start; flex-direction:column; }
    .footer-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .section--page { padding-top:calc(var(--header-height) + 50px); padding-bottom:35px; }
    .section--tight { padding-top:20px; }
    .brand small { display:none; }
    .brand__mark { width:38px; height:38px; }
    .theme-toggle { display:none; }
    h1 { font-size:42px; }
    h2 { font-size:31px; }
    .hero-title { font-size:46px; }
    .hero-copy, .page-hero p { font-size:16px; }
    .hero-actions { display:grid; }
    .hero-actions .button { width:100%; }
    .hero-metrics { gap:17px; }
    .hero-metrics strong { font-size:20px; }
    .hero-metrics span { font-size:9px; }
    .hero-visual { min-height:330px; }
    .hero-camera__bottom { padding:13px; }
    .hero-camera__bottom div:nth-child(3) { display:none; }
    .signal-card { left:-4px; bottom:-5px; }
    .online-float { right:-4px; top:25px; }
    .camera-grid--three, .benefit-grid, .stats-cards, .stats-info-grid, .certificate-grid { grid-template-columns:1fr; }
    .section-heading { align-items:flex-start; flex-direction:column; }
    .section-heading .text-link { align-self:flex-start; }
    .camera-card__play { opacity:1; transform:translate(-50%,-50%) scale(.9); }
    .status-board { padding:15px; }
    .status-row { grid-template-columns:42px minmax(0,1fr); }
    .status-ok { grid-column:2; }
    .cta-panel { padding:26px; }
    .cta-panel__actions { width:100%; display:grid; }
    .catalog-toolbar { align-items:stretch; flex-direction:column; }
    .filter-chips { width:100%; }
    .camera-modal { padding:8px; }
    .camera-modal__footer { align-items:flex-start; flex-direction:column; }
    .camera-detail__metrics { width:100%; overflow-x:auto; }
    .camera-detail__metrics span { flex:1 0 100px; }
    .camera-player-shell { border-radius:17px; }
    .stats-hero { flex-direction:column; }
    .current-online-card { width:100%; }
    .chart-panel { padding:17px; }
    .chart-panel__header { align-items:flex-start; flex-direction:column; }
    .chart-wrap { height:310px; }
    .chart-legend { align-items:flex-start; flex-direction:column; }
    .speedometer { padding-inline:15px; }
    .gauge { height:210px; }
    .gauge__value { top:80px; }
    .gauge__value strong { font-size:52px; }
    .speed-results strong { font-size:17px; }
    .auth-card, .settings-panel, .info-panel, .legal-content { padding:20px; }
    .setting-row { align-items:flex-start; }
    .setting-row select { width:150px; }
    .certificate-card__head { grid-template-columns:42px 1fr; }
    .certificate-card__head .status-chip { grid-column:2; justify-self:start; }
    .diagnostic-list { grid-template-columns:1fr; }
    .support-widget { right:12px; bottom:12px; }
    .support-launcher { width:54px; padding:0; justify-content:center; }
    .support-launcher__label { display:none; }
    .support-panel { right:0; bottom:64px; width:calc(100vw - 24px); max-height:calc(100vh - 92px); }
    .footer-grid { grid-template-columns:1fr; gap:28px; }
    .footer-bottom { align-items:flex-start; flex-direction:column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior:auto; }
    *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
