.case-page {
  --case-accent: #333;
  --case-soft: #f4f4f4;
}

.case-page section {
  margin-top: 0;
}

.case-page .header-desktop {
  width: 100%;
  height: auto;
  box-sizing: border-box;
  opacity: 1;
}

.case-page .nav-container {
  width: 100%;
  opacity: 1;
}

.case-page .social-container--button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 48px;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.case-page.case-topline {
  --case-accent: #92c51f;
  --case-soft: #f4f7e9;
}

.case-page.case-lavash {
  --case-accent: #f4bd00;
  --case-soft: #fff7dc;
}

.case-page.case-om1 {
  --case-accent: #18aa24;
  --case-soft: #edf8ee;
}

.case-page.case-sport {
  --case-accent: #a91937;
  --case-soft: #faeef1;
}

.case-hero {
  padding: 144px 0 72px;
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  color: var(--gray);
  font-size: 18px;
  text-decoration: none;
}

.case-back:hover {
  color: var(--black_main);
}

.case-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: end;
  gap: 80px;
}

.case-kicker {
  display: block;
  margin-bottom: 20px;
  color: var(--case-accent);
  font-size: 23px;
}

.case-title {
  max-width: 950px;
  margin: 0;
  font-family: 'helios';
  font-size: clamp(58px, 7.2vw, 112px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.035em;
}

.case-intro {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.4;
}

.case-live-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  color: var(--black_main);
  font-size: 18px;
}

.case-cover {
  margin-top: 72px;
}

.case-cover img,
.case-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 40px;
}

.case-summary {
  padding: 176px 0 72px;
}

.case-summary-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 760px);
  justify-content: space-between;
  gap: 80px;
}

.case-section-label {
  margin: 7px 0 0;
  color: var(--gray);
  font-size: 23px;
  font-weight: 400;
}

.case-copy,
.case-copy p {
  font-size: 27px;
  line-height: 1.42;
}

.case-copy p {
  margin: 0 0 28px;
}

.case-copy p:last-child {
  margin-bottom: 0;
}

.case-details {
  padding: 88px 0;
}

.case-details-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.case-detail {
  min-height: 260px;
  padding: 36px;
  border-radius: 40px;
  background: var(--case-soft);
}

.case-detail h2 {
  margin: 0 0 28px;
  font-family: 'helios';
  font-size: 35px;
  font-weight: 400;
}

.case-detail p,
.case-detail li {
  font-size: 18px;
  line-height: 1.45;
}

.case-detail ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.case-detail li::before {
  content: '— ';
  color: var(--case-accent);
}

.case-gallery {
  display: grid;
  gap: 32px;
  padding: 88px 0 160px;
}

.case-gallery figure {
  margin: 0;
}

.case-next {
  margin-bottom: 160px;
  padding: 64px;
  border-radius: 40px;
  background: var(--silver);
}

.case-next p {
  margin: 0 0 20px;
  color: var(--gray);
  font-size: 18px;
}

.case-next a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  color: var(--black_main);
  font-family: 'helios';
  font-size: clamp(42px, 6vw, 82px);
  line-height: 1;
  text-decoration: none;
}

.case-next a span:last-child {
  transition: transform .3s ease;
}

.case-next a:hover span:last-child {
  transform: rotate(45deg);
}

@media (max-width: 992px) {
  .case-hero {
    padding-top: 96px;
  }

  .case-heading {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .case-intro {
    max-width: 680px;
  }

  .case-summary {
    padding-top: 112px;
  }

  .case-summary-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .case-details-grid {
    grid-template-columns: 1fr;
  }

  .case-detail {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .case-hero {
    padding: 72px 0 36px;
  }

  .case-back {
    margin-bottom: 40px;
    font-size: 16px;
  }

  .case-kicker {
    font-size: 18px;
  }

  .case-title {
    font-size: 50px;
  }

  .case-intro,
  .case-copy,
  .case-copy p {
    font-size: 20px;
  }

  .case-cover {
    margin-top: 44px;
  }

  .case-cover img,
  .case-gallery img {
    border-radius: 16px;
  }

  .case-summary {
    padding: 80px 0 24px;
  }

  .case-details {
    padding: 56px 0;
  }

  .case-detail {
    padding: 28px;
    border-radius: 24px;
  }

  .case-gallery {
    gap: 16px;
    padding: 56px 0 96px;
  }

  .case-next {
    margin-bottom: 96px;
    padding: 32px 28px;
    border-radius: 24px;
  }
}
