/* === ФИКС: убираем пустые белые зоны при медленной загрузке JS === */
/* Проблема: body.ast-premium-loaded .t-rec { display: none } скрывает блоки */
/* Решение: показываем все блоки принудительно */
body.ast-premium-loaded .t-rec {
  display: block !important;
}

/* Стили навигации для телефона в шапке */
.ast-menu__link--phone {
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .ast-menu__link--phone {
    display: none;
  }
}

/* AST mobile hotfix start */
.ast-site-root {
  --ast-mobile-safe-bottom: max(16px, env(safe-area-inset-bottom));
}

@media (max-width: 1040px) {
  .ast-inner {
    width: min(100% - 24px, 1200px);
  }

  .ast-nav__inner {
    min-height: 68px;
    gap: 12px;
  }

  .ast-logo img {
    width: 42px;
    height: 42px;
  }

  .ast-nav__toggle,
  .ast-menu__link,
  .ast-btn,
  .button-link,
  .ast-chip,
  .ast-card__link,
  .ast-cta-card,
  .ast-city-card__link,
  .ast-filter button,
  .ast-messenger-badge,
  .ast-backtop,
  .ast-footer a,
  .ast-phones a,
  .ast-form input[type="checkbox"] + span,
  .ast-form input[type="radio"] + span {
    min-height: 44px !important;
  }

  .ast-nav__toggle {
    min-width: 44px;
    padding: 0 14px;
  }

  .ast-logo,
  .ast-logo--footer {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ast-mobile-nav {
    top: calc(100% + 6px);
    padding: 10px;
    max-height: min(70svh, calc(100vh - 92px));
    overflow: auto;
  }

  .ast-menu {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .ast-menu__link {
    padding: 10px 14px;
  }

  .ast-kicker,
  .ast-tag,
  .ast-tag--hero,
  .ast-messenger-badge,
  .ast-filter button,
  .ast-chip,
  .button-link {
    min-height: 44px;
    padding: 10px 14px;
  }

  .ast-hero__content {
    padding-top: 120px;
    padding-bottom: 32px;
  }

  .ast-hero h1,
  .ast-model h1 {
    font-size: clamp(42px, 11vw, 56px);
    line-height: 1.04;
  }

  .ast-hero__lead,
  .ast-subtitle {
    font-size: 18px;
    line-height: 1.5;
  }

  .ast-actions,
  .ast-messenger-row,
  .ast-button-row {
    gap: 10px;
  }

  .ast-actions > *,
  .ast-button-row > * {
    width: 100%;
  }

  .ast-section {
    padding: 56px 0;
  }

  .ast-section h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .ast-proof,
  .ast-model-grid,
  .ast-process,
  .ast-detail-grid,
  .ast-video-grid,
  .ast-city-grid,
  .ast-offer-grid {
    grid-template-columns: 1fr !important;
  }

  .ast-card__media img,
  .ast-model__gallery img,
  .ast-hero__image {
    background: #101214;
  }

  .ast-sticky {
    left: 12px !important;
    right: 12px !important;
    bottom: calc(12px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    min-height: 56px;
    padding: 10px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 16px 34px rgba(15, 17, 20, 0.18);
  }

  .ast-sticky__row,
  .ast-sticky__buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .ast-site-root.has-sticky-offset .ast-form,
  .ast-site-root.has-sticky-offset .t-form,
  .ast-site-root.has-sticky-offset .ast-footer {
    scroll-margin-bottom: 96px;
  }

  .ast-site-root.ast-sticky-hidden .ast-sticky {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
  }

  .ast-backtop {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  .ast-footer a,
  .ast-phones a,
  .ast-contact-mini__item a,
  .ast-consent a,
  .ast-legalbox a,
  .ast-breadcrumbs a,
  .breadcrumbs a,
  .breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
/* AST mobile hotfix end */
