/*
 * V77 · МОБИЛЬНЫЙ И ADAPTIVE ПАТЧ по аудиту Бивиса
 *  1. Горизонтальный скролл на 320px: виновник .oneminer-proof / .op-col
 *  2. Тач-цели: SHA-кнопки 13px, download 34px, фильтры 30-35px -> 44px
 *  3. vh -> svh/dvh: адресная строка мобильного браузера больше не двигает сцены
 *  4. Reflow по WCAG 2.2: контент читается на 320px без горизонтальной прокрутки
 */

/* ---------- 1 · переполнение по горизонтали ---------- */
/* grid-колонки обязаны уметь сжиматься: 1fr не опускается ниже min-content */
.oneminer-proof { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1.35fr); }
.oneminer-proof > * { min-width: 0; }
.oneminer-proof b { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .oneminer-proof { grid-template-columns: minmax(0, 1fr); }
  .oneminer-proof > * { padding: 20px 18px; }
  .oneminer-proof b { font-size: 30px; }
  .op-arrow { display: none; }
  .op-delta span { max-width: none; }
}
@media (max-width: 380px) {
  .oneminer-proof b { font-size: 26px; }
  .oneminer-proof span { font-size: 11.5px; }
}

/* та же болезнь у остальных сеток: колонка не должна распирать страницу */
.fleet-story,
.safe-path,
.coverage-grid,
.authority-inspect,
.door-steps,
.kit-grid { grid-auto-columns: minmax(0, 1fr); }
.fleet-story article,
.safe-path li,
.cov-tile,
.authority-inspect a,
.kit-col { min-width: 0; }

/* ---------- 2 · тач-цели по WCAG 2.2 Target Size ---------- */
@media (pointer: coarse), (max-width: 760px) {
  .fw-sha,
  .vault-list button,
  .vault-list a,
  .vault-families button,
  .vault-search input,
  .text-button,
  .text-link,
  .stack-action,
  .engineer-link,
  .kit-support,
  .kit-link,
  .safe-foot a,
  .route-guides a,
  .coverage-filters button,
  .authority-links a,
  .floating-contacts__button,
  .site-nav a,
  .language summary,
  .deck-lang {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .fw-sha {
    padding-right: 10px;
    padding-left: 10px;
  }
  /* мелкие ссылки в списках получают зону, но не ломают ряд */
  .footer-grid a,
  .footer-legal a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .vault-list .dtag,
  .cov-boards i { min-height: 0; }
}

/* ---------- 3 · единицы высоты: только svh/dvh ---------- */
/* смесь 100vh и отрицательных vh давала скачки при движении адресной строки */
@media (max-width: 900px) {
  .vg-roidash { bottom: 3svh !important; }
  .telemetry[data-telemetry-v53] .telemetry-stage .wf-scene--watcher {
    bottom: -1svh;
    height: 48svh;
  }
  .cinema-viewport { height: 100svh; }
  .faq { min-height: 0; }
}

/* ---------- 4 · reflow: ничего не выходит за 320px ---------- */
@media (max-width: 380px) {
  .shell,
  .vgo-shell { padding-inline: 14px; }
  .oneminer-facts li { grid-template-columns: 40px minmax(0, 1fr); }
  .door-steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .fleet-scale { gap: 12px 18px; }
  .fleet-scale i { display: none; }
  .coverage-legend b { min-width: 30px; }
  .faq-item summary b { font-size: 13.5px; }
  .kit-strip { padding: 14px 16px; }
}

/* добор целей: языковое меню, бренд, чипы, скрытые ссылки списков */
@media (pointer: coarse), (max-width: 760px) {
  .language nav a { min-height: 44px; display: flex; align-items: center; }
  .language summary { min-width: 44px; justify-content: center; }
  .brand.brand--master { min-height: 44px; }
  .finder-model-chip { min-width: 44px; justify-content: center; }
  .li-sisters a,
  .kit-strip a,
  .vault-foot .text-button,
  .vault-manifest { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (pointer: coarse), (max-width: 760px) {
  .finder-support a,
  .coverage-foot a { min-height: 44px; display: inline-flex; align-items: center; }
  .finder-support { gap: 6px 18px; flex-wrap: wrap; }
}

/* ---------- M07 · планшет 761-920: имена брендов не вылезают из карточек ---------- */
@media (min-width: 761px) and (max-width: 920px) {
  .ecosystem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ecosystem-grid > div:first-child,
  .eco-card--global { grid-column: 1 / -1; }
  .eco-card h3 { font-size: clamp(22px, 3.4vw, 30px); overflow-wrap: anywhere; }
}

/* ---------- M08 · резолвер на 320: шаг читается целиком ---------- */
@media (max-width: 420px) {
  .resolver-steps { padding: 0 14px; }
  .resolver-steps span { flex: none; gap: 0; padding: 14px 0; }
  /* видимой остаётся только активная подпись, остальные - номера */
  .resolver-steps span:not(.is-active) { font-size: 0; }
  .resolver-steps span:not(.is-active)::before { font-size: 7.5px; }
  .resolver-steps span.is-active {
    flex: 1;
    gap: 8px;
    font-size: 9px;
    white-space: nowrap;
  }
}

/* ---------- B2B-бриф: приватность и ошибка валидации ---------- */
.brief-privacy {
  margin: 18px 0 8px;
  color: #8b8a84;
  font-size: 12px;
  line-height: 1.6;
}
.brief-error:not(:empty) {
  display: block;
  margin-bottom: 10px;
  border-left: 2px solid #f26e5a;
  padding: 8px 12px;
  background: rgba(242, 110, 90, .08);
  color: #f0b3a6;
  font-size: 12.5px;
}
.brief-next {
  margin: 12px 0 0;
  color: #6f6e68;
  font-size: 11px;
  letter-spacing: .04em;
}
