/* PZK e-shop theme: homepage. Linked on the homepage only. */

/* Hero */
.pzk-hero {
  position: relative;
  background: var(--pzk-navy);
}

.pzk-hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  /* 660px at the 1920px the design is drawn for. */
  min-height: clamp(420px, 34.4vw, 660px);
  padding-block: 48px;
  overflow: hidden;
}

.pzk-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 61%;
}

.pzk-hero-text {
  position: relative;
  max-width: 576px;
  margin-left: var(--pzk-indent);
  color: #fff;
}

.pzk-hero-text h1,
.pzk-hero-text h2 {
  max-width: 420px;
  margin: 0 0 40px;
  font-size: clamp(36px, 3.13vw, 60px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.pzk-hero-text p {
  max-width: 453px;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.18px;
}

.pzk-hero-text .pzk-button {
  margin-top: 40px;
}

/* On a narrow screen the text ends up over the bright part of the photo. */
@media (max-width: 991.98px) {
  .pzk-hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(10, 12, 60, 0.45), rgba(10, 12, 60, 0.1));
  }

  .pzk-hero-text {
    z-index: 2;
  }
}

/* Product carousels */
.pzk-products {
  margin-top: clamp(64px, 6.25vw, 120px);
}

.pzk-section-head {
  max-width: 576px;
  margin: 0 auto clamp(40px, 4.2vw, 80px);
  text-align: center;
}

.pzk-section-head h2,
.pzk-block-text h2 {
  margin: 0 0 40px;
  font-size: clamp(34px, 3.13vw, 60px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.pzk-section-head h2 a {
  color: inherit;
  text-decoration: none;
}

.pzk-section-head p,
.pzk-block-text p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: -0.18px;
}

.pzk-carousel .swiper-slide {
  height: auto;
}

/* Content blocks */
.pzk-blocks {
  margin-top: clamp(72px, 9.5vw, 183px);
}

.pzk-block {
  display: grid;
  /* 820 + 145 + 640 of the 1688px content width; the longest designed heading is 621px wide. */
  grid-template-columns: 48.58% minmax(0, 640px);
  column-gap: 8.6%;
  align-items: center;
}

.pzk-block + .pzk-block {
  margin-top: clamp(48px, 4.2vw, 80px);
}

/* Mirrored, the text has the indent on its outer side instead of a gap towards the photo. */
.pzk-block.is-reversed {
  grid-template-columns: 1fr 48.58%;
  column-gap: 0;
}

.pzk-block.is-reversed .pzk-block-text {
  max-width: 640px;
  margin-left: var(--pzk-indent);
}

.pzk-block-text p {
  max-width: 590px;
}

.pzk-block.is-reversed .pzk-block-image {
  order: 2;
}

.pzk-block-image {
  aspect-ratio: 1;
  /* The cut corner of the design: 68px of the 820px square. */
  clip-path: polygon(0 0, 100% 0, 100% 91.72%, 91.72% 100%, 0 100%);
}

.pzk-block-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pzk-block-text .pzk-button {
  margin-top: 40px;
}

@media (max-width: 991.98px) {
  .pzk-block,
  .pzk-block.is-reversed {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .pzk-block.is-reversed .pzk-block-text {
    margin-left: 0;
  }

  .pzk-block.is-reversed .pzk-block-image {
    order: 0;
  }

  .pzk-section-head h2,
  .pzk-block-text h2 {
    margin-bottom: 24px;
  }
}
