/* Страница «Аутстаффинг» по макету Figma «Аутстафф · по эталону». Подключается только на «/outstaffing/» (см. include/template.php).
   Префикс on-. Размеры, интерлиньяж, трекинг и отступы сняты с панели свойств Figma (десктоп-кадр 1400, мобильный кадр 390).
   Десктоп ≥1200 (контент 1280 в кадре 1400) → планшет 768–1199 (адаптация, в макете не нарисована) → мобильная ≤767 (кадр 390).
   Шрифты: Manrope (fonts/manrope), Geologica ExtraLight - только списки блока «Стек технологий» (fonts/geologica). */

body.dna-page--on {
  --on-pad: 60px;
  --on-red: #eb3131;
  --on-red-d: #d92323;
  --on-ink: #141414;
  --on-text: #1e1e1e;
  --on-muted: #686868;
  --on-line: #e5e5e5;
  --on-card: #f5f5f5;
  margin: 0;
  background: #fff;
  color: var(--on-ink);
  font-family: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.dna-page--on .on,
.dna-page--on .on *,
.dna-page--on .on *::before,
.dna-page--on .on *::after,
.dna-page--on .on-header,
.dna-page--on .on-header *,
.dna-page--on .on-footer,
.dna-page--on .on-footer * {
  box-sizing: border-box;
}

:where(.on) :is(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, table) { margin: 0; padding: 0; }
:where(.on) :is(ul, ol) { list-style: none; }
:where(.on) a { color: inherit; }
:where(.on) img { display: block; max-width: 100%; height: auto; }
:where(.on) :is(button, input, textarea) { font: inherit; color: inherit; }
.on-red { color: var(--on-red); }
.on-nb, .dna-nb { white-space: nowrap; }
.on-mbr { display: none; }
.on-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.on-i { width: 20px; height: 20px; flex: none; }

.on { position: relative; overflow-x: clip; }

/* ---------- Кнопки ---------- */
.on-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 15px 25px; border: 1px solid transparent; border-radius: 80px;
  font-size: 16px; font-weight: 400; line-height: 22px; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.on-btn--red { background: var(--on-red); border-color: var(--on-red); color: #fff; }
.on-btn--red:hover { background: var(--on-red-d); border-color: var(--on-red-d); }
.on-btn--ghost { background: transparent; border-color: #e3e3e3; color: #fff; }
.on-btn--ghost:hover { background: #fff; color: var(--on-ink); }
.on a:focus-visible, .on button:focus-visible, .on-header a:focus-visible, .on-header button:focus-visible, .on-footer a:focus-visible,
.on input:focus-visible + span, .on-btn:focus-visible { outline: 2px solid var(--on-red); outline-offset: 3px; }

/* ---------- Заголовки секций ---------- */
.on-sec { max-width: 1400px; margin: 150px auto 0; padding: 0 var(--on-pad); }
.on-h2 { width: 848px; max-width: 100%; font-size: 55px; line-height: 1; font-weight: 500; letter-spacing: -1.65px; }
.on-h2--red { color: var(--on-red); }
.on-head--col .on-h2 { width: 100%; }
.on-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.on-head__text { width: 416px; max-width: 100%; padding-top: 60px; font-size: 18px; line-height: 1.3; letter-spacing: -.32px; color: var(--on-ink); }
.on-head--col { flex-direction: column; gap: 24px; }
.on-label { font-size: 14px; line-height: 16px; letter-spacing: .48px; text-transform: uppercase; color: var(--on-muted); }

/* =====================================================================
   Шапка и первый экран (кадр 1400×600, радиус снизу 40)
   ===================================================================== */
.on-header { position: absolute; z-index: 20; top: 15px; left: 0; right: 0; color: #fff; }
.on-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1400px; height: 52px; margin: 0 auto; padding: 0 var(--on-pad); }
.on-header__logo { display: block; flex: none; line-height: 0; }
.on-header__logo img { width: 72px; height: 34px; }
.on-nav { display: flex; align-items: center; gap: 30px; }
.on-nav .on-nav__link, .on-nav .dna-nav-item__trigger { color: #fff; font-size: 14px; font-weight: 400; line-height: 1; letter-spacing: -.07px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.on-nav .on-nav__link:hover, .on-nav .dna-nav-item__trigger:hover { color: #ffb3b3; }
.on-header__contacts { display: flex; align-items: center; gap: 16px; flex: none; }
.on-header__phone { font-size: 16px; font-weight: 500; line-height: 22px; color: #fff; text-decoration: none; white-space: nowrap; }
.on-header__phone:hover { color: #ffb3b3; }
.on-header__tg { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding-right: 4px; border: 1px solid #e3e3e3; border-radius: 26px; color: #fff; transition: background-color .2s, color .2s; }
.on-header__tg:hover { background: #fff; color: var(--on-ink); }
.on-header__tg .on-i { width: 23px; height: 23px; fill: currentColor; stroke: none; }
.on-header__tg .on-i path:last-child { display: none; }
/* Кнопка мобильного меню: круг как у Telegram, только там, где пункты меню в шапке скрыты (≤767) */
.on-header__burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid #e3e3e3; border-radius: 20px; background: transparent; color: #fff; cursor: pointer; transition: background-color .2s, color .2s; }
.on-header__burger:hover { background: #fff; color: var(--on-ink); }
.on-header__burger .on-i { width: 20px; height: 20px; }

.on-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 600px; padding-top: 67px; background: #0d0d0d; color: #fff; border-radius: 0 0 40px 40px; }
.on-hero__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.on-hero__inner { max-width: 1400px; margin: 0 auto; padding: 0 var(--on-pad) 41px; }
.on-offer { display: flex; align-items: flex-start; justify-content: space-between; min-height: 362px; padding-top: 60px; }
.on-offer__copy { width: 832px; max-width: 100%; }
.on-offer__title { font-size: 58px; line-height: 1; font-weight: 500; letter-spacing: -1.74px; }
.on-offer__lead { width: 616px; max-width: 100%; margin-top: 40px; font-size: 18px; line-height: 1.3; font-weight: 400; }
.on-offer__actions { display: flex; flex-direction: column; width: 448px; padding: 90px 0 0 30px; }
.on-offer__actions .on-btn { width: 260px; min-height: 54px; padding: 15px 25px; }
.on-offer__actions .on-btn--ghost { min-height: 54px; margin-top: 10px; padding: 15px 20px; }
.on-offer__note { width: 201px; margin: 20px auto 0 29.5px; text-align: center; font-size: 14px; line-height: 18px; color: rgba(255, 255, 255, .7); }
.on-hero__line { height: 1px; margin-top: 0; background: rgba(255, 255, 255, .2); }
.on-tags { display: flex; align-items: center; justify-content: space-between; max-width: 1119px; margin-top: 49px; }
.on-tag { display: flex; align-items: center; gap: 16px; height: 80px; padding: 15px 20px; border-radius: 16px; }
.on-tag__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--on-red); flex: none; }
.on-tag__icon .on-i { width: 24px; height: 24px; }
.on-tag__text { font-size: 18px; line-height: 1.4; letter-spacing: -.32px; }

/* =====================================================================
   «Нам доверяют»
   ===================================================================== */
.on-trust { display: flex; align-items: center; gap: 40px; max-width: 1400px; margin: 40px auto 0; padding: 0 var(--on-pad); min-height: 40px; }
.on-trust__label { flex: none; width: 329px; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .48px; text-transform: uppercase; color: var(--on-muted); }
.on-trust__logos { display: flex; align-items: center; gap: 35px; }
.on-trust__item { display: flex; align-items: center; }
.on-trust__item img { width: auto; height: 35px; max-width: none; }
.on-trust__item:nth-child(6) img { height: 40px; }

/* =====================================================================
   «Когда нужен IT-аутстаффинг?»: ситуации и таблица сравнения
   ===================================================================== */
.on-when { margin-top: 120px; }
.on-sits { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--on-line); }
.on-sit { display: flex; flex-direction: column; gap: 30px; padding: 30px 30px 30px 30px; border-right: 1px solid var(--on-line); }
.on-sit:nth-child(4n + 1) { padding-left: 0; }
.on-sit:nth-child(4n), .on-sit:last-child { border-right: 0; }
.on-sit:nth-child(n + 5) { border-top: 1px solid var(--on-line); }
.on-sit__n { font-size: 22px; line-height: 1; font-weight: 500; letter-spacing: -.22px; color: var(--on-red); }
.on-sit__t { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.4px; }

.on-compare { margin-top: 40px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 20px; overflow: hidden; }
.on-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.on-table th, .on-table td { padding: 26px 30px; text-align: left; vertical-align: middle; font-size: 18px; line-height: 1.3; font-weight: 400; color: var(--on-text); }
.on-table thead th { height: 56px; padding: 20px 30px; background: var(--on-card); font-size: 14px; line-height: 16px; font-weight: 400; letter-spacing: .48px; text-transform: uppercase; color: var(--on-muted); }
.on-table thead th.on-table__dna { background: var(--on-red); color: #fff; }
.on-table tbody tr { border-top: 1px solid var(--on-line); }
.on-table tbody th { font-weight: 500; color: var(--on-ink); }
.on-table td.on-table__dna { background: #fdecec; font-weight: 500; color: var(--on-ink); }

/* =====================================================================
   «Почему выбирают DNA Team»
   ===================================================================== */
.on-why__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.on-why__card { display: flex; flex-direction: column; gap: 30px; padding: 40px; border-radius: 20px; background: var(--on-card); }
.on-why__title { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.48px; }
.on-why__metric { font-size: 55px; line-height: 1; font-weight: 500; letter-spacing: -.55px; color: var(--on-red); }
.on-why__text { font-size: 16px; line-height: 1.4; letter-spacing: -.28px; color: var(--on-text); }

/* =====================================================================
   «Стоимость»: серая секция, направления-чипы, роли
   ===================================================================== */
.on-cost { max-width: 1400px; margin: 150px auto 0; }
.on-cost__box { display: flex; flex-direction: column; gap: 40px; padding: 80px var(--on-pad); border-radius: 50px; background: var(--on-card); }
.on-cost__box > .on-h2 { margin-bottom: 40px; }
.on-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.on-chip { height: 40px; padding: 12px 15px; border: 0; border-radius: 80px; background: #fff; color: var(--on-ink); font-size: 16px; line-height: 16px; font-weight: 400; cursor: pointer; transition: background-color .2s, color .2s; }
.on-chip:hover { background: #ededed; }
.on-chip[aria-selected="true"] { background: var(--on-ink); color: #fff; }
.on-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.on-role { display: flex; flex-direction: column; gap: 30px; padding: 40px 30px; border-radius: 20px; background: #fff; }
.on-role__head { display: flex; flex-direction: column; gap: 8px; }
.on-role__label { font-size: 14px; line-height: 16px; letter-spacing: .48px; text-transform: uppercase; color: var(--on-muted); }
.on-role__name { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.48px; }
.on-role__meta { display: flex; gap: 30px; }
.on-role__col { display: flex; flex: 1 1 0; flex-direction: column; gap: 8px; min-width: 0; }
.on-role__col dt { font-size: 14px; line-height: 16px; letter-spacing: .48px; text-transform: uppercase; color: var(--on-muted); }
.on-role__col dd { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.32px; }
.on-cost__cta { display: flex; justify-content: flex-end; }

/* =====================================================================
   «Как подключаем специалистов»: шаги, «Что входит», кнопка
   ===================================================================== */
.on-steps__body { display: flex; flex-direction: column; gap: 16px; margin-top: 80px; }
.on-steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.on-step { display: flex; flex-direction: column; gap: 30px; padding: 40px 30px; border-radius: 20px; background: var(--on-card); }
.on-step__n { font-size: 22px; line-height: 1; font-weight: 500; letter-spacing: -.22px; color: var(--on-red); }
.on-step__title { font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.4px; }
.on-step__text { font-size: 16px; line-height: 1.4; letter-spacing: -.28px; color: var(--on-text); }
.on-incl { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 60px; border: 1px solid rgba(0, 0, 0, .1); border-radius: 30px; }
.on-incl__title { width: 416px; max-width: 100%; font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.48px; color: var(--on-red); }
.on-incl__list { display: grid; flex: 0 1 726px; grid-template-columns: 1fr 1fr; gap: 30px 16px; }
.on-incl__item { display: flex; flex-direction: column; gap: 8px; }
.on-incl__name { font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.32px; }
.on-incl__text { font-size: 16px; line-height: 1.4; letter-spacing: -.28px; color: var(--on-muted); }
.on-steps__cta { display: flex; justify-content: flex-end; margin-top: 40px; }

/* =====================================================================
   «Стек технологий» и плашка про ИИ
   ===================================================================== */
.on-stack__body { display: flex; flex-direction: column; gap: 60px; margin-top: 80px; }
.on-stack__grid { display: grid; grid-template-columns: 407fr 437fr 437fr; border-bottom: 1px solid var(--on-line); }
.on-stack__cell { display: flex; flex-direction: column; gap: 12px; padding: 30px 30px 30px 30px; border-top: 1px solid var(--on-line); border-right: 1px solid var(--on-line); }
.on-stack__cell:nth-child(3n + 1) { padding-left: 0; }
.on-stack__cell:nth-child(3n) { border-right: 0; }
.on-stack__label { font-size: 14px; line-height: 16px; font-weight: 400; letter-spacing: .48px; text-transform: uppercase; color: var(--on-red); }
.on-stack__list { font-family: "Geologica", "Manrope", "Manrope Fallback", system-ui, sans-serif; font-size: 18px; line-height: 40px; font-weight: 200; letter-spacing: .5px; color: var(--on-ink); }
.on-ai { display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 60px; border-radius: 30px; background: #1c1c1c; color: #fff; }
.on-ai__title { width: 416px; max-width: 100%; flex: none; font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.48px; }
.on-ai__text { display: flex; flex: 0 1 694px; flex-direction: column; gap: 25px; font-size: 18px; line-height: 1.4; letter-spacing: -.32px; }

/* =====================================================================
   «Кейсы»: список в три колонки, без картинок
   ===================================================================== */
.on-cases__sub { font-size: 18px; line-height: 1.3; letter-spacing: -.32px; }
.on-cases__list { margin-top: 80px; border-bottom: 1px solid var(--on-line); }
.on-case { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 40px 0; border-top: 1px solid var(--on-line); }
.on-case__col { display: flex; flex-direction: column; gap: 12px; }
.on-case__title { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.48px; }
.on-case__text { font-size: 16px; line-height: 1.4; letter-spacing: -.28px; color: var(--on-text); }

/* =====================================================================
   «Частые вопросы»
   ===================================================================== */
.on-faq__list { margin-top: 80px; border-top: 1px solid var(--on-line); }
.on-faq__item { padding: 30px 0; border-bottom: 1px solid var(--on-line); }
.on-faq__q { margin: 0; }
.on-faq__q button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 0; border: 0; background: none; text-align: left; font-size: 20px; line-height: 1.2; font-weight: 500; letter-spacing: -.4px; color: var(--on-ink); cursor: pointer; }
.on-faq__sign { position: relative; flex: none; width: 24px; height: 24px; }
.on-faq__sign::before, .on-faq__sign::after { content: ""; position: absolute; left: 5px; right: 5px; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .2s; }
.on-faq__sign::after { transform: rotate(90deg); }
.on-faq__q button[aria-expanded="true"] .on-faq__sign::after { transform: rotate(0); }
.on-faq__a { margin-top: 20px; max-width: 848px; font-size: 18px; line-height: 1.4; letter-spacing: -.32px; color: var(--on-text); }

/* =====================================================================
   Финальный блок: форма «Обсудим ваш проект» (блок «3», ширина 1280)
   ===================================================================== */
.on-form { max-width: 1400px; margin: 150px auto 0; padding: 0 var(--on-pad); }
.on-form__box { display: flex; flex-direction: column; gap: 42px; min-height: 700px; padding: 32px 48px 48px; border-radius: 32px; background: #1c1c1c; color: #fff; }
.on-form__logo { display: inline-block; align-self: flex-start; line-height: 0; }
.on-form__logo img { width: 70.7px; height: 32.87px; }
.on-form__grid { display: grid; flex: 1; grid-template-columns: 1fr 480px; gap: 40px; align-items: start; }
.on-form__copy { padding-left: 101px; }
.on-form__title { max-width: 280px; font-size: 48px; line-height: 52px; font-weight: 500; letter-spacing: -2px; }
.on-form__lead { max-width: 315px; margin-top: 30px; font-size: 14px; line-height: 21px; color: #a8a8a8; }
.on-formcard { display: flex; flex-direction: column; gap: 20px; padding: 28px; border-radius: 24px; background: #fff; color: var(--on-ink); }
.on-formcard__head { display: block; }
.on-formcard__title { font-size: 20px; line-height: 28px; font-weight: 600; }
.on-m-only, .on-formcard__sub { display: none; }
.on-field { display: flex; flex-direction: column; gap: 7px; }
.on-field[hidden] { display: none; }
.on-field__label { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; line-height: 18px; font-weight: 500; }
.on-field__opt { font-size: 11px; line-height: 16px; font-weight: 400; color: #8d8d8d; }
.on-input { width: 100%; height: 54px; padding: 16px; border: 1px solid transparent; border-radius: 12px; background: var(--on-card); font-size: 15px; line-height: 20px; outline: none; transition: border-color .2s, background-color .2s; }
.on-input::placeholder { color: #9a9a9a; }
.on-input:focus { border-color: var(--on-ink); background: #fff; }
.on-input.is-error { border-color: var(--on-red); background: #fff6f6; }
.on-input--area { height: 92px; padding: 12px 16px; line-height: 22px; resize: vertical; }
.on-field__error { font-size: 12px; line-height: 1.3; color: var(--on-red); }
.on-field__error:empty { display: none; }
.on-switch { display: flex; gap: 4px; height: 48px; padding: 4px; border-radius: 14px; background: #ededed; }
.on-switch__opt { position: relative; flex: 1; display: block; cursor: pointer; }
.on-switch__opt input { position: absolute; opacity: 0; inset: 0; }
.on-switch__opt span { display: flex; align-items: center; justify-content: center; gap: 8px; height: 40px; border-radius: 10px; font-size: 13px; line-height: 18px; font-weight: 500; color: #6e6e6e; transition: background-color .2s, color .2s; }
.on-switch__opt .on-i { width: 16px; height: 16px; }
.on-switch__opt input:checked + span { background: #fff; color: var(--on-ink); }
.on-switch__opt input:focus-visible + span { outline: 2px solid var(--on-red); outline-offset: 2px; }
.on-formcard .dna-form__pd-hint { margin: -6px 0 0; font-size: 11px; line-height: 1.35; color: #8a8a8a; }
.on-formcard__submit { width: 100%; min-height: 54px; padding: 16px 24px; border-radius: 54px; font-size: 15px; font-weight: 600; line-height: 20px; }
.on-formcard__submit .on-i { width: 16px; height: 16px; }
.on-agree { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 16px; color: #6d6d6d; cursor: pointer; }
.on-agree input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--on-red); }
.on-agree a { color: var(--on-red); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: auto; }
.on-formcard__status { font-size: 13px; line-height: 1.35; }

/* ---------- Форма заявки поверх экрана (кнопки целевого действия, пометка 5 макета) ---------- */
.on-modal { width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--on-ink); overflow: auto; }
.on-modal::backdrop { background: rgba(10, 10, 10, .72); }
.on-modal .on-formcard { border-radius: 0; }
.on-modal .on-formcard__head { padding-right: 36px; }
.on-modal__close { position: absolute; top: 18px; right: 18px; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #686868; cursor: pointer; transition: background-color .2s, color .2s; }
.on-modal__close:hover { background: var(--on-card); color: var(--on-ink); }
.on-modal__close .on-i { width: 20px; height: 20px; }
html:has(.on-modal[open]) { overflow: hidden; }

/* =====================================================================
   Подвал (кадр 1400×288, радиус сверху 40)
   ===================================================================== */
.on-footer { max-width: 1400px; margin: 80px auto 0; border-radius: 40px 40px 0 0; background: #141414; color: #fff; font-family: "Manrope", "Manrope Fallback", system-ui, sans-serif; }
.on-footer a { color: inherit; text-decoration: none; }
.on-footer__inner { position: relative; display: grid; grid-template-columns: 327px 1fr 330px; gap: 105px; align-items: start; min-height: 288px; padding: 84px 60px 48px; }
.on-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.on-footer__logo { display: inline-block; line-height: 0; margin-top: -24px; }
.on-footer__logo img { width: 82.48px; height: 38.35px; }
.on-footer__copy, .on-footer__legal { margin: 0; font-size: 12px; line-height: 1; letter-spacing: -.12px; color: rgba(255, 255, 255, .3); }
.on-footer__legal a:hover { color: #fff; }
.on-footer__title { margin: 0 0 20px; font-size: 16px; line-height: 1.2; font-weight: 500; letter-spacing: -.32px; color: rgba(255, 255, 255, .3); }
.on-footer__menu ul { display: grid; grid-auto-flow: column; grid-template-rows: repeat(4, auto); justify-content: start; gap: 15px 40px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.2; font-weight: 500; letter-spacing: -.28px; }
.on-footer__menu a:hover, .on-footer__contacts a:hover { color: #ffb3b3; }
.on-footer__contacts { display: flex; flex-direction: column; gap: 13px; }
.on-footer__contacts .on-footer__title { margin: 0 0 7px; }
.on-footer__contacts a { font-size: 24px; line-height: 1.2; font-weight: 500; letter-spacing: -.48px; }
@media (min-width: 1200px) {
  .on-footer__inner { grid-template-columns: 327px 1fr 416px; padding-bottom: 36px; }
  .on-footer__brand { gap: 0; }
  .on-footer__logo { margin-top: 0; }
  .on-footer__copy { margin-top: 29.65px; min-height: 48px; }
  .on-footer__legal { margin-top: 20px; }
}

/* =====================================================================
   Планшет и малые десктопы 768–1199 (макета нет - адаптация кадра 1400)
   ===================================================================== */
@media (max-width: 1199px) {
  body.dna-page--on { --on-pad: 40px; }
  .on-h2 { font-size: 44px; letter-spacing: -1.3px; }
  .on-head { flex-direction: column; gap: 20px; }
  .on-head__text { padding-top: 0; }
  .on-sec { margin-top: 110px; }
  .on-when, .on-cost, .on-form { margin-top: 110px; }
  .on-nav { gap: 20px; }
  .on-header__inner { gap: 16px; }
  .on-hero { min-height: 0; }
  .on-hero__inner { padding-bottom: 36px; }
  .on-offer { flex-direction: column; min-height: 0; padding-top: 48px; gap: 32px; }
  .on-offer__title { font-size: 44px; letter-spacing: -1.3px; }
  .on-offer__lead { margin-top: 24px; }
  .on-offer__actions { width: 100%; padding: 0; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
  .on-offer__actions .on-btn--ghost { margin-top: 0; }
  .on-offer__note { flex-basis: 100%; width: auto; max-width: none; margin: 4px 0 0; text-align: left; }
  .on-hero__line { margin-top: 36px; }
  .on-tags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; max-width: none; margin-top: 28px; }
  .on-tag { height: auto; padding: 8px 0; }
  .on-trust { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 36px; }
  .on-trust__label { width: auto; }
  .on-trust__logos { flex-wrap: wrap; gap: 20px 32px; }
  .on-sits { grid-template-columns: repeat(2, 1fr); }
  .on-sit:nth-child(2n) { border-right: 0; }
  .on-sit:nth-child(n + 3) { border-top: 1px solid var(--on-line); }
  .on-sit:nth-child(3) { padding-left: 0; }
  .on-sit:nth-child(odd) { padding-left: 0; }
  .on-table th, .on-table td { padding: 20px 16px; font-size: 16px; }
  .on-table thead th { padding: 16px; font-size: 12px; }
  .on-why__list { grid-template-columns: 1fr; }
  .on-why__card { gap: 20px; }
  .on-cost__box { padding: 64px var(--on-pad); border-radius: 40px; }
  .on-roles { grid-template-columns: repeat(2, 1fr); }
  .on-steps__list { grid-template-columns: repeat(2, 1fr); }
  .on-incl { flex-direction: column; padding: 40px; }
  .on-incl__list { flex: none; width: 100%; }
  .on-stack__grid { grid-template-columns: repeat(2, 1fr); }
  .on-stack__cell, .on-stack__cell:nth-child(3n + 1), .on-stack__cell:nth-child(3n) { padding: 30px 30px 30px 0; border-right: 1px solid var(--on-line); }
  .on-stack__cell:nth-child(2n) { padding-left: 30px; border-right: 0; }
  .on-ai { flex-direction: column; align-items: flex-start; padding: 40px; }
  .on-ai__title { width: auto; }
  .on-ai__text { flex: none; width: 100%; }
  .on-cases__list { margin-top: 56px; }
  .on-case { grid-template-columns: 1fr; gap: 24px; justify-content: stretch; }
  .on-faq__list, .on-steps__body, .on-stack__body { margin-top: 56px; }
  .on-form { padding: 0 20px; }
  .on-form__box { padding: 32px 28px 40px; }
  .on-form__grid { grid-template-columns: 1fr; }
  .on-form__copy { padding-left: 0; }
  .on-footer { border-radius: 30px 30px 0 0; }
  .on-footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; padding: 56px 40px 48px; }
  .on-footer__logo { margin-top: 0; }
  .on-footer__contacts { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .on-header__inner { gap: 12px; }
  .on-nav { gap: 14px; }
  .on-header__phone { font-size: 14px; line-height: 18px; }
  .on-header__tg { width: 40px; height: 40px; border-radius: 20px; }
  .on-header__tg .on-i { width: 20px; height: 20px; }
}

/* =====================================================================
   Мобильная: кадр 390 (поля 20px, секции 56px, зазор 28px)
   ===================================================================== */
@media (max-width: 767px) {
  body.dna-page--on { --on-pad: 20px; }
  .on-mbr { display: inline; }
  .on-h2 { width: auto; font-size: 34px; letter-spacing: -1.65px; }
  .on-sec { margin-top: 0; padding-top: 56px; padding-bottom: 0; }
  .on-head { gap: 28px; }
  .on-head__text { width: auto; font-size: 16px; letter-spacing: -.32px; }
  .on-btn { min-height: 54px; }

  /* шапка и первый экран */
  .on-header { top: 16px; }
  .on-header__inner { height: 40px; }
  .on-header__logo img { width: 63.6px; height: 29.57px; }
  .on-nav { display: none; }
  .on-header__contacts { gap: 12px; }
  .on-header__phone { font-size: 14px; line-height: 18px; }
  .on-header__tg { width: 40px; height: 40px; border-radius: 20px; }
  .on-header__tg .on-i { width: 20px; height: 20px; }
  .on-header__burger { display: inline-flex; }
  .on-hero { border-radius: 0 0 30px 30px; padding-top: 56px; }
  .on-hero__inner { padding-bottom: 40px; }
  .on-offer { gap: 40px; padding-top: 86px; }
  .on-offer__title { font-size: 36px; line-height: 1.1; letter-spacing: -1.74px; }
  .on-offer__lead { margin-top: 40px; font-size: 16px; }
  .on-offer__actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .on-offer__actions .on-btn, .on-offer__actions .on-btn--ghost { width: 100%; min-height: 54px; padding: 15px 25px; margin: 0; }
  .on-offer__note { margin: 5px 0 0; text-align: center; font-size: 13px; }
  .on-hero__line { display: none; }
  .on-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 15px; margin-top: 40px; }
  .on-tag { gap: 15px; padding: 0; }
  .on-tag__icon { width: 36px; height: 36px; border-radius: 10px; }
  .on-tag__icon .on-i { width: 20px; height: 20px; }
  .on-tag__text { font-size: 14px; letter-spacing: -.32px; }

  /* нам доверяют */
  .on-trust { align-items: stretch; gap: 16px; margin-top: 0; padding-top: 30px; }
  .on-trust__label { width: auto; font-weight: 400; }
  /* два ряда по макету: первые четыре логотипа с равными промежутками от края до края, три остальных по центру через 40px;
     пустой блок на всю ширину между рядами переносит строку и задаёт зазор 25px */
  .on-trust__logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0; }
  .on-trust__logos::after { content: ""; order: 1; flex: 0 0 100%; height: 25px; }
  .on-trust__item:nth-child(n + 5) { order: 2; align-self: flex-start; }
  .on-trust__item:nth-child(5) { margin-left: auto; }
  .on-trust__item:nth-child(n + 6) { margin-left: 40px; }
  .on-trust__item:nth-child(7) { margin-right: auto; }
  .on-trust__item:nth-child(n) img { height: auto; }
  .on-trust__item:nth-child(1) img { width: 45px; }
  .on-trust__item:nth-child(2) img { width: 29px; }
  .on-trust__item:nth-child(3) img { width: 70px; }
  .on-trust__item:nth-child(4) img { width: 28px; }
  .on-trust__item:nth-child(5) img { width: 29px; }
  .on-trust__item:nth-child(6) img { width: 81px; }
  .on-trust__item:nth-child(7) img { width: 64px; }

  /* когда нужен */
  .on-when { padding-top: 56px; }
  .on-sits { display: flex; flex-direction: column; margin-top: 28px; border-top: 0; }
  .on-sit { flex-direction: row; align-items: flex-start; gap: 16px; padding: 20px 0; border-right: 0; border-top: 1px solid var(--on-line); }
  .on-sit:nth-child(n), .on-sit:first-child { padding-left: 0; }
  .on-sit__n { width: 32px; flex: none; }
  .on-sit__t { font-size: 18px; }
  .on-compare { margin-top: 28px; }
  .on-table, .on-table tbody, .on-table tr, .on-table th, .on-table td { display: block; }
  .on-table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); }
  .on-table tbody tr { border-top: 0; }
  .on-table tbody tr + tr { border-top: 1px solid var(--on-line); }
  .on-table tbody th { padding: 20px 20px 12px; font-size: 18px; font-weight: 500; }
  .on-table td { display: flex; align-items: flex-start; gap: 12px; padding: 10px 20px; font-size: 16px; }
  .on-table td::before { content: attr(data-label); flex: none; width: 130px; padding-top: 2px; font-size: 12px; line-height: 16px; letter-spacing: .48px; text-transform: uppercase; color: var(--on-muted); }
  .on-table td.on-table__dna { background: #fdecec; border-bottom: 2px solid var(--on-red); }
  .on-table td.on-table__dna::before { font-weight: 500; color: var(--on-ink); }
  .on-table tbody tr td:last-child { padding-bottom: 14px; }

  /* почему выбирают: от таблицы сравнения 56 (как у остальных блоков) */
  .on-why__list { gap: 12px; }
  .on-why__card { gap: 16px; padding: 28px 24px; }
  .on-why__title { font-size: 22px; letter-spacing: -.44px; }
  .on-why__metric { font-size: 44px; letter-spacing: -.44px; }

  /* стоимость */
  .on-cost { margin-top: 56px; }
  .on-cost__box { gap: 28px; padding: 56px 20px; border-radius: 30px; }
  .on-cost__box > .on-h2 { margin-bottom: 0; }
  .on-chips { gap: 8px; }
  .on-roles { grid-template-columns: 1fr; gap: 12px; }
  .on-role { gap: 20px; padding: 28px 24px; }
  .on-role__name { font-size: 22px; letter-spacing: -.48px; }
  .on-role__meta { gap: 16px; }
  .on-cost__cta { display: block; }
  .on-cost__cta .on-btn { width: 100%; }

  /* шаги */
  .on-steps__body { gap: 12px; margin-top: 28px; }
  .on-steps__list { grid-template-columns: 1fr; gap: 12px; }
  .on-step { gap: 16px; padding: 28px 24px; }
  .on-incl { gap: 20px; padding: 28px 24px; border-radius: 24px; }
  .on-incl__title { width: auto; font-size: 22px; letter-spacing: -.44px; }
  .on-incl__list { grid-template-columns: 1fr; gap: 20px; }
  .on-incl__name { font-size: 16px; }
  .on-incl__text { font-size: 14px; }
  .on-steps__cta { display: block; margin-top: 28px; }
  .on-steps__cta .on-btn { width: 100%; }

  /* стек: от кнопки «Обсудить задачу в Telegram» 112 */
  .on-stack { padding-top: 112px; }
  .on-stack__body { gap: 28px; margin-top: 28px; }
  .on-stack__grid { grid-template-columns: 1fr; }
  .on-stack__cell, .on-stack__cell:nth-child(3n + 1), .on-stack__cell:nth-child(3n), .on-stack__cell:nth-child(2n) { gap: 10px; padding: 20px 0; border-right: 0; }
  .on-stack__label { font-size: 12px; }
  .on-stack__list { font-size: 15px; line-height: 35px; }
  .on-ai { gap: 16px; padding: 32px 24px; border-radius: 24px; }
  .on-ai__title { font-size: 26px; letter-spacing: -.44px; }
  .on-ai__text { gap: 16px; font-size: 16px; letter-spacing: -.32px; }

  /* кейсы */
  .on-cases__list { margin-top: 28px; }
  .on-case { gap: 20px; padding: 28px 0; }
  .on-case__col { gap: 8px; }
  .on-case__client { gap: 10px; }
  .on-case__title { font-size: 22px; letter-spacing: -.44px; }
  .on-label { font-size: 12px; }
  .on-cases__sub { font-size: 16px; letter-spacing: -.32px; }
  .on-head--col { gap: 28px; }

  /* вопросы: от последнего кейса 112 */
  .on-faq { padding-top: 112px; }
  .on-faq__list { margin-top: 28px; }
  .on-faq__item { padding: 20px 0; }
  .on-faq__q button { font-size: 17px; line-height: 1.25; letter-spacing: -.34px; }
  .on-faq__a { margin-top: 14px; font-size: 16px; letter-spacing: -.32px; }

  /* форма */
  .on-form { margin-top: 56px; padding: 0; }
  .on-form__box { gap: 26px; min-height: 846px; padding: 22px 20px 28px; border-radius: 28px; }
  .on-form__logo img { width: 70.7px; height: 32.87px; }
  .on-form__copy { display: none; }
  .on-form__grid { gap: 0; }
  .on-formcard { gap: 22px; padding: 24px 20px 22px; border-radius: 22px; }
  .on-formcard__head { padding-bottom: 14px; border-bottom: 1px solid #ececec; }
  .on-formcard__title { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -1px; }
  .on-d-only { display: none; }
  .on-m-only { display: inline; }
  .on-formcard__sub { display: block; margin-top: 6px; font-size: 13px; line-height: 19px; color: #777; }
  .on-agree { font-size: 12px; line-height: 15px; }

  /* подвал */
  .on-footer { margin-top: 56px; border-radius: 30px 30px 0 0; }
  .on-footer__inner { display: flex; flex-direction: column; align-items: stretch; gap: 28px; min-height: 0; padding: 48px 20px 40px; }
  .on-footer__brand { display: contents; }
  .on-footer__logo { order: 1; margin: 0; align-self: flex-start; }
  .on-footer__menu { order: 2; }
  .on-footer__contacts { order: 3; gap: 13px; }
  .on-footer__copy { order: 4; margin-top: 4px; }
  .on-footer__legal { order: 5; margin-top: -8px; }
  .on-footer__title { margin: 0 0 16px; }
  .on-footer__contacts .on-footer__title { margin: 0 0 3px; }
  .on-footer__contacts a { font-size: 20px; letter-spacing: -.4px; }
}

/* Узкие телефоны: рядом с логотипом телефон, Telegram и кнопка меню, телефон и зазоры ужимаем, чтобы не появилась горизонтальная прокрутка */
@media (max-width: 359px) {
  .on-header__inner, .on-header__contacts { gap: 8px; }
  .on-header__phone { font-size: 12px; line-height: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .on *, .on-footer * { transition: none !important; scroll-behavior: auto !important; }
}
