/* UX audit fixes, 2026-07-27 */
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 40px;
  padding-top: 24px;
}

.footer-legal__link {
  color: rgba(255, 255, 255, .78);
  font-size: 14px;
  text-decoration: none;
}

.footer-legal__link:hover,
.footer-legal__link:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.portfolio-grid .row {
  justify-content: center;
}

.row:has(> .portfolio-grid__item) {
  justify-content: center;
}

.portfolio-grid__item {
  display: flex;
}

.portfolio-card {
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .08);
  transition: box-shadow .2s ease, transform .2s ease;
  width: 100%;
}

.portfolio-card:hover,
.portfolio-card:focus-visible {
  box-shadow: 0 14px 42px rgba(0, 0, 0, .14);
  transform: translateY(-3px);
}

.portfolio-card .card-body {
  text-align: center;
}

.portfolio-card .card-img-top {
  aspect-ratio: 4 / 3;
  height: auto !important;
  object-fit: cover;
}

.portfolio-detail-media:has(img[src=""]) {
  display: none;
}

.portfolio-detail-row:has(.portfolio-detail-media img[src=""]) > .portfolio-detail-copy {
  width: 100%;
}

img[src=""] {
  display: none !important;
}

.col-12:has(> .ratio > img[src=""]) {
  display: none;
}

.row:has(> .col-12 > .ratio > img[src=""]) > .col-12:not(:has(> .ratio > img[src=""])) {
  width: 100%;
}

.slider-text-feedbacks .swiper-wrapper {
  align-items: stretch;
}

.slider-text-feedbacks .swiper-slide {
  height: auto;
}

.slider-text-feedbacks .card-text-feedback {
  height: 100%;
}

@media (max-width: 575.98px) {
  .header .row {
    --bs-gutter-x: 1rem;
    align-items: center;
  }

  .header .hstack {
    gap: .75rem !important;
  }

  .header-phone {
    align-items: center;
    display: inline-flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
  }

  .header-phone::after {
    inset: 0;
  }

  .header .link-logo img {
    height: auto;
    max-width: 104px;
  }

  .page-head__title {
    font-size: clamp(2rem, 10vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }

  .page-head__text {
    font-size: 1rem !important;
    margin-top: 1.75rem;
  }

  .slider-reviews,
  .slider-text-feedbacks {
    padding-left: 12px;
    padding-right: 12px;
  }

  .slider-reviews .swiper-slide,
  .slider-text-feedbacks .swiper-slide {
    max-width: calc(100vw - 48px);
  }

  .slider-text-feedbacks .card-text-feedback {
    min-height: 100%;
  }

  .footer-legal {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
}
