.catalog-page {
  background:
    linear-gradient(180deg, rgba(217, 247, 250, 0.3) 0%, rgba(246, 251, 252, 0) 32rem),
    var(--bg);
}

.catalog-hero {
  padding: 5.5rem 0 4rem;
}

.catalog-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 4rem;
  align-items: end;
}

.catalog-hero h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.15rem, 6vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.catalog-hero-copy > p {
  max-width: 35rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.catalog-viewer-section {
  padding: 1rem 0 5.5rem;
  scroll-margin-top: 5.5rem;
}

.catalog-viewer-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.catalog-viewer-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.catalog-viewer-heading > p {
  max-width: 30rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

.catalog-frame-shell {
  height: min(80vh, 960px);
  min-height: 680px;
  padding: 0.8rem;
  border: 1px solid rgba(12, 43, 85, 0.12);
  border-radius: 28px;
  background: #0b2f5f;
  box-shadow: 0 28px 75px rgba(9, 44, 86, 0.18);
}

.catalog-frame-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 19px;
  background: #fff;
}

.catalog-fallback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0.25rem 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.catalog-fallback p {
  margin: 0;
}

.catalog-fallback a {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (max-width: 980px) {
  .catalog-hero {
    padding: 3.75rem 0;
  }

  .catalog-hero-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .catalog-hero h1 {
    max-width: 15ch;
  }
}

@media (max-width: 640px) {
  .catalog-hero {
    padding: 2.75rem 0;
  }

  .catalog-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.35rem);
    line-height: 0.96;
  }

  .catalog-hero-copy > p {
    font-size: 0.86rem;
    line-height: 1.62;
  }

  .catalog-actions {
    display: grid;
  }

  .catalog-viewer-section {
    padding: 0 0 3rem;
  }

  .catalog-viewer-heading,
  .catalog-fallback {
    align-items: start;
    flex-direction: column;
  }

  .catalog-viewer-heading {
    gap: 0.85rem;
  }

  .catalog-frame-shell {
    height: 72vh;
    min-height: 520px;
    padding: 0.45rem;
    border-radius: 20px;
  }

  .catalog-frame-shell iframe {
    border-radius: 15px;
  }

  .catalog-fallback {
    gap: 0.5rem;
  }
}

@media (max-width: 360px) {
  .catalog-hero {
    padding-top: 2.25rem;
  }

  .catalog-hero h1 {
    font-size: 2.25rem;
  }

  .catalog-frame-shell {
    min-height: 480px;
  }
}
