.case-blue {
  color: var(--color-primary);
  font-weight: 900;
}

.case-hero {
  position: relative;
  height: 1264px;
  margin-top: -103px;
  padding-top: 103px;
}

.case-hero::before {
  content: '';
  position: absolute;
  left: var(--glow-bleed);
  right: var(--glow-bleed);
  top: 0;
  height: 1404px;
  z-index: -1;
  background: url('../../img/glows/cases-hero.svg') no-repeat 0 0 / 1920px 1404px;
}

.case-hero-title {
  position: absolute;
  left: 589px;
  top: 226px;
  width: 742px;
  text-align: center;
  font-size: 48px;
  font-weight: 600;
  line-height: 65px;
  color: var(--color-foreground);
}

.case-hero-body {
  position: absolute;
  left: 488px;
  top: 382px;
  width: 939px;
  text-align: center;
  font-size: 16px;
  line-height: 25px;
  color: var(--color-foreground);
}

.case-filters {
  position: absolute;
  left: 359px;
  top: 525px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 22px;
}

.case-filters-label {
  width: 97px;
  margin-right: 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
  color: var(--color-foreground);
}

.case-filter-province {
  width: 153px;
}

.case-filter-city,
.case-filter-webshop,
.case-filter-company {
  width: 175px;
}

.case-empty {
  position: absolute;
  left: 359px;
  top: 618px;
  font-size: 16px;
  line-height: 25px;
  color: var(--color-muted);
}

.case-list {
  position: absolute;
  left: 359px;
  top: 618px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 1200px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-card {
  position: relative;
  width: 590px;
  height: 491px;
  background: var(--color-background);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.case-card-photo {
  position: absolute;
  left: 0;
  top: 0;
  width: 590px;
  height: 378px;
  background: var(--color-background);
}

.case-card-title {
  position: absolute;
  left: 20px;
  top: 395px;
  font-size: 24px;
  font-weight: 900;
  line-height: 30px;
  color: var(--color-primary);
}

.case-card-channels {
  position: absolute;
  left: 20px;
  top: 439px;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-card-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 33px;
  height: 33px;
  border-radius: var(--radius-full);
  background: var(--color-primary-dark);
}

.case-card-channel-icon-register {
  width: 15px;
  height: 15px;
}

.case-card-channel-icon-store {
  width: 17px;
  height: 17px;
}

.case-card-channel-icon-cart {
  width: 15px;
  height: 15px;
}

.case-card-link {
  position: absolute;
  left: 396px;
  top: 399px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--color-logo-grey);
  transition: color 0.2s var(--ease-soft);
}

.case-card-link:hover {
  color: var(--color-primary);
}

.case-card-link-icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 1439px) {
  .case-hero {
    height: auto;
    margin-top: 0;
    padding: 96px var(--page-gutter);
  }

  .case-hero::before {
    bottom: 0;
    height: auto;
    background:
      radial-gradient(ellipse 60% 55% at 90% 10%, #cfe7f7 0%, rgba(207, 231, 247, 0) 70%),
      radial-gradient(ellipse 50% 40% at 5% 55%, #dcedf9 0%, rgba(220, 237, 249, 0) 70%),
      #f6fafd;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 160px), transparent 100%);
  }

  .case-hero-title,
  .case-hero-body,
  .case-filters,
  .case-empty,
  .case-list {
    position: static;
    left: auto;
    top: auto;
    width: 100%;
    max-width: var(--page-max);
    margin: 0 auto;
  }

  .case-hero-title {
    font-size: 44px;
    line-height: 1.25;
  }

  .case-hero-body {
    max-width: 940px;
    margin-top: 24px;
  }

  .case-filters {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 40px;
  }

  .case-filters-label {
    width: auto;
    margin-right: 0;
  }

  .case-filter-province,
  .case-filter-city,
  .case-filter-webshop,
  .case-filter-company {
    width: auto;
    min-width: 150px;
  }

  .case-list {
    margin-top: 40px;
  }

  .case-card {
    display: flex;
    flex-direction: column;
    flex: 1 1 320px;
    width: auto;
    height: auto;
    padding-bottom: 20px;
  }

  .case-card-photo,
  .case-card-title,
  .case-card-channels,
  .case-card-link {
    position: static;
    left: auto;
    top: auto;
  }

  .case-card-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 590 / 378;
  }

  .case-card-title {
    margin: 18px 20px 0;
  }

  .case-card-channels {
    margin: 12px 20px 0;
  }

  .case-card-link {
    margin: 14px 20px 0;
  }
}

@media (max-width: 1023px) {
  .case-hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .case-hero-title {
    font-size: 36px;
  }

  .case-filters-label {
    font-size: 20px;
    line-height: 1.3;
  }

  .case-card-title {
    font-size: 20px;
    line-height: 1.3;
  }
}

@media (max-width: 640px) {
  .case-hero {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .case-hero-title {
    font-size: 28px;
  }

  .case-filters {
    gap: 10px;
  }

  .case-filters-label {
    flex: 1 1 100%;
    font-size: 18px;
  }

  .case-filter-province,
  .case-filter-city,
  .case-filter-webshop,
  .case-filter-company {
    flex: 1 1 140px;
    min-width: 0;
  }

  .case-list {
    gap: 16px;
  }

  .case-card {
    flex: 1 1 100%;
  }

  .case-card-title {
    font-size: 18px;
  }

  .case-card-link {
    font-size: 15px;
  }

  .case-card-link-icon {
    width: 20px;
    height: 20px;
  }
}
