/* Tokens: mockups/design-system.md */
@font-face { font-family: "Tinos"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/tinos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Tinos"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/tinos-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: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-text-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(fonts/golos-text-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: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jetbrains-mono-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/jetbrains-mono-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; }

:root {
  color-scheme: dark;
  --space-0: #03050b; --space-1: #070c18;
  --surface-1: #0b1324; --surface-2: #101a30; --surface-3: #16223b;
  --line: rgba(150,185,230,.14); --line-2: rgba(150,185,230,.28);
  --ink: #e8eef7; --ink-2: #a8b5c8; --ink-3: #7888a0;
  --accent: #5fb0e8; --accent-2: #8fd0ff; --accent-ink: #03101f; --brand-navy: #043168;
  --ok: #7fe0a6; --danger: #ff8a7a;
  --si-ink: #e8eef7; --si-ink-2: #a8c4e4; --si-line: rgba(95,176,232,.5); --si-dot: #8fd0ff; --si-back: #34507a;
  --serif: "Tinos", "Times New Roman", Times, serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --maxw: 1200px; --gutter: clamp(16px, 4vw, 40px);
  --header-h: 64px;
  --r-l: 22px; --r-m: 14px; --r-s: 8px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
[hidden] { display: none !important; }
html { background: var(--space-0); scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; background: var(--space-0); color: var(--ink); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; display: block; }
main, .ftr { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 600 15px/1 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .25s; }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 0 6px rgba(95,176,232,.16), 0 10px 30px -8px rgba(95,176,232,.55); }
.btn-ghost { background: rgba(8,14,28,.5); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn:focus-visible, .input:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

/* Header */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .35s, border-color .35s, backdrop-filter .35s; border-bottom: 1px solid transparent; }
.hdr.solid { background: rgba(3,5,11,.74); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.hdr-in { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 19px/1 var(--serif); letter-spacing: .06em; transition: opacity .4s, transform .4s var(--ease); }
.js .brand { opacity: 0; transform: translateY(-4px); }
.js .hdr.solid .brand { opacity: 1; transform: none; }
.brand img { height: 40px; width: auto; flex: none; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
/* Одна кнопка вместо номера: нажатие набирает номер */
.hdr-call { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 24px; border-radius: 999px; background: linear-gradient(180deg, var(--accent), #2f86c4); color: var(--accent-ink); text-decoration: none; font: 600 15px/1 var(--sans); white-space: nowrap; box-shadow: 0 10px 28px rgba(95,176,232,.3); transition: transform .25s var(--ease), box-shadow .25s, filter .25s; }
.hdr-call:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(95,176,232,.44); filter: brightness(1.06); }
.hdr-call svg { width: 18px; height: 18px; flex: none; }
.hdr .btn { margin-left: 4px; }
.nav, .hdr-req { transition: opacity .45s var(--ease); }
/* На первом экране меню и заявка живут спутниками вокруг Земли, в шапке остаётся только звонок */
.wd .hdr:not(.solid) .nav, .wd .hdr:not(.solid) .hdr-req { opacity: 0; pointer-events: none; }
@media (max-width: 900px) {
  .nav { display: none; }
  .hdr-call { margin-left: auto; height: 42px; padding: 0 18px; font-size: 14px; }
  .hdr-in { gap: 10px; }
}
@media (max-width: 520px) { .hdr-call { padding: 0 14px; gap: 8px; } }
@media (max-width: 420px) { .hdr .btn { padding: 0 12px; font-size: 13px; } .brand span { display: none; } .brand img { height: 36px; } }

/* Кнопка возврата к меню первого экрана */
.tomenu { position: fixed; left: var(--gutter); bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8,14,28,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--ink); font: 500 14px/1 var(--sans); cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; visibility: hidden; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s, background .25s, border-color .25s; }
.tomenu.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s, background .25s, border-color .25s; }
.tomenu:hover { background: rgba(16,26,48,.9); border-color: var(--accent); }
.js.cookie-open .tomenu { bottom: calc(36px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
.tomenu svg { width: 18px; height: 18px; flex: none; color: var(--accent-2); }
@media (max-width: 520px) { .tomenu { padding: 0; width: 44px; height: 44px; justify-content: center; gap: 0; } .tomenu span { display: none; } }
@media (prefers-reduced-motion: reduce) { .tomenu { transition: none; } }

/* 1. Hero: logo assembly */
.hero { position: relative; }
.si-track { position: relative; height: 100vh; height: 100svh; }
.js .si-track { height: 440vh; }
.si-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.si-logo { position: absolute; left: 0; top: 0; width: 620px; height: 690px; transform-origin: 0 0; z-index: 1; }
.ds-cv { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
/* The landed ground melts into the page background when the stage scrolls away */
.si-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(3,5,11,0), var(--space-0)); }
.ds-caps { position: absolute; left: 0; right: 0; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); padding-inline: var(--gutter); pointer-events: none; z-index: 2; }
.ds-cap { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; display: grid; justify-items: center; gap: 10px; text-align: center; opacity: 0; padding-inline: var(--gutter); }
.ds-eyebrow { font: 500 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); }
.ds-line { font: 400 clamp(26px, 3.4vw, 44px)/1.1 var(--serif); color: var(--ink); text-wrap: balance; text-shadow: 0 2px 24px rgba(3,5,11,.8); }
.ds-cap-land .ds-line { font-size: clamp(40px, 6vw, 84px); }
html:not(.js) .ds-cv, html:not(.js) .ds-caps { display: none; }
.si-logo > * { position: absolute; left: 0; top: 0; }
.si-svg { width: 620px; height: 690px; overflow: visible; }
.si-3d { width: 620px; height: 690px; perspective: 1500px; perspective-origin: 305px 310px; pointer-events: none; }
.si-ch { position: absolute; left: 0; top: 0; font-family: var(--serif); line-height: 1; white-space: pre; color: var(--si-ink); will-change: transform; text-shadow: 0 0 28px rgba(143,208,255,.35); }
.si-back .si-ch { color: var(--si-back); text-shadow: none; }
.si-line2 { position: absolute; left: 0; top: 0; font-family: var(--serif); line-height: 1; white-space: pre; color: var(--si-ink-2); }
.si-rule { position: absolute; background: var(--si-ink); transform-origin: 50% 50%; box-shadow: 0 0 18px rgba(143,208,255,.4); }
.si-glow { transform-box: fill-box; transform-origin: center; animation: siPulse 3.6s ease-in-out infinite; }
@keyframes siPulse { 50% { transform: scale(1.1); opacity: .65; } }
.hero-foot { z-index: 2; position: absolute; left: 0; right: 0; bottom: calc(122px + env(safe-area-inset-bottom, 0px)); padding-inline: var(--gutter); text-align: center; pointer-events: none; }
.js .hero-foot { transition: left .8s var(--ease), right .8s var(--ease), top .8s var(--ease), bottom .8s var(--ease), width .8s var(--ease), transform .8s var(--ease); }
/* Фаза «рабочего стола»: строка уходит вправо, под шапку */
.wd .hero-foot { left: auto; right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); bottom: auto; top: calc(var(--header-h) + 30px); width: min(24ch, 30vw); padding-inline: 0; text-align: right; }
.wd .hero-line { margin: 0 0 0 auto; max-width: none; font-size: clamp(19px, 1.9vw, 26px); }
/* Спутники-кнопки */
.si-svg { pointer-events: none; }
.si-sat { pointer-events: none; }
.wd .si-sat { pointer-events: auto; cursor: pointer; }
.si-sat-ring { transition: fill .2s, stroke .2s; }
.si-sat:hover .si-sat-ring, .si-sat:focus-visible .si-sat-ring { fill: #13304f; stroke: var(--accent-2); }
.si-sat-lab { font-family: var(--sans); font-weight: 500; fill: var(--ink); transition: fill .2s; stroke: rgba(3,5,11,.75); stroke-width: 3px; paint-order: stroke; }
.si-sat-cta { fill: rgba(95,176,232,.18); stroke: var(--accent-2); }
.si-sat-lab-cta { fill: var(--accent-2); }
.si-sat:hover .si-sat-lab, .si-sat:focus-visible .si-sat-lab { fill: var(--ink); }
.si-sat:focus { outline: none; }
.si-sat:focus-visible .si-sat-ring { stroke-width: 2.6; }
@media (max-width: 760px) {
  .wd .hero-foot { left: 0; right: 0; top: auto; bottom: calc(112px + env(safe-area-inset-bottom, 0px)); width: auto; padding-inline: var(--gutter); text-align: center; }
  .wd .hero-line { margin: 0 auto; max-width: 24ch; font-size: clamp(17px, 4.6vw, 21px); }
}
.hero-line { margin: 0 auto; max-width: 30ch; font: 400 clamp(21px, 2.5vw, 32px)/1.25 var(--serif); color: var(--ink); text-wrap: balance; }
.js .hero-line { opacity: 0; transform: translateY(14px); }
/* Hint: pulsing rings and three chevrons running in the direction of the gesture (down for a wheel, up for a finger) */
.si-hint { z-index: 3; position: absolute; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px); display: none; flex-direction: column; align-items: center; gap: 10px; margin: 0; padding: 8px 16px 10px; border: 0; border-radius: 16px; background: none; color: var(--ink); font: 500 12px/1.2 var(--mono); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s, transform .6s var(--ease); -webkit-tap-highlight-color: transparent; }
.js .si-hint { display: flex; }
.si-hint.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.si-hint-txt { white-space: nowrap; text-shadow: 0 0 18px rgba(95,176,232,.7), 0 1px 10px rgba(3,5,11,.9); }
.si-hint .t-touch { display: none; }
@media (hover: none) and (pointer: coarse) { .si-hint .t-touch { display: inline; } .si-hint .t-mouse { display: none; } .si-hint-ico { transform: rotate(180deg); } }
.si-hint-ico { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(143,208,255,.75); background: rgba(8,20,42,.7); box-shadow: 0 0 22px rgba(95,176,232,.45); display: grid; place-items: center; }
.si-hint-ico::before, .si-hint-ico::after { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; border: 1.5px solid var(--accent-2); animation: siRing 2.2s cubic-bezier(.2,.6,.3,1) infinite; }
.si-hint-ico::after { animation-delay: 1.1s; }
@keyframes siRing { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }
.si-hint-ico i { position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -6px; border: solid var(--accent-2); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; animation: siChev 1.5s ease-in-out infinite; }
.si-hint-ico i:nth-child(1) { top: 8px; } .si-hint-ico i:nth-child(2) { top: 15px; animation-delay: .18s; } .si-hint-ico i:nth-child(3) { top: 22px; animation-delay: .36s; }
@keyframes siChev { 0%, 100% { opacity: 0; } 35% { opacity: 1; } 70% { opacity: 0; } }
.si-hint:hover .si-hint-ico, .si-hint:focus-visible .si-hint-ico { background: rgba(95,176,232,.25); }
.si-bar { z-index: 2; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--brand-navy), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); }
.first-screen-end { position: absolute; top: 100vh; left: 0; width: 1px; height: 1px; pointer-events: none; }

/* Sections */
.sec { position: relative; isolation: isolate; padding-block: clamp(96px, 14vh, 160px); }
.sec::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(95,176,232,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(95,176,232,.05) 1px, transparent 1px); background-size: 64px 64px; background-position: 50% 0; -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent); }
.sec-catalog { padding-bottom: 40px; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.eyebrow::after { content: ""; width: 48px; height: 1px; background: currentColor; opacity: .5; }
.h2 { font: 400 clamp(34px, 5vw, 62px)/1.02 var(--serif); margin: 16px 0 0; text-wrap: balance; }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; margin: 18px 0 0; }

/* 2. Process */
.steps4 { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps4::before, .steps4::after { content: ""; position: absolute; left: 22px; right: 0; top: 22px; height: 1px; background: var(--line-2); }
.steps4::after { background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.6s var(--ease); box-shadow: 0 0 12px rgba(95,176,232,.6); }
.steps4.in::after, html:not(.js) .steps4::after { transform: scaleX(1); }
.st { padding-right: 28px; position: relative; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .st { opacity: 0; transform: translateY(18px); }
.js .steps4.in .st { opacity: 1; transform: none; }
.steps4.in .st:nth-child(2) { transition-delay: .25s; } .steps4.in .st:nth-child(3) { transition-delay: .5s; } .steps4.in .st:nth-child(4) { transition-delay: .75s; }
.st .num { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--space-1); display: grid; place-items: center; font: 500 13px var(--mono); color: var(--accent-2); position: relative; z-index: 1; }
.steps4.in .st .num { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(95,176,232,.1); transition: border-color .4s, box-shadow .4s; }
.st h3 { font: 600 19px/1.25 var(--sans); margin: 24px 0 8px; }
.st p { margin: 0; color: var(--ink-2); font-size: 15px; }
.deliv { margin-top: 64px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--r-m); background: rgba(11,19,36,.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.deliv p { margin: 0; max-width: 60ch; font-size: 17px; }
@media (max-width: 860px) {
  .steps4 { grid-template-columns: 1fr; gap: 36px; }
  .steps4::before, .steps4::after { left: 22px; right: auto; top: 22px; bottom: 22px; width: 1px; height: auto; }
  .steps4::after { transform: scaleY(0); transform-origin: 50% 0; }
  .steps4.in::after, html:not(.js) .steps4::after { transform: scaleY(1); }
  .st { padding: 0 0 0 68px; }
  .st .num { position: absolute; left: 0; top: 0; }
  .st h3 { margin-top: 8px; }
  .deliv { padding: 20px; }
  .deliv .btn { width: 100%; }
}

/* 3. Galleries: configurations and turnkey objects (main.js, gallery) */
.gal { margin-top: 48px; --peek: 64px; --gap: 16px; }
.anchor { height: 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.gal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gal-tabs { display: flex; gap: 4px; padding: 4px; min-width: 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(8,14,28,.6); overflow-x: auto; scrollbar-width: none; }
.gal-tabs::-webkit-scrollbar { display: none; }
.gal-tab { flex: none; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 500 14px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.gal-tab:hover { color: var(--ink); }
.gal-tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.gal-tab .short { display: none; }
.gal-ctl { display: flex; align-items: center; gap: 10px; flex: none; }
.gal-arrow, .gal-side, .gal-replay { border: 1px solid var(--line-2); background: rgba(8,14,28,.7); color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.gal-arrow, .gal-side { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.gal-arrow svg, .gal-side svg { width: 18px; height: 18px; }
.gal-prev svg { transform: scaleX(-1); }
.gal-arrow:hover:not(:disabled), .gal-side:hover:not(:disabled), .gal-replay:hover { border-color: var(--accent); background: rgba(95,176,232,.16); }
.gal-arrow:disabled, .gal-side:disabled { opacity: .3; cursor: default; }
.gal-side:disabled { visibility: hidden; }
.gal-replay { min-height: 40px; padding: 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font: 500 13px/1 var(--sans); color: var(--ink-2); }
.gal-replay svg { width: 15px; height: 15px; }
/* Build finished: the way on pulses */
.gal-arrow.nudge, .gal-side.nudge { border-color: var(--accent); color: var(--accent-2); animation: galNudge 1.8s ease-out infinite; }
@keyframes galNudge { 0% { box-shadow: 0 0 0 0 rgba(95,176,232,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(95,176,232,0); } }
.gal-view { position: relative; overflow: hidden; overflow: clip; border-radius: var(--r-l); touch-action: pan-y; }
.gal-track { display: flex; gap: var(--gap); column-gap: var(--gap); transition: transform .75s var(--ease); will-change: transform; }
.gal-track.drag { transition: none; }
.gal-card { position: relative; flex: 0 0 calc(100% - var(--peek) - var(--gap)); height: min(calc(100vh - 170px), 860px); height: min(calc(100svh - 170px), 860px); min-height: 540px; box-sizing: border-box; border-radius: var(--r-l); background: linear-gradient(180deg, var(--surface-2), var(--surface-1) 60%); border: 1px solid var(--line); overflow: hidden; transition: opacity .6s var(--ease); }
.js .gal-card:not(.cur) { opacity: .38; cursor: pointer; }
.gal-side { display: none; position: absolute; top: 56%; z-index: 5; width: 40px; height: 40px; margin-top: -20px; background: rgba(8,14,28,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gal-side.gal-prev { left: 8px; } .gal-side.gal-next { right: calc(var(--peek) + var(--gap) + 8px); }
html:not(.js) .gal-track { display: grid; gap: 24px; }
html:not(.js) .gal-card { height: auto; min-height: 0; }
.card-num { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.card-num span { color: var(--ink-3); }
.card-title { font: 400 clamp(30px, 3.6vw, 46px)/1.05 var(--serif); margin: 12px 0 10px; }
.card-desc { margin: 0; color: var(--ink-2); max-width: 44ch; }

/* scene cards: 3D assembly, plays by itself in the open slide */
.sc canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sc .bar { position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--brand-navy), var(--accent)); transform-origin: 0 50%; transform: scaleX(0); z-index: 3; }
.sc-side { position: absolute; left: 28px; top: 26px; bottom: 24px; width: 340px; z-index: 3; display: flex; flex-direction: column; gap: 18px; pointer-events: none; }
.sc-side > * { pointer-events: auto; }
.sc-head .btn { margin-top: 16px; }
.sc .card-title { font-size: clamp(28px, 2.9vw, 40px); }
.sc .build { flex: 0 1 auto; min-height: 0; overflow: hidden; box-sizing: border-box; padding: 14px 16px 10px; background: rgba(7,12,24,.78); border: 1px solid var(--line); border-radius: 10px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sc .build-title { margin: 0 0 6px; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sc .steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.sc .step { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; padding: 5px 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color .25s; }
.sc .step .dot { width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; border: 1.5px solid #3b4d68; box-sizing: border-box; display: grid; place-items: center; transition: all .25s; }
.sc .step b { font-weight: 600; font-size: 14px; color: inherit; display: block; line-height: 1.3; }
.sc .step span { font: 11.5px/1.4 var(--mono); display: block; }
.sc .step small { grid-column: 2; font-size: 12.5px; line-height: 1.4; margin-top: 3px; color: var(--ink-2); display: none; }
.sc .step.active { color: var(--ink); }
.sc .step.active .dot { border-color: var(--accent); background: rgba(95,176,232,.25); box-shadow: 0 0 0 4px rgba(95,176,232,.15); }
.sc .step.active small { display: block; }
.sc .step.done { color: var(--ink-2); }
.sc .step.done .dot { background: var(--accent); border-color: var(--accent); }
.sc .step.done .dot::after { content: ""; width: 5px; height: 3px; border: solid var(--accent-ink); border-width: 0 0 1.5px 1.5px; transform: translateY(-1px) rotate(-45deg); }
/* Long step lists on short screens: finished steps collapse to one line */
@media (min-width: 861px) and (max-height: 980px) {
  .sc .step.done span { display: none; }
  .sc .step { padding: 4px 0; }
  .sc-head .card-desc { font-size: 15px; }
}
.sc .tag { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; font: 500 12px/1.3 var(--mono); color: var(--accent-ink); background: var(--accent-2); padding: 5px 9px; border-radius: 4px; white-space: nowrap; opacity: 0; transition: opacity .2s; box-shadow: 0 0 20px rgba(143,208,255,.4); }
.sc .tag::after { content: ""; position: absolute; left: 12px; top: 100%; border: 5px solid transparent; border-top-color: var(--accent-2); }
.sc .boot { position: absolute; right: 24px; bottom: 24px; width: min(420px, calc(100% - 48px)); box-sizing: border-box; z-index: 2; opacity: 0; background: rgba(3,8,18,.92); border: 1px solid var(--line-2); color: #e8f0f9; border-radius: 10px; padding: 16px 18px; font: 13px/1.5 var(--mono); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); }
.sc .boot .os { font: 600 16px/1.2 var(--sans); color: #fff; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sc .boot .os em { font: 500 11px/1 var(--mono); font-style: normal; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); white-space: nowrap; }
.sc .boot .os em.warn { color: #f2b84b; }
.sc .boot .pbar { height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.sc .boot .pbar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.sc .boot .ready { color: var(--ok); }
.sc .boot .warn { color: #f2b84b; }
.sc .boot ul { margin: 6px 0 0; padding: 0; list-style: none; color: #b9cde3; }
.sc .model-note { position: absolute; right: 24px; top: 22px; margin: 0; z-index: 2; font: 11px/1.4 var(--mono); color: var(--ink-3); max-width: 30ch; text-align: right; }

.sc .step { cursor: pointer; }
@media (max-width: 860px) {
  .gal { margin-top: 36px; --peek: 22px; --gap: 10px; }
  .gal-card { min-height: 480px; height: calc(100svh - 150px); }
  .gal-tab { padding: 0 14px; font-size: 13px; min-height: 38px; }
  .gal-tab .full { display: none; } .gal-tab .short { display: inline; }
  .gal-arrow { display: none; }
  .gal-side { display: grid; }
  .gal-replay { width: 40px; padding: 0; justify-content: center; }
  .gal-replay span { display: none; }
  .sc-side { left: 16px; right: 16px; top: 16px; bottom: 12px; width: auto; gap: 10px; }
  .sc .card-title { font-size: 28px; margin: 8px 0 6px; }
  .sc-head .card-desc { font-size: 14px; line-height: 1.45; }
  .sc-head .btn { margin-top: 10px; }
  .sc .model-note { display: none; }
  .sc .build { margin-top: auto; padding: 10px 14px; }
  .sc .build-title { display: none; }
  .sc .step { display: none; border-top: 0; padding: 0; }
  .sc .step.active { display: grid; }
  .sc .build.idle, .sc.booting .build { display: none; }
  .sc .boot { right: 12px; left: 12px; width: auto; bottom: 12px; padding: 12px 14px; font-size: 12px; line-height: 1.45; }
  .sc .boot .os { font-size: 15px; margin-bottom: 8px; }
  .sc .boot .pbar { margin-bottom: 8px; }
  .sc .boot ul { margin-top: 4px; }
  .sc .tag { font-size: 11px; padding: 4px 8px; }
}

/* Without JS: each scene card is a plain spec card */
html:not(.js) .sc { height: auto; min-height: 0; padding: 26px 28px; }
html:not(.js) .sc canvas, html:not(.js) .sc .bar, html:not(.js) .sc .boot, html:not(.js) .sc .tag { display: none; }
html:not(.js) .sc-side, html:not(.js) .sc .model-note { position: static; width: auto; max-width: none; text-align: left; margin-top: 20px; }
html:not(.js) .sc .step { display: grid; padding: 6px 0; border-top: 1px solid var(--line); }
html:not(.js) .sc .step span { display: block; }
html:not(.js) .sc .build-title { display: block; }

/* 5. Projects: a deck of pictures, the next one slides in over the current (main.js, deck) */
#projects { overflow: hidden; overflow: clip; }
/* NDA: a visible promise, not a footnote */
.nda { position: relative; margin-top: 32px; max-width: 880px; display: grid; grid-template-columns: auto 1fr; gap: 20px 24px; align-items: center; padding: 24px 28px; border: 1px solid rgba(95,176,232,.45); border-radius: var(--r-m); background: linear-gradient(120deg, rgba(95,176,232,.16), rgba(11,19,36,.7) 60%); box-shadow: 0 0 0 6px rgba(95,176,232,.06), 0 24px 60px -30px rgba(95,176,232,.45); }
.nda-ico { position: relative; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(95,176,232,.16); border: 1px solid rgba(143,208,255,.6); color: var(--accent-2); }
.nda-ico::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--accent-2); animation: siRing 2.8s cubic-bezier(.2,.6,.3,1) infinite; }
.nda-ico svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nda h3 { margin: 0 0 8px; font: 600 clamp(19px, 2vw, 24px)/1.25 var(--sans); color: var(--ink); }
.nda p { margin: 0; color: var(--ink-2); font-size: 16px; max-width: 62ch; }
.deck-tag { position: absolute; left: 16px; top: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(143,208,255,.45); background: rgba(3,5,11,.66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.deck-tag svg { width: 13px; height: 13px; color: var(--accent-2); }
.deck { margin-top: 40px; }
.deck-stage { position: relative; height: min(calc((min(100vw, var(--maxw)) - 2 * var(--gutter)) * 9 / 16), calc(100svh - 230px)); min-height: 360px; touch-action: pan-y; }
.deck-card { position: absolute; inset: 0; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.95); transform: translateX(calc(100% + 10vw)) rotate(4deg); transition: transform 1s var(--ease), filter 1s var(--ease), opacity 1s var(--ease); will-change: transform; }
.deck-card.cur { transform: none; }
.deck-card.under { transform: scale(.92) translateY(-4%); filter: brightness(.4); }
.deck-card.gone { transform: scale(.85) translateY(-8%); filter: brightness(.25); opacity: 0; }
.deck-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.deck-card.cur img { animation: deckZoom 10s ease-in-out infinite alternate; }
@keyframes deckZoom { to { transform: scale(1.07) translate(-1%, -1%); } }
.deck-card figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 64px 28px 26px; background: linear-gradient(180deg, rgba(3,5,11,0), rgba(3,5,11,.88)); }
.deck-card figcaption b { font: 400 clamp(24px, 2.6vw, 36px)/1.12 var(--serif); }
.deck-card figcaption span { color: var(--ink-2); font-size: 15px; }
.deck-card figcaption .deck-n { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--accent); }
.deck-bar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 20px; }
.deck-dots { display: flex; gap: 6px; }
.deck-dot { width: 34px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.deck-dot::before { content: ""; grid-area: 1 / 1; height: 3px; border-radius: 2px; background: var(--line-2); }
.deck-dot i { grid-area: 1 / 1; height: 3px; border-radius: 2px; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.deck.manual .deck-dot[aria-current="true"] i { transform: none; }
html:not(.js) .deck-stage { height: auto; display: grid; gap: 16px; }
html:not(.js) .deck-card { position: relative; transform: none; aspect-ratio: 16 / 9; }
@media (max-width: 860px) {
  .deck { margin-top: 28px; }
  .nda { grid-template-columns: 1fr; padding: 20px; gap: 14px; }
  .nda-ico { width: 56px; height: 56px; }
  .nda p { font-size: 15px; }
  .deck-stage { height: min(calc((100vw - 2 * var(--gutter)) * 5 / 4), calc(100svh - 220px)); }
  .deck-card figcaption { padding: 48px 18px 18px; }
  .deck-card figcaption span { font-size: 14px; }
  .deck-dot { width: 24px; }
  .deck-bar .gal-arrow { display: grid; width: 44px; height: 44px; }
}

/* 6. Values: four cards rise one by one, icons draw themselves */
.vals { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.val { --d: 0s; position: relative; padding: 26px 24px 30px; border: 1px solid var(--line); border-radius: var(--r-m); background: linear-gradient(180deg, rgba(16,26,48,.78), rgba(11,19,36,.55)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; transition: opacity .8s var(--ease) var(--d), transform .8s var(--ease) var(--d), border-color .3s; }
.val::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--accent), rgba(95,176,232,0)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.2s var(--ease) calc(var(--d) + .3s); }
.val:nth-child(2) { --d: .14s; } .val:nth-child(3) { --d: .28s; } .val:nth-child(4) { --d: .42s; }
.vals.settled .val { --d: 0s; }
.val:hover { border-color: var(--line-2); }
.vals.settled .val:hover { transform: translateY(-4px); }
.val-top { display: flex; align-items: center; justify-content: space-between; }
.val-ico { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(95,176,232,.08); color: var(--accent-2); display: grid; place-items: center; }
.val-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.val-n { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--ink-3); }
.val h3 { font: 400 clamp(24px, 2.2vw, 30px)/1.15 var(--serif); margin: 26px 0 10px; }
.val p { margin: 0; color: var(--ink-2); font-size: 15px; }
.js .val { opacity: 0; transform: translateY(26px); }
.js .vals.in .val { opacity: 1; transform: none; }
.vals.in .val::before, html:not(.js) .val::before { transform: scaleX(1); }
.js .val-ico svg * { stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d) + .35s); }
.js .vals.in .val-ico svg * { stroke-dashoffset: 0; }
@media (max-width: 1100px) { .vals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .vals { grid-template-columns: 1fr; gap: 12px; margin-top: 40px; } .val h3 { margin-top: 18px; } }

/* 7. Request form */
.req { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.contacts { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; }
.contacts li { display: grid; gap: 4px; }
.contacts .k { font: 500 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.contacts a, .contacts .v { font-size: 18px; text-decoration: none; }
.contacts a:hover { color: var(--accent-2); }
.form { position: relative; background: rgba(11,19,36,.78); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(20px, 3vw, 36px); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); display: grid; gap: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font: 500 13px/1.3 var(--sans); color: var(--ink-2); margin-bottom: 8px; }
.field .req-mark { color: var(--accent-2); }
.input { width: 100%; box-sizing: border-box; min-height: 52px; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--space-1); color: var(--ink); font: 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: rgba(150,185,230,.45); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(95,176,232,.16); }
.input:user-invalid, .input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { min-height: 120px; resize: vertical; }
select.input { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a8b5c8' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field-err { margin: 6px 0 0; font-size: 13px; color: var(--danger); }
.form .btn { width: 100%; min-height: 54px; font-size: 16px; }
.form-msg { border-radius: 10px; padding: 14px 16px; font-size: 15px; margin: 0; }
.form-msg.ok { background: rgba(127,224,166,.08); border: 1px solid rgba(127,224,166,.4); color: var(--ok); }
.form-msg.err { background: rgba(255,138,122,.08); border: 1px solid rgba(255,138,122,.4); color: var(--danger); }
.form-msg a { color: inherit; }
.form-noscript { margin: 0; font-size: 14px; color: var(--ink-2); }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.input-file { padding: 12px 16px; cursor: pointer; }
.input-file::file-selector-button { margin-right: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--ink); font: 500 13px/1 var(--sans); cursor: pointer; }
.input-file::file-selector-button:hover { border-color: var(--accent); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; cursor: pointer; font: 400 14px/1.45 var(--sans); color: var(--ink-2); margin: 0; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.check a { color: var(--ink); }
.check a:hover { color: var(--accent-2); }
.check-sm { font-size: 13px; }
.field-check[data-invalid="true"] .check, .asst-form .check[data-invalid="true"] { color: var(--danger); }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .req { grid-template-columns: 1fr; } .row2 { grid-template-columns: 1fr; } }

/* Footer */
.ftr { border-top: 1px solid var(--line); background: rgba(3,5,11,.72); padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); }
.ftr-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1fr); gap: 32px 48px; align-items: start; }
.ftr-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 20px/1 var(--serif); letter-spacing: .06em; }
.ftr-logo img { height: 48px; width: auto; }
.ftr-brand p { margin: 14px 0 0; color: var(--ink-2); font-size: 14px; max-width: 40ch; }
.ftr-brand .ftr-req { margin-top: 10px; font: 12px/1.5 var(--mono); color: var(--ink-3); }
.ftr-nav { display: grid; gap: 10px; }
.ftr-nav a, .ftr-contacts a { text-decoration: none; color: var(--ink-2); font-size: 14px; }
.ftr-nav a:hover, .ftr-contacts a:hover { color: var(--ink); }
.ftr-contacts { font-style: normal; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.ftr-contacts .ftr-phone { font: 500 16px/1.2 var(--mono); color: var(--ink); }
@media (max-width: 860px) { .ftr-in { grid-template-columns: 1fr; } .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* 4. Assistant */
.asst { display: none; }
.js .asst { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
.js .asst.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.asst-bubble { max-width: 260px; text-align: left; background: var(--surface-3); color: var(--ink); border: 1px solid var(--line-2); border-radius: 16px 16px 4px 16px; padding: 12px 14px; font: 14px/1.45 var(--sans); cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); transition: opacity .3s; }
.asst-bubble:hover { border-color: var(--accent); }
.asst.at-form .asst-bubble, .asst.in-gal .asst-bubble { display: none; }
/* Phones: the fixed button would sit on top of the hero line and the gallery arrows, so it waits until they are gone. */
@media (max-width: 860px) {
  .js .asst.on.in-hero:not(.open), .js .asst.on.in-gal:not(.open) { opacity: 0; transform: translateY(16px); pointer-events: none; visibility: hidden; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s linear .45s; }
}
.asst-fab { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 0 6px rgba(95,176,232,.14), 0 14px 30px -10px rgba(95,176,232,.6); transition: transform .2s var(--ease); }
.asst-fab:hover { transform: scale(1.06); }
.asst-fab svg { width: 24px; height: 24px; }
.asst-panel { width: min(360px, calc(100vw - 32px)); box-sizing: border-box; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 18px; padding: 16px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); display: grid; gap: 12px; }
.asst-panel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.asst-panel h3 { margin: 0; font: 600 16px/1.2 var(--sans); }
.asst-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); cursor: pointer; font-size: 16px; line-height: 1; }
.asst-form { display: grid; gap: 12px; position: relative; }
.asst-panel textarea { min-height: 96px; }
.asst-done { margin: 0; font-size: 14px; color: var(--ok); }
.asst-done a { color: var(--ink); }

/* Уведомление о cookie (cookie.js). Слева внизу; на телефоне на всю ширину, «Вопрос сотруднику» поднимается над ним. */
.cookie { position: fixed; z-index: 70; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: min(440px, calc(100vw - 32px)); box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 14px 16px; background: rgba(16,26,48,.95); border: 1px solid var(--line-2); border-radius: var(--r-m); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 50px -20px rgba(0,0,0,.9); }
.cookie p { margin: 0; font: 13px/1.45 var(--sans); color: var(--ink-2); }
.cookie a { color: var(--ink); }
.cookie .btn { flex: none; }
@media (max-width: 860px) {
  .js.cookie-open .asst { bottom: calc(28px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
  /* First screen: the headline and the hint stand above the notice instead of under it */
  .js.cookie-open .hero-foot { bottom: calc(132px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
  .js.cookie-open .ds-caps { bottom: calc(68px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
  .js.cookie-open .si-hint { bottom: calc(20px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 600px) {
  .cookie { gap: 12px; padding: 10px 12px; }
  .cookie p { font-size: 12px; line-height: 1.4; }
  .cookie .btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .si-glow, .si-hint-ico i, .si-hint-ico::before, .si-hint-ico::after { animation: none !important; }
  .js .si-hint { display: none; }
  .ds-cv, .ds-caps { display: none; }
  .js .st { opacity: 1; transform: none; transition: none; }
  .js .si-track { height: 100svh; }
  .js .spacer { height: 0; }
  .gal-track, .gal-card, .btn, .brand, .asst { transition: none !important; }
  .gal-arrow.nudge, .gal-side.nudge { animation: none; }
  .deck-card, .val, .val::before, .val-ico svg * { transition: none !important; }
  .deck-card.cur img, .nda-ico::after { animation: none; }
  .js .val { opacity: 1; transform: none; }
  .js .val-ico svg * { stroke-dashoffset: 0; }
}

/* ============ Окно «отправить на проработку» ============ */
.modal { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--surface-1); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(3,5,11,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal-in { position: relative; display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); }
.modal-title { font: 400 clamp(22px, 2.6vw, 30px)/1.15 var(--serif); margin: 0; padding-right: 40px; }
.modal-sub { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.modal-chip { margin: 0; justify-self: start; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 999px; background: rgba(95,176,232,.12); font: 500 14px/1 var(--sans); color: var(--ink); }
.modal-x { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; background: rgba(8,14,28,.6); color: var(--ink-2); font-size: 14px; cursor: pointer; transition: color .2s, border-color .2s; }
.modal-x:hover { color: var(--ink); border-color: var(--accent); }
.modal-in .btn { width: 100%; min-height: 54px; font-size: 16px; }
.modal-in .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .modal-in .row2 { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .modal[open] { animation: modalIn .28s cubic-bezier(.2,.7,.2,1); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px); } }

/* ============ Конфигуратор: страница «соберите сервер под задачу» ============ */
.conf { padding: calc(var(--header-h) + 44px) 0 90px; }
.conf-head { max-width: 860px; }
.conf-head h1 { font: 400 clamp(32px, 4.6vw, 54px)/1.05 var(--serif); margin: 14px 0 0; text-wrap: balance; }
.conf-head .lede { margin: 16px 0 0; color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 62ch; }
.conf-alt { font-size: 15px; color: var(--ink-3); }
.conf-alt a { color: var(--accent-2); }
.conf-form { margin-top: 40px; }
.conf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.conf-steps { display: grid; gap: 20px; min-width: 0; }
.conf-step { margin: 0; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(11,19,36,.72); padding: clamp(18px, 2.4vw, 30px); display: grid; gap: 16px; }
.conf-step legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font: 400 clamp(20px, 2.2vw, 26px)/1.2 var(--serif); padding: 0 0 6px; }
.conf-step legend + * { clear: both; }
.conf-num { font: 500 12px/1 var(--mono); letter-spacing: .14em; color: var(--accent); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 10px; }
.conf-sub { margin: 0; }
.conf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.conf-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 10px; }
.tile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--space-1); color: var(--ink-2); font: 500 14px/1.3 var(--sans); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.tile input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--accent); cursor: pointer; }
.tile:hover { border-color: rgba(150,185,230,.5); color: var(--ink); }
.tile:has(input:checked) { border-color: var(--accent); background: rgba(95,176,232,.12); color: var(--ink); }
.tile:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(95,176,232,.16); }
.conf-step .btn { width: 100%; min-height: 54px; font-size: 16px; margin-top: 4px; }
.conf-sum { position: sticky; top: calc(var(--header-h) + 16px); }
.conf-sum-in { border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(16,26,48,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding: 22px; }
.conf-sum h2 { font: 400 22px/1.2 var(--serif); margin: 0 0 14px; }
.conf-sum-list { margin: 0; display: grid; gap: 12px; }
.conf-sum-list > div { display: grid; gap: 3px; }
.conf-sum-list dt { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.conf-sum-list dd { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.conf-sum-empty dd { color: var(--ink-3); }
.conf-est { margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(95,176,232,.08); font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.conf-next { margin: 16px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
@media (max-width: 1000px) {
  .conf-grid { grid-template-columns: 1fr; }
  .conf-sum { position: static; order: -1; }
  .conf-sum.empty { display: none; }
}

/* ============ Документы (политика) ============ */
.doc { padding: calc(var(--header-h) + 48px) 0 80px; }
.doc-in { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 50px); }
.doc h2 { font: 400 clamp(22px, 2.4vw, 28px)/1.2 var(--serif); margin: 44px 0 12px; }
.doc p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.doc .todo { color: var(--accent-2); border-bottom: 1px dashed var(--accent); }
.doc-back { margin-top: 48px; }
.doc-back a { color: var(--ink); }

/* Макет hub-2026-11: на телефоне две кнопки шапки не помещались в 390 px */
.hdr-req .sm { display: none; }
@media (max-width: 520px) { .hdr-call span { display: none; } .hdr-call { width: 42px; padding: 0; justify-content: center; } .hdr-req .lg { display: none; } .hdr-req .sm { display: inline; } }

/* ===== Макет hub-2026-11: «Выберите задачу» ===== */
.nav-dir { color: var(--ink) !important; }
.nav-cur { position: relative; }
.nav-cur::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 1px; background: var(--accent); }
.tk-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 30px 0 22px; }
.tk-tab { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(11,19,36,.7); color: var(--ink-2); font: inherit; cursor: pointer; transition: border-color .2s, background .2s, color .2s, box-shadow .2s; }
.tk-tab svg { grid-row: 1 / 3; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tk-tab b { font: 600 15px/1.2 var(--sans); color: var(--ink); }
.tk-tab span { font-size: 12.5px; color: var(--ink-3); }
.tk-tab:hover { border-color: var(--accent); }
.tk-tab[aria-selected="true"] { border-color: var(--accent); background: linear-gradient(180deg, rgba(95,176,232,.18), rgba(11,19,36,.8)); color: var(--accent-2); box-shadow: 0 0 0 1px rgba(95,176,232,.3), 0 14px 30px -18px rgba(95,176,232,.8); }
.tk-tab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.tk-panel { animation: tk-in .45s var(--ease); }
@keyframes tk-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tk-lede { color: var(--ink-2); font-size: 17px; max-width: 70ch; margin: 0 0 18px; }
.tk-lede b { color: var(--ink); font-weight: 600; }
.gal-one .gal-tabs, .gal-one .gal-arrow, .gal-one .gal-side { display: none !important; }
.gal-one .gal-bar { justify-content: flex-end; }
.tk-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; padding: clamp(22px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(11,19,36,.6); }
.tk-steps { list-style: none; counter-reset: tk; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.tk-steps li { counter-increment: tk; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.tk-steps li::before { content: counter(tk, decimal-leading-zero); grid-row: 1 / 3; font: 500 12px/1.9 var(--mono); color: var(--accent-2); }
.tk-steps b { font-weight: 600; }
.tk-steps span { color: var(--ink-2); font-size: 15px; }
.tk-fig { margin: 0; }
.tk-fig figcaption { margin-top: 10px; color: var(--ink-3); font-size: 13px; }
.tk-scheme { width: 100%; height: auto; display: block; }
.tk-scheme .sc-wall { fill: none; stroke: rgba(150,185,230,.35); stroke-width: 2; }
.tk-scheme .sc-rack { fill: rgba(95,176,232,.15); stroke: var(--accent); stroke-width: 1.5; }
.tk-scheme .sc-cable { fill: none; stroke: var(--accent-2); stroke-width: 2; stroke-dasharray: 6 5; animation: sc-flow 1.6s linear infinite; }
@keyframes sc-flow { to { stroke-dashoffset: -22; } }
.tk-scheme .sc-pc rect { fill: rgba(16,26,48,.9); stroke: var(--ink-2); stroke-width: 1.4; }
.tk-scheme .sc-ap circle { fill: var(--accent-2); }
.tk-scheme .sc-wave circle { fill: none; stroke: rgba(143,208,255,.35); stroke-width: 1.2; }
.tk-scheme .sc-cell { fill: none; stroke: #7fe0a6; stroke-width: 2; stroke-linecap: round; }
.tk-scheme .sc-t { fill: var(--ink-3); font: 500 12px var(--mono); }
.tk-roles { display: grid; justify-items: center; gap: 0; padding-top: 8px; }
.rl-src span { display: inline-block; padding: 12px 22px; border: 1px solid var(--accent); border-radius: 12px; background: rgba(95,176,232,.12); font: 500 14px var(--mono); color: var(--accent-2); }
.rl-arrows { width: 70%; height: 46px; border: 1.5px solid rgba(143,208,255,.45); border-bottom: 0; border-radius: 12px 12px 0 0; margin-top: 18px; position: relative; }
.rl-arrows::before { content: ""; position: absolute; left: 50%; top: -19px; height: 18px; border-left: 1.5px solid rgba(143,208,255,.45); }
.rl-row { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rl { display: grid; gap: 7px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(16,26,48,.8); }
.rl b { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.rl i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(143,208,255,.45), rgba(143,208,255,.12)); }
.rl i:nth-child(3) { width: 80%; } .rl i:nth-child(4) { width: 60%; } .rl i:nth-child(5) { width: 70%; }
.tk-roles figcaption { justify-self: start; }
@media (max-width: 1000px) { .tk-tabs { grid-template-columns: repeat(3, 1fr); } .tk-split { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .tk-tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .tk-tabs::-webkit-scrollbar { display: none; }
  .tk-tab { flex: 0 0 auto; scroll-snap-align: start; }
}
.tk-tabs { scroll-margin-top: calc(var(--header-h) + 16px); }
/* Кнопка «К меню» перекрывала кнопки «Отправить ТЗ» в панелях: на этой странице меню есть в шапке */
.tomenu { display: none !important; }

.ftr-offer { margin-top: 10px; font-size: 12px; color: var(--ink-3); max-width: 40ch; }

/* ===== Телефон (мобильная ревизия 24.11.2026): сборки сразу после первого экрана, короче страница ===== */
@media (max-width: 760px) {
  .sec { padding-block: 56px; }
  /* порядок блоков как на компьютере: спуск к Земле ведёт в «Как мы работаем» */
  .steps4 { gap: 22px; margin-top: 28px; }
  .deliv { margin-top: 28px; }
  .vals { grid-template-columns: 1fr; gap: 8px; margin-top: 24px; }
  .val { padding: 14px 16px 16px; }
  .tk-tabs { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); }
  .tk-tab { min-width: 150px; }
}
@media (max-width: 860px) { .gal-card { height: min(calc(100svh - 150px), 600px); min-height: 480px; } }

/* Мелочи мобильной ревизии 25.11 (Н12, Н15) */
.btn-primary { color: #05101c; background: linear-gradient(110deg, #a594ff, #7ce7f2 58%, #5fb0e8); box-shadow: 0 12px 30px -12px rgba(124,231,242,.6), inset 0 1px 0 rgba(255,255,255,.4); }
.modal-x { width: 44px; height: 44px; right: 10px; top: 10px; }
.check input { accent-color: #7ce7f2; }
@media (max-width: 600px) {
  .val-top { display: none; }
  .val h3 { margin: 0 0 4px; font-size: 21px; }
}
@media (max-width: 760px) {
  .val, .deliv, .form { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .val { background: linear-gradient(180deg, rgba(16,26,48,.97), rgba(11,19,36,.97)); }
  .deliv, .form { background: rgba(11,19,36,.97); }
}
@media (max-width: 600px) {
  .cookie { left: 0; right: 0; width: 100%; bottom: 0; border-radius: 14px 14px 0 0; border-width: 1px 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .cookie p { font-size: 11.5px; line-height: 1.35; }
}

/* Флажок согласия: один вид на всех страницах */
.check input[type=checkbox] { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid rgba(150,185,230,.55); border-radius: 6px; background: rgba(8,14,28,.6); display: inline-grid; place-content: center; cursor: pointer; transition: background .2s, border-color .2s; }
.check input[type=checkbox]::before { content: ""; width: 10px; height: 6px; border: solid #05101c; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input[type=checkbox]:checked { border-color: transparent; background: linear-gradient(110deg, #a594ff, #7ce7f2 58%, #5fb0e8); }
.check input[type=checkbox]:checked::before { opacity: 1; }
.check input[type=checkbox]:focus-visible { outline: 2px solid #7ce7f2; outline-offset: 2px; }
[data-invalid="true"] .check input[type=checkbox], .check[data-invalid="true"] input[type=checkbox] { border-color: #ff8a8a; }

/* «Приложить файл»: на телефоне свёрнуто, на компьютере раскрыто */
.file-more > summary { cursor: pointer; color: #8fd0ff; font-size: 14px; list-style: none; padding: 6px 0; width: max-content; }
.file-more > summary::-webkit-details-marker { display: none; }
.file-more[open] > summary { margin-bottom: 8px; }

/* UX-ревизия, круг 2 (25.11.2026) */
@media (min-width: 761px) { .file-more > summary { display: none; } }
@media (max-width: 760px) { .file-more > summary { min-height: 44px; display: flex; align-items: center; } }
.check, .field label.check { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; align-items: start; }
.check > input { grid-column: 1; } .check > span { grid-column: 2; }
.modal-title { padding-right: 52px; }
.cookie { z-index: 95; }
