/* Блоки главной для страниц сайта — код из index.html без изменений (собирает %TEMP%/vesti/make_blocks.py) */

/* появление блока — из «Для кого» */
@keyframes whoIn { from { opacity: 0; transform: translateY(12px); } }

/* ═══════════ ВОЗМОЖНОСТИ: прокрутка по шагам; справа фото, стекло и настоящий экран продукта (widget/#f-…) ═══════════ */

.cap { padding: 96px 24px 0; }
/* верх заголовка — вровень с верхом текста справа; плашка висит над заголовком, вне сетки */
.cap-head { max-width: 1280px; margin: 0 auto 64px; display: grid; grid-template-columns: 1fr minmax(0, 500px); align-items: start; gap: 24px 64px; }
.cap-head > div { position: relative; }
.cap-pill { position: absolute; left: 0; bottom: calc(100% + 16px); display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 32px;
  background: var(--brand-primary); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.cap-pill i { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-indigo), var(--accent-violet)); box-shadow: 0 0 0 3px rgba(124,92,252,.25); }
.cap-title { margin: 0; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; font-weight: 500; letter-spacing: -.6px; color: var(--ink); }
.cap-intro { margin: 0; font-size: 16px; line-height: 26px; color: var(--nl-slate); }

/* обычный блок в экран высотой: прокрутку не держим, шаги листаются сами или кликом */
.cap-body { max-width: 1280px; margin: 0 auto; height: clamp(560px, calc(100vh - 200px), 780px);
  display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 56px; }

/* список шагов в духе oxylabs: активный раскрывается, тонкая полоса показывает прогресс шага */
.cap-side { align-self: center; }
.cap-list { list-style: none; margin: 0; padding: 0; }
.cap-item { position: relative; border-top: 1px solid var(--hairline); }
.cap-item:last-child { border-bottom: 1px solid var(--hairline); }
.cap-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; transform-origin: left; transform: scaleX(var(--p, 0)); opacity: 0;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-violet)); transition: opacity .3s ease; }
.cap-item.on .cap-bar { opacity: 1; }
.cap-btn { display: grid; grid-template-columns: 36px 1fr; align-items: baseline; width: 100%; padding: 15px 0; text-align: left; }
.cap-n { font-size: 12px; font-weight: 500; letter-spacing: .4px; color: #a3aeb8; font-variant-numeric: tabular-nums; transition: color .25s ease; }
.cap-t { display: flex; align-items: center; gap: 8px; font-size: 18px; line-height: 26px; font-weight: 500; color: #8a97a3; transition: color .25s ease; }
.cap-btn:hover .cap-t, .cap-item.on .cap-t { color: var(--ink); }
.cap-item.on .cap-n { color: var(--accent-violet); }
.cap-new { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 32px; font-size: 11px; font-weight: 600; letter-spacing: .2px;
  background: var(--accent-indigo-soft); color: var(--accent-indigo-dark); }
.cap-d { grid-column: 2; display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.cap-d > span { overflow: hidden; }
.cap-d > span > span { display: block; padding: 8px 0 4px; font-size: 15px; line-height: 24px; color: var(--nl-slate); }
.cap-item.on .cap-d { grid-template-rows: 1fr; opacity: 1; transition-delay: 0s, .1s; }
.cap-steps { display: none; }

/* сцена: фото со своим фоном на шаг, поверх стекло и экран продукта */
.cap-stage { position: relative; border-radius: 26px; overflow: clip; isolation: isolate; background: var(--brand-primary-soft); }
/* фоны с запасом по краям: при прокрутке слой едет медленнее карточки — глубина, как в hero */
.cap-bgs { position: absolute; inset: -9% -7%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
/* смена шага — параллакс: фон уезжает вбок на --x, стекло сдвигается меньше (в JS) */
.cap-bg { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transform: translate3d(var(--x, 6%), 0, 0);
  transition: opacity .4s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
.cap-bg.on { opacity: 1; transform: none; }
.cap-top { position: absolute; top: 18px; left: 20px; right: 20px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.cap-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 5px; border-radius: 32px; min-width: 0;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.cap-chip b { display: inline-flex; align-items: center; justify-content: center; height: 20px; min-width: 26px; padding: 0 6px; border-radius: 10px;
  background: var(--brand-primary); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cap-chip span { overflow: hidden; text-overflow: ellipsis; }
.cap-chip.swap span, .cap-chip.swap b { animation: capSwap .3s cubic-bezier(.2,.8,.2,1); }
@keyframes capSwap { from { opacity: 0; transform: translateY(5px); } }

.cap-glass { position: absolute; inset: 66px 30px 30px; z-index: 1; padding: 10px; border-radius: 20px;
  background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 40px 80px -40px rgba(40,24,110,.45); }
.cap-card { position: relative; height: 100%; overflow: hidden; border-radius: 14px; background: rgba(255,255,255,.55); }
/* колесо над панелью должно листать страницу, а не экран внутри */
.cap-frame { display: block; width: 100%; height: 100%; border: 0; background: transparent; pointer-events: none; }

@media (max-width: 1100px) {
  .cap-body { grid-template-columns: minmax(260px, 340px) 1fr; gap: 36px; }
  .cap-t { font-size: 17px; }
}
@media (max-width: 960px) {
  .cap { padding: 64px 16px 0; }
  .cap-head { grid-template-columns: 1fr; margin-bottom: 32px; }
  .cap-title { font-size: 34px; }
  .cap-intro { font-size: 15px; line-height: 24px; }
  /* на телефоне сверху ряд табов (листается вбок), под ним сцена и активный шаг. Табы — та же шкала шагов: тап выбирает шаг, в активном идёт прогресс */
  .cap-body { height: auto; grid-template-columns: 1fr; gap: 14px; }
  .cap-stage { order: -1; height: clamp(460px, 68svh, 620px); border-radius: 20px; }
  .cap-side { display: contents; }   /* список и табы — прямо в сетке блока, чтобы табы встали над сценой */
  .cap-item { display: none; border: 0 !important; }
  .cap-item.on { display: block; }
  .cap-bar { display: none; }
  .cap-btn { grid-template-columns: 1fr; padding: 0; cursor: default; }
  .cap-n { display: none; }
  .cap-d { grid-column: 1; }
  .cap-d > span > span { padding-top: 4px; font-size: 14px; line-height: 21px; }
  .cap-steps { order: -2; display: flex; gap: 6px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding: 0 16px; } .cap-steps::-webkit-scrollbar { display: none; }
  .cap-steps button { flex: none; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 6px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); color: var(--nl-slate); font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; scroll-snap-align: start; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; } .cap-steps b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-primary-soft); font-size: 11.5px; font-weight: 600; letter-spacing: .3px; color: #8a97a3; font-variant-numeric: tabular-nums; transition: background-color .25s ease, color .25s ease; } .cap-steps button.on { background: var(--brand-primary); color: #fff; box-shadow: none; } .cap-steps button.on b { background: rgba(255,255,255,.14); color: #fff; }
  .cap-steps i { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; opacity: 0; transition: opacity .25s ease; } .cap-steps button.on i { opacity: 1; }
  .cap-steps i::after { content: ''; display: block; height: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
    background: rgba(255,255,255,.55); }
  .cap-top { display: none; }
  .cap-glass { inset: 10px; padding: 6px; border-radius: 16px; }
  .cap-card { border-radius: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .cap-bgs, .cap-bg { transform: none !important; }
  .cap-chip.swap span, .cap-chip.swap b { animation: none; }
}

/* ═══════════ ТВ И ГАЗЕТЫ: две сцены в нашем языке — фото, стекло; внутри свои плеер и полоса со сквозной подсветкой упоминаний. Само ничего не запускается ═══════════ */

.src { padding: 120px 24px 0; }
.src-in { max-width: 1280px; margin: 0 auto; }
.src-head { display: grid; grid-template-columns: 1fr minmax(0, 500px); align-items: start; gap: 24px 64px; margin-bottom: 48px; }
.src-head > div { position: relative; }
.src-pill { position: absolute; left: 0; bottom: calc(100% + 16px); display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 32px;
  background: var(--brand-primary); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; }
.src-title { margin: 0; font-size: clamp(34px, 3.6vw, 48px); line-height: 1.15; font-weight: 500; letter-spacing: -.6px; color: var(--ink); }
.src-intro { margin: 0; font-size: 16px; line-height: 26px; color: var(--nl-slate); }

.src-stage { position: relative; border-radius: 26px; overflow: clip; isolation: isolate;
  background: var(--brand-primary-soft) var(--bg, none) var(--pos, center) / cover no-repeat; }
/* заголовок сцены — над ней, на белом: на фото с облаками и рассветом он не читался */
.src-name { margin: 0 0 20px; font-size: 32px; line-height: 40px; font-weight: 500; letter-spacing: -.5px; color: var(--ink); }
.src-stage + .src-name { margin-top: 64px; }
/* вторая половина заголовка обыгрывает свой носитель тем же языком, что интерфейс под ней; играет один раз, когда заголовок на виду */
.sn { white-space: nowrap; color: var(--nl-stone); }
.sn-l { display: inline-block; white-space: pre; }
/* эфир: таймкод активной строки и «печатающаяся» расшифровка с курсором */
.sn-tc { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; margin: 0 10px 0 2px; border-radius: 7px; vertical-align: 5px;
  background: var(--accent-indigo); color: #fff; font-size: 14px; line-height: 1; font-weight: 500; font-style: normal; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sn-caret { display: inline-block; width: 2px; height: 30px; margin-left: 3px; vertical-align: -5px; border-radius: 1px; background: var(--accent-indigo);
  animation: snBlink 1s steps(1) infinite; }
.typed .sn-caret { animation: snBlink 1s steps(1) 3, snGone 0s linear 3s forwards; }
@keyframes snBlink { 50% { opacity: 0; } }
@keyframes snGone { to { opacity: 0; } }
/* печать: фраза проявляется из размытого скана за линией сканера и встаёт в рамку распознанного блока */
.sn-ocr { position: relative; display: inline-block; padding: 0 9px; margin-left: 2px; isolation: isolate; }
.sn-ocr .sn-l { filter: blur(5px); opacity: .35; transition: filter .35s ease, opacity .35s ease; transition-delay: calc(var(--k) * 30ms + 150ms); }
.go .sn-ocr .sn-l { filter: none; opacity: 1; }
.sn-box { position: absolute; inset: 2px 0 0; z-index: -1; border: 1.5px solid var(--accent-indigo); border-radius: 4px; background: rgba(99,102,241,.06);
  opacity: 0; transform: scale(1.05); transition: opacity .3s ease, transform .45s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--n) * 30ms + 350ms); pointer-events: none; }
.go .sn-box { opacity: 1; transform: none; }
.sn-box i { position: absolute; width: 7px; height: 7px; border: 1.5px solid var(--accent-indigo); border-radius: 2px; background: #fff; }
.sn-box i:nth-child(1) { left: -4px; top: -4px; }
.sn-box i:nth-child(2) { right: -4px; top: -4px; }
.sn-box i:nth-child(3) { left: -4px; bottom: -4px; }
.sn-box i:nth-child(4) { right: -4px; bottom: -4px; }
.sn-scan { position: absolute; top: -3px; bottom: -3px; left: 0; width: 2px; border-radius: 1px; background: var(--accent-indigo);
  box-shadow: 0 0 14px 3px rgba(99,102,241,.45); opacity: 0; pointer-events: none; }
.go .sn-scan { animation: snScan calc(var(--n) * 30ms + 300ms) linear 150ms forwards; }
@keyframes snScan { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@media (max-width: 960px) and (hover: none) {
  .tv.started.playing .tv-cap { bottom: 8px; }
}
@media (max-width: 480px) {
  /* шапка панели: заголовок и переход по упоминаниям не помещались в строку на 360 — переход переносится вниз вправо */
  .pane-head { flex-wrap: wrap; row-gap: 8px; }
  .pane-head > div:first-child { flex: 1 1 150px; }
  .hits { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-ocr .sn-l, .sn-box { transition: none; }
  .go .sn-scan { animation: none; }
  .sn-caret { display: none; }
}
.src-glass { padding: 10px; border-radius: 20px; background: rgba(255,255,255,.4); border: 1px solid rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 40px 80px -40px rgba(40,24,110,.45); }
.src-screen { position: relative; border-radius: 14px; overflow: hidden; background: #fff; }
/* эфир: стекло во всю ширину, кадр 16:9 и расшифровка рядом */
.src-stage-tv { padding: 30px; }
/* печать: стекло слева — полоса и её текст; справа видна сама фактура — стопка газет у окна */
.src-stage-press { height: 664px; }
.src-stage-press .src-glass { position: absolute; top: 30px; left: 30px; bottom: 30px; width: min(calc(100% - 60px), 900px); }

.src mark { padding: 0 2px; margin: 0 -1px; border-radius: 4px; background: #FEF3C7; color: inherit; box-shadow: inset 0 -2px 0 #FCD34D; transition: background-color .2s ease; }
.src mark.cur { background: #FCD34D; }

/* панель справа: заголовок с переходом по упоминаниям и прокручиваемый текст */
.pane { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--hairline-soft); }
.pane-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--hairline-soft); }
.pane-head > div:first-child { min-width: 0; }
.pane-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink); }
.pane-meta { margin: 2px 0 0; font-size: 12px; line-height: 16px; color: var(--nl-stone); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hits { display: inline-flex; align-items: center; flex-shrink: 0; height: 32px; padding: 0 3px 0 8px; border-radius: 10px; background: var(--brand-primary-soft); font-size: 13px; font-weight: 500; color: var(--ink); }
.hits-n { min-width: 36px; margin: 0 2px 0 6px; color: var(--nl-stone); font-variant-numeric: tabular-nums; text-align: center; }
.hits button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--nl-slate); transition: background-color .15s ease, color .15s ease; }
.hits button:hover { background: #fff; color: var(--ink); }
.pane-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-gutter: stable; }
@media (hover: hover) and (pointer: fine) {
  /* панель листается, когда на неё навели курсор; если страницу крутят колесом и панель наехала под курсор — после паузы (calmScroll) */
  .pane-body { overflow-y: hidden; }
  .pane-body.on { overflow-y: auto; }
}

/* ── ТВ: плеер ── */
.tv { display: grid; grid-template-columns: 1.75fr 1fr; aspect-ratio: 2.79 / 1; }
.tv-video { position: relative; min-width: 0; background: #0b0b12; overflow: hidden; }
.tv-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.tv-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(15,23,42,.34); border: 1px solid rgba(255,255,255,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 24px 48px -18px rgba(0,0,0,.55); transition: transform .25s ease, background-color .2s ease, opacity .25s ease; }
.tv-big svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.tv-big:hover { transform: scale(1.07); background: rgba(15,23,42,.5); }
.tv.playing .tv-big { opacity: 0; transform: scale(.85); pointer-events: none; }
.tv-dur { position: absolute; left: 14px; top: 14px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 8px;
  background: rgba(0,0,0,.45); color: #fff; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s ease; }
.tv.started .tv-dur { opacity: 0; }
.tv-cap { position: absolute; left: 8%; right: 8%; bottom: 18px; margin: 0; text-align: center; font-size: 15px; line-height: 27px; font-weight: 500; pointer-events: none; transition: bottom .2s ease; }
.tv.started .tv-cap { bottom: 62px; }   /* после старта внизу появляется панель управления — субтитры поднимаются над ней */
.tv-cap span { padding: 3px 10px; border-radius: 6px; background: rgba(0,0,0,.62); color: #fff; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.tv-cap mark { background: #FCD34D; color: #1c1917; box-shadow: none; }
.tv-bar { position: absolute; left: 12px; right: 12px; bottom: 12px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px 0 4px;
  border-radius: 12px; background: rgba(12,12,20,.5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.tv.started .tv-video:hover .tv-bar, .tv.started:not(.playing) .tv-bar, .tv-bar:focus-within { opacity: 1; transform: none; pointer-events: auto; }
.tv-pp { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; }
.tv-pp:hover { background: rgba(255,255,255,.12); }
.tv-pp svg { width: 16px; height: 16px; fill: currentColor; }
.tv-pp .pa, .tv.playing .tv-pp .pl { display: none; }
.tv.playing .tv-pp .pa { display: block; }
.tv-time { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); white-space: nowrap; }
.tv-track { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; outline: none; }
.tv-track::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); }
.tv-fill { position: absolute; left: 0; top: 10px; width: 0; height: 4px; border-radius: 2px; background: #fff; }
.tv-tick { position: absolute; top: 6px; width: 3px; height: 12px; margin-left: -1px; border-radius: 2px; background: #FCD34D; }
.tv-track:focus-visible::before { box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
/* ── ТВ: расшифровка ── */
.tv-list { list-style: none; margin: 0; padding: 8px; }
.tv-list button { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 10px; border-radius: 10px; text-align: left; transition: background-color .2s ease; }
.tv-list button:hover { background: #f6f7f9; }
.tv-list .tc { flex-shrink: 0; height: 22px; padding: 0 7px; display: inline-flex; align-items: center; border-radius: 6px; background: var(--brand-primary-soft);
  font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--nl-slate); transition: background-color .2s ease, color .2s ease; }
.tv-list .tx { font-size: 14.5px; line-height: 22px; color: var(--nl-slate); transition: color .2s ease; }
.tv-list li.on button { background: var(--accent-indigo-soft); }
.tv-list li.on .tc { background: var(--accent-indigo); color: #fff; }
.tv-list li.on .tx { color: var(--ink); }

/* ── Газета: скан полосы ── */
.pr { display: flex; height: 100%; }
.pr-scan { position: relative; flex-shrink: 0; height: 100%; aspect-ratio: 2480 / 3508; overflow: hidden; background: #f3efe6; cursor: zoom-in;
  -webkit-user-select: none; user-select: none; }
.pr-scan.zoomed { cursor: zoom-out; touch-action: none; }
.pr-page { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform; transition: transform .55s cubic-bezier(.2,.75,.2,1); }
.pr-page picture { display: block; width: 100%; height: 100%; }
.pr-page img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; }
.pr-box { position: absolute; border-radius: 3px; pointer-events: none; }
.pr-page:not(.ready) .pr-box { display: none; }   /* рамки — только поверх проявившегося скана */
.pr-box.hit { background: rgba(252,211,77,.28); box-shadow: inset 0 0 0 1.5px rgba(245,158,11,.75); }
.pr-box.hov { background: rgba(99,102,241,.07); box-shadow: inset 0 0 0 1.5px rgba(99,102,241,.85); opacity: 0; transition: opacity .15s ease; }
.pr-box.hov.show { opacity: 1; }
.pr-hint { position: absolute; left: 50%; bottom: 14px; height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 32px; white-space: nowrap;
  background: rgba(15,23,42,.78); color: #fff; font-size: 12.5px; font-weight: 500; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.pr-scan:hover .pr-hint { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .pr-hint { opacity: 1; transform: translate(-50%, 0); } }
/* ── Газета: распознанный текст ── */
.pr-text { padding: 16px 16px 28px; font-size: 14.5px; line-height: 23px; color: var(--nl-slate); }
.pr-b { padding: 6px 8px; border-radius: 8px; cursor: pointer; transition: background-color .25s ease; }
.pr-b:hover, .pr-b.hov { background: #f5f6fa; }
.pr-b.flash { background: var(--accent-indigo-soft); }
.pr-text hr { margin: 16px 8px; border: 0; border-top: 1px solid var(--hairline-soft); }
.pr-text p { margin: 0 0 10px; }
.pr-text p:last-child { margin-bottom: 0; }
.pr-text b { font-weight: 600; color: var(--ink); }
.pr-rub { font-size: 11px; line-height: 16px !important; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-indigo-dark); }
.pr-h { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -.2px; color: var(--ink); }
.pr-lead { font-weight: 500; color: var(--ink); }
.pr-by { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.pr-sub { margin-top: 14px !important; font-weight: 600; color: var(--ink); }
.pr-cap { font-size: 12.5px; line-height: 19px; color: var(--nl-stone); }
.pr-quote { padding-left: 12px; box-shadow: inset 2px 0 0 var(--accent-indigo); font-style: italic; color: var(--ink); }
.pr-li { position: relative; padding-left: 16px; }
.pr-li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 6px; height: 6px; border-radius: 1px; background: var(--ink); }
.pr-num { font-size: 26px; line-height: 32px !important; font-weight: 600; color: var(--ink); }

@media (max-width: 960px) {
  .src { padding: 80px 16px 0; }
  .src-head { grid-template-columns: 1fr; margin-bottom: 28px; }
  .src-title { font-size: 34px; }
  .src-intro { font-size: 15px; line-height: 24px; }
  .src-stage { border-radius: 20px; }
  .src-name { margin-bottom: 14px; font-size: 22px; line-height: 30px; letter-spacing: -.3px; }
  .src-stage + .src-name { margin-top: 40px; }
  .sn-tc { height: 20px; padding: 0 6px; margin-right: 7px; border-radius: 6px; font-size: 11px; vertical-align: 3px; }
  .sn-caret { height: 22px; vertical-align: -4px; }
  .sn-ocr { padding: 0 7px; }
  .src-glass { padding: 6px; border-radius: 16px; }
  .src-screen { border-radius: 11px; }
  .src-stage-tv { padding: 10px; }
  .tv { grid-template-columns: 1fr; aspect-ratio: auto; }
  .tv-video { aspect-ratio: 16 / 9; }
  .tv .pane, .pr .pane { flex: none; height: 340px; border-left: 0; border-top: 1px solid var(--hairline-soft); }
  .tv-big { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
  .tv-big svg { width: 20px; height: 20px; }
  .tv-dur { left: 10px; top: 10px; }
  .tv-cap { left: 4%; right: 4%; bottom: 8px; font-size: 12.5px; line-height: 21px; }
  .tv.started .tv-cap { bottom: 50px; }
  .tv-bar { left: 8px; right: 8px; bottom: 8px; height: 36px; }
  .tv.started .tv-big { display: none; }
  .src-stage-press { height: auto; padding: 10px; }
  .src-stage-press .src-glass { position: static; width: auto; }
  .pr { flex-direction: column; height: auto; }
  .pr-scan { width: 100%; height: auto; }
  .pane-head { padding: 10px 8px 10px 14px; }
  .pr-text { padding: 12px 8px 22px; }
}
/* планшет: скан и текст полосы снова рядом — столбиком скан во всю ширину выходил выше экрана */
@media (min-width: 700px) and (max-width: 960px) {
  .src-stage-press { height: 640px; padding: 0; }
  .src-stage-press .src-glass { position: absolute; inset: 16px; width: auto; }
  .pr { flex-direction: row; height: 100%; }
  .pr-scan { width: auto; height: 100%; }
  .pr .pane { flex: 1; height: auto; border-top: 0; border-left: 1px solid var(--hairline-soft); }
}


/* полоса «Нестандартные объёмы» — из тарифов */
.prc-more { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; padding: 16px 16px 16px 22px; border-radius: 18px;
  background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.75); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.prc-more p { margin: 0; font-size: 14px; line-height: 21px; color: var(--nl-slate); }
.prc-more b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.prc-more a { flex-shrink: 0; height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 9px; background: var(--brand-primary); color: #fff;
  font-size: 14px; font-weight: 500; transition: background-color .15s ease; }
.prc-more a:hover { background: var(--brand-primary-hov); }
@media (max-width: 960px) {
  .prc-more { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
  .prc-more a { justify-content: center; }
}

/* ═══════════ FAQ: частые вопросы как переписка с A-SCAN — вопрос по клику уходит в чат, ответ приходит следом; строка ввода подсвечивает подходящие вопросы ═══════════ */

.faq { padding: 120px 24px 0; }
.faq-in { max-width: 1280px; margin: 0 auto; }
.faq-stage { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; height: 600px; padding: 30px; border-radius: 26px; overflow: clip; isolation: isolate;
  background: var(--brand-primary-soft); }
.faq mark { padding: 0 1px; border-radius: 3px; background: #FEF3C7; color: inherit; box-shadow: inset 0 -2px 0 #FCD34D; }

/* список вопросов — стеклянная панель слева */
.faq-list { min-height: 0; overflow-y: auto; margin: -4px; padding: 4px; scrollbar-width: none; }
.faq-list::-webkit-scrollbar { display: none; }
.faq-qs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.faq-q { width: 100%; display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; text-align: left;
  transition: background-color .2s ease, opacity .2s ease, box-shadow .2s ease; }
.faq-q:hover { background: rgba(255,255,255,.75); }
.faq-q.on { background: #fff; box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 6px 16px -10px rgba(40,24,110,.35); }
.faq-q.dim { opacity: .38; }
.faq-n { flex-shrink: 0; width: 22px; font-size: 12px; line-height: 21px; font-weight: 500; color: var(--nl-stone); font-variant-numeric: tabular-nums; }
.faq-t { flex: 1; font-size: 14.5px; line-height: 21px; font-weight: 500; color: var(--ink); }
.faq-s { flex-shrink: 0; width: 18px; height: 21px; display: grid; place-items: center; color: var(--nl-stone); }
.faq-s svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.faq-s .ok, .faq-q.done .faq-s .go { display: none; }
.faq-q.done .faq-s .ok { display: block; color: var(--accent-indigo); }

/* окно переписки — белая карточка справа; стекло здесь не нужно, фон светлый и спокойный */
.faq-stage .src-glass { min-height: 0; display: flex; padding: 0; border: 0; border-radius: 18px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: 0 30px 60px -36px rgba(15,23,42,.28); }
.faq-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e3e7ee; }
.faq-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hairline-soft); }
.faq-head svg { width: 32px; height: 32px; flex-shrink: 0; }
.faq-head b { display: block; font-size: 14.5px; line-height: 20px; font-weight: 600; color: var(--ink); }
.faq-head span { display: block; font-size: 12px; line-height: 16px; color: var(--nl-stone); }
.faq-log { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 14px 10px 16px; overflow-y: auto;
  scrollbar-width: thin; scrollbar-gutter: stable; }
@media (hover: hover) and (pointer: fine) {
  /* как панели в «ТВ и газетах»: переписка листается при наведении, посреди прокрутки страницы — после паузы */
  .faq-log { overflow-y: hidden; }
  .faq-log.on { overflow-y: auto; }
}
.faq-row { display: flex; align-items: flex-end; gap: 8px; flex-shrink: 0; animation: faqIn .3s ease both; }
.faq-row.me { justify-content: flex-end; }
.faq-row > svg { width: 24px; height: 24px; flex-shrink: 0; }
.faq-msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 22px; transition: box-shadow .3s ease; }
.bot .faq-msg { border-bottom-left-radius: 5px; background: #f1f4f8; color: var(--ink); }
.me .faq-msg { border-bottom-right-radius: 5px; background: var(--brand-primary); color: #fff; }
.faq-msg p { margin: 0; }
.faq-msg.flash { box-shadow: 0 0 0 2px var(--accent-indigo); }
.faq-link { display: inline-flex; align-items: center; gap: 6px; height: 30px; margin-top: 10px; padding: 0 10px 0 12px; border-radius: 8px; background: #fff;
  border: 1px solid #e3e6eb; font-size: 13px; font-weight: 500; color: var(--ink); transition: border-color .15s ease; }
.faq-link:hover { border-color: #c4cad3; }
.faq-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.typing .faq-msg { display: inline-flex; gap: 4px; padding: 15px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa5b1; animation: faqDot 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes faqDot { 30% { transform: translateY(-4px); opacity: 1; } 0%, 60%, 100% { opacity: .45; } }
@keyframes faqIn { from { opacity: 0; transform: translateY(6px); } }
.faq-form { display: flex; align-items: center; gap: 8px; margin: 6px 12px 12px; padding: 4px 4px 4px 14px; border-radius: 12px; background: #f6f7f9; border: 1px solid #e8ebef;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.faq-form:focus-within { background: #fff; border-color: #a5b4fc; box-shadow: 0 0 0 3px rgba(99,102,241,.12); }
.faq-form input { flex: 1; min-width: 0; height: 36px; border: 0; background: none; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; }
.faq-form input::placeholder { color: #9aa5b1; }
.faq-form button { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: var(--brand-primary); color: #fff;
  transition: opacity .15s ease, background-color .15s ease; }
.faq-form button:hover { background: var(--brand-primary-hov); }
.faq-form button:disabled { opacity: .3; cursor: default; }
.faq-form button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .faq-row { animation: none; }
}

@media (max-width: 960px) {
  .faq { padding: 80px 16px 0; }
  .faq-stage { grid-template-columns: 1fr; height: auto; padding: 10px; border-radius: 20px; }
  .faq-stage .src-glass { order: -1; height: 460px; }
  .faq-msg { max-width: 88%; font-size: 14px; line-height: 21px; }
}

/* ═══════════ КОНТАКТЫ И ПОДВАЛ: одна чёрная плита — заявка на демо перетекает в подвал; внизу огромный A-SCAN из символов, курсор «сканирует» его ═══════════ */

.end { padding: 96px 24px 0; }
.end-box { max-width: 1536px; margin: 0 auto; padding: 96px 0 0; border-radius: 26px 26px 0 0; background: #000; color: #fff; overflow: hidden; }
.end-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.end-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.end-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 32px; background: #fff; color: #000; font-size: 13px; font-weight: 500; }
.end-title { margin: 16px 0 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.2; font-weight: 500; letter-spacing: -.5px; }
.end-sub { margin: 16px 0 0; max-width: 480px; font-size: 18px; line-height: 28px; color: rgba(255,255,255,.72); }
.end-ways { display: grid; gap: 22px; margin: 48px 0 0; }
.end-ways dt { font-size: 13px; line-height: 18px; color: #71717a; }
.end-ways dd { margin: 4px 0 0; font-size: 22px; line-height: 30px; font-weight: 500; letter-spacing: -.2px; }
.end-ways dd.addr { font-size: 16px; line-height: 24px; font-weight: 400; letter-spacing: 0; color: #d4d4d8; }
.end-ways a { color: #fff; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
.end-ways a:hover { background-size: 100% 1px; }

/* форма — тёмная карточка с индиго-свечением снизу */
.end-form { position: relative; padding: 32px; border-radius: 22px; background: #0b0b0f; border: 1px solid #1f1f26;
  box-shadow: 0 40px 120px -48px rgba(99,102,241,.45); }
.end-form h3 { margin: 0; font-size: 22px; line-height: 30px; font-weight: 500; }
.end-lead { margin: 6px 0 0; font-size: 14.5px; line-height: 22px; color: #a1a1aa; }
.end-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.end-field { display: block; }
.end-field.wide { grid-column: 1 / -1; }
.end-field > span { display: block; font-size: 13px; line-height: 18px; font-weight: 500; color: #a1a1aa; }
.end-field > span i { font-style: normal; color: #818cf8; }
.end-field input, .end-field textarea { display: block; width: 100%; margin-top: 8px; padding: 11px 14px; border-radius: 10px; border: 1px solid #26262e; background: #121217;
  color: #fff; font: inherit; font-size: 15px; line-height: 22px; outline: none; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.end-field textarea { min-height: 112px; resize: vertical; }
.end-field input::placeholder, .end-field textarea::placeholder { color: #52525b; }
.end-field input:focus, .end-field textarea:focus { border-color: #6366f1; background: #15151c; box-shadow: 0 0 0 3px rgba(99,102,241,.22); }
.end-form form.tried input:invalid, .end-form form.tried textarea:invalid { border-color: #f87171; }
.end-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.end-send { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.end-send p { margin: 0; max-width: 300px; font-size: 12.5px; line-height: 18px; color: #71717a; }
.end-send p a { color: #a1a1aa; text-decoration: underline; text-underline-offset: 2px; }
.end-send p a:hover { color: #fff; }
/* кнопка подсказывает, сколько обязательных полей осталось; готово — становится белой */
.end-btn { flex-shrink: 0; height: 44px; padding: 0 20px; display: inline-flex; align-items: center; gap: 8px; border-radius: 10px; background: #27272a; color: #d4d4d8;
  font-size: 14.5px; font-weight: 500; font-variant-numeric: tabular-nums; transition: background-color .2s ease, color .2s ease; }
.end-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: none; }
.end-btn.ready { background: #fff; color: #000; }
.end-btn.ready svg { display: block; }
.end-btn.ready:hover { background: #e4e4e7; }
.end-error { margin: 14px 0 0; font-size: 13.5px; line-height: 20px; color: #f87171; }
.end-done { min-height: 476px; display: flex; flex-direction: column; justify-content: center; animation: endIn .4s ease both; }
.end-done .end-pill { align-self: flex-start; background: #6366f1; color: #fff; }
.end-done h3 { margin-top: 16px; font-size: 28px; line-height: 36px; }
.end-done > p { margin: 14px 0 0; max-width: 520px; font-size: 16px; line-height: 25px; color: #a1a1aa; }
.end-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.end-next div { padding: 16px; border-radius: 14px; background: #121217; border: 1px solid #1f1f26; }
.end-next b { display: block; font-size: 14px; font-weight: 600; }
.end-next p { margin: 4px 0 0; font-size: 13.5px; line-height: 20px; color: #a1a1aa; }
@keyframes endIn { from { opacity: 0; transform: translateY(8px); } }

/* подвал — в той же плите */
.end-foot { margin-top: 120px; border-top: 1px solid #1a1a20; }
.end-cols { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 40px; padding-top: 56px; }
.end-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 600; }
.end-logo svg { width: 28px; height: 28px; display: block; }
.end-logo small { height: 18px; padding: 0 6px; display: inline-flex; align-items: center; margin-left: 2px; border-radius: 6px; background: rgba(255,255,255,.1);
  color: #a1a1aa; font-size: 10px; font-weight: 600; letter-spacing: .06em; }
.end-brand p { margin: 18px 0 0; max-width: 360px; font-size: 14px; line-height: 22px; color: #a1a1aa; }
.end-col h4 { margin: 0 0 16px; font-size: 13px; line-height: 18px; font-weight: 500; color: #fff; }
.end-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; line-height: 20px; color: #a1a1aa; }
.end-col a:hover { color: #fff; }
.end-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.end-badges a { display: inline-flex; flex-shrink: 0; }
.end-badges img { display: block; height: 40px; width: auto; }
/* в PNG Google значок занимает 190 из 250 px высоты — остальное прозрачные поля */
.end-badges a.gp { height: 40px; align-items: center; overflow: hidden; }
.end-badges a.gp img { height: calc(40px * 250 / 190); max-width: none; }
.end-legal { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 22px; border-top: 1px solid #1a1a20; font-size: 13px; line-height: 18px; color: #71717a; }
.end-legal div { display: flex; gap: 20px; }
.end-legal a:hover { color: #fff; }
/* огромный A-SCAN из символов, срезан нижним краем плиты */
.end-word { position: relative; margin: 40px 24px 0; overflow: hidden; touch-action: pan-y; cursor: crosshair; }
.end-word canvas { display: block; margin: 0 auto; }

@media (max-width: 960px) {
  .end { padding: 64px 16px 0; }
  .end-box { padding-top: 64px; border-radius: 20px 20px 0 0; }
  .end-in { padding: 0 20px; }
  .end-contact { grid-template-columns: 1fr; gap: 40px; }
  .end-sub { font-size: 16px; line-height: 25px; }
  .end-ways { margin-top: 32px; gap: 18px; }
  .end-ways dd { font-size: 19px; line-height: 26px; }
  .end-form { padding: 20px; border-radius: 18px; }
  .end-fields { grid-template-columns: 1fr; gap: 14px; }
  .end-send { flex-direction: column; align-items: stretch; }
  .end-btn { justify-content: center; }
  .end-next { grid-template-columns: 1fr; }
  .end-foot { margin-top: 72px; }
  .end-cols { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 40px; }
  .end-brand, .end-app { grid-column: 1 / -1; }
  .end-legal { flex-direction: column; margin-top: 40px; }
  .end-word { margin: 28px 12px 0; }
}


/* ═══════════ ВСТАВКА «ПОД ВАШИ ЗАДАЧИ»: межблоковая пауза в духе oxylabs, слова в карточках — точечным шрифтом ═══════════ */

.fit { padding: 120px 24px 40px; }
.fit-in { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px 64px; }
.fit-badge { display: flex; align-items: center; gap: 8px; }
/* источники — свои мини-иллюстрации: эфир, газетная полоса, страница сайта */
.fit-icons { display: flex; }
.fit-icons span { width: 28px; height: 28px; border-radius: 50%; margin-left: -7px; overflow: hidden; box-shadow: 0 0 0 2px #fff; }
.fit-icons span:first-child { margin-left: 0; }
/* первый сверху: ведущий в эфире не прячется под газетой */
.fit-icons span:nth-child(1) { z-index: 3; } .fit-icons span:nth-child(2) { z-index: 2; }
.fit-icons svg { display: block; width: 100%; height: 100%; }
.fit-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 32px; background: var(--brand-primary); color: #fff; font-size: 13px; font-weight: 500; }
.fit-title { margin: 16px 0 0; max-width: 600px; font-size: clamp(30px, 2.8vw, 40px); line-height: 1.3; font-weight: 500; letter-spacing: -.4px; color: var(--ink); }
.fit-sub { margin: 14px 0 0; max-width: 560px; font-size: 18px; line-height: 28px; color: var(--ink); }
.fit-cta { margin-top: 24px; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 8px;
  background: var(--brand-primary); color: #fff; font-size: 14px; font-weight: 500; transition: background-color .15s ease; }
.fit-cta:hover { background: var(--brand-primary-hov); }

.fit-cards { display: grid; grid-template-columns: repeat(2, 272px); gap: 24px; }
.fit-card { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 148px; padding: 26px 24px 24px 26px;
  border: 1px solid var(--hairline); border-radius: 10px; background: #fff; color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease; }
.fit-card:hover { border-color: #d3dae0; box-shadow: 0 14px 32px -20px rgba(0,30,43,.3); }
.fit-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; line-height: 17px; }
.fit-foot .i { width: 16px; height: 16px; transition: transform .2s ease; }
.fit-card:hover .fit-foot .i { transform: translateX(3px); }

/* матрица точек: горящие — серые, на hover — тёмные; волна проходит слева направо, как скан */
.fit-word { display: block; width: 100%; max-width: 212px; height: auto; overflow: visible; }
.fit-word circle { fill: #eef1f3; }
.fit-word circle.on { fill: #b9c2ca; transition: fill .3s ease; }
.fit-card:hover .fit-word circle.on { fill: var(--ink); }
.fit-word.wave circle { animation: fitWaveOff .6s ease; animation-delay: calc(var(--c) * 10ms); }
.fit-word.wave circle.on { animation-name: fitWave; }
@keyframes fitWave { 35% { fill: var(--accent-violet); } }
@keyframes fitWaveOff { 35% { fill: #ddd6fe; } }

.fit.js:not(.in) .fit-in > * { opacity: 0; }
.fit.in .fit-text, .fit.in .fit-card { animation: whoIn .7s cubic-bezier(.2,.8,.2,1) backwards; }
.fit.in .fit-card { animation-delay: calc(120ms + var(--i) * 100ms); }

@media (max-width: 1100px) {
  .fit-cards { grid-template-columns: repeat(2, 240px); }
}
@media (max-width: 960px) {
  .fit { padding: 80px 16px 24px; }
  .fit-in { grid-template-columns: 1fr; }
  .fit-title { font-size: 30px; }
  .fit-sub { font-size: 16px; line-height: 25px; }
  .fit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fit-card { padding: 20px 18px 18px; gap: 24px; min-height: 0; }
}
@media (max-width: 520px) {
  .fit-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .fit-word.wave circle, .fit.in .fit-text, .fit.in .fit-card { animation: none; }
}

/* ═══════════ НАДЁЖНОСТЬ: тёмный блок; объекты — объёмные фигуры из символов, как у oxylabs, но свой рендер на WebGL ═══════════ */

.trust { padding: 96px 24px 0; }
.trust-box { max-width: 1536px; margin: 0 auto; padding: 96px 0 104px; border-radius: 26px; background: #000; color: #fff; overflow: hidden; }
.trust-head { max-width: 760px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.trust-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 32px; background: #fff; color: #000; font-size: 13px; font-weight: 500; }
.trust-title { margin: 16px 0 0; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.2; font-weight: 500; letter-spacing: -.5px; }
.trust-sub { margin: 16px 0 0; max-width: 620px; font-size: 18px; line-height: 28px; color: rgba(255,255,255,.86); }

/* бесконечная лента: едет сама, по краям растворяется в черноте; под курсором встаёт. Колесо листает страницу */
.trust-row { margin-top: 72px; overflow: hidden; touch-action: pan-y; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent); }
.trust-row.drag { cursor: grabbing; }
.trust-track { display: flex; gap: 14px; width: max-content; will-change: transform; }
.trust-card { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px;
  border: 1px solid #1f1f23; border-radius: 12px; background: #060606; user-select: none; transition: border-color .3s ease; }
.trust-card:hover, .trust-card.on { border-color: #33333b; }
.trust-art { display: block; width: 160px; height: 160px; }
/* карта вдвое шире, чем выше: ей — широкий кадр во всю карточку, иначе выходит мельче остальных */
.trust-art.wide { width: 240px; max-width: 100%; height: auto; aspect-ratio: 3 / 2; }
.trust.no-gl .trust-art { visibility: hidden; }
.trust-card h3 { align-self: stretch; margin: 0; font-size: 18px; line-height: 26px; font-weight: 500; }
.trust-card p { align-self: stretch; margin: -14px 0 0; font-size: 15px; line-height: 24px; color: #a1a1aa; }

@media (max-width: 960px) {
  .trust { padding: 64px 16px 0; }
  .trust-box { padding: 64px 0 72px; border-radius: 20px; }
  .trust-title { font-size: 32px; }
  .trust-sub { font-size: 16px; line-height: 25px; }
  .trust-row { margin-top: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .trust-card { width: 260px; }
}

/* второй блок шагов на странице — зеркально: сцена слева, шаги справа */
@media (min-width: 961px) {
  .cap-body.cap-flip { grid-template-columns: 1fr minmax(300px, 400px); }
  .cap-flip .cap-side { order: 2; }
}

/* шаг с заголовком: название — H3 с кнопкой внутри, описание — под заголовком, а не в кнопке.
   Расстояния те же, что у шага главной, где описание лежит внутри кнопки */
.cap-h { margin: 0; font: inherit; }
.cap-item > .cap-d { margin-left: 36px; }
/* описание лежит в обёртке с overflow: hidden — сдвигать его вверх нельзя, срежется строка; зазор под заголовком даёт кнопка */
.cap-item > .cap-d > span > span { padding: 0 0 15px; }
.cap-h .cap-btn { transition: padding-bottom .45s cubic-bezier(.2,.8,.2,1); }
.cap-item.on .cap-h .cap-btn { padding-bottom: 8px; }
@media (max-width: 960px) {
  .cap-item > .cap-d { margin-left: 0; }
  .cap-item > .cap-d > span > span { padding: 4px 0 0; }
  .cap-item.on .cap-h .cap-btn { padding-bottom: 0; }
}
