:root {
  --catalog-green: #173d31;
  --catalog-green-deep: #0d2b23;
  --catalog-green-soft: #dce8dc;
  --catalog-cream: #f5f0e4;
  --catalog-paper: #fbfaf5;
  --catalog-gold: #c3a258;
  --catalog-ink: #152a23;
  --catalog-muted: #587066;
  --catalog-line: rgba(23, 61, 49, 0.17);
  --catalog-serif: "Cormorant Garamond", Georgia, serif;
  --catalog-sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.animals-document {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body.portal-home,
body.animals-page {
  margin: 0;
  color: var(--catalog-ink);
  background: var(--catalog-paper);
  font-family: var(--catalog-sans);
  -webkit-font-smoothing: antialiased;
}

body.portal-home {
  overflow-x: hidden;
}

body.animals-page {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

.portal-home a,
.animals-page a {
  color: inherit;
  text-decoration: none;
}

.portal-home button,
.animals-page button {
  font: inherit;
}

.portal-topbar {
  min-height: 82px;
  padding: 12px clamp(20px, 5.5vw, 88px);
  background: rgba(251, 250, 245, 0.94);
  border-bottom: 1px solid var(--catalog-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  z-index: 20;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--catalog-green);
}

.portal-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 7px 20px rgba(11, 43, 34, 0.16);
}

.portal-brand span {
  font-family: var(--catalog-serif);
  font-size: 22px;
  font-weight: 650;
  line-height: 0.88;
}

.portal-brand small {
  display: block;
  margin-top: 5px;
  color: #6d8279;
  font-family: var(--catalog-sans);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pdf-link,
.hero-cta,
.series-document {
  min-height: 44px;
  padding: 11px 16px;
  border: 1px solid rgba(23, 61, 49, 0.28);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--catalog-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.pdf-link:hover,
.pdf-link:focus-visible,
.hero-cta:hover,
.hero-cta:focus-visible,
.series-document:hover,
.series-document:focus-visible {
  color: #fff;
  background: var(--catalog-green);
  border-color: var(--catalog-green);
  outline: none;
  transform: translateY(-2px);
}

.pdf-link__badge {
  min-width: 31px;
  height: 23px;
  padding: 0 6px;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #b52d35;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.catalog-hero {
  min-height: min(780px, calc(100svh - 82px));
  background: var(--catalog-cream);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  overflow: hidden;
}

.catalog-hero__copy {
  padding: clamp(70px, 8vw, 132px) clamp(28px, 6vw, 102px);
  align-self: center;
  position: relative;
  z-index: 2;
}

.catalog-kicker,
.albums-kicker,
.animals-opening__kicker {
  margin: 0 0 22px;
  color: var(--catalog-gold);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-kicker::before,
.albums-kicker::before,
.animals-opening__kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.catalog-hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--catalog-green-deep);
  font-family: var(--catalog-serif);
  font-size: clamp(68px, 7.1vw, 118px);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.77;
}

.catalog-hero h1 em {
  color: var(--catalog-green);
  font-weight: 430;
}

.catalog-hero__lead {
  max-width: 540px;
  margin: 34px 0 0;
  color: var(--catalog-muted);
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.72;
}

.catalog-hero__lead strong {
  color: var(--catalog-green);
}

.catalog-hero__actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.portal-home a.hero-cta,
.portal-home a.hero-cta:visited {
  color: #fff;
  background: var(--catalog-green);
  border-color: var(--catalog-green);
  border-radius: 8px;
  padding-inline: 20px;
}

.portal-home a.hero-cta:hover,
.portal-home a.hero-cta:focus-visible {
  color: var(--catalog-green-deep);
  background: #dce7bd;
  border-color: #dce7bd;
}

.catalog-hero__art {
  min-height: 620px;
  background:
    radial-gradient(circle at 78% 22%, rgba(204, 177, 101, 0.22), transparent 26%),
    repeating-radial-gradient(circle at 100% 0, transparent 0 24px, rgba(219, 236, 204, 0.055) 25px 26px, transparent 27px 42px),
    linear-gradient(132deg, #0d2a22, #1d5141 58%, #102f27);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.catalog-hero__art::before {
  content: "";
  width: 76%;
  aspect-ratio: 1;
  border: 1px solid rgba(228, 208, 153, 0.2);
  border-radius: 50%;
  position: absolute;
  top: -30%;
  right: -24%;
  box-shadow: 0 0 0 42px rgba(228, 208, 153, 0.035), 0 0 0 84px rgba(228, 208, 153, 0.022);
}

.hero-note,
.album-card__note,
.animals-opening__note {
  margin: 0;
  position: absolute;
  z-index: 2;
}

.hero-note img,
.album-card__note img,
.animals-opening__note img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.hero-note--one {
  width: min(720px, 83%);
  top: 8%;
  left: 7%;
  transform: rotate(-7deg);
}

.hero-note--two {
  width: min(690px, 78%);
  top: 34%;
  right: -4%;
  transform: rotate(7deg);
}

.hero-note--three {
  width: min(650px, 72%);
  bottom: 3%;
  left: 3%;
  transform: rotate(-3deg);
}

.catalog-hero__stamp {
  padding: 11px 15px;
  color: #e9dfbc;
  background: rgba(7, 29, 23, 0.8);
  border: 1px solid rgba(228, 208, 153, 0.28);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  position: absolute;
  right: 26px;
  bottom: 24px;
  z-index: 5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.catalog-hero__stamp::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--catalog-gold);
  transform: rotate(45deg);
}

.albums-section {
  padding: clamp(78px, 8vw, 126px) clamp(20px, 6vw, 96px) clamp(92px, 10vw, 155px);
  background:
    radial-gradient(circle at 4% 100%, rgba(34, 92, 66, 0.08), transparent 27%),
    var(--catalog-paper);
}

.albums-heading {
  max-width: 1320px;
  margin: 0 auto clamp(38px, 5vw, 70px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.albums-heading h2 {
  max-width: 760px;
  margin: 0;
  color: var(--catalog-green-deep);
  font-family: var(--catalog-serif);
  font-size: clamp(52px, 6vw, 88px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.86;
}

.albums-heading > p {
  max-width: 350px;
  margin: 0;
  color: var(--catalog-muted);
  font-size: 14px;
  line-height: 1.68;
}

.albums-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
}

.album-card {
  min-width: 0;
  border: 1px solid var(--catalog-line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 260ms ease;
  box-shadow: 0 20px 55px rgba(18, 54, 43, 0.09);
}

.album-card:hover,
.album-card:focus-visible {
  outline: none;
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(18, 54, 43, 0.17);
}

.album-card__visual {
  min-height: clamp(330px, 35vw, 510px);
  position: relative;
  overflow: hidden;
}

.album-card--legends .album-card__visual {
  background:
    repeating-radial-gradient(circle at 100% 0, transparent 0 17px, rgba(119, 89, 40, 0.1) 18px 19px, transparent 20px 32px),
    linear-gradient(135deg, #e9dfc3, #cdbd8d);
}

.album-card--animals .album-card__visual {
  background:
    repeating-radial-gradient(circle at 0 100%, transparent 0 18px, rgba(231, 241, 211, 0.085) 19px 20px, transparent 21px 34px),
    linear-gradient(135deg, #12382e, #2c644c);
}

.album-card__note--one {
  width: 80%;
  top: 8%;
  left: 5%;
  transform: rotate(-6deg);
}

.album-card__note--two {
  width: 78%;
  top: 31%;
  right: -3%;
  transform: rotate(5deg);
}

.album-card__note--three {
  width: 73%;
  left: 10%;
  bottom: 0;
  transform: rotate(-2deg);
}

.album-card:hover .album-card__note--one {
  transform: translateY(-4px) rotate(-5deg);
}

.album-card:hover .album-card__note--two {
  transform: translateY(-8px) rotate(4deg);
}

.album-card:hover .album-card__note--three {
  transform: translateY(-6px) rotate(-1deg);
}

.album-card__note {
  transition: transform 350ms cubic-bezier(0.23, 1, 0.32, 1);
}

.album-card__content {
  min-height: 205px;
  padding: clamp(26px, 3vw, 42px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
}

.album-card__series {
  margin: 0 0 8px;
  color: var(--catalog-gold);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.album-card h3 {
  max-width: 520px;
  margin: 0;
  color: var(--catalog-green-deep);
  font-family: var(--catalog-serif);
  font-size: clamp(38px, 4vw, 57px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.album-card__meta {
  margin: 13px 0 0;
  color: var(--catalog-muted);
  font-size: 12px;
  line-height: 1.5;
}

.album-card__arrow {
  width: 51px;
  height: 51px;
  border: 1px solid rgba(23, 61, 49, 0.32);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--catalog-green);
  font-size: 22px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.album-card:hover .album-card__arrow,
.album-card:focus-visible .album-card__arrow {
  color: #fff;
  background: var(--catalog-green);
  transform: translateX(4px);
}

.portal-footer {
  min-height: 86px;
  padding: 24px clamp(20px, 6vw, 96px);
  color: #b8c9c0;
  background: var(--catalog-green-deep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.portal-footer strong {
  color: #f2ead5;
  font-family: var(--catalog-serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Album: Zwierzęta Polskich Parków Narodowych */
.animals-page {
  --green: var(--catalog-green);
  --green-2: var(--catalog-green-deep);
  --lime: #d8e6b4;
  --gold: var(--catalog-gold);
  --cream: var(--catalog-cream);
  --white: #fff;
  --ink: var(--catalog-ink);
  --line: var(--catalog-line);
  --serif: var(--catalog-serif);
  --title: var(--catalog-serif);
}

.animals-page .nominal-dock {
  margin-bottom: 0;
}

.animals-opening {
  min-height: 620px;
  color: #f8f3e6;
  background:
    radial-gradient(circle at 12% 92%, rgba(197, 164, 90, 0.2), transparent 30%),
    repeating-radial-gradient(circle at 100% 0, transparent 0 22px, rgba(224, 238, 202, 0.05) 23px 24px, transparent 25px 39px),
    linear-gradient(126deg, #0e2c24, #1c4d3d 55%, #315e47);
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
}

.animals-opening__copy {
  padding: clamp(70px, 7vw, 112px) clamp(25px, 6vw, 90px);
  align-self: center;
  position: relative;
  z-index: 3;
}

.animals-opening__kicker {
  color: #d5bd7a;
}

.animals-opening h1 {
  max-width: 660px;
  margin: 0;
  color: #f8f3e6;
  font-family: var(--catalog-serif);
  font-size: clamp(52px, 6.2vw, 94px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 0.86;
  text-wrap: balance;
}

.animals-opening__lead {
  max-width: 500px;
  margin: 28px 0 0;
  color: #cfddd4;
  font-size: 15px;
  line-height: 1.7;
}

.animals-opening__stats {
  margin: 26px 0 0;
  color: #d7bf7a;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.animals-opening__stats i {
  width: 32px;
  height: 1px;
  background: currentColor;
}

.series-document {
  margin-top: 25px;
  color: #f8f3e6;
  border-color: rgba(234, 218, 174, 0.4);
  border-radius: 8px;
}

.animals-opening__art {
  min-height: 620px;
  position: relative;
  overflow: hidden;
}

.animals-opening__art::before {
  content: "";
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(226, 208, 154, 0.18);
  border-radius: 50%;
  position: absolute;
  top: -34%;
  right: -16%;
  box-shadow: 0 0 0 42px rgba(226, 208, 154, 0.035), 0 0 0 84px rgba(226, 208, 154, 0.02);
}

.animals-opening__note--one {
  width: 78%;
  top: 8%;
  left: 4%;
  transform: rotate(-6deg);
}

.animals-opening__note--two {
  width: 76%;
  top: 35%;
  right: -3%;
  transform: rotate(7deg);
}

.animals-opening__note--three {
  width: 69%;
  bottom: 2%;
  left: 3%;
  transform: rotate(-2deg);
}

.animals-page .gallery-entry:first-child {
  border-top: 1px solid rgba(23, 61, 49, 0.08);
}

.animals-page .gallery-entry__info {
  max-width: 470px;
}

.animals-page .entry-description {
  max-width: 450px;
}

.banknote-button {
  width: 100%;
  padding: 0;
  border: 0;
  display: block;
  background: transparent;
  cursor: zoom-in;
}

.banknote-button:focus-visible {
  outline: 3px solid var(--catalog-gold);
  outline-offset: 5px;
}

.animals-page .gallery-entry__bills img {
  aspect-ratio: 2 / 1;
  object-fit: contain;
}

.animals-page .lightbox[hidden] {
  display: none !important;
}

.animals-page .lightbox__close,
.animals-page .lightbox__nav {
  cursor: pointer;
}

.animals-page .lightbox__close {
  font-size: 28px;
  line-height: 1;
}

.animals-page .lightbox__nav {
  font-size: 25px;
  line-height: 1;
}

.animals-page .lightbox__stage > img {
  aspect-ratio: 2 / 1;
}

.animals-page .lightbox__footer button {
  cursor: pointer;
}

.animals-page .site-footer--album {
  border-top: 1px solid rgba(197, 164, 90, 0.28);
}

.animals-page .footer-brand img {
  border-radius: 10px;
}

@media (max-width: 980px) {
  .catalog-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .catalog-hero__copy {
    padding-bottom: 64px;
  }

  .catalog-hero__art {
    min-height: 590px;
  }

  .albums-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .albums-grid {
    grid-template-columns: 1fr;
  }

  .album-card__visual {
    min-height: min(62vw, 520px);
  }

  .animals-opening {
    grid-template-columns: 1fr;
  }

  .animals-opening__copy {
    padding-bottom: 46px;
  }

  .animals-opening__art {
    min-height: 560px;
  }
}

@media (max-width: 640px) {
  .portal-topbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .portal-brand {
    gap: 9px;
  }

  .portal-brand img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }

  .portal-brand span {
    font-size: 18px;
  }

  .portal-brand small {
    font-size: 6px;
  }

  .portal-topbar > .pdf-link {
    width: 43px;
    min-height: 43px;
    padding: 0;
  }

  .portal-topbar > .pdf-link > span:last-child {
    display: none;
  }

  .catalog-hero__copy {
    padding: 62px 22px 50px;
  }

  .catalog-hero h1 {
    font-size: clamp(61px, 20vw, 82px);
  }

  .catalog-hero__lead {
    margin-top: 25px;
    font-size: 14px;
  }

  .catalog-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-hero__actions a {
    width: 100%;
  }

  .catalog-hero__art {
    min-height: 390px;
  }

  .hero-note--one {
    width: 89%;
    top: 8%;
    left: 1%;
  }

  .hero-note--two {
    width: 86%;
    top: 36%;
  }

  .hero-note--three {
    width: 80%;
  }

  .catalog-hero__stamp {
    right: 13px;
    bottom: 12px;
    font-size: 7px;
  }

  .albums-section {
    padding: 65px 14px 82px;
  }

  .albums-heading h2 {
    font-size: 52px;
  }

  .album-card__visual {
    min-height: 305px;
  }

  .album-card__content {
    min-height: 190px;
    padding: 27px 23px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .album-card h3 {
    font-size: 41px;
  }

  .album-card__arrow {
    width: 44px;
    height: 44px;
  }

  .portal-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .animals-opening {
    min-height: 0;
  }

  .animals-opening__copy {
    padding: 62px 22px 42px;
  }

  .animals-opening h1 {
    font-size: clamp(46px, 15vw, 64px);
  }

  .animals-opening__lead {
    font-size: 14px;
  }

  .animals-opening__art {
    min-height: 400px;
  }

  .animals-opening__note--one {
    width: 90%;
    left: 1%;
  }

  .animals-opening__note--two {
    width: 87%;
  }

  .animals-opening__note--three {
    width: 79%;
  }

  .animals-page .gallery-entry__bills {
    gap: 38px;
  }

  .animals-page .lightbox__footer strong {
    font-size: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
