/* Global mobile & tablet responsive polish */

@supports (padding: max(0px)) {
  .container {
    padding-left: max(var(--page-padding), env(safe-area-inset-left));
    padding-right: max(var(--page-padding), env(safe-area-inset-right));
  }

  #footer-section .container {
    padding-left: max(var(--page-padding), env(safe-area-inset-left));
    padding-right: max(var(--page-padding), env(safe-area-inset-right));
  }

  .footer-bottom {
    padding-bottom: max(22px, env(safe-area-inset-bottom));
  }
}

@media (max-width: 1024px) {
  .section-label {
    font-size: 0.84rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
  }

  .section-title {
    font-size: clamp(1.75rem, 4.5vw, 2.35rem);
    line-height: 1.25;
  }

  .btn {
    min-height: 48px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

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

  .btn {
    padding: 14px 22px;
    font-size: 0.82rem;
    letter-spacing: 1px;
  }

  /* Inner page heroes */
  .about-hero-page-title,
  .svc-hero-page-title,
  .flt-hero-page-title,
  .prj-hero-page-title,
  .gal-hero-page-title,
  .cnt-hero-page-title,
  .sdv-hero-page-title,
  .pdt-hero-page-title {
    font-size: clamp(1.55rem, 6.5vw, 2.25rem);
    line-height: 1.15;
    word-break: break-word;
  }

  /* Inner page stat / meta bars */
  .sdv-stats-inner,
  .prj-stats-inner,
  .gal-stats-inner,
  .flt-stats-inner,
  .svc-stats-inner,
  .cnt-stats-inner,
  .pdt-meta-bar {
    padding: 22px 14px;
    border-radius: 12px;
  }

  .sdv-stat-item,
  .prj-stat-item,
  .gal-stat-item,
  .flt-stat-item,
  .svc-stat-item,
  .cnt-stat-item,
  .pdt-meta-item {
    padding: 14px 10px;
  }

  /* Horizontal card scrollers — keep swipe inside section */
  .sdv-cargo-scroll,
  .sdv-why-scroll,
  .pdt-highlights-scroll,
  .pdt-complexity-scroll {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .sdv-cargo-card,
  .sdv-why-card,
  .pdt-highlight-card,
  .pdt-complexity-card {
    scroll-snap-align: start;
  }

  /* Card grids — full width on small screens */
  .sdv-cargo-grid,
  .sdv-why-grid,
  .pdt-highlights-grid,
  .pdt-complexity-cards,
  .prj-types-grid,
  .svc-why-grid,
  .about-services-grid,
  .flt-categories-grid,
  .gal-grid,
  .cnt-cards-grid {
    gap: 14px;
  }

  .sdv-cargo-card,
  .sdv-why-card,
  .pdt-highlight-card,
  .prj-type-card,
  .svc-why-card,
  .flt-category-card,
  .gal-item {
    min-width: 0;
  }

  /* Slider controls — touch swipe only on mobile */
  .pdt-slider-btn,
  .prj-slider-btn {
    display: none;
  }

  .pdt-more-header,
  .prj-featured-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pdt-view-all-btn,
  .prj-view-all-btn {
    width: 100%;
    justify-content: center;
  }

  /* About */
  .about {
    padding: 88px 0 72px;
  }

  .about-text {
    font-size: var(--text-base);
    max-width: 100%;
  }

  .about-title {
    font-size: clamp(1.65rem, 6vw, 2.1rem);
  }

  .about-main-img {
    height: 260px;
  }

  .about .btn {
    width: 100%;
    justify-content: center;
  }

  /* Services — stacked cards handled in services.css */
  .fleet-title {
    font-size: clamp(1.65rem, 6vw, 2rem);
  }

  .fleet .btn {
    width: 100%;
    justify-content: center;
  }

  /* Why choose */
  .why-choose {
    padding: 64px 0 60px;
  }

  .why-header {
    margin-bottom: 32px;
  }

  .why-main-title {
    font-size: clamp(1rem, 4.5vw, 1.25rem);
    letter-spacing: 1.5px;
  }

  /* Network */
  .network {
    padding: 56px 0 60px;
  }

  .network-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .network-content {
    text-align: center;
  }

  .network-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .network .btn {
    width: 100%;
    justify-content: center;
  }

  /* Stats & customers */
  .stats-customers-bar {
    padding-bottom: 40px;
  }

  .customers-title {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    letter-spacing: 2px;
    margin-bottom: 32px;
  }

  .stats-customer-item {
    padding: 24px 16px;
  }

  .customers-track {
    gap: 20px;
  }

  /* CTA */
  .cta-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .cta-subtitle {
    font-size: 1rem;
    padding: 0 4px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .sdv-cargo-grid,
  .sdv-why-grid,
  .pdt-highlights-grid,
  .pdt-complexity-cards {
    grid-template-columns: 1fr;
  }

  .sdv-cargo-scroll,
  .sdv-why-scroll,
  .pdt-highlights-scroll,
  .pdt-complexity-scroll {
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .pdt-contact-grid {
    grid-template-columns: 1fr;
  }

  .top-bar {
    padding: 10px 0;
  }

  .top-bar-left {
    width: 100%;
    justify-content: space-between;
  }

  .top-bar-left .top-bar-item:nth-child(3) {
    display: none;
  }

  .about-main-img {
    height: 220px;
  }

  .about-thumb {
    height: 88px;
  }

  .fleet-slider,
  .fleet-track,
  .fleet-slide,
  .fleet-slide-img {
    min-height: 220px;
    height: 220px;
  }

  .region-card {
    padding: 18px 16px;
  }

  .stats-customers-inner {
    border-radius: 8px;
  }

  .stats-customer-icon img {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 15px;
  }

  .section-title {
    font-size: clamp(1.45rem, 7vw, 1.85rem);
  }

  /* Inner page section titles */
  .sdv-cargo-title,
  .sdv-why-title,
  .sdv-about-title,
  .sdv-process-title,
  .pdt-overview-title,
  .pdt-highlights-title,
  .pdt-complexity-title,
  .pdt-more-title,
  .prj-types-title,
  .prj-featured-title,
  .prj-process-title,
  .svc-offer-title,
  .flt-categories-title,
  .gal-main-title,
  .cnt-touch-title {
    font-size: clamp(1.4rem, 7vw, 1.85rem);
  }

  .pdt-meta-bar {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .pdt-meta-item {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .pdt-meta-item:last-child {
    border-bottom: none;
  }

  .pdt-meta-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .pdt-meta-text {
    min-width: 0;
  }

  .pdt-contact-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pdt-thumb-nav {
    width: 34px;
    height: 34px;
    font-size: 0.75rem;
  }

  .hero-stats {
    margin-top: -48px;
    margin-bottom: -40px;
  }

  .hero-stats .stat-number {
    font-size: 1.65rem;
  }

  .hero-stats .stat-label {
    font-size: 0.72rem;
    letter-spacing: 0.8px;
  }

  .network-map-img {
    max-width: 280px;
  }
}
