/**
 * MOVA PART — site-wide mobile / responsive polish
 */

:root {
  --gutter-sm: 16px;
  --gutter-xs: 12px;
}

/* Prevent horizontal scroll from fixed-width children */
html {
  -webkit-text-size-adjust: 100%;
}

img,
video,
svg {
  max-width: 100%;
}

/* ---------- ≤992px: tablet & mobile nav ---------- */
@media (max-width: 992px) {
  .top-nav__inner {
    padding: 4px var(--gutter-sm);
    gap: 12px;
  }

  .top-nav__cluster {
    flex: 1;
    min-width: 0;
    gap: 0;
  }

  .nav-menu {
    margin: 0;
  }

  .footer__inner {
    padding: 32px var(--gutter-sm);
    gap: 32px;
  }

  .footer__brand {
    max-width: 100%;
    padding-bottom: 8px;
  }

  .logo--footer,
  .logo--footer img {
    width: 140px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
  }

  .footer__links {
    flex-direction: column;
    gap: 28px;
    width: 100%;
  }

  .footer__col {
    gap: 12px;
    width: 100%;
  }

  .footer__col ul {
    gap: 10px;
  }

  .footer__col--nav a {
    white-space: normal;
  }

  .contact-list li {
    white-space: normal;
    flex-wrap: wrap;
    align-items: flex-start;
    line-height: 1.4;
  }

  .footer__bottom {
    padding: 12px var(--gutter-sm);
  }

  .markets__inner {
    padding: 0 var(--gutter-sm);
  }

  .about__inner {
    gap: 40px;
  }

  .about__top {
    flex-direction: column;
    gap: 24px;
  }

  .about__intro {
    width: 100%;
  }

  .about__gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats {
    gap: 16px;
  }
}

/* ---------- ≤768px: phone layout ---------- */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  body.nav-open {
    overflow: hidden;
    touch-action: none;
  }

  /* Hero — fix oversized background crop */
  .hero__img {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
  }

  .hero__text {
    gap: 20px;
  }

  .hero.hero-swiper,
  .hero-swiper .swiper-slide,
  .hero__content {
    min-height: 360px;
  }

  /* Home products / search */
  .products__header {
    gap: 12px;
  }

  .search-bar {
    padding: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .search-bar__field {
    padding: 0 8px;
  }

  .search-bar__field input {
    padding: 10px 8px;
    font-size: 14px;
    min-width: 0;
  }

  .search-bar__btn {
    padding: 12px 16px;
    width: 100%;
  }

  .search-bar__btn span {
    font-size: 13px;
  }

  .category-card {
    min-height: 260px;
    padding: 16px;
  }

  .category-card__img {
    height: 130px;
    margin-bottom: 12px;
  }

  .category-card h3 {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 8px;
  }

  .category-card__head {
    min-height: auto;
  }

  .features__inner {
    gap: 20px 12px;
  }

  .feature-item__icon {
    width: 64px;
    height: 64px;
    padding: 6px;
  }

  .feature-item__icon img,
  .feature-item__icon .feature-item__icon-img--90,
  .feature-item__icon .feature-item__icon-img--70,
  .feature-item__icon .feature-item__icon-img--65,
  .feature-item__icon .feature-item__icon-img--60 {
    width: 36px;
    height: 36px;
  }

  .feature-item h4 {
    font-size: var(--type-body-sm);
    line-height: var(--leading-tight);
    padding-top: 6px;
  }

  .feature-item p {
    font-size: var(--type-caption);
    line-height: var(--leading-body);
  }

  .vehicle-card h3 {
    font-size: 16px;
    line-height: 22px;
  }

  .about__intro .btn-dark {
    font-size: 15px;
    padding: 10px 18px;
  }

  .about__shot {
    height: 160px;
  }

  .stat-item__icon,
  .stat-item img {
    width: 40px;
    height: 40px;
  }

  .brands-grid {
    gap: 10px;
  }

  .brand-logo {
    height: 64px;
  }

  /* Products listing */
  .products-main {
    padding: 16px var(--gutter-sm) 48px;
    gap: 20px;
  }

  .products-aside {
    width: 100%;
    gap: 16px;
  }

  .aside-categories__head h2 {
    font-size: 16px;
  }

  .aside-cat {
    font-size: 14px;
    padding: 12px 12px 12px 16px;
  }

  .products-toolbar__actions {
    gap: 8px;
  }

  .products-select,
  .products-filter {
    min-width: 0;
  }

  .breadcrumb {
    padding: 12px var(--gutter-sm) 0;
    font-size: 12px;
    line-height: 18px;
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  /* OE page */
  .oe-hero__inner,
  .oe-results__inner,
  .oe-how__inner,
  .oe-benefits__inner,
  .oe-final-cta__inner {
    padding-left: 0;
    padding-right: 0;
  }

  .oe-search-form__help {
    font-size: 12px;
  }

  .oe-no-results__card {
    gap: 24px;
    padding: 24px 16px;
  }

  /* Quote */
  .quote-form__row {
    gap: 12px;
  }

  .quote-form__field input,
  .quote-form__field select,
  .quote-form__field textarea {
    font-size: 16px; /* prevent iOS zoom on focus */
  }

  /* Resources */
  .resources-filters__pills {
    flex-wrap: wrap;
  }

  .resources-pill {
    font-size: 13px;
    padding: 8px 14px;
  }

  /* Article */
  .article-layout {
    padding: 32px var(--gutter-sm) 48px;
  }

  .article-sidebar {
    gap: 16px;
  }
}

/* ---------- ≤480px: small phones ---------- */
@media (max-width: 480px) {
  :root {
    --nav-h: 56px;
  }

  .top-nav__inner {
    padding: 4px var(--gutter-xs);
  }

  .logo--nav,
  .logo--nav img {
    width: 110px;
    height: 28px;
  }

  .top-nav__icons {
    gap: 6px;
  }

  .top-nav__icon-btn {
    width: 34px;
    height: 34px;
  }

  .top-nav__icon-btn .top-nav__icon-svg,
  .top-nav__icon-btn .top-nav__icon-img {
    width: 20px;
    height: 20px;
  }

  .top-nav__search-panel {
    padding: 8px 16px 12px;
  }

  .top-nav__search-panel input {
    height: 44px;
    font-size: 16px;
  }

  .top-nav__search-submit {
    width: 44px;
    height: 44px;
  }

  .nav-menu {
    padding: 8px var(--gutter-sm) 16px;
  }

  .nav-menu__link {
    font-size: 14px;
    padding: 12px 0;
  }

  .hero.hero-swiper,
  .hero-swiper .swiper-slide,
  .hero__content {
    min-height: 300px;
  }

  .hero__content {
    padding: 48px var(--gutter-sm) 64px;
  }

  .hero__text h1 {
    font-size: 26px;
    line-height: 32px;
  }

  .hero__subtitle {
    font-size: 15px;
    line-height: 22px;
  }

  .products {
    padding: 40px 0;
  }

  .products__inner {
    padding: 0 var(--gutter-xs);
    gap: 28px;
  }

  .products__title,
  .vehicles__inner > h2,
  .markets__col h2 {
    font-size: 22px;
    line-height: 28px;
  }

  .category-card {
    min-height: auto;
    padding: 14px;
  }

  .category-card__img {
    height: 110px;
  }

  .features,
  .vehicles,
  .about,
  .features {
    padding: 40px 0;
  }

  .features__inner {
    padding: 0 var(--gutter-sm);
  }

  .about__intro h2 {
    font-size: 26px;
    line-height: 30px;
  }

  .about__intro p {
    font-size: 15px;
    line-height: 22px;
  }

  .about__gallery {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .stat-item {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .stat-item__text strong {
    font-size: 28px;
  }

  .footer__inner {
    padding: 28px var(--gutter-xs);
    gap: 24px;
  }

  .socials {
    gap: 10px;
  }

  .socials__link {
    width: 28px;
    height: 28px;
  }

  .products-hero {
    height: 220px;
    min-height: 220px;
  }

  .contact-touch {
    bottom: 64px;
    right: 10px;
  }

  .contact-touch__list {
    gap: 10px;
  }

  .products-hero__content h1 {
    font-size: 24px;
    line-height: 28px;
  }

  .product-card__name {
    font-size: 14px;
  }

  .oe-hero {
    padding: 48px var(--gutter-sm);
  }

  .oe-search-card {
    padding: 16px;
  }

  .quote-process__steps {
    flex-direction: column;
    align-items: stretch;
  }

  .quote-step__arrow {
    display: none;
  }
}
