/* ========================= */
/* RESET + GLOBAL            */
/* ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1728px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ========================= */
/* HEADER                    */
/* ========================= */

.site-header {
  background: #101832;
  height: 68px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1728px;
  margin: 0 auto;
  padding: 0 80px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 32px;
}

.main-nav {
  display: flex;
  gap: 48px;
}

.image-header {
  position: relative;
  width: 100%;
  aspect-ratio: 1795 / 752;
  overflow: hidden;
  border-radius: 20px;
  min-height: 500px;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.video-modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16/9;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

#bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 177.78%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.close-modal {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.main-nav a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #f68c1e;
  text-decoration: none;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: opacity 0.2s ease;
}

.main-nav a:hover {
  opacity: 0.6;
}

.hamburger {
  display: none;
}

/* ========================= */
/* HERO                      */
/* ========================= */

.hero-section {
  position: relative;
  min-height: 530px;
  display: flex;
  align-items: flex-start;
  overflow: visible;
  background-color: #101832;
  padding-top: 81px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 200px;
  color: #ffffff;
  text-align: center;
}

.hero-content h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 96px;
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 1100px;
  margin: 0 auto;
}

.hero-content h1 span {
  color: #ff7a00;
}

#image {
  position: relative;
  margin-top: -330px;
  z-index: 1;
}

#image .image-header img {
  width: 100%;
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  content: url("/img/header.png");
}

/* ========================= */
/* BUTTON PLAY SHOWREEL      */
/* ========================= */

.hero-btn {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 32px;
  height: 48px;
  background: transparent;
  border: 2px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 10px solid #ffffff;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  display: inline-block;
  transform: translateY(1px);
}

/* ========================= */
/* FILM SECTION — DARK CARD  */
/* ========================= */

.film-section {
  padding: 50px 0;
  border-radius: 32px;
  overflow: hidden;
}

/* HEADER */

.film-header {
  text-align: center;
  margin-bottom: 64px;
}

.film-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 64px;
  font-weight: 500;
  margin-bottom: 24px;
}

.film-nav {
  display: flex;
  justify-content: center;
  column-gap: clamp(42px, 6vw, 55px);
}

.film-nav button {
  background: transparent;
  border: none;
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform-origin: center;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease;
  will-change: transform;
  position: relative;
}

.film-nav button::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #f18a21;
  transition: width 0.25s ease;
}

.film-nav button:hover::after,
.film-nav button.active::after {
  width: 100%;
}

/* CONTENT LAYOUT */

.film-wrapper {
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: top;
  background-color: #101832;
  border-radius: 20px;
}

.slide-1 .film-wrapper {
  background: url("/img/steinhof.jpg") center/cover no-repeat;
}

.slide-2 .film-wrapper {
  background: url("/img/husqvarna.png") center/cover no-repeat;
}

.slide-3 .film-wrapper {
  background: url("/img/shell.png") center/cover no-repeat;
}

.slide-4 .film-wrapper {
  background: url("/img/sipeko.png") center/cover no-repeat;
}

.film-text h3 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 40px;
}

.film-text h4 {
  color: #ffffff;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 35px;
  margin-bottom: 24px;
}

.film-text p {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.film-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.film-track {
  display: flex;
  gap: 40px;
  transition: transform 0.4s ease;
}

.film-slide {
  min-width: 100%;
  display: flex;
}

.film-wrapper {
  position: relative;
}

.film-pagination {
  position: absolute;
  bottom: 25px;
  left: 50px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.film-pagination .dot {
  width: 10px;
  height: 10px;
  background: #d0d0d0;
  border-radius: 50%;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.film-pagination .dot.active {
  background: #f18a21;
  transform: scale(1.2);
}

/* FILM W SLIDERZE — PRAWA KOLUMNA */

.film-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  margin-top: auto;
  margin-bottom: auto;
}

.film-video iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* IMAGE */

.film-image {
  height: 480px;
  border-radius: 24px;
}

/* PLAY BUTTON */

.film-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 28px;
  height: 44px;
  background: transparent;
  border-radius: 10px;
  color: #f18a21;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.8px;
  border: 2px solid #f18a21;
  cursor: pointer;
  transition: all 0.25s ease;
}

.film-play:hover {
  transform: translateY(-1px);
}

.film-play .play-icon {
  width: 0;
  height: 0;
  border-left: 10px solid;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.photo-section {
  padding: 10px 0px 110px 0px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(15px, 2vw, 25px);
}

.photo-title {
  font-family: "Montserrat", sans-serif;
  font-size: 64px;
  font-weight: 500;
  text-align: center;
  color: #000;
  margin-bottom: 64px;
}

/* RZĄD 1 */

.item-1 {
  grid-column: span 1;
}

.item-2 {
  grid-column: span 2;
}

.item-3 {
  grid-column: span 1;
}

.item-4 {
  grid-column: span 1;
}

.item-5 {
  grid-column: span 1;
}

.item-6 {
  grid-column: span 2;
}

.item-7 {
  grid-column: span 1;
}

/* WSPÓLNE */

#foto {
  scroll-margin-top: 50px;
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.photo-item {
  overflow: hidden;
  border-radius: 20px;
}

.photo-item:hover img {
  transform: scale(1.06);
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* PRZYCIEMNIENIE */

.photo-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  z-index: 1;
}

.photo-item:hover::after {
  background: rgba(0, 0, 0, 0.45);
}

/* TEKST NA ŚRODKU */

.photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  z-index: 2;
}

.photo-item:hover .photo-overlay {
  opacity: 1;
  transform: translateY(0);
}
/* =========================================================
   ANIMATION SLIDER
========================================================= */

.animation-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.animation-track {
  display: flex;
  gap: 0;
  width: 100%;
  transition: transform 0.45s ease;
}

.animation-slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 100%;
}

.animation-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

/* LEWA KOLUMNA */

.animation-text {
  min-width: 0;
}

.animation-text h3 {
  font-size: 40px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.animation-text p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 18px;
}

/* PRAWA KOLUMNA */

.animation-visual {
  width: 100%;
  min-width: 0;
}

.animation-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #101832;
}

.animation-image iframe {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;

  display: block;
  border: 0;
}

/* PLAY */

.animation-play {
  position: relative;
  z-index: 2;

  border: 0;
  background: transparent;

  color: #fff;
  font-size: 18px;
  font-weight: 600;

  cursor: pointer;
}

/* PAGINACJA */

.animation-pagination {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 10px;

  margin-top: 30px;
}

.animation-pagination .dot {
  width: 10px;
  height: 10px;

  background: #d0d0d0;

  border-radius: 50%;

  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.animation-pagination .dot.active {
  background: #f18a21;
  transform: scale(1.2);
}

/* TYPOGRAFIA */

.photo-overlay h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 15px;
}

@keyframes pulseText {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.28);
  }

  100% {
    transform: scale(1);
  }
}

.photo-overlay p {
  font-size: 26px;
  font-weight: 400;
  color: #f18a21;
  opacity: 0;
  transform: translateY(8px) scale(1);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  transition-delay: 0.12s;
  text-transform: uppercase;
}

.photo-item:hover .photo-overlay p {
  opacity: 1;
  transform: translateY(0);
  animation: pulseText 0.6s ease forwards;
}

.photo-item:hover .photo-overlay p {
  opacity: 1;
  transform: translateY(0);
  animation: pulseText 0.6s ease forwards;
  transition-delay: 0.15s;
}

/* STOPKA */

.footer {
  width: 100%;
  background: #101832;
  padding: 120px 0;
  color: #ffffff;
}

.footer__container {
  max-width: 1728px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 64px;
}

/* LOGO */

.footer__logo-col {
  display: flex;
  align-items: flex-start;
}

.footer__logo {
  width: 280px;
  height: auto;
  opacity: 0.9;
}

/* PRAWA STRONA — 3 KOLUMNY */

.footer__right {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 64px;
}

.footer__title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  color: #f68c1e;
  text-decoration: none;
  font-size: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}

.footer__title.small {
  margin-top: 40px;
  font-size: 24px;
}

.footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__list li {
  font-family: "New Science", sans-serif;
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.8;
  margin-bottom: 2px;
}

/* SOCIAL ICONS */

.footer__social {
  display: flex;
  gap: 20px;
  align-items: center;
}

.social-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon img {
  width: 42px;
  height: 42px;
  display: block;
  opacity: 0.85;
  transition: 0.25s ease;
}

.social-icon:hover img {
  opacity: 1;
  transform: scale(1.12);
}

/* TOOLTIP */

.social-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255, 255, 255, 0.95);
  color: #101832;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: "New Science", sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- RESPONSYWNOŚĆ TABLET / MAŁE LAPTOPY --- */

@media (max-width: 1024px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo-col {
    display: flex;
    justify-content: center;
  }

  .footer__right {
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    text-align: center;
    gap: 40px;
  }
}

/* --- PONIŻEJ 700 PX --- */

@media (max-width: 700px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__logo-col {
    display: flex;
    justify-content: center;
  }

  .footer__right {
    grid-template-columns: 1fr;
    gap: 24px;
    justify-items: center;
    text-align: center;
  }

  .footer__social {
    justify-content: center;
  }
}

/* ========================= */
/* GALERIA                   */
/* ========================= */

.gallery {
  max-width: 100%;
  margin: 0 auto;
}

.gallery-main img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.gallery-thumbs img {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-thumbs img:hover {
  opacity: 0.8;
}

/* Fancybox miniaturki */

.fancybox__thumbs .carousel__slide {
  flex: 0 0 auto !important;
  margin: 0 8px !important;
}

.fancybox__thumbs .fancybox__thumb {
  border-radius: 8px;
  overflow: hidden;
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.fancybox__thumbs .fancybox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fancybox__thumbs .is-selected .fancybox__thumb {
  outline: 3px solid #f18a21;
  outline-offset: 3px;
  opacity: 1 !important;
}

.fancybox__thumbs .fancybox__thumb:hover {
  opacity: 1;
}

/* ========================= */
/* ANIMACJA — SEKCJA         */
/* ========================= */

.animation-section {
  background: #101832;
  padding: 80px 0;
  color: #fff;
}

/* SEKCJA */

.animation-header h2 {
  font-family: "Montserrat", sans-serif;
  font-size: 64px;
  font-weight: 500;
  text-align: center;
  color: #fff;
  margin-bottom: 64px;
}

/* LAYOUT */

.animation-layout {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

.animation-text {
  width: 33.333%;
}

.animation-text h3 {
  color: #f18a21;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 40px;
  line-height: normal;
  margin-bottom: 24px;
}

.animation-text p {
  font-family: "Montserrat", sans-serif;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* SLIDER */

.animation-visual {
  width: 66.666%;
}

.animation-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  opacity: 1;
  transform: translateX(0);
}

.animation-image.fade-out-left {
  opacity: 0;
  transform: translateX(-40px);
}

.animation-image.fade-out-right {
  opacity: 0;
  transform: translateX(40px);
}

.animation-image.fade-out {
  opacity: 0;
}

/* PLAY */

.animation-play {
  position: relative;
  z-index: 2;
  padding: 14px 32px;
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s ease;
}

.animation-play:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.05);
}

/* KROPKI NA DOLE SEKCJI */

.animation-pagination {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.animation-pagination .dot {
  width: 12px;
  height: 12px;
  background: #555;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.animation-pagination .dot.active {
  background: #f18a21;
}

/* ANIMACJA WEJŚCIA / WYJŚCIA */

.animation-image {
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
  opacity: 1;
  transform: translateX(0);
}

.animation-image.fade-out-left {
  opacity: 0;
  transform: translateX(-40px);
}

.animation-image.fade-out-right {
  opacity: 0;
  transform: translateX(40px);
}

/* OSTATNIA SEKCJA CTA Z TŁEM */

.cta-final {
  width: 100%;
  padding: 200px 0;
  background-image: url("/img/lubimy.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
}

/* Ciemny overlay */

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 50, 0.65);
  z-index: 1;
}

.cta-final .container {
  max-width: 1728px;
  width: 100%;
  padding: 0 32px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-final__title {
  font-family: "Montserrat", sans-serif;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 48px;
}

.cta-final__btn {
  font-family: "New Science", sans-serif;
  font-size: 20px;
  font-weight: 600;
  padding: 20px 48px;
  background: #ff7a00;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.25s ease;
  text-transform: uppercase;
}

.cta-final__btn:hover {
  background: #f68c1e;
}

/* ========================= */
/* DESKTOP                   */
/* ========================= */

@media (min-width: 769px) {
  .photo-more-btn {
    display: none !important;
  }
}

/* ========================= */
/* MOBILE (max 768px)       */
/* ========================= */

@media (max-width: 768px) {
  /* --- GLOBAL MOBILE FIXES --- */

  .container {
    padding: 0 25px;
  }

  #bg-video {
    width: 100%;
    height: 177.78%;
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    max-width: 90%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-section {
    overflow: visible;
    min-height: 480px;
  }

  .hero-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
  }

  #image .image-header img {
    border-radius: 20px;
  }

  .header-inner {
    max-width: 1728px;
    margin: 0 auto;
    padding: 0 35px;
  }

  /* Film — pozostaje zgodny z układem mobilnym */

  .film-pagination {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
  }

  /* --- PHOTO GRID MOBILE --- */

  .photo-section {
    padding: 10px 0px 30px 0px;
  }

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

  .photo-item {
    height: 460px;
  }

  .photo-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
  }

  .item-1,
  .item-2,
  .item-3,
  .item-4,
  .item-5,
  .item-6,
  .item-7 {
    grid-column: span 1;
  }

  .photo-item:nth-child(n + 4) {
    display: none;
  }

  .photo-item.show {
    display: block;
  }

  .photo-more-btn {
    font-family: "Montserrat", sans-serif;
    margin: 25px auto 0;
    display: block;
    color: #f18a21;
    padding: 5px 28px;
    border: none;
    font-size: 17px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    background: transparent;
    z-index: 10;
    position: relative;
  }

  .photo-item:nth-child(3)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to top,
      rgba(255, 255, 255, 1) 20%,
      rgba(255, 255, 255, 0) 100%
    );
    z-index: 3;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .photo-item:nth-child(3).expanded::after {
    opacity: 0;
  }

  /* ========================= */
  /* ANIMACJA — MOBILE         */
  /* ========================= */

  .animation-header h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 64px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    margin-bottom: 64px;
  }

  .animation-layout {
    flex-direction: column;
    gap: 32px;
  }

  .animation-text,
  .animation-visual {
    width: 100%;
  }

  .animation-image {
    min-height: 260px;
  }

  .animation-text h3 {
    font-size: 24px;
  }

  .animation-text p {
    font-size: 16px;
  }

  .animation-pagination {
    margin-top: 24px;
  }

  .cta-final {
    padding: 120px 0;
  }

  .cta-final__title {
    font-size: 40px;
  }
}

/* ========================= */
/* TABLET (907–1200px)       */
/* ========================= */

@media (max-width: 1200px) {
  .cta-final {
    padding: 160px 0;
  }

  .cta-final__title {
    font-size: 48px;
  }
}

@media (min-width: 907px) and (max-width: 1200px) {
  .hero-content h1 {
    font-size: 72px;
    line-height: 1.05;
    max-width: 90%;
  }
}

/* ========================= */
/* MOBILE BREAKPOINT 906px   */
/* ========================= */

@media (max-width: 906px) {
  .hero-section {
    min-height: 480px;
    overflow: visible;
  }

  .hero-content h1 {
    font-size: 54px;
    line-height: 1.05;
    max-width: 90%;
    margin: 0 auto;
    letter-spacing: -0.2px;
    text-align: center;
  }

  .hero-btn {
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    z-index: 50;
  }

  #image .image-header img {
    border-radius: 20px;
    content: url("/img/header-mobile-2.jpg");
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    height: 100vh;
    background: #0d1b2a;
    padding: 120px 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 9999;
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .main-nav a {
    font-size: 28px;
    color: #fff;
    text-decoration: none;
  }

  .header-inner {
    justify-content: space-between;
  }

  /* ========================= */
  /* FILM — TABLET             */
  /* ========================= */

  .film-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
  }

  .film-track {
    display: flex;
    gap: 0;
    width: 100%;
    transition: transform 0.45s ease;
  }

  .film-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
  }

  .film-wrapper {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    padding: 35px;
    align-items: center;
  }

  .film-text {
    min-width: 0;
    width: 100%;
  }

  .film-video {
    width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 9;
    margin-top: 0;
    margin-bottom: 0;
  }
  .animation-layout {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .animation-text h3 {
    font-size: 32px;
  }
}

/* ========================= */
/* FILM — MOBILE             */
/* ========================= */

@media (max-width: 700px) {
  .film-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px;
    width: 100%;
  }

  .film-text {
    width: 100%;
    min-width: 0;
  }

  .film-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0;
    min-width: 0;
  }

  .film-video iframe {
    width: 100%;
    height: 100%;
  }

  .film-pagination {
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
  }
  .animation-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .animation-text h3 {
    font-size: 30px;
  }

  .animation-text p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cta-final {
    padding: 100px 0;
  }

  .cta-final__title {
    font-size: 28px;
  }

  .cta-final__btn {
    padding: 16px 36px;
    font-size: 18px;
  }
}

/* ========================= */
/* EXTRA SMALL (max 476px)   */
/* ========================= */

@media (max-width: 476px) {
  .hero-content h1 {
    font-size: 55px;
    line-height: 1.05;
    max-width: 90%;
    margin: 0 auto;
    letter-spacing: -0.2px;
    text-align: center;
  }

  #image .image-header img {
    border-radius: 20px;
    content: url("/img/header-mobile.jpg");
  }

  /* FILM */

  .film-pagination {
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
  }

  .film-text h3 {
    font-size: 30px;
  }

  .film-text h4 {
    font-size: 20px;
  }

  .film-text p {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #fff;
  }

  .film-wrapper {
    padding: 22px;
    gap: 24px;
  }

  .film-video {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .photo-title,
  .film-header h2 {
    font-size: 50px;
    margin-bottom: 64px;
  }

  .animation-header h2 {
    font-size: 50px;
    margin-bottom: 64px;
  }
}

/* ========================= */
/* EXTRA SMALL (max 446px)   */
/* ========================= */

@media (max-width: 446px) {
  .hero-content h1 {
    font-size: 45px;
  }

  .main-nav a {
    font-size: 20px;
  }
}
/* ========================= */
/* PŁYNNE PRZEWIJANIE MENU   */
/* ========================= */

html {
  scroll-behavior: smooth;
}
#backToTop {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: #f68c1e;
  color: #101832;
  font-size: 24px;
  font-weight: 600;
  cursor: pointer;
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease,
    background 0.2s ease;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#backToTop:hover {
  background: #fff;
  transform: translateY(-3px);
}

@media (max-width: 700px) {
  #backToTop {
    right: 20px;
    bottom: 20px;
    width: 45px;
    height: 45px;
    font-size: 21px;
  }
}
