:root {
  --bg: #fafaf8; --fg: #1d1d1b; --muted: #5f5f59; --line: #dcdcd4;
  --card: #ffffff; --accent: #1f5f4a; --accent-fg: #ffffff;
  --sky: #e6f3fb; --sky-line: #c4e0f0; --mint: #e8f6df; --mint-line: #c9e6b8; --glow: rgba(90, 170, 150, .16); --pill: rgba(255, 255, 255, .6);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161714; --fg: #ecece6; --muted: #a3a39a; --line: #34352f;
    --card: #1f201c; --accent: #5fbf9f; --accent-fg: #10110f;
    --sky: #1a2830; --sky-line: #2c4452; --mint: #1e2b1d; --mint-line: #34502f; --glow: rgba(95, 191, 159, .12); --pill: rgba(255, 255, 255, .07);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
main, .bar, .foot { max-width: 960px; margin: 0 auto; padding: 0 20px; }
main { padding-top: 32px; padding-bottom: 48px; }
.bar { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.bar nav { display: flex; gap: 18px; align-items: center; }
.bar a { text-decoration: none; }
.brand { font-weight: 700; font-size: 1.2em; color: var(--fg); }
.lang { border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: .85em; }
h1 { font-size: 2em; line-height: 1.2; margin: .4em 0; }
h2 { margin-top: 2em; }
.hero { padding: 24px 20px 12px; margin: 0 -20px; background: radial-gradient(ellipse 60% 120% at 0% 0%, var(--sky) 0%, transparent 70%), radial-gradient(ellipse 60% 120% at 100% 0%, var(--mint) 0%, transparent 70%); border-radius: 18px; }
.lead { font-size: 1.15em; color: var(--muted); max-width: 40em; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-fg);
  border: 1px solid var(--accent); border-radius: 8px; padding: 10px 18px;
  text-decoration: none; font: inherit; cursor: pointer; margin-right: 8px;
}
.btn.ghost { background: transparent; color: var(--accent); }
/* Кнопки в первом экране: на узком экране идут столбиком с зазором, на широком в ряд */
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.cta .btn { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid.terms { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid, .grid.terms { grid-template-columns: 1fr; } }
.card { background: var(--sky); border: 1px solid var(--sky-line); border-radius: 14px; padding: 16px 18px; color: var(--fg); text-decoration: none; box-shadow: 0 6px 18px var(--glow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
/* Строки карточек чередуют небесный и салатовый оттенок. Раскладка зависит от числа колонок, поэтому правила идут по ширине */
.grid > .card:nth-child(6n+4), .grid > .card:nth-child(6n+5), .grid > .card:nth-child(6n+6) { background: var(--mint); border-color: var(--mint-line); }
.grid.terms > .card:nth-child(4n+1), .grid.terms > .card:nth-child(4n+2) { background: var(--sky); border-color: var(--sky-line); }
.grid.terms > .card:nth-child(4n+3), .grid.terms > .card:nth-child(4n+4) { background: var(--mint); border-color: var(--mint-line); }
@media (max-width: 820px) {
  .grid:not(.terms) > .card:nth-child(4n+1), .grid:not(.terms) > .card:nth-child(4n+2) { background: var(--sky); border-color: var(--sky-line); }
  .grid:not(.terms) > .card:nth-child(4n+3), .grid:not(.terms) > .card:nth-child(4n+4) { background: var(--mint); border-color: var(--mint-line); }
}
@media (max-width: 560px) {
  .grid > .card:nth-child(odd) { background: var(--sky); border-color: var(--sky-line); }
  .grid > .card:nth-child(even) { background: var(--mint); border-color: var(--mint-line); }
}
.more { margin-top: 20px; }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 .6em; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card.link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 10px 24px var(--glow); }
.tags span { display: inline-block; font-size: .8em; background: var(--pill); border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; margin: 8px 6px 0 0; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; text-decoration: none; font-size: .92em; color: var(--fg); background: var(--card); }
.chip.on, .chip:hover { border-color: var(--accent); color: var(--accent); }
.shot { margin: 16px 0; }
.shot img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hint { opacity: .8; }
.lightbox { max-width: 96vw; max-height: 94vh; width: auto; padding: 0; border: 0; border-radius: 10px; background: var(--card); overflow: auto; cursor: zoom-out; }
.lightbox::backdrop { background: rgba(0, 0, 0, .78); }
.lightbox img { display: block; width: max(96vw, 1600px); max-width: none; height: auto; }
.lightbox .close { position: sticky; top: 8px; float: right; margin: 8px 8px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .65); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; z-index: 1; }
.shot figcaption { color: var(--muted); font-size: .85em; margin-top: 6px; }
.story { max-width: 40em; }
.story p { margin: 0 0 1.1em; }
form { max-width: 520px; }
label { display: block; margin-top: 14px; font-weight: 600; }
input, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
button.btn { margin-top: 16px; }
.errorlist { color: #b3261e; list-style: none; padding: 0; margin: 4px 0 0; }
.ok { background: var(--card); border: 1px solid var(--accent); border-radius: 8px; padding: 10px 14px; }
.hp { position: absolute; left: -9999px; }
.foot { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9em; }
@media (max-width: 560px) { h1 { font-size: 1.6em; } .bar { flex-wrap: wrap; gap: 6px 12px; } .bar nav { flex-wrap: wrap; gap: 4px 14px; font-size: .95em; } }

.foot-note { color: var(--muted); font-size: 12px; }
.card .more { margin: .4em 0 0; font-weight: 600; color: var(--fg); }

.badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--fg); color: #fff; font-size: 11px; font-weight: 600; vertical-align: middle; letter-spacing: .02em; }
.grid.single { grid-template-columns: minmax(0, 620px); }

.banner { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 18px; margin: 0 -20px 18px; padding: 14px 20px; border-radius: 16px; background: linear-gradient(135deg, var(--mint), var(--sky)); border: 1px solid var(--mint-line); color: var(--fg); text-decoration: none; box-shadow: 0 6px 18px var(--glow); transition: transform .15s ease, box-shadow .15s ease; }
.banner:hover { transform: translateY(-1px); box-shadow: 0 10px 26px var(--glow); }
.banner-art { width: 200px; height: 100px; display: block; }
.banner-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.banner-body strong { font-size: 20px; line-height: 1.25; }
.banner-body span { color: var(--muted); }
.banner-new { align-self: flex-start; background: var(--accent); color: var(--accent-fg); border-radius: 6px; padding: 1px 8px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.banner-btn { margin: 0; white-space: nowrap; }
.bn-floor { fill: var(--card); stroke: var(--line); stroke-width: 1.5; }
.bn-rack { fill: var(--sky); stroke: var(--sky-line); stroke-width: 1; }
.bn-hl { fill: #ffc857; stroke: #b7791f; stroke-width: 1.5; }
.bn-route { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; stroke-linecap: round; }
.bn-gate { fill: var(--accent); }
.bn-pin { fill: #d9480f; }
.bn-pin-dot { fill: #fff; }
.bn-lbl { font: 600 10px system-ui, sans-serif; fill: var(--muted); }
@media (max-width: 720px) {
  .banner { grid-template-columns: 1fr; gap: 10px; padding: 14px 20px; }
  .banner-art { width: 100%; height: auto; max-height: 120px; }
  .banner-btn { justify-self: start; }
}

.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.eyebrow .badge { margin: 0; }
.shot { margin: 18px 0; }
.shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 18px var(--glow); }
.shot figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }
.shots { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; align-items: start; }
.shots .shot { margin: 0; }
.steps { display: grid; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step > b { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.step h3 { margin: 4px 0 4px; }
.step p { margin: 0; color: var(--muted); }
.features { columns: 2 280px; column-gap: 32px; padding-left: 20px; line-height: 1.6; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--card); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.hero.end { margin-top: 28px; }

/* лайтбокс посадочной: картинка по ширине окна, длинная — прокручивается */
.lightbox.fit img { width: min(96vw, 1800px); max-width: none; }
.lightbox.fit.portrait img { width: min(96vw, 1100px); margin: 0 auto; }
.shot .zoom { position: relative; }
.shot .zoom::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 17px; line-height: 30px; text-align: center; opacity: 0; transition: opacity .15s; pointer-events: none; }
.shot .zoom:hover::after, .shot .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .shot .zoom::after { opacity: .9; } }

/* Два баннера рядом: Шуруп слева, склад справа */
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin: 0 -20px 18px; }
.banners .banner { margin: 0; grid-template-columns: 130px 1fr; gap: 14px; padding: 14px 16px; align-items: start; }
.banners .banner-art { width: 130px; height: 65px; margin-top: 4px; }
.banners .banner-body strong { font-size: 18px; }
.banners .banner-body span { font-size: 15px; line-height: 1.45; }
.banners .banner-body .banner-btn { align-self: flex-start; margin-top: 8px; padding: 7px 14px; font-size: 15px; color: var(--accent-fg); }
.banners .banner:first-child { background: linear-gradient(135deg, var(--sky), var(--mint)); border-color: var(--sky-line); }
@media (max-width: 720px) {
  .banners { grid-template-columns: 1fr; margin: 0 0 18px; }
  .banners .banner { grid-template-columns: 96px 1fr; }
  .banners .banner-art { width: 96px; height: 48px; max-height: none; }
}
.sh-box rect, .sh-box path { fill: #f3d9a4; stroke: #b7791f; stroke-width: 1.2; }
.sh-box path { fill: none; }
.sh-bubble rect, .sh-bubble path { fill: var(--accent); }
.sh-bubble-t { font: 700 10px system-ui, sans-serif; fill: var(--accent-fg); text-anchor: middle; }
.sh-phone { fill: var(--card); stroke: var(--fg); stroke-width: 2; }
.sh-notch { fill: var(--line); }
.sh-line { fill: var(--sky-line); }
.sh-ok { fill: #2f9e44; }
.sh-fix { fill: #f08c00; }
.sh-tick { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sh-shank { fill: #ced4da; stroke: #868e96; stroke-width: 1; }
.sh-thread { fill: none; stroke: #868e96; stroke-width: 1.2; }
.sh-head { fill: #dee2e6; stroke: #868e96; stroke-width: 1.2; }
.sh-slot { fill: none; stroke: #495057; stroke-width: 1.6; stroke-linecap: round; }
.sh-spin { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.redact { display: inline-block; width: var(--w, 8ch); height: 1.05em; vertical-align: -.18em; background: var(--fg); border-radius: 3px; }
.muted { color: var(--muted); }
.teaser-art { width: 100%; max-width: 420px; height: auto; display: block; }
.hero.split { display: grid; grid-template-columns: 1fr 300px; gap: 20px; align-items: center; }
@media (max-width: 720px) { .hero.split { grid-template-columns: 1fr; } .hero.split .teaser-art { max-width: 260px; } }

/* Три баннера карточками: картинка сверху, текст, кнопка внизу */
.banners { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.banners .banner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 12px; padding: 12px 12px 16px; border-radius: 18px; }
.banners .banner-art { width: 100%; height: auto; aspect-ratio: 2 / 1; margin: 0; border-radius: 12px; }
.banners .banner-body { padding: 0 6px; height: 100%; }
.banners .banner-body strong { font-size: 19px; }
.banners .banner-body .banner-btn { margin-top: auto; padding-top: 7px; }
.banners .banner-body span:not(.btn) { margin-bottom: 10px; }
.banners .banner:hover { transform: translateY(-3px); }
.banner-space { background: linear-gradient(160deg, #0A0F24 0%, #172150 100%) !important; border-color: #2C3A7A !important; color: #EEF1FA; box-shadow: 0 8px 26px rgba(23, 33, 80, .35); }
.banner-space .banner-body span { color: #B9C3E0; }
.banner-space .banner-new { background: #5CE6FF; color: #0A0F24; }
.banners .banner-space .banner-body .banner-btn { background: #5CE6FF; color: #0A0F24; border-color: #5CE6FF; }
.banner-space:hover { box-shadow: 0 12px 34px rgba(92, 230, 255, .25); }
@media (max-width: 720px) {
  .banners .banner { grid-template-columns: 110px 1fr; grid-template-rows: auto; padding: 12px; }
  .banners .banner-art { width: 110px; aspect-ratio: 2 / 1; }
  .banners .banner-body { padding: 0; }
}
.iv-bg { fill: #0A0F24; }
.iv-star circle { fill: #fff; opacity: .8; }
.iv-planet { fill: #172150; stroke: rgba(92, 230, 255, .35); stroke-width: 1; }
.iv-orbit { fill: none; stroke: rgba(92, 230, 255, .45); stroke-width: 1; stroke-dasharray: 3 3; }
.iv-sat { fill: #FFB547; }
.iv-shelf path { fill: none; stroke: #2C3A7A; stroke-width: 2; stroke-linecap: round; }
.iv-box { fill: #3B4B8F; stroke: #5868B0; stroke-width: 1; }
.iv-done { fill: #1F6F73; stroke: #5CE6FF; }
.iv-dup { fill: #5A3E12; stroke: #FFB547; }
.iv-dup-t { font: 700 7px system-ui, sans-serif; fill: #FFB547; text-anchor: middle; }
.iv-tick { fill: none; stroke: #5CE6FF; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.iv-phone { fill: #10173A; stroke: #5CE6FF; stroke-width: 1.6; }
.iv-notch { fill: #2C3A7A; }
.iv-cap { font: 500 6px system-ui, sans-serif; fill: #8C97BA; text-anchor: middle; }
.iv-num { font: 800 19px system-ui, sans-serif; fill: #EEF1FA; text-anchor: middle; }
.iv-pill { fill: none; stroke: #5CE6FF; stroke-width: 1; }
.iv-pill-t { font: 700 5.6px system-ui, sans-serif; fill: #5CE6FF; text-anchor: middle; }
.iv-save { fill: #5CE6FF; }
.iv-save-t { font: 700 6px system-ui, sans-serif; fill: #0A0F24; text-anchor: middle; }
.iv-1c { fill: #FFB547; }
.iv-1c-t { font: 800 7px system-ui, sans-serif; fill: #0A0F24; text-anchor: middle; }
.iv-link { fill: none; stroke: #FFB547; stroke-width: 1.2; stroke-dasharray: 2 2; }
