

/* Sekcja 12  Typ sekcji Odliczanie Widok Odliczanie w kołach */

#section12 {
& {
  padding: 36px 16px !important;
  background: #f7f9fc;
}

& #CountdownInCircles {
  margin: 0;
  padding: 0;
  background: transparent;
}

& #CountdownInCircles > .container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

/* Dotychczasowy tekst, spójny z nagłówkami strony */
& .timer-title {
  margin: 0 0 28px;
  color: #234879;
  text-align: center;
  line-height: 1.4;
}

& .timer-title,
& .timer-title span {
  font-family: inherit !important;
  font-size: clamp(20px, 2.3vw, 28px) !important;
  font-weight: 600;
}

/* Szerokość niezależna od ustawień wtyczki */
& #DateCountdown {
  width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

& #DateCountdown .time_circles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
  width: 100% !important;
  height: auto !important;
}

/* Ukrywamy jedynie rysowane okręgi */
& #DateCountdown canvas {
  display: none !important;
}

/* Liczby nadal aktualizuje skrypt CMS */
& #DateCountdown .time_circles > div {
  box-sizing: border-box;
  position: static !important;
  inset: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: auto !important;
  min-width: 0;
  height: auto !important;
  margin: 0;
  padding: 26px 12px;
  border: 1px solid #dce5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 5px 18px rgb(3 38 115 / 4%);
  text-align: center;
}

& #DateCountdown .time_circles > div > span {
  order: -1;
  display: block;
  width: auto;
  margin: 0;
  color: #032673;
  font-family: inherit;
  font-size: clamp(32px, 4.5vw, 54px) !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1 !important;
}

& #DateCountdown .time_circles > div > h4 {
  margin: 0;
  padding: 0;
  color: #526782;
  font-family: inherit;
  font-size: 12px !important;
  font-weight: 500;
  line-height: 1.4 !important;
  letter-spacing: .1em;
}

@media (max-width: 480px) {
  & {
    padding: 28px 16px !important;
  }

  & #DateCountdown .time_circles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  & #DateCountdown .time_circles > div {
    padding: 22px 12px;
  }
}
}


/* Sekcja 6  Typ sekcji Home Widok Home Center */

#section6 {
& {
  --ptp-banner-art: url("/upload/XXXVIII_ZjazdPTP2027_1920px_www.png");
  --ptp-banner-ratio: 1920 / 850;

  padding: 60px 0 0 !important;
  margin-top: 0 !important;
  background: #032673;
}

& #HomeCenter {
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: auto;
  background: #032673 !important;
}

& #HomeCenter::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: var(--ptp-banner-ratio);
  background: var(--ptp-banner-art) center / contain no-repeat;
}

& #HomeCenter > div {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  padding: 18px clamp(16px, 4vw, 40px);
}

& #HomeCenter #home-text {
  width: 100%;
  max-width: 1108px;
  height: auto;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  color: #fff;
  animation: none;
}
& #HomeCenter #home-text > .mb-3,
& #HomeCenter #home-text .icon-text:has(.fa-calendar) {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

& #HomeCenter #home-text > hr {
  display: none;
}

& #HomeCenter #home-text > .d-flex {
  flex: 1 1 270px;
  width: auto !important;
  max-width: 100%;
  margin: 0 !important;
  align-items: center;
  justify-content: flex-start;
}

& #HomeCenter #home-text .icon-text:has(.fa-map-pin) {
  width: auto;
  padding: 0;
  justify-content: flex-start;
  gap: 10px;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.4;
  text-transform: none;
}

& #HomeCenter #home-text .fa-map-pin {
  margin: 0 !important;
  font-size: 18px;
}

& #HomeCenter #home-text .button-wrapper {
  width: auto;
  margin: 0;
}

& #HomeCenter #home-text .button-wrapper a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 8px 22px;
  border-radius: 8px;
  background: #fff;
  color: #032673 !important;
  text-decoration: none !important;
}

& #HomeCenter #home-text .button-wrapper a p {
  margin: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.4;
}

& #HomeCenter #home-text .button-wrapper a:hover {
  background: #eaf0f7;
}

& #HomeCenter #home-text .button-wrapper a:focus-visible {
  outline: 3px solid #fff !important;
  outline-offset: 4px;
}

@media (max-width: 900px),
       (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  & {
    --ptp-banner-art: url("/upload/XXXVIII_ZjazdPTP2027_750x350px_mobile_poziom.png");
    --ptp-banner-ratio: 750 / 350;
  }
}

@media (max-width: 600px) and (orientation: portrait) {
  & {
    --ptp-banner-art: url("/upload/XXXVIII_ZjazdPTP2027_750px_mobile.png");
    --ptp-banner-ratio: 750 / 850;
  }
}

@media (max-width: 600px) {
  & #HomeCenter #home-text {
    flex-direction: column;
    text-align: center;
  }

  & #HomeCenter #home-text > .d-flex {
    flex: 0 1 auto;
    justify-content: center;
  }

  & #HomeCenter #home-text .icon-text:has(.fa-map-pin) {
    justify-content: center;
  }
}

}
