/* Temat: żółte tło + niebieska grafika full-bleed (jak tlo_udzial.png) */
.sectionTheme {
  position: relative;
  overflow: hidden;
  background-color: #ffcc05;
  background-image: none;
}

/* Niebieski pas — 100vw, wyśrodkowany względem sekcji */
.sectionTheme::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: calc(100vw * 548 / 1024);
  max-height: 820px;
  transform: translateX(-50%);
  background-image: url("../img/temat_tlo_bg.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: 100% auto;
  pointer-events: none;
}

.sectionTheme > img {
  display: block;
  position: absolute;
  left: 0;
  top: 38%;
  z-index: 1;
  width: 100%;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.sectionTheme .container {
  position: relative;
  z-index: 2;
}

/* Nagłówek Temat — XD (nadpisuje style.min: .sectionTheme h2 span { 116px }) */
.sectionTheme h2.sectionTheme__title {
  display: block;
  margin: 0 auto 70px;
  color: #ffffff;
  text-align: center;
  line-height: normal;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sectionTheme h2.sectionTheme__title .sectionTheme__titleBox {
  display: inline-block;
  position: relative;
  max-width: 100%;
  padding-bottom: clamp(64px, 8.33vw, 120px);
  vertical-align: top;
  font-size: 16px;
  font-weight: normal;
}

.sectionTheme h2.sectionTheme__title .sectionTheme__titleLine {
  display: block;
  white-space: nowrap;
  font-family: "Saira Condensed", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(56px, 8.33vw, 120px);
  line-height: 1;
  letter-spacing: 0;
}

.sectionTheme h2.sectionTheme__title .sectionTheme__titleAccent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: clamp(64px, 8.33vw, 120px);
  box-sizing: border-box;
  font-size: 16px;
  font-weight: normal;
}

.sectionTheme h2.sectionTheme__title .sectionTheme__titleAccentText {
  display: inline-block;
  font-family: "Saira", sans-serif;
  font-weight: 900;
  font-style: normal;
  font-size: clamp(68px, 9.79vw, 141px);
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transform-origin: center bottom;
}

@media (min-width: 1200px) {
  .sectionTheme h2.sectionTheme__title .sectionTheme__titleBox {
    padding-bottom: 120px;
  }

  .sectionTheme h2.sectionTheme__title .sectionTheme__titleLine {
    font-size: 120px;
    line-height: 120px;
  }

  .sectionTheme h2.sectionTheme__title .sectionTheme__titleAccent {
    height: 120px;
  }

  .sectionTheme h2.sectionTheme__title .sectionTheme__titleAccentText {
    font-size: 141px;
  }
}

@media (max-width: 991px) {
  .sectionTheme h2.sectionTheme__title .sectionTheme__titleLine {
    font-size: clamp(44px, 12vw, 72px);
    line-height: 1.05;
    white-space: normal;
  }

  .sectionTheme h2.sectionTheme__title .sectionTheme__titleAccent {
    position: static;
    display: block;
    height: auto;
    margin-top: 0.15em;
    text-align: center;
  }

  .sectionTheme h2.sectionTheme__title .sectionTheme__titleAccentText {
    font-size: clamp(52px, 14vw, 84px);
    transform: none !important;
  }

  .sectionTheme h2.sectionTheme__title .sectionTheme__titleBox {
    padding-bottom: 0;
  }
}

.sectionTheme__body {
  position: relative;
  max-width: 1120px;
  margin: -30px auto 0;
  min-height: clamp(360px, 32vw, 440px);
}

/* Kontener chmur — proporcje jak artboard ~1140px */
.sectionTheme__clouds {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 0;
  width: 100%;
  max-width: 1100px;
  height: clamp(320px, 28vw, 400px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.sectionTheme__cloud {
  position: absolute;
  display: block;
  width: auto;
  height: auto;
  max-width: none;
}

/* Lewa: wyżej, szeroka; prawa: niżej, nachodzi od ~46% */
.sectionTheme__cloud--left {
  left: 0;
  top: 0;
  width: 62.5%;
  max-width: 688px;
  z-index: 2;
}

.sectionTheme__cloud--right {
  left: 44.5%;
  top: 18%;
  width: 54.5%;
  max-width: 600px;
  z-index: 1;
}

.sectionTheme__columns {
  position: relative;
  z-index: 3;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(8px, 2.5vw, 32px);
  align-items: start;
  margin: 0;
  padding: clamp(56px, 5.5vw, 80px) clamp(4px, 1.5vw, 16px) clamp(40px, 4vw, 56px);
  list-style: none;
}

.sectionTheme__columns > li {
  position: relative;
  width: auto !important;
  max-width: none !important;
  margin-top: 0 !important;
  display: block;
}

.sectionTheme ul li .description {
  box-sizing: border-box;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 40px);
  color: #1d1d1d;
  font-family: "Archivo", sans-serif;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
}

.sectionTheme__columns > li:first-child .description {
  padding-right: clamp(12px, 2vw, 28px);
}

.sectionTheme ul li:last-of-type .description {
  max-width: 400px;
  margin-top: 0;
  padding: 0 clamp(16px, 2.5vw, 36px) 0 clamp(8px, 1.5vw, 20px);
}

.sectionTheme ul li .description p {
  margin: 0;
}

.sectionTheme__mobileCopy {
  display: none;
}

@media (min-width: 992px) {
  .sectionTheme {
    overflow: visible;
  }

  .sectionTheme__body {
    overflow: visible;
  }

  .sectionTheme__clouds {
    overflow: visible;
  }

  .sectionTheme__cloud--left {
    left: 1%;
    top: -9%;
  }

  .sectionTheme__cloud--right {
    left: 47%;
    top: -9%;
  }
}

@media (max-width: 991px) {
  .sectionTheme {
    /* style.min: padding-top 100px — nagłówek na niebieskim pasie SVG u góry */
    padding-top: 16px;
    padding-bottom: 0;
    margin-bottom: 0;
    background-color: #ffcc26;
    background-image: url("../img/teamt_tlo-grupa.svg");
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 100% auto;
  }

  .sectionTheme .subTitle {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
  }

  .sectionTheme h2.sectionTheme__title {
    display: block;
    margin: 0 auto 70px;
  }

  .sectionTheme::before {
    display: none;
  }

  .sectionTheme > img {
    display: none;
  }

  .sectionTheme__body {
    margin: 0;
    min-height: 0;
    padding-bottom: 0;
  }

  .sectionTheme__clouds--desktop {
    display: none;
  }

  .sectionTheme__columns--desktop {
    display: none !important;
  }

  .sectionTheme__mobileCopy {
    display: block;
    position: relative;
    z-index: 1;
    max-width: min(100%, 400px);
    margin: 0 auto;
    padding: 0 12px;
  }

  .sectionTheme__mobileCopy .description {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    margin: 0;
    padding: 44px 32px 40px;
    color: #1d1d1d;
    font-family: "Archivo", sans-serif;
    font-size: 16px;
    line-height: 1.45;
    text-align: left;
  }

  .sectionTheme__mobileCopy .description p {
    margin: 0;
  }

  .sectionTheme__mobileCopy .description p + p {
    margin-top: 1em;
  }

  .sectionTheme__mobileCopy .description::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 0;
    width: calc(100% + 126px);
    min-width: 450px;
    max-width: 590px;
    height: calc(100% + 56px);
    transform: translate(-50%, -50%) rotate(90deg);
    background-image: url("../img/shape_blue1_temat.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    pointer-events: none;
  }

  .sectionTheme__mobileCopy .description > * {
    position: relative;
    z-index: 1;
  }
}

/* Desktop: tekst usztywniony względem chmur.
   Chmury skalują się z szerokością kolumny (%), więc tekst też musi — stąd cqw
   zamiast vw: vw zmienia się płynnie z oknem, a .container Bootstrapa ma szerokość
   skokową (930 / 1110 px), przez co opis "odjeżdżał" od tła przy zmianie okna.
   Wartości = projekt przy szerokości kolumny 1110 px (1cqw = 11,1 px). */
@supports (container-type: inline-size) {
  .sectionTheme .row > .col-12 {
    container-type: inline-size;
  }

  @media (min-width: 992px) {
    .sectionTheme__body {
      margin-top: -2.7cqw;
      min-height: 39.64cqw;
    }

    .sectionTheme__clouds {
      width: 99.1%;
      max-width: none;
      height: 36.04cqw;
    }

    .sectionTheme__columns {
      column-gap: 2.88cqw;
      padding: 7.21cqw 1.44cqw 5.05cqw;
    }

    .sectionTheme ul li .description {
      max-width: 39.64cqw;
      padding: 0 3.6cqw;
      font-size: 1.53cqw;
    }

    .sectionTheme__columns > li:first-child .description {
      padding-right: 2.52cqw;
    }

    .sectionTheme ul li:last-of-type .description {
      max-width: 36.04cqw;
      padding: 0 3.24cqw 0 1.8cqw;
    }
  }
}
