/* GLOBAL */
.section {
  padding: 50px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }
}

.text-image ul,
.section-columns ul {
  list-style: none;
  padding-left: 0;
}

.text-image ul li,
.section-columns ul li {
  position: relative;
  padding: 10px 0px 10px 30px;
}
a {
  text-decoration: none;
}

/* CHECKBOX */
.text-image ul li::before,
.section-columns ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, #1071b8, #662483);
  margin: 10px 0px 10px 0px;
}

/* IKONA "✔" */
.text-image ul li::after,
.section-columns ul li::after {
  content: "✓";
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 14px;
  color: #fff;
  font-weight: bold;
  margin: 10px 0px 10px 0px;
}

/* ================= ANIMACJE ================= */

/* fade-in left */
.fade-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeLeftAnim 1s ease forwards;
}

/* fade-in right */
.fade-right {
  opacity: 0;
  transform: translateX(30px);
  animation: fadeRightAnim 1s ease forwards;
}

@keyframes fadeLeftAnim {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRightAnim {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

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

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  padding-top: 80px;
}

.gradient-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(90deg, rgba(0, 0, 0, 0.7), rgba(42, 42, 42, 0.7));

  background-size: 200% 200%;

  z-index: 2;
}

/* overlay masz już OK */

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-content {
  max-width: 1200px;
}

/* TYPOGRAFIA HERO */
.hero h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: 700;
  font-size: 4rem;
}

.hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #f1f1f1;
  margin-bottom: 30px;
}

/* ================= TEXT IMAGE ================= */

.text-image .row {
  align-items: stretch;
  gap: 40px;
}

.text-gradient {
  margin-bottom: 20px;
  line-height: 1.3;

  /* gradientowy tekst */
  background: linear-gradient(
    90deg,
    rgb(16, 113, 184),
    #66b3d7,
    rgb(102, 36, 131),
    #8f54c9
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  /* animacje połączone w jedno pole */
  animation:
    textWave 1.2s ease-out forwards,
    gradientShift 6s linear infinite;
}

/* animacja fali pojawiania się */
@keyframes textWave {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* animacja przesuwania gradientu */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.text-image .text {
  font-size: 16px;
  line-height: 1.7;
  color: #555;
}
#poznaj-epichem .row {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

#poznaj-epichem .content {
  flex: 1 1 45% !important;
  max-width: 45% !important;
}

#poznaj-epichem .image {
  flex: 1 1 55% !important;
  max-width: 55% !important;
  display: flex !important;
  overflow: hidden !important;
}

#poznaj-epichem .image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* TELEFONY */
@media (max-width: 768px) {
  #poznaj-epichem .row {
    flex-wrap: wrap !important;
  }

  #poznaj-epichem .content,
  #poznaj-epichem .image {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  #poznaj-epichem .image {
    min-height: 280px !important;
  }

  #poznaj-epichem .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* mobile stack */
@media (max-width: 768px) {
  .hero {
    padding-top: 160px;
  }
  .text-image .row {
    flex-direction: column;
  }

  .text-image.image-left .image {
    order: 0;
  }
}

/* ================= COLUMNS ================= */

.columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  overflow: hidden;
}

.columns-grid + .columns-grid {
  margin-top: 30px;
}

/* pojedyncza kolumna */
.column {
  background: #fff;
  padding: 30px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;

  overflow: hidden;
}

/* aktywny stan */
.column.show {
  opacity: 1;
  transform: translateY(0);
}

/* obraz */
.column img {
  margin-bottom: 15px;
}

/* nagłówek */
.column h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

/* tekst */
.column .text {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* ================= CTA ================= */

/* różne pozycje */
.cta {
  position: relative;
  text-align: center;
  background-color: #f1f1f1;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 120px 0;
  color: black;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cta .z-index10 {
  position: relative;
  z-index: 10;
}

.decor {
  position: absolute;
  pointer-events: none;
  opacity: 0.15; /* delikatna widoczność */
  transition: transform 0.1s linear;
  will-change: transform;
  z-index: 20;
}

.decor img {
  width: 300px; /* zmieniaj dla każdego SVG według potrzeby */
  height: auto;
  display: block;
}

.decor-1 {
  top: 00%;
  left: 5%;
}
.decor-2 {
  top: 30%;
  left: 75%;
}
.decor-3 {
  top: 80%;
  left: 60%;
}
.decor-4 {
  top: 10%;
  left: 25%;
}

/* ================= BUTTON ================= */

.button-gradient {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;

  background: linear-gradient(90deg, #1071b8, #662483);
  transition: all 0.3s ease;
}

/* hover efekt */
.button-gradient:hover {
  color: #ffffff;
  transform: scale(95%);
}

.button-gradient-outline {
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  border-radius: 0px;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: transparent;
  z-index: 1;
  overflow: hidden; /* 👈 KLUCZOWE */
}

.button-gradient-outline::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1071b8, #662483);

  /* 👇 robimy "dziurę" w środku */
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  padding: 2px; /* grubość bordera */

  box-sizing: border-box; /* 👈 WAŻNE */
  z-index: -1;
}

/* hover efekt */
.button-gradient-outline:hover {
  background:
    linear-gradient(90deg, #1071b8, #662483) padding-box,
    linear-gradient(90deg, #1071b8, #662483) border-box;
  color: #fff;
  transform: scale(95%);
}

@media (max-width: 1440px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 786px) {
  .hero {
    min-height: 30vh;
  }
  .cta {
    padding: 60px 0;
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 576px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .decor img {
    width: 150px; /* zmieniaj dla każdego SVG według potrzeby */
    height: auto;
    display: block;
  }

  .cta {
    padding: 60px 0;
  }
}

.carousel-section {
  padding: 80px 0;
  overflow: visible;
}

.custom-carousel {
  max-width: 1400px;
  margin: auto;
  position: relative;
}

.carousel-stage {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
  will-change: transform;
  justify-content: flex-start;
  align-items: center;
}

/* 3 elementy widoczne */
.slider-item {
  width: 33.3333%;
  flex: 0 0 33.3333%;
  padding: 0 5px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: scale(0.82);
  opacity: 0.8;
  transition: 0.4s ease;
}

.slider-item.active {
  transform: scale(1);
  opacity: 1;
}
.section-columns .carousel-section {
  padding: 20px 0;
}

.section-columns .slider-item img {
  height: auto;
  transition: 0.3s ease;
}

.section-columns .slider-item img:hover {
  transform: scale(1.05);
	cursor: pointer;
}
.section-columns .carousel-stage {
  padding: 10px 0px;
}
.slider-item img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
  display: block;
}

/* arrows */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 58px;
  height: 58px;
  border: none;
  background: transparent;
  color: #111;
  font-size: 76px;
  cursor: pointer;
  z-index: 20;
}

.prev {
  left: -50px;
}
.next {
  right: -50px;
}

/* dots */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dots button {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.carousel-dots button.active {
  background: #111;
  transform: scale(1.25);
}

/* mobile */

@media (max-width: 768px) {
  .slider-item {
    width: 100%;
    flex: 0 0 100%;
  }

  .slider-item img {
    height: 280px;
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.lightbox img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 14px;
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox .left {
  left: 30px;
}

.lightbox .right {
  right: 30px;
}

.custom-flex {
  display: flex;
  gap: 20px;
}

.custom-flex a {
  flex: 1;
  display: block;
}

.custom-flex img {
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
  transition: 0.3s ease;
}

.custom-flex img:hover {
  transform: scale(105%);
}
