:root {
  --custom-card-radius: 8px;
  --custom-content-gap: clamp(20px, 4vw, 48px);
  --custom-focus-color: var(--ikea-blue);
}

.content-card {
  border-radius: 0;
  padding: var(--custom-content-gap);
}

.hero-content {
  width: 100%;
  height: 100vh;
}

.hero-content h1,
.hero-content h2 {
  position: absolute;
  font-family: 'Menlo Regular';
}

.content-card h2,
.content-card h3,
.hero-content h1,
.quote-box blockquote {
  text-wrap: balance;
}

.content-card p,
.content-card ul,
.content-card ol {
  margin-bottom: 1rem;
}

.content-card p:last-child,
.content-card ul:last-child,
.content-card ol:last-child {
  margin-bottom: 0;
}

.content-card a,
.menu-modal-content a {
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.18em;
}

.content-card a:focus-visible,
.menu-modal-content a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--custom-focus-color);
  outline-offset: 4px;
}

.menu-modal-content {
  border-right: 6px solid var(--ikea-yellow);
}

.menu-close-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-dots {
    display: none;
}

.hero-content h1 {
    font-size: 5vw;
    font-weight: 300;
    text-align: right;
    margin-bottom: 60px;
}

.hero-content h2 {
    color: black;
    font-size: 3vw;
    max-width: 100%;
}

.content-card h2,
.content-card h2 * {
    font-size: 60px;
    font-weight: 400;
    line-height: 80px;
    font-family: "ANDALEMO";
}

.content-card h3 {
    color: black;
    font-size: clamp(1.15rem, 1.8vw, 1.15rem);
    font-weight: 400;
    line-height: 1.75em;
}

.content-card h4 {
    font-size: clamp(2.6rem, 1.8vw, 1.15rem);
    font-weight: 400;
    line-height: 1.25em;
}

.desktop-lock-screen {
  display: none;
}

.site-header {
  padding: 16px 20px;
  right: 0;
  left: auto;
  top: 60vh;
  width: auto;
}

.f5-logo-circle {
  width: 64px;
  height: 64px;
}

.f5-logo-circle .f5-text {
  background-image: url("../img/logo.png");
  background-size: cover;
  display: block;
  height: 60px;
  width: 60px;
  font-size: 0;
}

.card-w-small {
  max-width: 95%;
}

.card-w-medium {
  max-width: 90%;
}

.wp-video {
  max-width: 32vw !important;
  float: right;
  margin: 0 0 0 40px;
}

.wp-video .mejs-container {
  max-width: 100%;
  max-height: 74vh;
}

.wp-video video {
  max-height: 56vh;
  max-width: 100%;
}

.section-overlay {
  background: none;
}

/* .slide-bg {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
} */

.text-body blockquote,
.text-body blockquote h3 {
  font-size: 30px;
  line-height: 1.5em;
  font-family: "Menlo Regular";
}

.text-body blockquote pre {
  text-wrap: wrap;
}

.video-container {
  position: absolute;
  z-index: 0;
  /* pointer-events: none; */
  background-color: transparent;
  /* Kluczowe dla iOS Safari: wymuszenie własnej warstwy GPU */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.video-container video {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  /* pointer-events: none; */
 /* Zapobiega znikaniu warstwy podczas animacji parenta */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}

@media (max-width: 767px) {
  .site-header {
    padding: 16px 20px;
    right: 0;
    left: auto;
    top: 60vh;
    width: auto;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .hero-content h2 {
    font-size: 24px;
    /* max-width: 700px; */
  }

  .content-card h2,
  .content-card h2 * {
    font-size: clamp(2rem, 1.8vw, 1.15rem);
    line-height: 1.25em;
    font-family: "ANDALEMO";
  }

  .content-card .text-body {
    font-size: clamp(0.875rem, 1.8vw, 1.15rem);
  }

  .text-body blockquote,
  .text-body blockquote h3 {
    font-size: 20px;
    font-family: "Menlo Regular";
  }

  /* .slide-bg {
    background-size: cover;
    background-position: center;
  } */

  .wp-video {
    max-width: 90%;
    float: none;
  }

  .wp-video video {
    max-height: 56vh;
    margin: 0;
  }

  .pos-top-left {
    padding-top: 10px;
  }

  .card-w-small {
    max-width: 420px;
  }

  .hero-content {
    padding: 24px;
  }

  .content-card {
    max-height: 86vh;
    max-width: 92vw;
    border-radius: 0;
  }

  .menu-modal-content {
    max-width: min(420px, 92vw);
    padding: 44px 28px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


.section-link {
  position: absolute;
  width: 100%;
  height: 100%;
  display: block;
  top: 0;
  left: 0;
}
