/* Flexible SCADA — сайт продукта. Без сборки и внешних зависимостей: шрифты системные, значки — встроенный SVG. */

:root {
  --brand: #2a78d6;
  --brand-2: #4ea1ff;
  --brand-soft: #e8f1fc;
  --ink: #0e1726;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e3e8f0;
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --night: #0a1020;
  --night-2: #111a2e;
  --night-line: rgba(255, 255, 255, .09);
  --ok: #22c55e;
  --warn: #f59e0b;
  --bad: #ef4444;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 80px rgba(2, 6, 23, .45);
  --wrap: 1200px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-head: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
.sec-head p, .lead { text-wrap: pretty; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(10, 16, 32, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: background .25s, border-color .25s; }
.hdr.solid { background: rgba(10, 16, 32, .92); border-bottom-color: var(--night-line); }
.hdr .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 19px/1 var(--font-head); letter-spacing: -.01em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { width: 30px; height: 30px; }
.logo small { font-weight: 500; color: rgba(255, 255, 255, .5); font-size: 13px; margin-inline-start: 2px; }
.nav { display: flex; gap: 4px; margin-inline-start: 8px; }
.nav a { color: rgba(255, 255, 255, .78); font-size: 15px; padding: 8px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.hdr-cta { margin-inline-start: auto; display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.burger .ico { width: 26px; height: 26px; }

/* меню языков */
.lang-sw { position: relative; }
.lang-sw summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 8px; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; -webkit-user-select: none; }
.lang-sw summary::-webkit-details-marker { display: none; }
.lang-sw summary:hover, .lang-sw[open] summary { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-sw summary .ico { width: 18px; height: 18px; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 170px; padding: 6px; display: grid; gap: 2px; background: var(--night-2); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 60; }
.lang-menu a { display: block; padding: 8px 12px; border-radius: 8px; color: rgba(255, 255, 255, .8); font-size: 15px; }
.lang-menu a:hover { background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; }
.lang-menu a[aria-current] { color: #fff; background: rgba(42, 120, 214, .32); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 16px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, border-color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(42, 120, 214, .35); }
.btn-primary:hover { background: #2369bf; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.btn-line { color: var(--ink); border-color: var(--line); background: #fff; }
.btn-line:hover { border-color: #c9d3e1; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }

/* ---------- первый экран ---------- */
.hero { position: relative; background: var(--night); color: #fff; overflow: hidden; margin-top: -64px; padding: 148px 0 0; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 78% 8%, rgba(42, 120, 214, .35), transparent 60%),
  radial-gradient(700px 420px at 8% 30%, rgba(78, 161, 255, .14), transparent 60%),
  linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(#000 55%, transparent); -webkit-mask-image: linear-gradient(#000 55%, transparent); }
.hero .wrap { position: relative; }
.hero-text { max-width: 860px; margin: 0 auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #bcd7ff; padding: 6px 14px; padding-inline-start: 10px; border: 1px solid rgba(78, 161, 255, .35); border-radius: 999px; background: rgba(42, 120, 214, .12); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 750; margin: 22px 0 20px; letter-spacing: -.03em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #7cc0ff, #4ea1ff 40%, #9ad0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: rgba(255, 255, 255, .75); max-width: 760px; margin: 0 auto; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero-note { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; font-size: 14px; color: rgba(255, 255, 255, .6); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .ico { width: 17px; height: 17px; color: #7cc0ff; }
.hero-shot { position: relative; margin: 56px auto 0; max-width: 1140px; }
.hero-shot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, var(--night)); pointer-events: none; }

/* окно браузера вокруг снимка */
.frame { border-radius: 12px; overflow: hidden; background: #1b2438; border: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #1b2438; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4560; }
.frame-bar i:nth-child(1) { background: #ff5f57; } .frame-bar i:nth-child(2) { background: #febc2e; } .frame-bar i:nth-child(3) { background: #28c840; }
.frame-url { margin: 0 auto; transform: translateX(-24px); font-size: 12.5px; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .06); padding: 3px 14px; border-radius: 6px; display: inline-flex; gap: 6px; align-items: center; }
.frame-url .ico { width: 12px; height: 12px; color: #6ee7a0; }
.frame img { width: 100%; height: auto; cursor: zoom-in; }
.frame.light { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.frame.light .frame-bar { background: #f1f4f9; border-bottom-color: var(--line); }
.frame.light .frame-url { color: var(--muted); background: #fff; }
.frame.light .frame-bar i { opacity: .9; }

/* плашки поверх снимка */
.chip-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(15, 23, 42, .86); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); }
.chip-float b { display: block; font-size: 15px; }
.chip-float small { color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.chip-float .ico { color: #7cc0ff; width: 24px; height: 24px; }
.chip-a { left: -34px; top: 26%; }
.chip-b { right: -30px; top: 52%; }
.chip-b .ico { color: #fbbf24; }

/* цифры */
.stats { background: var(--night); color: #fff; padding: 20px 0 84px; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); border-radius: var(--radius); overflow: hidden; }
.stats li { background: var(--night); padding: 26px 26px 24px; }
.stats b { display: block; font: 750 clamp(30px, 3.6vw, 42px)/1.1 var(--font-head); letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #b8d4f5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; color: rgba(255, 255, 255, .62); font-size: 15px; margin-top: 6px; }

/* ---------- секции ---------- */
.sec { padding: 104px 0; }
.sec.alt { background: var(--bg-2); }
.sec.dark { background: var(--night); color: #fff; }
.sec-head { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.sec-head.left { margin-inline-start: 0; text-align: start; }
.kicker { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.dark .kicker { color: #7cc0ff; }
.sec h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 750; letter-spacing: -.025em; }
.sec-head p { margin-top: 18px; font-size: 18.5px; color: var(--muted); }
.dark .sec-head p { color: rgba(255, 255, 255, .66); }

/* три части продукта */
.arch { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 26px; align-items: center; }
.arch-col { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.arch-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.arch-item .ico { color: var(--brand); width: 20px; height: 20px; }
.arch-item b { color: var(--ink); font-weight: 600; display: block; }
.arch-item small { color: var(--muted); font-size: 13.5px; }
.arch-core { position: relative; background: linear-gradient(160deg, #10203d, #0b1426); color: #fff; border-radius: 18px; padding: 28px 28px 26px; box-shadow: 0 20px 50px rgba(14, 23, 38, .25); }
.arch-core h3 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.arch-core h3 img { width: 28px; height: 28px; }
.arch-core p { color: rgba(255, 255, 255, .66); font-size: 15px; margin: 8px 0 18px; }
.arch-core ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arch-core li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 9px; padding: 8px 10px; }
.arch-core li .ico { width: 17px; height: 17px; color: #7cc0ff; }
.arch-core::before, .arch-core::after { content: ""; position: absolute; top: 50%; width: 26px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 6px, transparent 6px 10px); }
.arch-core::before { left: -26px; } .arch-core::after { right: -26px; }
.arch-label { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }

.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.part { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.part .pico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.part h3 { font-size: 21px; margin-bottom: 8px; }
.part p { color: var(--muted); font-size: 16px; }
.part .tag { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 600; color: #15803d; background: #dcfce7; padding: 4px 10px; border-radius: 999px; }

/* демо: вкладки со снимками */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 26px; }
.demo-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .04); color: rgba(255, 255, 255, .75); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 15px; transition: background .15s, color .15s, border-color .15s; }
.demo-tabs button small { font-size: 11.5px; font-weight: 700; color: #7cc0ff; background: rgba(78, 161, 255, .14); border-radius: 6px; padding: 1px 6px; }
.demo-tabs button:hover { color: #fff; border-color: rgba(255, 255, 255, .25); }
.demo-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.demo-tabs button[aria-selected="true"] small { color: var(--brand); background: var(--brand-soft); }
.demo-view { display: grid; grid-template-columns: 1fr 330px; gap: 28px; align-items: start; }
.demo-view .frame img { aspect-ratio: 16 / 9; object-fit: contain; background: #d9dbdd; }
.demo-cap h3 { font-size: 24px; margin-bottom: 10px; }
.demo-cap p { color: rgba(255, 255, 255, .7); font-size: 16px; }
.demo-cap ul { margin-top: 18px; display: grid; gap: 10px; }
.demo-cap li { display: flex; gap: 10px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.demo-cap li .ico { color: #7cc0ff; width: 19px; height: 19px; margin-top: 2px; }
.isa { display: flex; gap: 6px; margin-top: 22px; }
.isa span { flex: 1; text-align: center; font-size: 12px; padding: 7px 4px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .5); border: 1px solid var(--night-line); line-height: 1.25; }
.isa span.on { background: rgba(42, 120, 214, .25); color: #fff; border-color: rgba(78, 161, 255, .5); }
.isa-note { font-size: 13px; color: rgba(255, 255, 255, .45); margin-top: 8px; }
.demo-foot { text-align: center; margin-top: 40px; color: rgba(255, 255, 255, .6); font-size: 15px; }

/* сетка возможностей */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5deea; }
.card .pico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card a.more { display: inline-block; margin-top: 12px; font-size: 15px; font-weight: 600; }

/* ряды «снимок + текст» */
.row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.row + .row { margin-top: 110px; }
.row.flip { grid-template-columns: 1fr 1.25fr; }
.row.flip > :first-child { order: 2; }
.row h2 { font-size: clamp(28px, 3.4vw, 38px); }
.row .text > p { margin-top: 16px; color: var(--muted); font-size: 17.5px; }
.ticks { margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
.ticks li .ico { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.dark .ticks li { color: rgba(255, 255, 255, .82); }
.dark .ticks li .ico { color: #7cc0ff; }
.badge { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #7c3aed; background: #f3e8ff; border-radius: 6px; padding: 3px 8px; margin-inline-start: 8px; vertical-align: middle; }

/* код */
.code { background: #0d1526; border-radius: 12px; border: 1px solid #1e2a44; box-shadow: var(--shadow-lg); overflow: hidden; }
.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #0a111f; border-bottom: 1px solid #1e2a44; }
.code-tabs button { background: none; border: 0; color: #8a9bb8; padding: 8px 14px; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 14px; }
.code-tabs button[aria-selected="true"] { background: #0d1526; color: #fff; }
.code pre { margin: 0; padding: 22px 24px; font: 14px/1.65 var(--mono); color: #d6e2f5; overflow-x: auto; min-height: 330px; }
.code .k { color: #7cb7ff; } .code .c { color: #6b7f9e; } .code .s { color: #a5e3a0; } .code .n { color: #f7c27b; } .code .t { color: #c7a4ff; }

/* протоколы */
.protos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.proto { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 16px; }
.proto b { display: block; font-size: 16.5px; }
.proto span { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; line-height: 1.45; }
.proto.more { background: transparent; border-style: dashed; display: flex; flex-direction: column; justify-content: center; }
.proto-note { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.proto-note div { display: flex; gap: 12px; font-size: 15.5px; color: var(--ink-2); }
.proto-note .ico { color: var(--brand); margin-top: 2px; }

/* стандарты */
.stds { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.std { display: flex; flex-direction: column; flex: 0 1 calc(25% - 9px); min-width: 220px; background: rgba(255, 255, 255, .04); border: 1px solid var(--night-line); border-radius: 12px; padding: 16px 18px; }
.std b { font-size: 17px; color: #fff; }
.std span { font-size: 14px; color: rgba(255, 255, 255, .6); margin-top: 4px; }

/* производительность */
.perf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perf div { border-radius: var(--radius); padding: 28px; background: #fff; border: 1px solid var(--line); }
.perf b { display: block; font: 750 38px/1.1 var(--font-head); letter-spacing: -.02em; color: var(--brand); }
.perf p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.perf small { display: block; margin-top: 10px; color: var(--muted); font-size: 13.5px; }

/* платформы */
.plat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plat > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.plat h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; }
.plat h3 .ico { width: 26px; height: 26px; color: var(--brand); }
.plat p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.plat ul { margin-top: 16px; display: grid; gap: 8px; }
.plat li { font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; }
.plat li .ico { width: 18px; height: 18px; color: var(--ok); margin-top: 3px; }
.plat .btn { margin-top: auto; align-self: flex-start; }
.plat .sp { flex: 1; min-height: 20px; }

/* редакции */
.eds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.ed { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.ed.hl { border: 2px solid var(--brand); box-shadow: 0 20px 50px rgba(42, 120, 214, .15); position: relative; }
.ed.hl::before { content: attr(data-flag); position: absolute; top: -13px; inset-inline-start: 28px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.ed h3 { font-size: 23px; }
.ed .for { color: var(--muted); font-size: 15px; margin-top: 6px; min-height: 48px; }
.ed .price { font: 700 26px/1.2 var(--font-head); margin: 18px 0 20px; }
.ed .price small { display: block; font: 400 14px/1.4 var(--font); color: var(--muted); margin-top: 4px; }
.ed ul { display: grid; gap: 10px; margin-bottom: 26px; }
.ed li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.ed li .ico { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.ed .btn { margin-top: auto; }

/* языки */
.langs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.langs span { padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; }

/* призыв и форма */
.cta { background: linear-gradient(135deg, #0f2a55, #0a1020 60%); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(78, 161, 255, .3), transparent 70%); }
.cta .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.cta h2 { font-size: clamp(30px, 4vw, 44px); }
.cta .kicker { color: #7cc0ff; }
.cta .wrap.line { grid-template-columns: 1fr auto; }
.cta .wrap.line .btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cta p.lead { margin-top: 16px; color: rgba(255, 255, 255, .72); font-size: 18px; }
.form { background: #fff; color: var(--ink); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-lg); display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.form input, .form textarea, .form select { font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); border: 1px solid #d4dbe6; border-radius: 10px; padding: 11px 13px; background: #fff; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid rgba(42, 120, 214, .2); border-color: var(--brand); }
.form textarea { min-height: 96px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { width: 100%; }
.form .fine { font-size: 13px; color: var(--muted); }
.form .done { display: none; padding: 14px; border-radius: 10px; background: #dcfce7; color: #166534; font-size: 15px; }
.form.sent .done { display: block; }
.contacts { display: grid; gap: 14px; margin-top: 30px; }
.contacts a, .contacts span { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 17px; }
.contacts .ico { color: #7cc0ff; }

/* подвал */
.ftr { background: #070b16; color: rgba(255, 255, 255, .6); padding: 64px 0 36px; font-size: 15px; }
.ftr .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ftr h4 { color: #fff; font-size: 15px; margin-bottom: 14px; font-family: var(--font); }
.ftr ul { display: grid; gap: 9px; }
.ftr a { color: rgba(255, 255, 255, .6); }
.ftr a:hover { color: #fff; }
.ftr .about { margin-top: 14px; max-width: 360px; }
.ftr .logo, .ftr .logo:hover { color: #fff; }
.ftr .bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; }

/* страницы-разделы */
.page-hero { background: var(--night); color: #fff; margin-top: -64px; padding: 150px 0 80px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 80% 0%, rgba(42, 120, 214, .3), transparent 65%), linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 44px 44px, linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px) 0 0 / 44px 44px; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; letter-spacing: -.03em; max-width: 860px; }
.page-hero p { margin-top: 18px; font-size: 19px; color: rgba(255, 255, 255, .7); max-width: 760px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.toc a { color: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; }
.toc a:hover { background: rgba(255, 255, 255, .08); text-decoration: none; color: #fff; }

.feat-block { padding: 90px 0; border-bottom: 1px solid var(--line); }
.feat-block:nth-of-type(even) { background: var(--bg-2); }
.feat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; margin-top: 30px; }
.feat-list li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-2); }
.feat-list li .ico { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.feat-list li b { color: var(--ink); }

table.req { width: 100%; border-collapse: collapse; font-size: 15.5px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
table.req th, table.req td { text-align: start; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.req th { background: var(--bg-2); font-weight: 600; color: var(--ink-2); width: 26%; }
table.req tr:last-child th, table.req tr:last-child td { border-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 24px; position: relative; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 18.5px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15.5px; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--muted); font-size: 16px; }

/* увеличение снимка */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(3, 7, 18, .9); display: none; align-items: center; justify-content: center; padding: 3vw; cursor: zoom-out; }
.lb.open { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.lb button { position: absolute; top: 16px; right: 20px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 24px; cursor: pointer; }

/* ---------- арабский: справа налево ---------- */
html[dir="rtl"] { --font: "Segoe UI", Tahoma, "Noto Sans Arabic", "Geeza Pro", system-ui, sans-serif; --font-head: var(--font); }
html[dir="rtl"] body { font-size: 18px; }
html[dir="rtl"] *, html[dir="rtl"] *::before { letter-spacing: normal !important; } /* разрядка рвёт связную арабскую вязь */
[dir="rtl"] .ico:has(> use[href="#i-arrow"]) { transform: scaleX(-1); }
[dir="rtl"] .frame-bar, [dir="rtl"] .code { direction: ltr; }
[dir="rtl"] .frame-url { unicode-bidi: plaintext; }
[dir="rtl"] .code-tabs { direction: rtl; }
[dir="rtl"] .lb button { right: auto; left: 20px; }
code, .proto b, .std b { unicode-bidi: isolate; }

/* появление при прокрутке */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- узкие экраны ---------- */
@media (max-width: 1280px) {
  .hdr-cta .btn-ghost { display: none; } /* «Скачать» и так есть в меню — освобождаем место для меню языков */
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr-cta .btn-ghost { display: none; }
  .burger { display: block; }
  .hdr .wrap { gap: 12px; }
  .hdr.open .nav { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10, 16, 32, .98); padding: 10px 16px 18px; margin: 0; border-bottom: 1px solid var(--night-line); }
  .hdr.open .nav a { padding: 12px; font-size: 17px; }
  .chip-a, .chip-b { display: none; }
  .arch { grid-template-columns: 1fr; }
  .arch-core::before, .arch-core::after { display: none; }
  .demo-view { grid-template-columns: 1fr; }
  .grid4, .protos { grid-template-columns: repeat(2, 1fr); }
  .row, .row.flip, .cta .wrap, .cta .wrap.line { grid-template-columns: 1fr; gap: 36px; }
  .row.flip > :first-child { order: 0; }
  .ftr .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .sec { padding: 76px 0; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .grid3, .parts, .perf, .plat, .eds, .proto-note, .steps, .feat-list { grid-template-columns: 1fr; }
  .ed.hl { margin-top: 10px; }
  .hero { padding-top: 120px; }
  .hdr-cta .btn { display: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 18px; }
  .grid4, .protos { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .ftr .cols { grid-template-columns: 1fr; }
  .frame-url { display: none; }
  .logo small { display: none; }
  .stats li { padding: 20px 16px; }
  .stats b { font-size: 27px; white-space: nowrap; }
  .btn { white-space: normal; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; text-align: center; line-height: 1.3; }
  .btn-sm { min-height: 38px; }
  .arch { grid-template-columns: minmax(0, 1fr); }
  .arch-core { padding: 24px 20px; }
  .arch-core ul { grid-template-columns: 1fr; }
}
