@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(./fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url(./fonts/sofia-sans-extra-condensed-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url(./fonts/sofia-sans-extra-condensed-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url(./fonts/sofia-sans-extra-condensed-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Sofia Sans Extra Condensed';
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url(./fonts/sofia-sans-extra-condensed-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:root {
  --night: #0a0d14;
  --floor: #111622;
  --room: #161c2b;
  --wall: #2b3550;
  --text: #f1f3f7;
  --text-2: #c3cad6;
  --core: #F15C22;
  --stratus: #6b74ff;
  --oxygen: #FF7A2E;
  --xenon: #9a8cff;
  --ai: #6fb3ff;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --font: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--night); color: var(--text); font: 400 16px/1.5 var(--font); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--night); }
a { color: inherit; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--core); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 18px; }
.top img { height: 34px; width: auto; display: block; }
.top a { font: 600 15px var(--font); text-decoration: none; }
.top a:hover { color: var(--core); }

.head .wrap { padding-block: 18px 22px; }
.head h1 { font: 800 clamp(28px, 4.2vw, 56px) / 1.05 var(--font); letter-spacing: -0.03em; max-width: 20em; text-wrap: balance; }
.head h1 em { font-style: normal; color: var(--core); }

.board { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; padding-bottom: 56px; }
.plan-box { background: var(--floor); border: 1px solid var(--wall); border-radius: 14px; padding: 10px; min-width: 0; }
.plan { display: block; width: 100%; height: auto; }

.zone { cursor: pointer; }
.zone .room { fill: var(--room); stroke: var(--wall); stroke-width: 2; transition: stroke 0.2s, fill 0.2s; }
.zone:hover .room { stroke: #4a5778; }
.zone.on .room { stroke: var(--core); stroke-width: 3; fill: #1b2133; }
.zone.ping .room { animation: ping 0.9s ease-out; }
@keyframes ping { 30% { fill: #263052; } }
.zone .name { font: 900 26px var(--display); fill: var(--text); text-transform: uppercase; letter-spacing: 0.02em; }
.zone .tag { font: 600 13px var(--font); fill: var(--text-2); }
.zone:focus { outline: none; }
.zone:focus-visible .room { stroke: var(--core); stroke-width: 3; }
.outside .room { fill: none; stroke-dasharray: 6 6; }
.zone.on.outside .room { fill: #161b29; }
.zone.mystery .room, .zone.mystery.on .room { fill: url(#hazard); stroke: #F15C22; stroke-dasharray: 12 6; }
.zone.mystery .q { font: 900 46px var(--display); fill: var(--core); }
.zone .name.name-sm { font-size: 24px; }
.zone.mystery .q { animation: blink 2.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .zone.mystery .q { animation: none; } }
.thing { fill: #222a3e; stroke: #33405f; stroke-width: 1.5; }
.thing-light { fill: #2d3752; }
.flow { fill: none; stroke-width: 2; stroke-dasharray: 4 7; opacity: 0.55; }
.walls { fill: none; stroke: #3a4666; stroke-width: 4; }

.panel { background: var(--floor); border: 1px solid var(--wall); border-radius: 14px; padding: 22px; display: grid; gap: 14px; position: sticky; top: 16px; }
.panel .where { font: 900 clamp(34px, 3.3vw, 50px) / 0.9 var(--display); text-transform: uppercase; overflow-wrap: anywhere; }
.panel .what { font-size: 17px; line-height: 1.45; }
.helps { display: grid; gap: 8px; }
.helps .lbl, .us .lbl { font: 700 12px var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); }
.product { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 8px; background: #1a2031; border-left: 4px solid var(--tone); text-decoration: none; }
.product b { font: 900 26px var(--display); letter-spacing: 0.01em; }
.product b.caps { text-transform: uppercase; font-size: 24px; letter-spacing: 0.02em; }
.product span { font-size: 13px; color: var(--text-2); }
a.product:hover { background: #20283c; }
.pill { font: 600 11px var(--font); padding: 2px 7px; border-radius: 9px; border: 1.5px solid var(--ai); color: var(--ai); margin-left: 6px; vertical-align: 3px; letter-spacing: 0.03em; }
.us { display: grid; gap: 6px; border-top: 1px solid var(--wall); padding-top: 14px; }
.us p { color: var(--text-2); font-size: 15px; }

.ticker { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 4px 6px; font-size: 14px; color: var(--text-2); min-height: 28px; }
.ticker b { font: 700 11px var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--core); flex: none; }
.ticker span { transition: opacity 0.3s; }
.ticker i { font-style: normal; color: var(--text-2); opacity: 0.8; flex: none; margin-left: auto; font-size: 12px; }

.partner { background: #0e121c; border-top: 1px solid var(--wall); }
.partner .wrap { padding-block: 44px; display: grid; gap: 18px; }
.partner h2, .contact h2 { font: 900 clamp(26px, 3.5vw, 50px) / 0.9 var(--display); text-transform: uppercase; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.service { border-top: 4px solid var(--core); background: var(--floor); padding: 18px; display: grid; gap: 6px; align-content: start; }
.service h3 { font: 900 18px / 1 var(--display); text-transform: uppercase; }
.service p { color: var(--text-2); font-size: 15px; }
.note { font-size: 13px; color: #ffe1a3; border: 1px dashed #c99a2e; background: rgba(201,154,46,0.14); border-radius: 6px; padding: 7px 12px; }
.contact { background: var(--core); color: #fff; }
.contact .wrap { padding-block: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 48px; align-items: start; }
.contact-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.products { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid rgba(10,13,20,0.35); }
.products li { border-bottom: 2px solid rgba(10,13,20,0.35); }
.products a, .products .item { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding: 12px 2px; text-decoration: none; }
.products b { font: 900 26px / 1 var(--display); letter-spacing: 0.01em; color: var(--night); }
.products b.caps { text-transform: uppercase; font-size: 24px; letter-spacing: 0.02em; }
.products span { font-size: 15px; color: #fff; }
.products i { font-style: normal; font-weight: 600; font-size: 14px; color: var(--night); white-space: nowrap; }
.products a:hover b, .products a:hover i { color: #fff; }
.contact h2 { color: var(--night); }
.phone { font: 900 clamp(34px, 6vw, 90px) / 0.9 var(--display); text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--night); }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px 36px; font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; }
.contact-row span { user-select: all; }
.copy { font: 600 12px var(--font); color: #fff; background: rgba(0,0,0,0.18); border: 0; border-radius: 4px; height: 26px; padding: 0 10px; cursor: pointer; margin-left: 8px; vertical-align: 2px; }
.legal { font-size: 13px; color: rgba(255,255,255,0.9); }
.legal a { font-weight: 600; }

@media (max-width: 860px) {
  .contact .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .products a, .products .item { grid-template-columns: minmax(0, 1fr) auto; }
  .products span { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 980px) {
  .board { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) { .zone .name { font-size: 40px; } .zone .name.name-sm { font-size: 30px; } .zone .tag { display: none; } }
@media (max-width: 460px) { .services { grid-template-columns: minmax(0, 1fr); } .ticker i { display: none; } }
