/* Финальная мобильная настройка главной страницы. Загружается последней. */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 48px;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .achievements,
  .products,
  .about,
  .advantages {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  .achievement-item,
  .achievement-item:first-child {
    min-height: 0;
    padding: 22px 20px;
  }

  .achievement-icon {
    margin-bottom: 18px;
  }

  .achievement-title {
    margin-bottom: 10px !important;
  }

  .achievement-description {
    margin-top: 14px;
  }

  .products .product-categories {
    margin-bottom: 30px;
    padding-bottom: 4px;
    scroll-padding-left: 20px;
    overscroll-behavior-x: contain;
  }

  .products .category-btn,
  .products .arrow-btn {
    min-height: 44px;
  }

  .products .product-image-container,
  .products .product-card__image-link {
    height: 210px;
    flex-basis: 210px;
  }

  .products .product-info {
    min-height: 0;
    padding: 22px;
  }

  .products .product-description {
    margin-bottom: 20px;
    -webkit-line-clamp: 3;
  }

  .about-content,
  .about-text,
  .about-text p {
    text-align: left;
  }

  .about-content-row {
    align-items: stretch;
    gap: 34px;
  }

  .about-text {
    width: 100%;
    min-width: 0;
    flex: none;
  }

  .about-text p {
    line-height: 1.65 !important;
  }

  .about-certificate {
    width: 100%;
    height: auto;
    flex: none;
  }

  .certificate {
    width: min(290px, 100%);
    height: auto !important;
    aspect-ratio: 1459 / 2007;
  }

  .advantages .section-title {
    margin-bottom: 32px !important;
  }

  .advantage-item,
  .advantage-item:first-child {
    padding: 24px 20px;
  }

  .consultation-banner {
    padding: 44px 16px 52px;
  }

  .consultation-banner__inner {
    padding: 30px 22px;
    gap: 24px;
  }

  .consultation-banner h2 {
    font-size: 28px;
    line-height: 1.2;
  }

  .consultation-banner__actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .carousel-caption.custom-caption {
    width: calc(100% - 32px);
  }

  .hero-title {
    font-size: 32px !important;
  }

  .hero-proof {
    margin-top: 24px;
  }

  .hero-proof span {
    padding-right: 8px;
    padding-left: 8px;
  }

  .products .product-card-actions {
    align-items: center;
    gap: 12px;
  }
}
