@import url("case-fonts.css");
@import url("touch-controls.css");

#cases { font-family: Winston, Arial, sans-serif; background: #262729; }
#cases .cases-head { align-items: center; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 56px); }
#cases h2 { margin: 0; font-weight: 900; }
#cases .filters { margin: 0; }
@media (min-width: 1500px) {
  #cases .wrap { max-width: 1660px; width: 77.6%; }
  #catalog, #cases .cases-head { min-width: 0; max-width: 1312px; }
  #cases .cases-head { justify-content: flex-start; column-gap: 6vw; }
  #catalog { gap: 46px 41px; }
}

#cases { scroll-margin-top: 78px; }
#catalog { align-items: stretch; }
.project {
  position: relative;
  container-type: inline-size;
}
.project a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  /* В макете радиус плитки 25 px при ширине 410 px. */
  border-radius: 6.09756cqw;
}
.project a:focus-visible { outline: 3px solid var(--pink); outline-offset: -4px; }
.project img { display: block; width: 100%; height: auto; aspect-ratio: 410 / 230; object-fit: cover; }
.caption { flex: 1; background: #333538; padding: 21px 24px 28px; }
.caption p { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #ff9cb2; font-size: 13px; font-weight: 700; letter-spacing: .06em; margin-bottom: 12px; }
.caption h3 { font-size: clamp(20px, 1.67vw, 32px); line-height: 1; }
.case-arrow { font-size: 1.15rem; line-height: 1; font-weight: 500; }
.project a:hover h3 { text-decoration: underline; text-underline-offset: .15em; }
.catalog-more { margin: 24px auto 0; display: flex; }
[hidden] { display: none !important; }

@media (min-width: 1101px) {
  #cases { padding-top: clamp(56px, 5.3vw, 102px); }
  #catalog .project { min-height: min(21.36vw, 410px); }
  .caption { padding: clamp(20px, 2vw, 38px) 24px 24px; }
  .caption p { font-size: clamp(14px, 1.04vw, 20px); }
}
