/* =========================================================
   Case pages
========================================================= */

.case-hero {
  padding: 110px 0;
  background:
    radial-gradient(circle at 88% 12%, rgba(102, 116, 91, 0.14), transparent 34%),
    linear-gradient(180deg, var(--sand), var(--cream));
}

.case-hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 70px;
}

.case-hero-content .lead {
  max-width: 640px;
  margin-top: 28px;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.case-hero-visual {
  padding: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(23, 32, 51, 0.12);
}

.case-overview {
  padding: 46px 0;
  background: var(--ink);
  color: var(--white);
}

.case-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.case-fact {
  padding: 22px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
}

.case-fact span {
  display: block;
  margin-bottom: 8px;
  color: #c8d6ba;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-fact strong {
  display: block;
  font-size: 17px;
  line-height: 1.35;
}

.case-content-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.case-result {
  padding: 110px 0;
  background: var(--white);
}

.case-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  position: relative;
  padding-left: 26px;
  color: #30394b;
  font-size: 18px;
}

.case-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 999px;
  transform: translateY(-50%);
}

.case-showcase {
  padding: 110px 0;
}

.case-large-device {
  max-width: 980px;
  margin-top: 54px;
}

.case-specs .price-card {
  min-height: 220px;
}

@media (max-width: 1000px) {
  .case-hero-grid,
  .case-facts,
  .case-content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .case-hero {
    padding: 80px 0;
  }

  .case-hero-grid,
  .case-facts,
  .case-content-grid {
    grid-template-columns: 1fr;
  }

  .case-actions .btn {
    width: 100%;
  }

  .case-overview {
    padding: 34px 0;
  }

  .case-result {
    padding: 80px 0;
  }
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.case-gallery-item {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.case-gallery-copy {
  padding: 22px 6px 4px;
}

.case-gallery-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #c8d6ba;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-gallery-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.45;
}

@media (max-width: 1000px) {
  .case-gallery {
    grid-template-columns: 1fr;
  }
}
.case-showcase-intro {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
  line-height: 1.55;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.case-gallery-item {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.case-gallery-image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: #f7f4ee;
  border: 0;
  cursor: zoom-in;
}

.case-gallery-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.case-gallery-image:hover img {
  transform: scale(1.025);
  filter: brightness(1.02);
}

.case-gallery-copy {
  padding: 24px;
}

.case-gallery-copy span {
  display: inline-flex;
  margin-bottom: 10px;
  color: #c8d6ba;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-gallery-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.45;
}

/* Lightbox */
.case-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(10, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.case-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.case-lightbox-figure {
  width: min(1180px, 92vw);
  margin: 0;
}

.case-lightbox-figure img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #f7f4ee;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.case-lightbox-figure figcaption {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  text-align: center;
  font-size: 16px;
}

.case-lightbox-close,
.case-lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.case-lightbox-close:hover,
.case-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.case-lightbox-close {
  top: 24px;
  right: 24px;
  font-size: 34px;
  line-height: 1;
}

.case-lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.case-lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.case-lightbox-prev:hover,
.case-lightbox-next:hover {
  transform: translateY(-50%) translateY(-1px);
}

@media (max-width: 1000px) {
  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery-image img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 700px) {
  .case-lightbox {
    padding: 18px;
  }

  .case-lightbox-figure {
    width: 100%;
  }

  .case-lightbox-close {
    top: 14px;
    right: 14px;
  }

  .case-lightbox-nav {
    bottom: 18px;
    top: auto;
  }

  .case-lightbox-prev {
    left: 18px;
    transform: none;
  }

  .case-lightbox-next {
    right: 18px;
    transform: none;
  }

  .case-lightbox-prev:hover,
  .case-lightbox-next:hover {
    transform: translateY(-1px);
  }
}
.case-result-section {
  padding: 110px 0;
  background: var(--white);
}

.case-result-section .case-section-intro {
  max-width: 760px;
  margin: 28px 0 0;
  color: #30394b;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.55;
}

.case-result-section .case-specs {
  margin-top: 52px;
}

.case-result-section .price-card {
  min-height: 230px;
}
.case-result-section--premium {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(102, 116, 91, 0.14), transparent 34%),
    linear-gradient(180deg, var(--white), var(--cream));
}

.case-result-section--premium::before {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  background: rgba(102, 116, 91, 0.11);
  border-radius: 999px;
  filter: blur(78px);
  pointer-events: none;
}

.case-result-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: end;
  gap: 72px;
}

.case-result-head .case-section-intro {
  max-width: 640px;
  margin: 0;
  color: #30394b;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.55;
}

.case-result-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 58px;
}

.case-result-main {
  min-height: 100%;
  padding: 42px;
  color: var(--white);
  background:
    radial-gradient(circle at 20% 0%, rgba(200, 214, 186, 0.16), transparent 44%),
    var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 34px;
  box-shadow: 0 28px 90px rgba(23, 32, 51, 0.18);
}

.case-result-label {
  display: inline-flex;
  margin-bottom: 28px;
  color: #c8d6ba;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-result-main h3 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.case-result-main p {
  max-width: 650px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.6;
}

.case-result-main .soft-link {
  margin-top: 30px;
  color: #c8d6ba;
}

.case-result-cards {
  display: grid;
  gap: 16px;
}

.case-result-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(23, 32, 51, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 54px rgba(23, 32, 51, 0.08);
}

.case-result-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.07em;
}

.case-result-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.case-result-card p {
  margin: 0;
  color: #30394b;
  font-size: 16px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .case-result-head,
  .case-result-panel {
    grid-template-columns: 1fr;
  }

  .case-result-head {
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .case-result-section--premium {
    padding: 82px 0;
  }

  .case-result-main,
  .case-result-card {
    padding: 24px;
    border-radius: 24px;
  }

  .case-result-main h3 {
    font-size: clamp(30px, 9vw, 42px);
  }
}
.case-hero {
  padding: 92px 0 105px;
}

.case-hero-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.case-hero-content {
  max-width: 680px;
}

.case-hero-content .section-title {
  font-size: clamp(44px, 5.4vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.case-hero-content .section-title em {
  font-size: 0.88em;
  line-height: 1;
}

.case-hero-content .lead {
  max-width: 620px;
  margin-top: 24px;
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.55;
}

.case-hero-visual {
  align-self: center;
}

@media (max-width: 1000px) {
  .case-hero {
    padding: 78px 0 88px;
  }

  .case-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .case-hero-content .section-title {
    font-size: clamp(42px, 9vw, 64px);
  }

  .case-hero-content .lead {
    font-size: 18px;
  }
}

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

  .case-hero-content .section-title {
    font-size: clamp(38px, 11vw, 48px);
    line-height: 1;
  }

  .case-hero-content .section-title em {
    font-size: 0.82em;
  }
}