/* =========================================================
   XTM GROUP — HOMEPAGE ONLY CSS
   Motyw: GreenMouse
   Kolorystyka: czarno-żółta
   ========================================================= */

:root {
  --xtm-black: #050505;
  --xtm-black-soft: #111111;
  --xtm-yellow: #ffd200;
  --xtm-yellow-dark: #e0b800;
  --xtm-white: #ffffff;
  --xtm-muted: rgba(255, 255, 255, 0.76);
}

/* Usunięcie ograniczeń tylko na stronie głównej */
body#index {
  overflow-x: hidden;
}

body#index #wrapper {
  padding-top: 0 !important;
  overflow: hidden;
}

body#index .page-home.xtm-home {
  width: 100% !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

/* Jeżeli GreenMouse trzyma stronę główną w .container */
body#index #content.page-home.xtm-home {
  width: 100% !important;
  max-width: none !important;
}

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

.xtm-hero {
  position: relative;

  /* najważniejsze — pełna szerokość mimo kontenera motywu */
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;

  min-height: 660px;
  display: flex;
  align-items: center;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  overflow: hidden;
  isolation: isolate;
}

/* Żółta poświata */
.xtm-hero::after {
  content: "";
  position: absolute;
  right: -180px;
  bottom: -240px;
  width: 660px;
  height: 660px;
  background: rgba(255, 210, 0, 0.24);
  filter: blur(80px);
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

/* Delikatna żółta belka dekoracyjna */
.xtm-hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42%;
  height: 8px;
  background: var(--xtm-yellow);
  z-index: 3;
}

/* Overlay na zdjęcie */
.xtm-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.94) 0%,
      rgba(0, 0, 0, 0.82) 42%,
      rgba(0, 0, 0, 0.36) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.20) 0%,
      rgba(0, 0, 0, 0.82) 100%
    );
}

/* Wewnętrzny kontener hero */
.xtm-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1460px, calc(100% - 48px));
  margin: 0 auto;
  padding: 94px 0;

  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 56px;
  align-items: center;
}

.xtm-hero__content {
  max-width: 820px;
}

.xtm-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-bottom: 20px;

  color: var(--xtm-yellow);
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.xtm-hero__kicker::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--xtm-yellow);
  border-radius: 999px;
}

.xtm-hero h1 {
  margin: 0;

  color: var(--xtm-white);
  font-size: clamp(40px, 5.3vw, 78px);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.xtm-hero h1::selection,
.xtm-hero p::selection,
.xtm-hero span::selection,
.xtm-hero strong::selection {
  background: var(--xtm-yellow);
  color: #000;
}

.xtm-hero p {
  max-width: 700px;
  margin: 26px 0 0;

  color: var(--xtm-muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 500;
}

/* Przyciski */
.xtm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.xtm-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 54px;
  padding: 0 30px;
  border-radius: 999px;

  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-decoration: none !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  transition:
    transform 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.xtm-hero__btn:hover {
  transform: translateY(-2px);
}

.xtm-hero__btn--primary {
  background: var(--xtm-yellow);
  color: #000000 !important;
  border: 2px solid var(--xtm-yellow);
  box-shadow: 0 18px 36px rgba(255, 210, 0, 0.28);
}

.xtm-hero__btn--primary:hover {
  background: var(--xtm-white);
  border-color: var(--xtm-white);
  color: #000000 !important;
  box-shadow: 0 18px 38px rgba(255, 255, 255, 0.16);
}

.xtm-hero__btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--xtm-white) !important;
  border: 2px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(10px);
}

.xtm-hero__btn--secondary:hover {
  background: var(--xtm-yellow);
  border-color: var(--xtm-yellow);
  color: #000000 !important;
}

/* =========================================================
   KAFLE PO PRAWEJ
   ========================================================= */

.xtm-hero__cards {
  display: grid;
  gap: 14px;
}

.xtm-hero-card {
  position: relative;
  padding: 24px 26px;

  border-radius: 26px;
  background: rgba(8, 8, 8, 0.68);
  border: 1px solid rgba(255, 210, 0, 0.20);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);

  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.xtm-hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 210, 0, 0.70);
  background: rgba(12, 12, 12, 0.82);
}

.xtm-hero-card::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  margin-bottom: 16px;
  background: var(--xtm-yellow);
  border-radius: 999px;
}

.xtm-hero-card::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 120px;
  height: 120px;
  background: rgba(255, 210, 0, 0.13);
  border-radius: 999px;
  pointer-events: none;
}

.xtm-hero-card strong {
  display: block;
  margin-bottom: 8px;

  color: var(--xtm-white);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 950;
}

.xtm-hero-card span {
  display: block;

  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
}

/* =========================================================
   RESPONSYWNOŚĆ
   ========================================================= */

@media (max-width: 991px) {
  .xtm-hero {
    min-height: auto;
  }

  .xtm-hero::before {
    width: 62%;
    height: 6px;
  }

  .xtm-hero__inner {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 760px);
    gap: 36px;
    padding: 76px 0 50px;
  }

  .xtm-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.90) 0%,
        rgba(0, 0, 0, 0.74) 45%,
        rgba(0, 0, 0, 0.94) 100%
      );
  }

  .xtm-hero h1 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .xtm-hero p {
    font-size: 16px;
    line-height: 1.55;
  }
}

@media (max-width: 575px) {
  .xtm-hero__inner {
    width: calc(100% - 28px);
    padding: 62px 0 40px;
  }

  .xtm-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .xtm-hero__btn {
    width: 100%;
  }

  .xtm-hero-card {
    padding: 20px 21px;
    border-radius: 20px;
  }
}
/* =========================================================
   XTM HERO — SLIDER
   ========================================================= */

.xtm-hero--slider {
  background-image: none !important;
}

.xtm-hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.xtm-hero__slide {
  position: absolute;
  inset: 0;

  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;

  opacity: 0;
  transform: scale(1.035);
  transition:
    opacity 1.1s ease,
    transform 6.5s ease;
}

.xtm-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.xtm-hero__overlay {
  z-index: 2;
}

.xtm-hero__inner {
  z-index: 3;
}

.xtm-hero::after {
  z-index: 2;
}

.xtm-hero::before {
  z-index: 4;
}

/* Kropki slidera */
.xtm-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 5;
  transform: translateX(-50%);

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.xtm-hero__dots button {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;

  transition:
    width 0.22s ease,
    background 0.22s ease;
}

.xtm-hero__dots button.is-active {
  width: 54px;
  background: var(--xtm-yellow);
}

/* Na mobile przesuwamy zdjęcie bardziej w prawo, żeby tekst był czytelny */
@media (max-width: 991px) {
  .xtm-hero__slide {
    background-position: 68% center;
  }

  .xtm-hero__dots {
    bottom: 18px;
  }
}

@media (max-width: 575px) {
  .xtm-hero__dots {
    display: none;
  }
}/* XTM — GMThemer kafle kategorii */
body#index #gmtheme_displayHome {
  margin-top: 34px !important;
  margin-bottom: 54px !important;
}

body#index #gmtheme_displayHome .gmitem-displayHome {
  padding: 0 10px 22px !important;
}

body#index #gmtheme_displayHome .gmitem-link {
  display: block !important;
  overflow: hidden !important;
  border-radius: 6px !important;
  background: #050505 !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12) !important;
  transition: transform .22s ease, box-shadow .22s ease;
}

body#index #gmtheme_displayHome .gmitem-link:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.18) !important;
}

body#index #gmtheme_displayHome .gmitem-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  border-radius: 6px !important;
}