/* ============================================================
   AXTO UI/UX FIX LAYER — внедрение правок аудита
   Подключается последним, поэтому переопределяет исходные стили.
   ============================================================ */

:root {
  --fix-ink: #19170f;
  --fix-muted-light: #4a4738;
  --fix-accent: #8b5729;
  --fix-green: #2f7d5b;
  --fix-line: #e7e3d8;
}

/* 1. P0 — Cookie: немодальный бар снизу, без затемнения */
#cookie-consent-overlay {
  background: transparent !important;
  pointer-events: none !important;
  padding: 0 !important;
  align-items: flex-end !important;
}
.cookie-consent-card {
  max-width: none !important;
  width: 100% !important;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding: 14px 28px !important;
  pointer-events: auto !important;
  box-shadow: 0 -6px 24px rgba(25, 23, 15, 0.14);
}
.cookie-consent-card .cookie-categories { display: none !important; }
#cookie-consent-overlay.open .cookie-consent-card { transform: none !important; }
@media (max-width: 800px) {
  .cookie-consent-card { padding: 10px 14px !important; font-size: 12px !important; }
  .cookie-consent-card h4 { margin: 0 0 4px !important; font-size: 14px !important; }
  .cookie-consent-card p { margin: 0 0 8px !important; font-size: 11px !important; line-height: 1.4 !important; }
  .cookie-actions { flex-direction: row !important; flex-wrap: nowrap !important; gap: 6px !important; }
  .cookie-btn {
    width: auto !important; flex: 1 1 0 !important;
    padding: 8px 4px !important; font-size: 11px !important;
    line-height: 1.25 !important; min-height: 44px !important;
  }
  #cookie-revoke-btn { display: none !important; }
}

/* 2. P0/P2 — Прайс: «от» перед ценой одной строкой, срок виден на мобильном
   home.min.css задаёт .pr-val{display:flex;flex-direction:column} и small{display:block}.
   Flex-контейнер «блокирует» inline-элементы, поэтому одного display:inline мало:
   строки с «от» переводим в горизонтальный flex с выравниванием по базовой линии. */
.pr-val:has(.pr-from),
.pr-val.pr-val--from {
  display: block !important;
  white-space: nowrap !important;
}
.pr-val .pr-from {
  display: inline !important;
  margin: 0 !important;
  margin-right: 6px !important;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--fix-muted-light);
  vertical-align: baseline;
}
.pr-val small { font-size: 12px; color: var(--fix-muted-light); }
@media (max-width: 800px) {
  .pr-time { display: block !important; margin-top: 6px; font-size: 12px; color: var(--fix-muted-light); }
  .pr-val:has(.pr-from),
  .pr-val.pr-val--from { text-align: left !important; }
  .price-row { padding: 14px 0; }
}

/* 3. P1 — Калькулятор: модель видна сразу, итог sticky на мобильном */
#calcModel { display: flex !important; opacity: 1 !important; }
.calc-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fix-muted-light);
}
@media (max-width: 800px) {
  .calc-total {
    position: sticky;
    bottom: 12px;
    z-index: 60;
    box-shadow: 0 10px 34px rgba(25, 23, 15, 0.2);
  }
}

/* 4. P1 — Доступность: контраст подписей и размеры целей нажатия */
.form-field label,
.axto-field label,
.form-check-text,
.axto-check-text,
.form-note {
  color: #ede8dc !important;
  opacity: 1 !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
}
.form-note { color: #d9d3c5 !important; }
.form-field input,
.form-field select,
.axto-field input {
  background: #2a261d !important;
  color: #ffffff !important;
  border: 1px solid #5c5749 !important;
  border-radius: 8px;
  padding: 12px !important;
  font-size: 15px !important;
  min-height: 44px !important;
}
.form-field input[type="file"] { padding: 10px !important; }
.form-field input::placeholder,
.axto-field input::placeholder { color: #b5ad9a !important; }

@media (max-width: 800px) {
  .fleet-pill,
  .calc-brand,
  .calc-svc,
  .faq-q,
  .pr-act a,
  a.msng,
  .burger {
    min-height: 44px !important;
    min-width: 44px !important;
  }
  #scroll-top { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* 5. P2 — Читаемые trust-подписи и единый акцент */
.hero-trust-lbl,
.hero-feature,
.hero-lead { color: var(--fix-ink) !important; }
.pill.accent { font-weight: 600; }

/* 6. P1 — Клавиатурный фокус на несемантичных плитках */
.calc-brand:focus-visible,
.calc-svc:focus-visible {
  outline: 3px solid var(--fix-accent) !important;
  outline-offset: 2px;
}

/* 7. P1 — Мобильная страница модели: без горизонтального переполнения */
@media (max-width: 800px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
    overflow-x: clip;
  }
  .btn.btn-prim {
    width: auto !important;
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  .btn.btn-prim .arr { flex: 0 0 16px !important; }
  .hero-quick { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .hero-id { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .related-row { grid-template-columns: 1fr !important; }
  /* Цена в hero-статистике не должна разрываться на 390/360/320 px */
  .hero-quick .q b {
    font-size: clamp(11px, 3.5vw, 22px) !important;
    letter-spacing: -.02em !important;
    white-space: nowrap !important;
  }
  .hero-quick .q span {
    font-size: clamp(9px, 2.5vw, 11px) !important;
    white-space: nowrap !important;
  }
}

/* 8. P1 — Шапка: без горизонтального переполнения на всех ширинах */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}
@media (max-width: 1319px) {
  .nav { display: none !important; }
  .burger { display: flex !important; }
  .topbar-in { gap: 8px !important; }
  .top-r { gap: 6px !important; }
  .top-divider, .top-messengers { display: none !important; }
  .btn-top { padding: 0 10px !important; font-size: 12px !important; }
}
@media (min-width: 1320px) {
  .topbar-in { gap: 8px !important; }
  .top-r {
    gap: 6px !important;
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  .top-divider, .top-messengers { display: none !important; }
  .top-phone { font-size: 12px !important; }
  .btn-top { padding: 0 10px !important; font-size: 12px !important; }
}
