/* Шрифты подключены локально (fonts/), font-display: swap */
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("fonts/manrope-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: "Unbounded"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("fonts/unbounded-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;
}

/* =========================================================
   ABPs — премиальный стиль: глубокий синий, стекло, серебро
   ========================================================= */
:root {
  --bg: #03060f;
  --bg-2: #060d22;
  --ink: #eef3ff;
  --muted: #93a4c6;
  --dim: #61739a;
  --accent: #8ab8ff;
  --accent-2: #4d7dff;
  --line: rgba(170, 200, 255, .13);
  --line-hi: rgba(205, 225, 255, .36);
  --edge: rgba(22, 48, 120, .55);
  --edge-dark: rgba(4, 12, 40, .9);
  --radius: 28px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --silver: linear-gradient(180deg, #ffffff 0%, #d3def5 50%, #8ea6d2 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ---------- Фон: спокойный свет, виньетка, зерно ---------- */
.bg {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1100px 700px at 78% -12%, rgba(52, 96, 220, .38), transparent 60%),
    radial-gradient(900px 640px at -10% 30%, rgba(30, 64, 170, .28), transparent 62%),
    radial-gradient(1200px 800px at 50% 120%, rgba(14, 40, 110, .45), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 60%);
}
.bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.grain {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ripples { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; pointer-events: none; }

/* ---------- Каркас ---------- */
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
section { scroll-margin-top: 24px; }

.header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px 0;
}
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo b {
  font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: .04em;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav { display: flex; align-items: center; gap: 34px; font-size: 14px; color: var(--muted); }
.nav a:not(.btn) { position: relative; transition: color .3s var(--ease); }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
.display {
  font-family: var(--display); font-weight: 500;
  letter-spacing: -.035em; line-height: 1.04;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.display em {
  font-style: normal;
  background: linear-gradient(100deg, #cfe2ff 0%, var(--accent) 45%, #5a86ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 18px; line-height: 1.7; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  color: #071026;
  background: linear-gradient(180deg, #f4f8ff 0%, #c4d6f6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(20, 40, 90, .25), 0 10px 30px -8px rgba(110, 160, 255, .55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(20, 40, 90, .25), 0 18px 40px -10px rgba(110, 160, 255, .75); }
.btn:active { transform: translateY(0); }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--ghost {
  color: var(--ink);
  background: rgba(150, 185, 255, .06);
  border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn--ghost:hover { background: rgba(150, 185, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }
.arrow { display: inline-block; transition: transform .4s var(--ease); }
.btn:hover .arrow, a:hover > .arrow { transform: translateX(4px); }

/* =========================================================
   Стеклянная плашка с толщиной
   ========================================================= */
.slab {
  --sx: 0; --sy: 1;
  position: relative; display: block;
  transition: translate .6s var(--ease);
}
.slab:hover { translate: 0 -4px; --sy: 1.4; }
.slab__glass {
  position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, rgba(150, 185, 255, .11) 0%, rgba(70, 105, 190, .05) 45%, rgba(8, 18, 48, .35) 100%);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 60px rgba(90, 140, 255, .05),
    calc(var(--sx) * 1px) calc(var(--sy) * 1px) 0 var(--edge),
    calc(var(--sx) * 2px) calc(var(--sy) * 2px) 0 var(--edge),
    calc(var(--sx) * 3px) calc(var(--sy) * 3px) 0 var(--edge),
    calc(var(--sx) * 4px) calc(var(--sy) * 4px) 0 var(--edge),
    calc(var(--sx) * 5px) calc(var(--sy) * 5px) 0 var(--edge-dark),
    calc(var(--sx) * 6px) calc(var(--sy) * 6px) 0 var(--edge-dark),
    calc(var(--sx) * 20px) calc(var(--sy) * 34px) 60px rgba(0, 4, 20, .7);
  transition: border-color .5s var(--ease);
}
.slab:hover .slab__glass { border-color: rgba(190, 215, 255, .26); }
.slab__glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(560px circle at var(--mx, 30%) var(--my, -10%), rgba(170, 205, 255, .13), transparent 50%);
}
.slab__glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .06) 45%, transparent 55%) no-repeat;
  background-size: 260% 100%;
  background-position: var(--shine, 130%) 0;
  transition: background-position .9s var(--ease);
}
.slab__rim {
  position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(220, 235, 255, .55), rgba(150, 185, 255, .06) 28%, rgba(150, 185, 255, .02) 70%, rgba(140, 180, 255, .35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.slab__content { position: relative; z-index: 2; height: 100%; }

/* ---------- Главная ---------- */
.hero { min-height: calc(100vh - 100px); display: grid; align-items: center; padding: 8px 0 56px; }
.hero-card { cursor: pointer; }
.hero-card .slab__content {
  display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 24px;
  min-height: 600px; padding: 72px 64px;
}
.hero-card h1 { font-size: clamp(40px, 5.2vw, 78px); margin: 26px 0; }
.hero-card .lead { max-width: 440px; margin-bottom: 40px; }
.hero-meta { display: flex; gap: 40px; margin-top: 52px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta b { display: block; font-family: var(--display); font-weight: 500; font-size: 24px; margin-bottom: 6px; white-space: nowrap;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-meta span { font-size: 13px; color: var(--dim); }

.scene { position: relative; height: 100%; min-height: 460px; }
.render { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.render--hero {
  position: absolute; left: 50%; top: 50%; width: 116%; max-width: none;
  translate: -50% -50%;
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* 3D-иллюстрация на главной: края растворяются в фоне без рамки */
.render--hero-3d {
  width: 128%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, rgba(0,0,0,.55) 72%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 52%, rgba(0,0,0,.55) 72%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
}
@media (max-width: 960px) { .render--hero-3d { width: 120%; } }

.pill {
  position: absolute; z-index: 3; pointer-events: none;
  display: flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 14px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
  background: rgba(14, 26, 60, .55);
  border: 1px solid var(--line-hi);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 16px 32px -12px rgba(0, 0, 0, .7);
  animation: bob 7s ease-in-out infinite;
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.pill--a { top: 6%; left: 2%; }
.pill--b { top: 44%; right: -2%; animation-delay: -2.4s; }
.pill--c { bottom: 8%; left: 10%; animation-delay: -4.8s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

/* ---------- Внутренняя: крошки ---------- */
.crumbs { display: inline-flex; align-items: center; gap: 12px; margin: 6px 0 36px; font-size: 13px; color: var(--dim); }
.crumbs a { color: var(--muted); transition: color .3s; }
.crumbs a:hover { color: var(--ink); }
.crumbs span::before { content: "/"; margin-right: 12px; opacity: .5; }

/* ---------- Внутренняя: герой ---------- */
.intro { margin-bottom: 140px; }
.intro .slab__content {
  display: grid; grid-template-columns: 1fr 1.1fr;
  grid-template-areas: "text pipe" "text cap" "trust trust";
  column-gap: 48px; padding: 72px 64px 0;
}
.intro__text { grid-area: text; }
.intro h1 { font-size: clamp(36px, 4.4vw, 64px); margin: 26px 0 28px; }
.intro .lead { max-width: 520px; margin-bottom: 40px; }
.cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  max-width: 520px; padding: 22px 24px 22px 28px; border-radius: 22px;
  background: linear-gradient(160deg, rgba(150, 185, 255, .12), rgba(60, 100, 220, .08));
  border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 20px 40px -18px rgba(70, 120, 255, .45);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), translate .4s var(--ease);
}
.cta:hover { translate: 0 -2px; border-color: rgba(220, 235, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 26px 50px -18px rgba(70, 120, 255, .6); }
.cta b { display: block; font-size: 19px; font-weight: 600; margin-bottom: 4px; }
.cta small { color: var(--muted); font-size: 14px; }
.cta__arrow {
  flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  color: #071026; background: linear-gradient(180deg, #f4f8ff, #c4d6f6);
  transition: transform .4s var(--ease);
}
.cta:hover .cta__arrow { transform: translateX(4px); }
.more { display: inline-flex; gap: 12px; align-items: center; margin: 36px 0 48px; font-size: 15px; color: var(--muted); transition: color .3s; }
.more:hover { color: var(--ink); }
.more span { animation: bob 2.6s ease-in-out infinite; }

.pipeline {
  grid-area: pipe; position: relative;
  display: grid; grid-template-columns: 1fr 1.3fr 1fr 1fr; align-items: end; gap: 14px;
  padding: 0 14px 36px; min-height: 340px;
}
.pipeline__base {
  position: absolute; left: 0; right: 0; bottom: 0; height: 64px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(150, 190, 255, .14), rgba(30, 60, 150, .1));
  border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 0 var(--edge), 0 8px 0 var(--edge-dark), 0 30px 50px rgba(0, 4, 20, .7);
  transform: perspective(800px) rotateX(50deg); transform-origin: bottom;
}
.pipeline__flow { position: absolute; left: 10%; width: 80%; bottom: 50px; height: 40px; overflow: visible; pointer-events: none; }
.pipeline__flow path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 4 12; opacity: .8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.node__scene {
  position: relative; width: 100%; aspect-ratio: 1 / 1.15; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(160, 195, 255, .14), rgba(30, 60, 150, .08));
  border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--edge), 0 6px 0 var(--edge-dark), 0 22px 30px rgba(0, 6, 30, .6);
  animation: bob 7s ease-in-out infinite;
}
.node:nth-child(4) .node__scene { animation-delay: -1.7s; }
.node:nth-child(5) .node__scene { animation-delay: -3.4s; }
.node:nth-child(6) .node__scene { animation-delay: -5.1s; }
.node--main .node__scene { aspect-ratio: 1 / 1.4; border-color: rgba(190, 220, 255, .55); }
.node__scene .render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.node--main .node__scene .render { padding: 2px; }
.node__label {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap;
  padding: 7px 12px; border-radius: 10px; color: var(--ink);
  background: rgba(14, 26, 60, .6); border: 1px solid var(--line-hi);
}
/* 3D-иллюстрация первого экрана automation.html: края растворяются в фоне */
.intro-visual { grid-area: pipe; position: relative; align-self: end; margin: 0 -64px -18px -40px; }
.render--auto-3d {
  display: block; width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0,0,0,.6) 78%, transparent 100%);
          mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, rgba(0,0,0,.6) 78%, transparent 100%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  animation: float 9s ease-in-out infinite;
}
@media (max-width: 960px) { .intro-visual { margin: 0 -24px; } }
.pipeline__caption { grid-area: cap; text-align: center; color: var(--dim); font-size: 13px; letter-spacing: .02em; margin-top: 18px; }
.trust {
  grid-area: trust; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px 28px;
  margin-top: 20px; padding: 28px 0 34px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.trust span::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 12px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* ---------- Заголовки секций ---------- */
.section { margin-bottom: 140px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 52px); margin-top: 20px; }
.section-head p { color: var(--muted); max-width: 400px; line-height: 1.7; font-size: 15px; }

/* ---------- Этапы ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step .slab__content { padding: 34px 30px 36px; min-height: 240px; display: flex; flex-direction: column; }
.step__num { font-family: var(--display); font-size: 13px; color: var(--accent); letter-spacing: .1em; margin-bottom: auto; }
.step h3 { font-family: var(--display); font-weight: 500; font-size: 19px; letter-spacing: -.01em; margin: 40px 0 12px; }
.step p { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ---------- Фильтр ---------- */
.filters { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 999px; margin-bottom: 40px;
  background: rgba(140, 175, 255, .05); border: 1px solid var(--line); }
.filter { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s var(--ease), background .3s var(--ease); }
.filter b { font-weight: 600; font-size: 12px; color: var(--dim); }
.filter:hover { color: var(--ink); }
.filter.is-on { color: #071026; background: linear-gradient(180deg, #f4f8ff, #c4d6f6); box-shadow: inset 0 1px 0 #fff; }
.filter.is-on b { color: #34466e; }

/* ---------- Плашки решений ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 28px 24px; }
.card { cursor: pointer; }
.card.is-hidden { display: none; }
.card:focus-visible { outline: 1px solid var(--accent); outline-offset: 6px; border-radius: var(--radius); }
.card .slab__content { display: flex; flex-direction: column; padding: 32px 32px 28px; min-height: 340px; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.card__icon {
  width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; color: var(--accent);
  background: linear-gradient(160deg, rgba(160, 195, 255, .16), rgba(40, 70, 160, .08));
  border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 3px 0 var(--edge), 0 12px 24px -8px rgba(0, 0, 0, .6);
  transition: color .4s var(--ease), box-shadow .4s var(--ease);
}
.card__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__icon { color: #d7e7ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--edge), 0 0 30px rgba(120, 170, 255, .35); }
.card__num { font-family: var(--display); font-size: 13px; color: var(--dim); letter-spacing: .08em; }
.card__cat { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.card[data-cat="auto"] .card__cat { color: #a9b8ff; }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.24; letter-spacing: -.015em; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 960px) { .card p { -webkit-line-clamp: 5; } }  /* на узких карточках описание не обрезается */
.card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 28px; }
.card__price small { display: block; font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.card__price b { font-family: var(--display); font-weight: 500; font-size: 23px; letter-spacing: -.02em; white-space: nowrap;
  background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card__go {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  border: 1px solid var(--line-hi); background: rgba(150, 185, 255, .06);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.card:hover .card__go { color: #071026; background: linear-gradient(180deg, #f4f8ff, #c4d6f6); border-color: transparent; }

/* ---------- Места под кейсы и логотипы ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { min-height: 260px; padding: 32px; border-radius: var(--radius);
  border: 1px dashed rgba(170, 200, 255, .28); background: rgba(140, 175, 255, .03);
  display: flex; flex-direction: column; }
.case__tag { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.case h3 { font-family: var(--display); font-weight: 500; font-size: 19px; margin: auto 0 10px; color: var(--muted); }
.case p { font-size: 14px; line-height: 1.6; color: var(--dim); }
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 24px; }
.logos span { height: 72px; border-radius: 18px; display: grid; place-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dim); border: 1px dashed rgba(170, 200, 255, .2); }

/* ---------- Призыв ---------- */
.cta-band .slab__content { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding: 64px; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 46px); max-width: 640px; }
.cta-band p { color: var(--muted); margin-top: 16px; max-width: 520px; line-height: 1.7; }

/* ---------- Подвал ---------- */
.footer { margin-top: 120px; padding: 40px 0 48px; border-top: 1px solid var(--line); }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.footer__links a { transition: color .3s; }
.footer__links a:hover { color: var(--ink); }
.footer__copy { margin-top: 28px; font-size: 13px; color: var(--dim); }

/* ---------- Окно «Состав работ» ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(2, 6, 18, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease); }
.modal.is-open { opacity: 1; pointer-events: auto; }
.modal .slab { width: min(700px, 100%); max-height: calc(100vh - 40px); }
.modal .slab:hover { translate: none; }
.modal .slab__glass { background: linear-gradient(160deg, rgba(40, 60, 120, .72), rgba(10, 20, 50, .88)); }
.modal .slab__content { padding: 44px; max-height: calc(100vh - 40px); overflow-y: auto; }
.modal.is-open .slab { animation: pop .6s var(--ease); }
/* на телефонах 100vh больше видимой области (адресная строка): используем dvh, скролл не передаётся странице */
.modal .slab__content { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@supports (height: 100dvh) { .modal .slab, .modal .slab__content { max-height: calc(100dvh - 40px); } }
@keyframes pop { from { opacity: 0; translate: 0 24px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
.modal h2 { font-size: 32px; margin: 18px 0 14px; }
.modal p { color: var(--muted); line-height: 1.7; margin-bottom: 24px; }
.modal h4 { font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 30px 0 14px; }
.modal ul { list-style: none; display: grid; }
.modal li { display: flex; gap: 14px; padding: 13px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.modal li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); }
.modal__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 8px; }
.modal__facts div { padding: 16px 18px; border-radius: 16px; background: rgba(140, 175, 255, .07); border: 1px solid var(--line); }
.modal__facts small { display: block; font-size: 12px; color: var(--dim); margin-bottom: 6px; }
.modal__facts b { font-size: 15px; font-weight: 600; }
.modal__facts div:first-child b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.modal .btn { margin-top: 8px; }
.modal__close { position: absolute; top: 20px; right: 20px; z-index: 10; width: 44px; height: 44px; border-radius: 50%;
  font-size: 16px; color: var(--ink); border: 1px solid var(--line-hi); background: rgba(150, 185, 255, .08);
  transition: background .3s, transform .4s var(--ease); }
.modal__close:hover { background: rgba(150, 185, 255, .2); transform: rotate(90deg); }
body.no-scroll { overflow: hidden; }

/* ---------- Появление при прокрутке ---------- */
.reveal { opacity: 0; translate: 0 28px; transition: opacity 1s var(--ease), translate 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; translate: 0 0; }
.slab.reveal.in:hover { translate: 0 -4px; transition-delay: 0s; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .hero-card .slab__content { grid-template-columns: 1fr; padding: 36px 26px 40px; min-height: 0; }
  .scene { min-height: 340px; order: -1; }
  .render--hero { width: 112%; }
  .pill--b { right: 0; }
  .intro .slab__content { grid-template-columns: 1fr; grid-template-areas: "pipe" "cap" "text" "trust"; padding: 34px 24px 0; }
  .pipeline { min-height: 0; padding-top: 8px; }
  .pipeline__caption { margin-bottom: 26px; }
  .cases { grid-template-columns: 1fr; }
  .cta-band .slab__content { padding: 40px 28px; }
  .intro, .section { margin-bottom: 96px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card .slab__content { padding: 26px 24px 24px; min-height: 0; }
  .hero-meta { gap: 24px; }
  .hero-meta b { font-size: 21px; }
  .pipeline { gap: 6px; padding: 0 4px 22px; }
  .pipeline__base { height: 44px; border-radius: 16px; }
  .pipeline__flow { bottom: 30px; }
  .node__label { font-size: 8.5px; letter-spacing: .06em; padding: 6px 7px; }
  .trust { flex-direction: column; }
  .modal .slab__content { padding: 34px 22px; }
  .modal__facts { grid-template-columns: 1fr; }
  .filter { padding: 0 14px; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .header .btn--sm { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}

/* Сетки не шире экрана */
.hero { grid-template-columns: minmax(0, 1fr); }   /* внешний контейнер — одна колонка */
.hero-card .slab__content, .intro .slab__content { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
@media (max-width: 960px) {
  .hero-card .slab__content, .intro .slab__content { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { flex-wrap: wrap; gap: 22px 32px; }
}

/* Заголовок «Автоматизация» — всегда одной строкой (размер подгоняет script.js) */
.hero-title { font-size: clamp(28px, 4.2vw, 64px); line-height: 1.06; margin: 26px 0 28px; }
.hero-title > span, .hero-title > em { display: block; white-space: nowrap; }
.hero-title > em { margin-top: .28em; }
/* текстовой колонке на главной — чуть больше места */
@media (min-width: 961px) { .hero-card .slab__content { grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); } }
.hero-card .lead { margin-bottom: 44px; }
