/* ------------------------------------------------------------------
   Виктор Мельников — портфолио
   Сетка и компоненты повторяют визуальный язык graststudio.ru,
   палитра — белый и синий. Все цвета — только через токены.
   ------------------------------------------------------------------ */

:root {
  --blue: #2350ff;
  --blue-600: #1638d6;
  --blue-soft: #eaf0ff;
  --blue-line: #c8d5ff;
  --bg: #eef2f9;
  --panel: #ffffff;
  --panel-2: #f7f9fd;
  --card: #f3f6fc;
  --stroke: #e0e6f1;
  --stroke-2: #d0d8e8;
  --ink: #0a1230;
  --ink-2: #39415e;
  --desc: #5f6784;
  --word: #8b93ad;
  --ok: #0f7a52;
  --warn: #9a5b00;
  --mute: #5f6784;
  --err: #d6283c;
  --r-panel: 70px;
  --r-card: 40px;
  --r-inner: 30px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  --shadow-blue: 0 4px 14px rgba(35, 80, 255, 0.28);
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 30px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.88em; background: var(--blue-soft); color: var(--blue-600); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 20px; top: -80px; z-index: 5000; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 20px; }

.app { padding: 23px 20px 0; }
.wrapper { padding: 0 30px; }

/* ---------- frame (рамка поверх страницы) ---------- */
.frame {
  position: fixed; inset: 10px; z-index: 3000; pointer-events: none;
  border-radius: 30px; box-shadow: 0 0 0 40px var(--blue);
}

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: opacity .35s ease;
}
.preloader.is-done { opacity: 0; pointer-events: none; }
.preloader__grid {
  position: absolute; left: -50%; right: -50%; top: -10%; height: 140%;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(35, 80, 255, 0.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(35, 80, 255, 0.10) 1px, transparent 1px);
  transform: perspective(700px) rotateX(62deg) translateY(10%);
  transform-origin: center 60%;
  animation: gridMove 3s linear infinite;
}
.preloader::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center 55%, transparent 0%, #fff 68%);
}
.preloader__text { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.preloader__slide { grid-area: 1 / 1; font-size: 24px; font-weight: 500; color: var(--ink); opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
.preloader__slide.is-active { opacity: 1; transform: none; }
.preloader__wrap { position: relative; z-index: 3; height: calc(100% - 10px); margin: 0 10px 10px; display: flex; flex-direction: column; justify-content: flex-end; }
.preloader__bar { height: 80px; width: 0; border-radius: 10px; background: var(--blue); transition: width 1.3s var(--ease), height .55s var(--ease), border-radius .55s; }
.preloader.is-progress .preloader__bar { width: 100%; }
.preloader.is-fill .preloader__bar { height: 100%; border-radius: 30px; }
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 0 50px; } }

/* ---------- buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 64px; min-width: 280px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--blue);
  background: var(--blue); color: #fff; text-decoration: none;
  font-size: 14px; font-weight: 700; letter-spacing: -0.04em; text-transform: uppercase; line-height: 1.5;
  transition: box-shadow .25s, background .25s, transform .25s var(--ease), color .25s;
}
.btn svg { width: 13px; height: 13px; fill: currentColor; flex: none; }
.btn:hover { box-shadow: var(--shadow-blue); }
.btn:active { transform: translateY(1px); }
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 64px; padding: 0 24px;
  border: 1px solid var(--stroke-2); border-radius: 999px; background: var(--panel);
  font-size: 16px; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap;
  transition: border-color .25s, color .25s, background .25s;
}
.pill:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- header ---------- */
.header-wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px; border: 1px solid var(--stroke-2); border-radius: 999px; background: var(--panel);
}
.header__logo {
  display: flex; align-items: center; gap: 18px; min-width: 285px; height: 64px; padding: 6px 26px 6px 6px;
  border: 1px solid var(--stroke-2); border-radius: 999px; text-decoration: none; color: var(--ink); flex: none;
}
.header__logo-circle {
  width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); flex: none;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 15px; letter-spacing: -0.04em;
}
.header__logo-words { font-size: 28px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; white-space: nowrap; }
.header__logo-words b { color: var(--blue); }
.header__logo-words small { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.header__right { display: flex; align-items: center; gap: 14px; }
.header__cta { min-width: 250px; }
.header__round { display: none; width: 56px; height: 56px; border-radius: 50%; background: var(--blue); color: #fff; place-items: center; }
.header__round svg { width: 22px; height: 22px; }


/* логотип-знак BLUEPRINT */
.header__logo-circle { background: none; color: var(--blue); }
.header__logo-circle svg { width: 48px; height: 48px; }

/* ---------- hero ---------- */
.hero-top {
  display: flex; align-items: center; margin-top: 40px; padding: 30px;
  border: 1px solid var(--stroke-2); border-radius: 30000px;
  background: linear-gradient(270deg, var(--panel) 0%, var(--panel-2) 100%);
}
.hero__title { flex: 1 1 auto; min-width: 0; }
.hero__word {
  display: inline-block; vertical-align: top; font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(36px, 6.4vw, 172px); line-height: 0.8; letter-spacing: -0.05em; color: var(--ink);
  white-space: nowrap; padding: 0.08em 0 0.02em 0.02em;
}
.hero__subtitle {
  flex: 0 0 min(560px, 38%); margin-left: 45px; padding: 10px 0 10px 30px; border-left: 2px solid var(--stroke);
  font-size: 18px; line-height: 1.5; letter-spacing: -0.03em; color: var(--ink);
}
.hero__subtitle p { margin-bottom: 20px; }
.hero__subtitle strong { color: var(--blue); font-weight: 500; font-style: italic; }
.hero__since { color: var(--word); }

.hero-video {
  position: relative; display: block; margin-top: 40px; overflow: hidden; border-radius: 90px;
  aspect-ratio: 1820 / 779;
  background: radial-gradient(120% 90% at 50% 110%, #5a7cff 0%, var(--blue) 45%, #1433c7 100%);
  text-decoration: none; isolation: isolate;
}
.hero-video__grid, .poster__grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-size: 50px 50px;
  background-image: linear-gradient(to right, rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.10) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero-video__phones { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 3%; }
.ph { width: 17%; max-width: 300px; border-radius: 34px; box-shadow: 0 30px 60px -20px rgba(4, 16, 80, .6); }
.ph--l { transform: translateY(8%) rotate(-6deg); animation: fly 6s ease-in-out infinite; }
.ph--c { width: 19%; animation: fly 6s ease-in-out -2s infinite; }
.ph--r { transform: translateY(8%) rotate(6deg); animation: fly 6s ease-in-out -4s infinite; }
.hero-video__badge {
  position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: rgba(255,255,255,.95); color: var(--ink); font-size: 16px; font-weight: 500; white-space: nowrap;
}
.hero-video__badge img { width: 40px; height: 40px; border-radius: 12px; }
@keyframes fly { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

/* ---------- panels (общая «плитка» секций) ---------- */
.services-wrap, .about-block {
  margin-top: 40px; border: 2px solid var(--stroke); border-radius: var(--r-panel);
  background: linear-gradient(278deg, var(--panel) 0%, var(--panel-2) 100%);
}
.services-wrap { padding: 80px; }

.title {
  font-weight: 500; font-size: clamp(40px, 6.25vw, 90px); line-height: 1; letter-spacing: -0.03em;
  text-align: center; color: var(--ink); text-wrap: balance;
}
.title strong { color: var(--blue); font-weight: 500; }
.title-note { max-width: 760px; margin: 24px auto 0; text-align: center; color: var(--desc); font-size: 18px; line-height: 1.5; letter-spacing: -0.03em; }

/* ---------- about ---------- */
.about-block { position: relative; display: flex; padding: 110px; overflow: hidden; min-height: 700px; align-items: center; }
.about-figure { position: absolute; left: 0; top: 0; bottom: 0; width: 520px; background: radial-gradient(circle at 20% 60%, rgba(35,80,255,.20) 0%, rgba(35,80,255,.06) 45%, transparent 70%); }
.orb, .capsule { position: absolute; display: block; background: radial-gradient(circle at 32% 28%, #cfdcff 0%, #6f8dff 26%, var(--blue) 58%, #0d2bb8 100%); box-shadow: inset -14px -18px 40px rgba(6, 24, 120, .45), 0 30px 50px -20px rgba(20, 50, 200, .45); }
.orb { border-radius: 50%; }
.orb--1 { width: 170px; height: 170px; left: 70px; top: 44%; animation: fly 5s ease-in-out infinite; }
.orb--2 { width: 120px; height: 120px; left: 250px; top: 30%; animation: fly 5s ease-in-out -1.7s infinite; }
.orb--3 { width: 90px; height: 90px; left: 210px; top: 66%; animation: fly 5s ease-in-out -3.1s infinite; }
.capsule { width: 230px; height: 110px; border-radius: 60px; }
.capsule--1 { left: 40px; top: 18%; rotate: -28deg; animation: fly 6s ease-in-out -.8s infinite; }
.capsule--2 { left: 120px; top: 76%; rotate: 18deg; width: 190px; height: 92px; animation: fly 6s ease-in-out -2.4s infinite; }
.about-right {
  position: relative; z-index: 2; max-width: 1102px; margin-left: 456px;
  font-size: clamp(34px, 5.5vw, 80px); line-height: 1; letter-spacing: -0.03em; color: var(--ink); font-weight: 400;
}
.about-right p { margin-bottom: 60px; }
.about-right p:last-child { margin-bottom: 0; }
.about-right strong { font-weight: 400; color: var(--word); }
[data-words] .word { color: var(--word); transition: color .3s ease-out; }
[data-words] .word.is-on { color: var(--ink); }
[data-words] strong .word.is-on { color: var(--blue); }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { display: grid; align-content: start; gap: 14px; padding: 28px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); }
.fact__num { font-weight: 500; font-size: clamp(34px, 3.2vw, 48px); line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.fact__what { font-size: 18px; line-height: 1.4; letter-spacing: -0.03em; color: var(--ink); font-weight: 500; }
.fact__src { font-size: 14px; line-height: 1.45; color: var(--desc); }
.fact__src a { color: var(--blue); }

/* ---------- services ---------- */
.services-block { display: flex; gap: 20px; margin-top: 44px; }
.services__item {
  flex: 1 1 25%; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 16px 16px 24px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke);
  transition: border-color .4s, transform .4s var(--ease), box-shadow .4s;
}
.services__item:hover { border-color: var(--blue-line); transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(35, 80, 255, .35); }
.services__visual { aspect-ratio: 32 / 26; border-radius: var(--r-inner); background: var(--panel); border: 1px solid var(--stroke); overflow: hidden; display: grid; place-items: center; margin-bottom: 6px; }
.services__visual svg { width: 100%; height: 100%; }
.services__label, .services__description, .services__footer { padding: 0 12px; }
.services__label { font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.services__description { font-size: 16px; line-height: 1.5; letter-spacing: -0.03em; color: var(--desc); flex: 1 1 auto; }
.services__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.services__where { font-size: 15px; font-weight: 500; color: var(--blue); text-align: right; }
.tokens { display: flex; }
.tokens i { font-style: normal; width: 40px; height: 40px; margin-right: -10px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--stroke-2); font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: -0.02em; }
.tokens i:nth-child(odd) { background: var(--blue); color: #fff; box-shadow: none; }
/* svg illustration palette */
.v-blue { fill: var(--blue); } .v-soft { fill: var(--blue-soft); } .v-soft2 { fill: var(--blue-line); } .v-card { fill: var(--card); stroke: var(--stroke-2); stroke-width: 1.5; }
.v-white { fill: #fff; stroke: #fff; } .v-ink { fill: var(--ink); } .v-line { stroke: var(--blue-line); stroke-width: 2; }
.v-t { font: 700 13px var(--font); fill: var(--blue); }
.float-a, .float-b { transition: transform .5s var(--ease); }
.services__item:hover .float-a { transform: translateY(-10px); }
.services__item:hover .float-b { transform: translateY(10px); }

/* ---------- cases ---------- */
.cases { margin-top: 80px; }
.cases__title { margin-top: 0; }
.cases-list { position: relative; padding-top: 60px; }
.cases__item {
  position: sticky; top: 40px; display: flex; gap: 20px; height: 660px; margin-bottom: 40px;
  background: var(--bg); border-radius: var(--r-card);
  transform-origin: center top; will-change: transform;
}
.cases__item:last-child { margin-bottom: 0; }
.cases__left {
  flex: 0 0 670px; display: flex; flex-direction: column; padding: 50px;
  border: 2px solid var(--stroke); border-radius: var(--r-card); background: var(--panel);
}
.cases__order { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; text-transform: uppercase; color: var(--ink); }
.cases__label { margin-top: 18px; font-size: clamp(32px, 4.2vw, 60px); font-weight: 500; line-height: 1; letter-spacing: -0.01em; }
.cases__tags { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 16px; }
.cases__tags li { font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: -0.04em; text-transform: uppercase; color: var(--blue); }
.cases__tags .st { display: inline-flex; align-items: center; gap: 8px; }
.cases__tags .st::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.cases__tags .st--ok { color: var(--ok); }
.cases__tags .st--warn { color: var(--warn); }
.cases__tags .st--mute { color: var(--mute); }
.cases__description { margin-top: 24px; font-size: 18px; line-height: 1.5; letter-spacing: -0.03em; color: var(--ink-2); }
.cases__button-wrap { display: flex; gap: 16px; margin-top: auto; padding-top: 30px; }
.cases__button { flex: 1 1 50%; min-width: 0; padding: 0 16px; }
.site-btn { background: transparent; color: var(--ink); border-color: var(--blue); }
.site-btn:hover { background: var(--blue-soft); box-shadow: none; }
.cases__right { flex: 1 1 auto; min-width: 0; border-radius: var(--r-card); overflow: hidden; }

/* posters (правая панель кейса) */
.poster { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 50px; text-align: center; }
.poster--blue { background: radial-gradient(120% 100% at 50% 100%, #5a7cff 0%, var(--blue) 50%, #1433c7 100%); color: #fff; }
.poster--light { background: linear-gradient(160deg, #ffffff 0%, var(--blue-soft) 100%); color: var(--ink); border: 2px solid var(--stroke); }
.poster--light .poster__grid { background-image: linear-gradient(to right, rgba(35,80,255,.10) 1px, transparent 1px), linear-gradient(to bottom, rgba(35,80,255,.07) 1px, transparent 1px); opacity: 1; }
.poster__phones { display: flex; gap: 24px; align-items: center; }
.poster__phones img { width: 190px; border-radius: 26px; box-shadow: 0 30px 60px -20px rgba(4, 16, 80, .6); }
.poster__phones img:first-child { rotate: -5deg; translate: 0 14px; }
.poster__phones img:last-child { rotate: 5deg; translate: 0 -8px; }
.poster__stats { font-size: 18px; line-height: 1.6; letter-spacing: -0.02em; opacity: .92; }
.poster__stats b { font-weight: 600; }
.poster--blue .poster__stats { color: #fff; }
.poster__big { font-family: var(--font-display); font-weight: 900; font-size: clamp(44px, 6vw, 110px); line-height: 1; letter-spacing: -0.05em; color: var(--blue); }
.nw { white-space: nowrap; }
.poster__caption { font-size: 20px; letter-spacing: -0.03em; color: var(--ink-2); max-width: 520px; }
.poster__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 620px; }
.poster__chips i { font-style: normal; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--blue-line); background: #fff; color: var(--blue); font-size: 15px; font-weight: 600; }
.poster__logo { width: 150px; height: 150px; border-radius: 36px; background: #fff; display: grid; place-items: center; box-shadow: 0 24px 48px -20px rgba(4, 16, 80, .5); }
.poster__logo img { width: 96px; height: 96px; object-fit: contain; }
.poster__logo--icon { color: var(--blue); }
.poster__logo--icon svg { width: 84px; height: 84px; }
.poster--light .poster__logo { border: 1px solid var(--stroke); box-shadow: 0 24px 48px -24px rgba(35, 80, 255, .35); }
.poster__name { font-family: var(--font-display); font-weight: 900; font-size: clamp(34px, 3.6vw, 64px); line-height: 1; letter-spacing: -0.04em; }
.poster--light .poster__name { color: var(--ink); }

/* скриншот проекта в окне браузера (правая панель кейса) */
.shot { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; padding: 50px 60px; background: radial-gradient(120% 100% at 50% 100%, #5a7cff 0%, var(--blue) 50%, #1433c7 100%); }
.shot--light { background: linear-gradient(160deg, #ffffff 0%, var(--blue-soft) 100%); border: 2px solid var(--stroke); }
.shot--light .poster__grid { background-image: linear-gradient(to right, rgba(35,80,255,.10) 1px, transparent 1px), linear-gradient(to bottom, rgba(35,80,255,.07) 1px, transparent 1px); opacity: 1; }
.browser { position: relative; width: 100%; max-width: 900px; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -30px rgba(4, 16, 80, .55), 0 0 0 1px rgba(10, 18, 48, .08); transition: transform .6s var(--ease); }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; background: #f1f4fa; border-bottom: 1px solid var(--stroke); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #d3daea; }
.browser__bar i:first-child { background: #ff6159; } .browser__bar i:nth-child(2) { background: #ffbd2e; } .browser__bar i:nth-child(3) { background: #28c940; }
.browser__bar span { margin: 0 auto; padding: 4px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--stroke); font-size: 12.5px; font-weight: 500; color: var(--desc); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform: translateX(-20px); }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot__mobile { position: absolute; right: 36px; bottom: 30px; width: 150px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 22px; border: 5px solid #0a1230; box-shadow: 0 30px 50px -20px rgba(4, 16, 80, .6); transition: transform .6s var(--ease); }
.cases__item:hover .browser { transform: translateY(-6px); }
.cases__item:hover .shot__mobile { transform: translateY(-14px); }
.poster__phones--3 img { width: 170px; }
.poster__phones--3 img:nth-child(2) { width: 190px; rotate: 0deg; translate: 0 -10px; }
.poster__phones--3 img:first-child { rotate: -6deg; translate: 0 18px; }
.poster__phones--3 img:last-child { rotate: 6deg; translate: 0 18px; }

/* галерея в модалке */
.cm-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) 200px; gap: 16px; margin-top: 30px; align-items: start; }
.cm-gallery img { width: 100%; border-radius: 18px; border: 1px solid var(--stroke); box-shadow: 0 20px 40px -28px rgba(4, 16, 80, .5); aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: var(--card); }
.cm-gallery img.cm-gallery__m { aspect-ratio: 390 / 844; border-radius: 22px; }
.cm-gallery:not(:has(img:nth-child(3))) { grid-template-columns: minmax(0, 2fr) 200px; }
.cm-gallery--phones { grid-template-columns: repeat(3, 200px); justify-content: start; }
.cm-gallery--phones img { aspect-ratio: 420 / 892; border-radius: 26px; }
.more__shot { border-radius: var(--r-inner); overflow: hidden; border: 1px solid var(--stroke); background: #fff; margin-bottom: 6px; }
.more__shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }


/* ---------- 3D-графика ---------- */
.hero-video--3d { background: linear-gradient(180deg, #e7eeff 0%, #f5f8ff 100%); }
.hero-video__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video--3d .hero-video__badge { text-decoration: none; gap: 10px; padding: 14px 24px; background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; letter-spacing: -0.03em; box-shadow: var(--shadow-blue); transition: transform .25s var(--ease); }
.hero-video--3d .hero-video__badge svg { width: 12px; height: 12px; fill: currentColor; }
.hero-video--3d .hero-video__badge:hover { transform: translate(-50%, -3px); }
.about-3d { position: absolute; display: block; pointer-events: none; filter: drop-shadow(0 40px 50px rgba(20, 50, 200, .28)); }
.about-3d--front { width: 400px; left: 40px; top: calc(50% - 200px); animation: fly 6s ease-in-out infinite; }
.about-3d--back { width: 170px; left: 300px; top: 8%; opacity: .85; rotate: 35deg; filter: blur(1.5px) drop-shadow(0 20px 30px rgba(20, 50, 200, .2)); animation: fly 7s ease-in-out -2.5s infinite; }
.services__visual { background: radial-gradient(circle at 50% 58%, var(--blue-soft) 0%, var(--panel) 70%); }
.services__visual img { width: 78%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(20, 50, 200, .2)); transition: transform .6s var(--ease); }
.services__item:hover .services__visual img { transform: translateY(-10px) rotate(-4deg) scale(1.05); }
.discuss__plane { position: absolute; right: -34px; top: -96px; width: 210px; z-index: 2; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(20, 50, 200, .25)); animation: fly 5s ease-in-out infinite; }
.hero-video__chips { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.glass { position: absolute; display: grid; gap: 4px; padding: 18px 24px; border-radius: 24px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .8); box-shadow: 0 24px 50px -24px rgba(20, 50, 200, .45), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.glass b { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.glass span { font-size: 14px; color: var(--ink-2); }
.glass--1 { left: 50%; top: 24%; translate: -50% 0; animation: fly 6s ease-in-out infinite; }
.glass--2 { left: 50%; top: 45%; margin-left: -250px; animation: fly 6s ease-in-out -2s infinite; }
.glass--3 { left: 50%; top: 58%; margin-left: 40px; animation: fly 6s ease-in-out -4s infinite; }
@media (max-width: 1500px) { .about-3d--front { width: 330px; top: calc(50% - 165px); } .about-3d--back { left: 250px; width: 140px; } }
@media (max-width: 1100px) {
  .about-3d--front { width: 260px; left: calc(50% - 130px); top: 10px; }
  .about-3d--back { width: 110px; left: calc(50% + 90px); top: 0; }
  .discuss__plane { width: 150px; top: -60px; right: -10px; }
}
@media (max-width: 768px) { .hero-video--3d { height: 360px; } .discuss__plane { width: 110px; top: -44px; right: -6px; } .about-figure { height: 260px; } .glass { padding: 12px 16px; border-radius: 18px; } .glass b { font-size: 16px; } .glass span { font-size: 12px; } .glass { max-width: calc(100% - 32px); } .glass--1 { top: 8%; left: auto; right: 16px; translate: none; } .glass--2 { top: 40%; left: 16px; margin-left: 0; } .glass--3 { top: 62%; left: auto; right: 16px; margin-left: 0; } }

/* ещё три проекта */
.more { margin-top: 40px; }
.more__title { font-size: clamp(28px, 3.3vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; text-align: center; }
.more .services-block { align-items: flex-start; }
.more__item details.disclosure { margin-top: 6px; }
.more__item { padding: 30px 28px 26px; gap: 12px; }
.more__item .cases__tags { margin-top: 0; }
.more__item .services__label, .more__item .services__description { padding: 0; }
.more__item .services__description { flex: 0 0 auto; }
.more__nums { font-size: 15px; color: var(--ink); } .more__nums b { color: var(--blue); font-weight: 600; }
.more__chips { font-size: 14px; color: var(--desc); }
.more__also { margin-top: 30px; text-align: center; color: var(--desc); font-size: 16px; max-width: 980px; margin-inline: auto; }
.more__also b { color: var(--ink); }
details.disclosure { margin-top: auto; border-top: 1px solid var(--stroke-2); padding-top: 12px; }
details.disclosure summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--blue); text-transform: uppercase; letter-spacing: -0.03em; }
details.disclosure summary::-webkit-details-marker { display: none; }
details.disclosure summary::after { content: "+"; margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); font-size: 18px; transition: transform .25s; }
details.disclosure[open] summary::after { transform: rotate(45deg); }
details.disclosure p { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.limits { padding: 12px 14px; border-radius: 16px; background: #fff7e8; border-left: 3px solid var(--warn); }

/* ---------- lab ---------- */
.lab { margin-top: 44px; }
.lab input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.lab__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.lab__tabs label { cursor: pointer; display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--stroke-2); background: var(--panel); font-weight: 600; font-size: 16px; color: var(--ink-2); transition: all .25s; }
.lab__tabs label:hover { border-color: var(--blue); color: var(--blue); }
#lab-1:checked ~ .lab__tabs label[for="lab-1"], #lab-2:checked ~ .lab__tabs label[for="lab-2"], #lab-3:checked ~ .lab__tabs label[for="lab-3"] { background: var(--blue); border-color: var(--blue); color: #fff; }
#lab-1:focus-visible ~ .lab__tabs label[for="lab-1"], #lab-2:focus-visible ~ .lab__tabs label[for="lab-2"], #lab-3:focus-visible ~ .lab__tabs label[for="lab-3"] { outline: 3px solid var(--blue); outline-offset: 3px; }
.lab__panel { display: none; }
#lab-1:checked ~ .lab__panels .p1, #lab-2:checked ~ .lab__panels .p2, #lab-3:checked ~ .lab__panels .p3 { display: block; animation: fadeUp .4s var(--ease); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.step { display: grid; align-content: start; gap: 14px; padding: 28px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); }
.step__lbl { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--blue); }
.step__lbl i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 13px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.step--limit { background: #fff7e8; border-color: #f3dfb8; }
.step--limit .step__lbl { color: var(--warn); }
.step--limit .step__lbl i { background: var(--warn); }
.lab__src { margin-top: 18px; text-align: center; font-size: 14px; color: var(--desc); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- advantages ---------- */
.advantages { margin-top: 80px; }
.advantages-wrap { margin-top: 44px; }
.advantages-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.advantages__item { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 50px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); }
.advantages__visual { position: relative; height: 360px; border-radius: var(--r-card); background: var(--panel); border: 1px solid var(--stroke); overflow: hidden; display: grid; place-items: center; margin-bottom: 20px; }
.advantages__label, .advantages__description, .advantages__ev { padding: 0 34px; }
.advantages__label { font-size: clamp(28px, 3.3vw, 48px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.advantages__description { font-size: 16px; line-height: 1.5; color: var(--desc); max-width: 640px; }
.advantages__ev { font-size: 14px; color: var(--blue); font-weight: 500; }
/* visuals */
.av-list { display: grid; gap: 10px; width: min(460px, 86%); }
.av-list span { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--stroke); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.av-list i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.av-counter { position: absolute; right: 26px; top: 22px; padding: 10px 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 22px; font-weight: 600; box-shadow: var(--shadow-blue); }
.av-counter small { font-size: 13px; font-weight: 500; opacity: .85; }
.av-files { display: grid; gap: 10px; width: min(400px, 80%); }
.av-files span { padding: 14px 18px 14px 46px; position: relative; border-radius: 14px; background: var(--card); border: 1px solid var(--stroke); font: 500 15px ui-monospace, Consolas, monospace; color: var(--ink-2); }
.av-files span::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 20px; margin-top: -10px; border-radius: 3px; border: 2px solid var(--blue-line); }
.av-files span.is-on { background: var(--blue); color: #fff; border-color: var(--blue); transform: translateX(18px); box-shadow: var(--shadow-blue); }
.av-files span.is-on::before { border-color: #fff; }
.av-chain { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 24px; }
.av-chain span { padding: 14px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--stroke-2); font-weight: 600; font-size: 16px; }
.av-chain span.is-on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.av-chain b { width: 24px; height: 2px; background: var(--blue-line); position: relative; }
.av-chain b::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left-color: var(--blue-line); }
.av-days { position: relative; display: flex; gap: 40px; align-items: center; }
.av-days__line { position: absolute; left: 50px; right: 50px; top: 50px; height: 2px; background: var(--blue-line); z-index: 0; }
.av-day { position: relative; z-index: 1; display: grid; justify-items: center; gap: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--desc); letter-spacing: -0.02em; }
.av-day i { font-style: normal; width: 100px; height: 100px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--stroke-2); color: var(--ink); font-size: 22px; font-weight: 600; letter-spacing: -0.04em; }
.av-day.is-on i { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.advantages-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.note { padding: 40px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); }
.note__title { font-size: 28px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 18px; }
.note ul { display: grid; gap: 12px; }
.note li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.note li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--warn); }
.note a { color: var(--blue); }
.note p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.note--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.note--blue p { color: rgba(255,255,255,.92); }

/* ---------- stack table ---------- */
.table-wrap { margin-top: 44px; overflow-x: auto; border-radius: var(--r-card); border: 2px solid var(--stroke); background: var(--panel); }
table.matrix { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 16px; }
table.matrix th, table.matrix td { text-align: left; padding: 16px 28px; border-bottom: 1px solid var(--stroke); vertical-align: top; }
table.matrix th { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--desc); background: var(--card); }
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix td:first-child { font-weight: 600; }
table.matrix td.where { color: var(--ink-2); }
table.matrix td.scale { color: var(--blue); font-weight: 500; }
table.matrix tr.group td { background: var(--blue-soft); color: var(--blue); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; padding-top: 12px; padding-bottom: 12px; }
table.matrix tbody tr:not(.group):hover td { background: var(--panel-2); }

/* ---------- analysis ---------- */
.tz-list { display: grid; gap: 12px; margin-top: 20px; }
.tz { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 22px 30px; border-radius: 999px; background: var(--card); border: 2px solid var(--stroke); }
.tz b { font-weight: 600; }
.tz span { color: var(--desc); }
.tz__meta { color: var(--blue) !important; font-weight: 600; white-space: nowrap; }

/* ---------- path ---------- */
.path { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px; margin-top: 44px; align-items: start; }
.timeline { border-left: 2px solid var(--blue-line); margin-left: 10px; }
.tl { position: relative; display: grid; gap: 4px; padding: 0 0 30px 34px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); border: 3px solid var(--blue); }
.tl--now::before { background: var(--blue); box-shadow: 0 0 0 6px var(--blue-soft); }
.tl__when { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--blue); }
.tl__what { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.2; }
.tl__desc { font-size: 16px; color: var(--desc); max-width: 640px; }
.edu-card { display: grid; gap: 14px; padding: 40px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); position: sticky; top: 40px; }
.edu-card .cases__tags { margin-top: 0; }
.edu-card__title { font-size: 28px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.edu-card p { color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.edu-card__note { color: var(--desc) !important; font-size: 15px !important; }

/* ---------- discuss ---------- */
.discuss { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.discuss__title, .discuss__subtitle { font-size: clamp(36px, 5vw, 72px); font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.discuss__title strong { color: var(--blue); font-weight: 500; }
.discuss__subtitle { margin-top: 40px; }
.person { display: flex; gap: 24px; align-items: center; margin-top: 40px; padding: 16px; border: 1px solid var(--stroke-2); border-radius: var(--r-inner); background: var(--panel); max-width: 600px; }
.person__avatar { flex: none; width: 160px; height: 160px; border-radius: 30px; background: var(--blue); display: grid; place-items: center; position: relative; }
.person__avatar span { width: 120px; height: 120px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 40px; color: var(--blue); letter-spacing: -0.05em; }
.person__avatar::after { content: ""; position: absolute; right: 14px; top: 14px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.person__info { display: grid; gap: 6px; }
.person__info strong { font-size: 48px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; }
.person__info span { font-size: 18px; }
.person__info p { font-size: 16px; color: var(--desc); }
.terms { margin-top: 24px; display: grid; border: 1px solid var(--stroke-2); border-radius: var(--r-inner); overflow: hidden; background: var(--panel); max-width: 600px; }
.terms__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--stroke); font-size: 15px; }
.terms__row:last-child { border-bottom: 0; }
.terms dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; color: var(--desc); padding-top: 2px; }
.terms dd a { color: var(--blue); }
.discuss__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.discuss__actions .pill { height: 50px; padding: 0 20px; font-size: 15px; }
.discuss-right { position: sticky; top: 40px; }
.form { display: grid; gap: 30px; padding: 40px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); }
.field { display: grid; gap: 10px; border-bottom: 1px solid var(--stroke-2); padding-bottom: 12px; transition: border-color .25s; }
.field:focus-within { border-color: var(--blue); }
.field__ph { font-size: 24px; font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--desc); }
.field__ph i { font-style: normal; color: var(--blue); }
.field input, .field textarea { width: 100%; border: 0; outline: 0; background: transparent; font: 500 20px/1.4 var(--font); color: var(--ink); letter-spacing: -0.02em; padding: 0; resize: vertical; }
.field input::placeholder { color: var(--word); font-weight: 400; font-size: 17px; }
.field__err { color: var(--err); font-size: 14px; font-weight: 500; }
.field.is-invalid { border-color: var(--err); }
.form__btn { width: 100%; min-width: 0; background: var(--word); border-color: var(--word); }
.form.is-ready .form__btn { background: var(--blue); border-color: var(--blue); }
.form__policy { font-size: 14px; font-weight: 500; color: var(--desc); line-height: 1.5; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; padding-bottom: 40px; text-align: center; }
.footer__email { display: block; font-size: clamp(26px, 8.4vw, 130px); font-weight: 500; line-height: 1.1; letter-spacing: -0.03em; color: var(--blue); text-decoration: none; margin-bottom: 47px; }
.footer__email:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 10px; }
.footer-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 24px; font-size: 16px; line-height: 1.5; letter-spacing: -0.03em; color: var(--desc); }
.footer-wrap a { color: var(--desc); }
.footer-wrap a:hover { color: var(--blue); }

/* ---------- case modal ---------- */
.case-modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 20px; border: 0; background: transparent; color: var(--ink); overflow: hidden; }
.case-modal::backdrop { background: rgba(10, 18, 48, .45); backdrop-filter: blur(6px); }
.case-modal[open] { display: flex; animation: modalIn .35s var(--ease); }
.case-modal__inner { width: 100%; height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 60px 70px 70px; border-radius: 50px; background: linear-gradient(278deg, var(--panel) 0%, var(--panel-2) 100%); border: 2px solid var(--stroke); }
.case-modal__back { border: 0; background: none; padding: 8px 0; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.04em; color: var(--desc); }
.case-modal__back:hover { color: var(--blue); }
.case-modal__head { margin-top: 24px; }
.case-modal__head .cases__order { display: block; }
.case-modal__title { margin-top: 14px; font-size: clamp(32px, 4.2vw, 60px); font-weight: 500; line-height: 1.02; letter-spacing: -0.02em; max-width: 1200px; }
.case-modal__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; margin-top: 40px; align-items: start; }
.case-modal__side { display: grid; gap: 18px; }
.cm-hr, .cm-tl { font-size: 18px; line-height: 1.5; letter-spacing: -0.02em; color: var(--ink-2); }
.cm-hr b, .cm-tl b { color: var(--ink); }
.cm-tl { padding: 18px 20px; border-radius: 20px; background: var(--blue-soft); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.metric { display: grid; align-content: start; gap: 6px; padding: 18px; border-radius: 24px; background: var(--card); border: 1px solid var(--stroke); }
.metric .n { font-size: 26px; font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--blue); }
.metric .l { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.metric .s { font-size: 12.5px; line-height: 1.35; color: var(--desc); }
.cm-chips { font-size: 15px; line-height: 1.6; color: var(--desc); }
.cm-links { display: flex; flex-wrap: wrap; gap: 10px; }
.cm-links a { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--blue); color: var(--blue); text-decoration: none; font-weight: 600; font-size: 15px; }
.cm-links a:hover { background: var(--blue); color: #fff; }
.cm-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; }
.cm-shots img { border-radius: 24px; border: 1px solid var(--stroke); }
.cm-shots figcaption { margin-top: 8px; font-size: 13px; text-align: center; color: var(--desc); }
.brief { display: grid; gap: 14px; }
.brief__row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 22px 24px; border-radius: 24px; background: var(--card); border: 1px solid var(--stroke); }
.brief__lbl { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--blue); padding-top: 2px; }
.brief__txt { font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.brief__txt ul { display: grid; gap: 8px; }
.brief__txt li { position: relative; padding-left: 20px; }
.brief__txt li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.brief__txt b { color: var(--ink); }
.brief__row--limits { background: #fff7e8; border-color: #f3dfb8; }
.brief__row--limits .brief__lbl { color: var(--warn); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
html:not(.js) .case-modal { display: block; position: static; height: auto; padding: 0 50px 20px; }

/* ---------- slide-top & toast ---------- */
.slide-top { position: fixed; left: 50px; bottom: 50px; z-index: 3001; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-blue); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .2s; }
.slide-top svg { width: 15px; height: 15px; fill: currentColor; }
.slide-top.is-visible { opacity: 1; visibility: visible; }
.slide-top:hover { transform: translateY(-5px); }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 6000; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; transition: opacity .2s, transform .25s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* =================== responsive =================== */
@media (max-width: 1500px) {
  .about-figure { width: 400px; }
  .about-right { margin-left: 360px; }
  .orb--2 { left: 200px; } .orb--3 { left: 170px; }
  .cases__left { flex-basis: 560px; padding: 40px; }
}
@media (max-width: 1300px) {
  .services-block:not(.more .services-block) { flex-wrap: wrap; }
  .services-block:not(.more .services-block) .services__item { flex: 1 1 calc(50% - 10px); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pill--mail { display: none; }
  .hero__subtitle { flex-basis: 44%; }
  .hero-video { aspect-ratio: auto; height: clamp(440px, 42vw, 540px); }
}
@media (max-width: 1100px) {
  :root { --r-panel: 50px; --r-card: 30px; --r-inner: 24px; }
  .services-wrap { padding: 60px 40px; }
  .about-block { padding: 80px 50px; flex-direction: column; align-items: flex-start; min-height: 0; }
  .about-figure { position: relative; width: 100%; height: 280px; margin: -30px 0 20px; }
  .orb--1 { left: 8%; top: 30%; } .orb--2 { left: 38%; top: 14%; } .orb--3 { left: 60%; top: 50%; }
  .capsule--1 { left: 64%; top: 8%; } .capsule--2 { left: 22%; top: 64%; }
  .about-right { margin-left: 0; }
  .cases__item { position: relative; top: auto; height: auto; flex-direction: column; transform: none !important; background: none; }
  .cases__left { flex-basis: auto; }
  .cases__right { min-height: 420px; }
  .advantages-block, .advantages-notes, .path, .discuss { grid-template-columns: minmax(0, 1fr); }
  .discuss-right, .edu-card { position: static; }
  .case-modal__grid { grid-template-columns: minmax(0, 1fr); }
  .more .services-block { flex-direction: column; }
  .facts--3 { grid-template-columns: 1fr; }
  .header__right .pill { display: none; }
}
@media (max-width: 900px) {
  .hero-top { flex-direction: column; align-items: stretch; border-radius: 40px; padding: 40px 30px; text-align: center; }
  .hero__subtitle { flex-basis: auto; margin: 26px 0 0; padding: 26px 0 0; border-left: 0; border-top: 2px solid var(--stroke); }
  .hero__word { text-align: center; }
  .hero-video { border-radius: 40px; aspect-ratio: auto; height: 520px; min-height: 0; }
  .ph { width: 30%; } .ph--c { width: 33%; }
  .header__cta { display: none; }
  .header__round { display: grid; }
}
@media (max-width: 768px) {
  .frame { display: none; }
  .app { padding: 10px 8px 0; }
  .wrapper { padding: 0 8px; }
  :root { --r-panel: 32px; --r-card: 26px; --r-inner: 20px; }
  .services-wrap { padding: 44px 18px; margin-top: 16px; }
  .about-block { margin-top: 16px; padding: 44px 22px; }
  .hero-top, .hero-video { margin-top: 16px; }
  .hero-video { height: 440px; border-radius: 32px; }
  .hero-video__badge { font-size: 13px; bottom: 20px; }
  .ph { width: 40%; border-radius: 22px; } .ph--c { width: 44%; } .ph--l, .ph--r { display: none; }
  .hero-video__phones { gap: 0; }
  .header-wrap { padding: 8px; }
  .header__logo { width: auto; min-width: 0; height: 56px; gap: 12px; padding: 4px 18px 4px 4px; border: 0; }
  .header__logo-words { font-size: 22px; }
  .header__logo-words small { font-size: 12px; }
  .title-note { font-size: 16px; }
  .facts, .steps { grid-template-columns: 1fr; }
  .fact, .step { padding: 22px; }
  .services-block { flex-direction: column; }
  .services__item { flex-basis: auto !important; }
  .cases { margin-top: 50px; }
  .cases-list { padding-top: 30px; }
  .cases__item { margin-bottom: 16px; gap: 10px; }
  .cases__left { padding: 26px 22px; }
  .cases__description { font-size: 16px; }
  .cases__button-wrap { flex-direction: column; gap: 10px; }
  .cases__button { flex: 0 0 auto; height: 56px; }
  .cases__right { min-height: 340px; }
  .poster { padding: 30px 20px; }
  .shot { padding: 26px 16px 70px; min-height: 0; }
  .browser { border-radius: 12px; }
  .browser__bar { height: 26px; padding: 0 10px; gap: 5px; }
  .browser__bar i { width: 8px; height: 8px; }
  .browser__bar span { font-size: 10px; padding: 2px 10px; }
  .shot__mobile { width: 84px; right: 14px; bottom: 14px; border-width: 3px; border-radius: 14px; }
  .poster__phones--3 img { width: 96px; } .poster__phones--3 img:nth-child(2) { width: 108px; }
  .cm-gallery { grid-template-columns: minmax(0, 1fr); }
  .cm-gallery img.cm-gallery__m { width: 60%; justify-self: center; }
  .cm-gallery--phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .poster__phones img { width: 120px; border-radius: 18px; }
  .poster__stats { font-size: 15px; }
  .poster__logo { width: 110px; height: 110px; border-radius: 28px; }
  .poster__logo img { width: 70px; height: 70px; }
  .advantages { margin-top: 50px; }
  .advantages__visual { height: 280px; }
  .advantages__label, .advantages__description, .advantages__ev { padding: 0 14px; }
  .av-days { gap: 14px; } .av-day i { width: 76px; height: 76px; font-size: 18px; } .av-days__line { top: 38px; }
  .av-chain span { padding: 10px 14px; font-size: 14px; }
  .note { padding: 26px 22px; }
  .tz { border-radius: 24px; grid-template-columns: minmax(0, 1fr); padding: 18px 22px; }
  .edu-card { padding: 26px 22px; }
  .edu-card__title { font-size: 22px; overflow-wrap: anywhere; hyphens: auto; }
  .tl__what { font-size: 19px; }
  .person { flex-direction: column; align-items: flex-start; }
  .person__avatar { width: 120px; height: 120px; border-radius: 24px; }
  .person__avatar span { width: 88px; height: 88px; font-size: 30px; }
  .person__info strong { font-size: 36px; }
  .terms__row { grid-template-columns: 1fr; gap: 2px; }
  .form { padding: 26px 20px; gap: 24px; }
  .field__ph { font-size: 20px; }
  .btn { height: 56px; min-width: 0; }
  .slide-top { left: 20px; bottom: 20px; width: 40px; height: 40px; }
  .slide-top svg { width: 11px; height: 11px; }
  .case-modal { padding: 8px; }
  .case-modal__inner { padding: 30px 20px 40px; border-radius: 28px; }
  .metrics { grid-template-columns: 1fr; }
  .brief__row { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  table.matrix { min-width: 0; }
  table.matrix thead { display: none; }
  table.matrix tr, table.matrix td { display: block; }
  table.matrix td { padding: 3px 20px; border: 0; }
  table.matrix td:first-child { padding-top: 14px; }
  table.matrix td.scale { padding-bottom: 14px; border-bottom: 1px solid var(--stroke); }
  table.matrix td.where::before { content: "где: "; color: var(--desc); font-size: 14px; }
  table.matrix tr.group td { padding: 10px 20px; border-bottom: 0; }
  .footer__email { margin-bottom: 28px; }
}
@media (max-width: 420px) {
  .title { font-size: 32px; hyphens: auto; overflow-wrap: anywhere; }
  .discuss__actions .pill { white-space: normal; height: auto; min-height: 46px; padding: 10px 18px; text-align: left; }
  .header__logo-words small { display: none; }
  .hero-top { padding: 30px 18px; }
  .hero__subtitle { font-size: 16px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- print ---------- */
@media print {
  .frame, .preloader, .slide-top, .toast, .header__right, .hero-video, .about-figure, .cases__button-wrap, .discuss-right, .discuss__actions, .skip { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .app, .wrapper { padding: 0; }
  .services-wrap, .about-block, .cases__left, .cases__right, .fact, .step, .note, .services__item { break-inside: avoid; border-color: #bbb; }
  .cases__item { position: static; height: auto; flex-direction: column; transform: none !important; }
  .cases__right { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .lab__panel { display: block !important; margin-bottom: 16px; }
  .case-modal { display: block !important; position: static; height: auto; padding: 0; }
  .case-modal__inner { height: auto; overflow: visible; border-color: #bbb; }
  .case-modal__back { display: none; }
  .discuss { grid-template-columns: 1fr; }
  a { text-decoration: none; }
}

/* ===== FLOW v5 ===== */
/* ---------- навигация ---------- */
.header__nav { display: flex; gap: 2px; margin-left: auto; }
.header__nav a { padding: 12px 16px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .2s, color .2s; }
.header__nav a:hover { background: var(--card); color: var(--blue); }
.header__nav a.is-active { color: var(--blue); background: var(--blue-soft); }
.header__nav + .header__right { margin-left: 12px; }
.mnav { display: none; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--stroke-2); background: var(--panel); display: grid; place-content: center; gap: 5px; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.mnav[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mnav[open] summary span:nth-child(2) { opacity: 0; }
.mnav[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav nav { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; display: grid; min-width: 240px; padding: 8px; border-radius: 24px; background: var(--panel); border: 1px solid var(--stroke-2); box-shadow: 0 30px 60px -30px rgba(10, 18, 48, .45); }
.mnav nav a { padding: 13px 16px; border-radius: 16px; font-weight: 500; text-decoration: none; color: var(--ink); }
.mnav nav a:hover { background: var(--card); color: var(--blue); }
.mnav nav .mnav__cta { margin-top: 6px; background: var(--blue); color: #fff; text-align: center; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.mnav nav .mnav__cta:hover { background: var(--blue-600); color: #fff; }
.header__nav a { white-space: nowrap; }
.header__tg { display: grid; flex: none; width: 56px; height: 56px; border-radius: 50%; place-items: center; background: var(--blue-soft); color: var(--blue); transition: background .2s, color .2s; }
.header__tg:hover { background: var(--blue); color: #fff; }
.header__tg svg { width: 24px; height: 24px; fill: currentColor; }
@media (max-width: 1700px) { .pill--mail { display: none; } .header__right .pill[data-tg] { display: none !important; } .header__tg { display: grid; } }
@media (max-width: 1500px) { .header__nav a { padding: 12px 11px; font-size: 15px; } }
@media (max-width: 600px) { .header__tg { display: none; } }
/* кнопка Telegram в контактах — только иконка */
.pill--icon { justify-content: center; color: var(--blue); }
.pill--icon svg { width: 22px; height: 22px; fill: currentColor; }
.discuss__actions .pill--icon { width: 50px; height: 50px; min-height: 0; padding: 0; }
@media (max-width: 1300px) { .header__nav { display: none; } .mnav { display: block; } .header__right { margin-left: auto; } }

/* ---------- кнопки в первом экране ---------- */
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero__cta .btn { height: 52px; min-width: 0; padding: 0 24px; }
.hero__cta .pill { height: 52px; }
@media (max-width: 900px) { .hero__cta { justify-content: center; } }

/* ---------- как мы работаем ---------- */
.steps5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 44px 0 0; padding: 0; list-style: none; }
.step5 { position: relative; display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); }
.step5__n { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; box-shadow: var(--shadow-blue); }
.step5 h3 { margin-top: 6px; font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.step5 p { font-size: 15px; line-height: 1.5; color: var(--desc); }
.step5:not(:last-child)::after { content: ""; position: absolute; top: 51px; right: -17px; width: 18px; height: 2px; background: var(--blue-line); }
@media (max-width: 1300px) { .steps5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .step5::after { display: none; } }
@media (max-width: 768px) { .steps5 { grid-template-columns: minmax(0, 1fr); margin-top: 28px; } }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 12px; max-width: 1100px; margin: 44px auto 0; }
.faq__item { border-radius: 28px; background: var(--card); border: 2px solid var(--stroke); transition: border-color .25s, background .25s; }
.faq__item[open] { border-color: var(--blue-line); background: var(--panel); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 22px; line-height: 1; transition: transform .25s, background .25s, color .25s; }
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq__item p { padding: 0 26px 24px; max-width: 900px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 768px) { .faq { margin-top: 28px; } .faq__item { border-radius: 22px; } .faq__item summary { font-size: 17px; padding: 18px; } .faq__item p { padding: 0 18px 18px; font-size: 16px; } }

/* ---------- знак BLUEPRINT: вторая грань светлее ---------- */
.mk2 { fill: var(--mk2, #9db2ff); }
.header__logo-circle svg { width: 50px; height: 50px; }

/* ---------- самолётик у формы не выходит за край экрана ---------- */
@media (max-width: 1100px) { .discuss__plane { right: 12px; } }

/* ---------- фото основателя ---------- */
.person__avatar--photo { overflow: hidden; }
.person__avatar--photo img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: inherit; }
.person__avatar--photo::after { z-index: 2; box-shadow: 0 0 0 3px var(--blue); }

/* ---------- что будет дальше ---------- */
.next-steps { margin-top: 16px; padding: 22px 24px; border-radius: var(--r-inner); background: var(--panel); border: 1px solid var(--stroke-2); }
.next-steps__title { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--blue); }
.next-steps ol { display: grid; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.next-steps li b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); font-size: 13px; }

/* ---------- галерея продуктов ---------- */
.gallery { margin-top: 40px; }
.gallery__note { max-width: 760px; margin: 14px auto 0; text-align: center; color: var(--desc); font-size: 17px; line-height: 1.5; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.gcard { display: grid; align-content: start; gap: 12px; padding: 12px 12px 24px; border-radius: var(--r-card); background: var(--card); border: 2px solid var(--stroke); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(20, 40, 130, .45); }
.gcard__shot { aspect-ratio: 16 / 10; border-radius: 28px; overflow: hidden; background: #e7ecf8; }
.gcard__shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover .gcard__shot img { transform: scale(1.04); }
.gcard .cases__tags { margin: 4px 0 0; padding: 0 10px; }
.gcard__title { padding: 0 10px; font-size: 22px; font-weight: 500; line-height: 1.15; letter-spacing: -0.03em; }
.gcard__text { padding: 0 10px; font-size: 15px; line-height: 1.5; color: var(--desc); }
@media (max-width: 1300px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: minmax(0, 1fr); } .gcard__shot { border-radius: 22px; } }

/* ---------- уведомление о cookies ---------- */
.cookie { position: fixed; right: 24px; bottom: 24px; z-index: 70; display: flex; align-items: center; gap: 14px; max-width: 460px; padding: 14px 14px 14px 20px; border-radius: 22px; background: var(--panel); border: 1px solid var(--stroke-2); box-shadow: 0 30px 60px -30px rgba(10, 18, 48, .45); }
.cookie p { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.cookie a { color: var(--blue); }
.cookie .pill--sm { flex: none; margin: 0; }
@media (max-width: 640px) { .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------- подвал ---------- */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .6fr) minmax(0, 1.4fr); gap: 40px; padding: 50px; border: 2px solid var(--stroke); border-radius: var(--r-panel); background: linear-gradient(278deg, var(--panel) 0%, var(--panel-2) 100%); text-align: left; }
.footer-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; color: var(--blue); }
.footer-logo svg, .footer-logo img { width: 52px; height: 52px; flex: none; }
.footer-logo span { font-size: 28px; font-weight: 600; letter-spacing: -0.05em; color: var(--ink); white-space: nowrap; }
.footer-logo span b { color: var(--blue); }
.footer-logo small { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: uppercase; }
.footer-brand p { margin: 18px 0 22px; max-width: 420px; color: var(--desc); }
.footer-cta { min-width: 0; height: 56px; }
.footer-nav, .footer-req { display: grid; align-content: start; gap: 10px; }
.footer-nav > b, .footer-req > b { margin-bottom: 4px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; color: var(--blue); }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.footer-req dl { display: grid; gap: 7px; margin: 0; font-size: 14px; line-height: 1.45; }
.footer-req dl div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.footer-req dt { color: var(--desc); }
.footer-req dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pill--sm { justify-self: start; height: 44px; margin-top: 8px; padding: 0 18px; font-size: 14px; }
.footer .footer-wrap { margin-top: 24px; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .footer-req { grid-column: 1 / -1; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 30px 22px; border-radius: 32px; } .footer-req dl div { grid-template-columns: minmax(0, 1fr); gap: 0; } .footer-logo span { font-size: 24px; } }
