/* ============================================================
   TOTUS TUUS · HERO RESPONSYWNY
   Desktop: tekst po lewej / ilustracja po prawej
   Mobile: ilustracja nad treścią
   ============================================================ */

.wdtx-xii-hero {
  --wdtx-xii-bg-img: url("https://wdobrymtonie.info/wp-content/uploads/2026/11/totus_tuus_bg2.png");
  --wdtx-xii-navy: #061b31;
  --wdtx-xii-white: #fffaf2;
  --wdtx-xii-gold: #e5b86c;
  --wdtx-xii-orange: #ff921b;
  --wdtx-xii-coral: #ff542f;

  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: clamp(500px, 50vw, 620px);
  padding: 48px clamp(30px, 5.2%, 78px);
  overflow: hidden;
  border-radius: var(--wdt-radius-surface, 24px);
  background: var(--wdtx-xii-navy);
  color: var(--wdtx-xii-white);
}

.wdtx-xii-hero *,
.wdtx-xii-hero *::before,
.wdtx-xii-hero *::after {
  box-sizing: border-box;
}

/* Obraz jest osobną warstwą, więc można go inaczej kadrować na mobile. */
.wdtx-xii-hero__visual {
  position: absolute;
  z-index: -2;
  inset: 0 -9% 0 9%;
  background-image: var(--wdtx-xii-bg-img);
  background-size: cover;
  background-position: 57% center;
  background-repeat: no-repeat;
}

/* Płynny, ciemny gradient zamiast dużego szklanego panelu. */
.wdtx-xii-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
    rgba(4, 20, 39, .98) 0%,
    rgba(4, 20, 39, .94) 25%,
    rgba(4, 20, 39, .81) 41%,
    rgba(4, 20, 39, .47) 54%,
    rgba(4, 20, 39, .06) 73%,
    rgba(4, 20, 39, .03) 100%);
}

.wdtx-xii-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(4, 20, 39, .24), transparent 38%);
}

.wdtx-xii-hero__content {
  position: relative;
  z-index: 1;
  width: min(54%, 590px);
  min-width: 0;
  margin: 0 auto 0 0;
  padding: 0;
  text-align: left;
  background: none;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.wdtx-xii-hero__eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 248, 236, .92);
  font-size: clamp(11px, 1.2vw, 14px);
  line-height: 1.55;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wdtx-xii-hero__title {
  margin: 0;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 7vw, 88px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .15);
}

.wdtx-xii-hero__divider {
  width: 145px;
  height: 2px;
  margin: 19px 0 19px;
  border-radius: 3px;
  background: linear-gradient(90deg, #f4b94d, rgba(244, 185, 77, .08));
}

.wdtx-xii-hero__lead {
  max-width: 465px;
  margin: 0 0 27px;
  color: rgba(255, 250, 244, .94);
  font-size: clamp(16px, 1.58vw, 20px);
  font-weight: 500;
  line-height: 1.43;
  text-wrap: pretty;
}

.wdtx-xii-hero__info {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin: 0 0 22px;
}

.wdtx-xii-hero__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  padding: 0 14px 0 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.wdtx-xii-hero__item + .wdtx-xii-hero__item {
  padding: 0 0 0 18px;
  border-left: 1px solid rgba(238, 200, 143, .42);
}

.wdtx-xii-hero__item-label {
  display: block;
  margin: 0 0 6px;
  color: var(--wdtx-xii-gold);
  font-size: 10px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.wdtx-xii-hero__item-value {
  display: block;
  color: #ffffff;
  font-size: clamp(16px, 1.38vw, 19px);
  line-height: 1.3;
  font-weight: 800;
}

.wdtx-xii-hero__item-note {
  display: block;
  margin: 5px 0 0;
  color: rgba(255, 247, 235, .76);
  font-size: 11px;
  line-height: 1.4;
  font-weight: 500;
}

.wdtx-xii-hero__location {
  max-width: 520px;
  margin: 0 0 24px;
  color: rgba(255, 250, 244, .9);
  font-size: clamp(13px, 1.18vw, 15px);
  line-height: 1.5;
  font-weight: 600;
}

.wdtx-xii-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 11px;
}

.wdtx-xii-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 0;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.wdtx-xii-hero__btn--primary {
  color: #ffffff !important;
  border-color: rgba(255, 191, 99, .8);
  background: linear-gradient(180deg, var(--wdtx-xii-orange), var(--wdtx-xii-coral));
  box-shadow: 0 10px 20px rgba(0, 0, 0, .18);
}

.wdtx-xii-hero__btn--ghost {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, .45);
  background: rgba(3, 26, 47, .38);
}

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

.wdtx-xii-hero__btn--primary:hover {
  box-shadow: 0 13px 27px rgba(0, 0, 0, .3);
}

.wdtx-xii-hero__btn--ghost:hover {
  border-color: rgba(255, 255, 255, .85);
  background: rgba(255, 255, 255, .14);
}

.wdtx-xii-hero__btn:focus-visible {
  outline: 3px solid #ffdf8f;
  outline-offset: 4px;
}

/* Nieco węższe desktopy: zachowujemy drugi plan dla dłoni. */
@media (max-width: 1050px) and (min-width: 821px) {
  .wdtx-xii-hero {
    min-height: 540px;
    padding: 40px 38px;
  }
  .wdtx-xii-hero__content { width: 56%; }
  .wdtx-xii-hero__title { font-size: clamp(48px, 6vw, 64px); }
  .wdtx-xii-hero__eyebrow { font-size: 11.5px; }
  .wdtx-xii-hero__lead { max-width: 415px; font-size: 16.5px; }
  .wdtx-xii-hero__item-note { font-size: 10px; }
  .wdtx-xii-hero__btn { padding-inline: 17px; }
}

/* Mobile i małe tablety: obraz na górze, treść bezpośrednio pod nim. */
@media (max-width: 820px) {
  .wdtx-xii-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0;
    border-radius: var(--wdt-radius-surface, 20px);
    background: var(--wdtx-xii-navy);
  }

  .wdtx-xii-hero::before,
  .wdtx-xii-hero::after {
    display: none;
  }

  .wdtx-xii-hero__visual {
    position: relative;
    z-index: 0;
    inset: auto;
    width: 100%;
    height: clamp(270px, 72vw, 420px);
    flex: none;
    background-position: 60% center;
  }

  .wdtx-xii-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg,
      rgba(6, 27, 49, 0) 44%,
      rgba(6, 27, 49, .04) 59%,
      rgba(6, 27, 49, .7) 85%,
      var(--wdtx-xii-navy) 100%);
  }

  .wdtx-xii-hero__content {
    z-index: 1;
    width: 100%;
    max-width: none;
    margin: -28px 0 0;
    padding: 0 clamp(20px, 5.3vw, 42px) 34px;
  }

  .wdtx-xii-hero__eyebrow { font-size: 11px; }
  .wdtx-xii-hero__title { font-size: clamp(45px, 10vw, 67px); }
  .wdtx-xii-hero__lead { max-width: 580px; font-size: 16px; }
  .wdtx-xii-hero__info { max-width: 580px; }
  .wdtx-xii-hero__location { max-width: 580px; font-size: 14px; }
  .wdtx-xii-hero__actions { max-width: 580px; }
  .wdtx-xii-hero__btn { min-height: 52px; font-size: 15px; }
}

@media (max-width: 520px) {
  .wdtx-xii-hero__visual {
    height: clamp(265px, 80vw, 345px);
    background-position: 60% center;
  }
  .wdtx-xii-hero__content { padding-bottom: 27px; }
  .wdtx-xii-hero__eyebrow { margin-bottom: 11px; font-size: 10px; letter-spacing: .11em; }
  .wdtx-xii-hero__title { font-size: clamp(40px, 10.5vw, 56px); }
  .wdtx-xii-hero__divider { margin: 16px 0; }
  .wdtx-xii-hero__lead { margin-bottom: 22px; font-size: 15px; }
  .wdtx-xii-hero__info { grid-template-columns: 1fr; gap: 16px; margin-bottom: 18px; }
  .wdtx-xii-hero__item { padding: 0; }
  .wdtx-xii-hero__item + .wdtx-xii-hero__item { padding: 0; border: 0; }
  .wdtx-xii-hero__item-label { margin-bottom: 3px; }
  .wdtx-xii-hero__item-note { font-size: 12px; }
  .wdtx-xii-hero__location { margin-bottom: 21px; }
  .wdtx-xii-hero__actions { flex-direction: column; gap: 10px; }
  .wdtx-xii-hero__btn { width: 100%; min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .wdtx-xii-hero__btn { transition: none; }
  .wdtx-xii-hero__btn:hover { transform: none; }
}