/* Stránky „Merch / pro firmy“ (id-1069) a „Exkluzivní funkční materiály“ (id-1039) */

/* Skrytý nadpis stránky a obsah přes celou šířku */
body.id-1069 .pageArticleDetail > header,
body.id-1039 .pageArticleDetail > header {
  display: none;
}
body.id-1069 #content-wrapper,
body.id-1039 #content-wrapper {
  max-width: none;
}
body.id-1069 .pageArticleDetail,
body.id-1039 .pageArticleDetail {
  width: 100%;
  max-width: none;
}

/* Obsah stránky Merch / pro firmy (.sg-page) */
.sg-page {

  --sg-black: #1e1e1c;
  --sg-light: #f5f2f6;
  --sg-line: #ded8e1;
  --sg-accent: #1e1e1c;
  --sg-link: #3531ff;

  --sg-fs-heading: clamp(30px, 3.4vw, 48px);
  --sg-fs-text: 17px;

  --sg-gap: clamp(36px, 6vw, 100px);
  --sg-pad: clamp(28px, 5vw, 72px);
  --sg-section: clamp(64px, 8vw, 120px);

  color: var(--sg-black);

  font-size: var(--sg-fs-text);
  line-height: 1.65;
}
.sg-page,
.sg-page * {
  box-sizing: border-box;
}

.sg-page h2 {
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  color: var(--sg-black);

  font-size: var(--sg-fs-heading);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: none;
}
.sg-page p {
  margin: 0 0 1em;
}
.sg-page p:last-child {
  margin-bottom: 0;
}
.sg-page strong {
  font-weight: 700;
}
.sg-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(32px, 4.5vw, 64px);
  margin-bottom: var(--sg-section);
}
.sg-intro__text img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 450ms ease;
}
.sg-projects-title {
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sg-projects-title h2 {
  margin-bottom: 0;
}
.sg-intro h2::after,
.sg-case__head h2::after,
.sg-projects-title h2::after,
.sg-production h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 20px;
  background: var(--sg-accent);
}
.sg-case {
  padding: var(--sg-section) 0;
  border-top: 1px solid var(--sg-line);
}
.sg-case__head {
  display: grid;
  grid-template-columns: minmax(230px, 0.34fr) minmax(0, 0.66fr);
  gap: var(--sg-gap);
  margin-bottom: clamp(32px, 4.5vw, 60px);
}
.sg-case__head h2 {
  margin-bottom: 0;
}
.sg-case__text {
  max-width: 68ch;
}
.sg-case__text > :last-child {
  margin-bottom: 0;
}
.sg-case--light {
  padding-right: var(--sg-pad);
  padding-left: var(--sg-pad);
  border-top: 0;
  background: var(--sg-light);
}
.sg-case--split {
  display: grid;
  grid-template-columns: minmax(310px, 0.42fr) minmax(0, 0.58fr);
  align-items: center;
  gap: var(--sg-gap);
}
.sg-case--split .sg-case__head {
  display: block;
  margin-bottom: 0;
}
.sg-case--split .sg-case__head h2 {
  margin-bottom: 24px;
}
.sg-case--reverse .sg-case__head {
  order: 2;
}
.sg-case--reverse .sg-gallery {
  order: 1;
}
.sg-gallery {
  display: grid;
  gap: clamp(8px, 1.2vw, 18px);
}
.sg-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.sg-gallery--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sg-case--split .sg-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sg-gallery a,
.sg-gallery span {
  display: block;
  min-width: 0;
  overflow: hidden;
  background: #eee;
}
.sg-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 450ms ease;
}
.sg-case--split .sg-gallery img {
  aspect-ratio: 4 / 5;
}
.sg-gallery a:hover img {
  transform: scale(1.025);
}
.sg-production {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  align-items: start;
  gap: var(--sg-gap);
  margin-top: var(--sg-section);
  padding: var(--sg-pad);
  background: var(--sg-light);
}
.sg-production h2 {
  max-width: 12ch;
  margin-bottom: 0;
}
.sg-production__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 32px;
  border: 1px solid var(--sg-line);
  background: var(--sg-line);
}
.sg-production__fact {
  padding: 22px 24px;
  background: #fff;
}
.sg-production__fact strong,
.sg-production__fact span {
  display: block;
}
.sg-production__fact strong {
  margin-bottom: 4px;
  color: rgba(30, 30, 28, 0.6);
  font-weight: 400;
}
.sg-production__fact span {
  font-weight: 700;
}
.sg-production p {
  max-width: 60ch;
  margin-bottom: 14px;
}
.sg-production__content > :last-child {
  margin-bottom: 0;
}

@media (max-width: 1050px) {
.sg-gallery--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.sg-case--split {
    grid-template-columns: minmax(270px, 0.4fr) minmax(0, 0.6fr);
    gap: 45px;
  }
}

@media (max-width: 820px) {
.sg-page {
    --sg-fs-text: 16px;
  }
.sg-intro,
.sg-case__head,
.sg-case--split,
.sg-production {
    grid-template-columns: 1fr;
  }
.sg-intro,
.sg-production {
    gap: 32px;
  }
.sg-case__head {
    gap: 20px;
  }
.sg-case--reverse .sg-case__head,
.sg-case--reverse .sg-gallery {
    order: initial;
  }
.sg-gallery--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
.sg-gallery--three,
.sg-gallery--four,
.sg-case--split .sg-gallery,
.sg-production__facts {
    grid-template-columns: 1fr;
  }
.sg-gallery img,
.sg-case--split .sg-gallery img {
    aspect-ratio: 4 / 3;
  }
.sg-case--light,
.sg-production {
    margin-right: -15px;
    margin-left: -15px;
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
.sg-page img,
.sg-page a {
    transition: none !important;
  }
}
.sg-page a.lightbox { cursor: zoom-in; }

.sg-page p a { color: var(--sg-link); }
.sg-gallery + .sg-gallery { margin-top: clamp(8px, 1.2vw, 18px); }
.sg-intro img { display: block; max-width: 100%; height: auto; }
