/* Reset bardzo lekki */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-weight: 400;
}


/* Tło strony – DESKTOP: ciemne boki */
.page-pro {
  background: #777777;
}

/* Główny kontener (content 90%) */
.site-shell {
  width: 90%;
  margin: 0 auto;
  min-height: 100vh;
  background: #fdfdfd; /* bardzo jasna szarość */
}

/* Mobile – brak ciemnych boków, 1% margines */
@media (max-width: 768px) {
  .page-pro {
    background: #fdfdfd;
  }

  .site-shell {
    width: 98%;
    margin: 0 1%;
  }
}

/* Ogólne bloki */

.page-main {
  padding-bottom: 2rem;
}

.block {
  margin: 10px auto;
  padding: 14px 18px;
}

.block h2 {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Pasek kontaktowy */

.contact-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0f0f0;
    padding: 6px 5%;
    font-size: 0.9rem;
    position: relative; /* potrzebne dla absolutnego center */
}

.contact-bar__left,
.contact-bar__right {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* ŚRODEK — absolutne wycentrowanie */
.contact-bar__middle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    pointer-events: none; /* aby klikalność maila i tel się nie psuła */
}


/* MOBILE – ukrywamy napis „Zapraszamy…” */
@media (max-width: 768px) {
  .contact-bar__middle {
    display: none;
  }
}

.contact-bar .icon {
    width: 16px;
    height: 16px;
}

.contact-bar__date {
    margin-left: 1rem;
    color: #555;
}


/* Logo + tytuł */

.logo-title {
  padding: 8px 5%;
  background: #ffffff;
}

.logo-title__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-title__logo .logo {
  max-height: 60px;
  width: auto;
}

.logo-title__title {
  flex: 1;
  text-align: center;
}

.logo-title__title h1 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.08em;
}


/* Środkowe logo PRO PARTNERS — WYŚRODKOWANE */
.logo-title__pro {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    text-align: center;
}

.logo-title__pro img {
    
    width: 180px;
    height: auto;
}

@media (max-width: 768px) {
  .logo-title__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo-title__title {
    text-align: left;
  }
}

/* Menu na niebieskim pasku */

.menu-bar {
  background: linear-gradient(90deg, #24355A 0%, #0b8cbf 100%);
}




.menu-bar ul {
  list-style: none;
  margin: 0;
  padding: 0 5%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.menu-bar li {
  padding: 6px 0;
}

.menu-bar a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem; /* powiększenie o ~20% */
  position: relative;
  padding-left: 18px; /* miejsce na prostokąt */
  display: inline-block;
}

.menu-bar a:hover {
  text-decoration: underline;
}

/* Pomarańczowy prostokąt przed każdym linkiem */
.menu-bar a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  background: #F08A24; /* kolor z logotypu */
  border-radius: 2px;
  transform: translateY(-50%);
}

/* Hover – subtelne rozjaśnienie */
.menu-bar a:hover {
  opacity: 0.85;
}


/* BLOK 2: video + tekst */

/* BLOK 2 – hero z video i tekstem */

.block-hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;  /* po 50% szerokości na desktopie */
  gap: 24px;
  align-items: stretch;
}

/* W mobile – jedna kolumna pod drugą */
@media (max-width: 900px) {
  .block-hero__inner {
    grid-template-columns: 1fr;
  }
}


.hero-video {
  width: 100%;
  display: block;
  border-radius: 6px;
  background: #dddddd;
}

.block-hero__text h2 {
  margin-top: 0;
}

.block-hero__text p {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

@media (max-width: 900px) {
  .block-hero__inner {
    grid-template-columns: 1fr;
  }
}

.hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;      /* kwadrat 1:1 */
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}




/* BLOK 3: Dlaczego warto – kafelki */

.block-benefits {
  background: #ffffff;
}

.block-benefits h2 {
  text-align: center;
  margin-bottom: 16px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.benefit {
  background: #f7f7f7;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.94rem;
}

/* Numerki w kółkach (benefit-number) */
.benefit-number {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #0b8cbf; /* turkus jak w makiecie */
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 16px;
}

.benefit h3 {
  display: flex;
  align-items: center;
  margin-top: 0;
  margin-bottom: 4px;
}


.benefit h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1rem;
}

@media (max-width: 980px) {
  .benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* BLOK 4: before/after – 6 kafelków */

.block-before-after h2 {
  margin-bottom: 14px;
}

.before-after-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.before-after-item h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

/* Okno z efektem – wspólny rozmiar dla wszystkich */
.before-after {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;          /* stałe proporcje, np. jak w wizualizacji */
  border-radius: 22px;
  overflow: hidden;
  background: #000;
}

/* Obie warstwy są na sobie, obraz wypełnia okno i jest kadrowany */
.before-after__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;             /* dopasowanie z kadrowaniem */
}

/* warstwa "po" leży pod spodem */
.before-after__img--after {
  z-index: 1;
}

/* warstwa "przed" – domyślnie odsłonięta w połowie */
.before-after__img--before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

/* Suwak – pionowy pasek + okrąg jak na makiecie */
.before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #00b2e3;
  cursor: ew-resize;
  z-index: 3; /* klucz – suwak ponad obrazami */
}

.before-after__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #00b2e3;
  background: #ffffff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7);
}

@media (max-width: 980px) {
  .before-after-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .before-after-grid {
    grid-template-columns: 1fr;
  }
}

/* BLOK 5: Jak dołączyć – cztery kroki */

.block-how h2 {
  text-align: center;
  margin-bottom: 14px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.step {
  background: #ffffff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.94rem;
  border: 1px solid #e5e5e5;
}

.step h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* BLOK 6: FAQ + slider */

.block-faq-slider {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 10px;
}

.faq-column {
  font-size: 0.95rem;
}

.faq-item {
  margin-bottom: 6px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  padding: 6px 10px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item p {
  margin: 4px 0;
}

.slider-column h2 {
  margin-top: 0;
  margin-bottom: 8px;
}

.slider {
  position: relative;
  min-height: 300px;
  background: #ddd;
  border-radius: 6px;
  overflow: hidden;
}

.slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slider__slide.is-active {
  opacity: 1;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .block-faq-slider {
    grid-template-columns: 1fr;
  }
}

/* BLOK 7: Szkolenia + mapa */
.block-courses {
  background: #fdfdfd;
}

.courses-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
}

@media (max-width: 980px) {
  .courses-layout {
    grid-template-columns: 1fr;
  }
}

.courses-list {
  /* pojedyncza tabela, więc bez grida */
}

/* TABELA SZKOLEŃ */

.courses-table-wrapper {
  background: #ffffff;
  border-radius: 10px;
  border: 1px solid #e5e5e5;
  overflow: hidden;
}

.courses-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.courses-table thead {
  background: #f5f7fb;
}

.courses-table th,
.courses-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eeeeee;
}

.courses-table th {
  font-weight: 600;
  font-size: 0.9rem;
  color: #24355A;
}

.courses-table tr:last-child td {
  border-bottom: none;
}

.courses-th-sub {
  font-weight: 400;
  font-size: 0.78rem;
  color: #666;
}

.course-table__place {
  font-size: 0.86rem;
  color: #444;
}

.course-table__price {
  margin-top: 4px;
  font-size: 0.84rem;
}

/* Małe przyciski w tabeli */
.btn--sm {
  padding: 5px 14px;
  font-size: 0.85rem;
}

/* Responsywność tabeli – wersja mobilna jako "karty" */

@media (max-width: 720px) {
  .courses-table thead {
    display: none;
  }

  .courses-table,
  .courses-table tbody,
  .courses-table tr,
  .courses-table td {
    display: block;
    width: 100%;
  }

  .courses-table tr {
    border-bottom: 1px solid #e5e5e5;
    padding: 8px 10px;
  }

  .courses-table td {
    border-bottom: none;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
  }

  .courses-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    font-size: 0.86rem;
  }

  .courses-table td[data-label="Warunki"],
  .courses-table td[data-label="Formularz"] {
    justify-content: flex-start;
  }
}
/* MAPA SZKOLEŃ */

.courses-map-wrapper {
  min-height: 260px;
}

#courses-map {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}
.courses-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 14px;
  align-items: start;
}


/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 999px; /* pastylka, bardziej premium */
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.1s ease;
}

/* PRIMARY – granat jak menu */
.btn--primary {
  background: #24355A;
  color: #ffffff;
  border-color: #24355A;
}

/* SECONDARY – biały z granatową ramką */
.btn--secondary {
  background: #ffffff;
  color: #24355A;
  border-color: #24355A;
}

/* Hover – lekkie podbicie + pomarańczowy akcent */
.btn--primary:hover {
  background: #F08A24;      /* pomarańcz jak w logotypie */
  border-color: #F08A24;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}

.btn--secondary:hover {
  background: #24355A;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}

/* Mały efekt po kliknięciu */
.btn:active {
  transform: translateY(0);
  box-shadow: none;
}


/* Dół strony – CTA */

.block-cta-bottom {
  text-align: center;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Stopka */

.site-footer {
  background: #0c4a6e;
  color: #ffffff;
  font-size: 0.85rem;
  margin-top: 10px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 5%;
}

.site-footer a {
  color: #ffffff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
/* Numerki w kółkach w krokach (jak w makiecie) */

.step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.step-number {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #0b8cbf; /* ten sam turkus co w benefit-number */
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0;
  font-size: 0.98rem;
}
/* FAQ – znacznik przed pytaniem */

.faq-item summary {
  position: relative;
  padding-left: 22px; /* miejsce na znacznik */
  font-weight: 600;
  cursor: pointer;
}

/* Kolorowy prostokąt */
.faq-item summary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #0b8cbf; /* turkus Elverre */
  border-radius: 2px;
  transform: translateY(-50%);
}

/* Ukrycie standardowej strzałki */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Odstęp po rozwinięciu */
.faq-item p {
  margin-left: 22px;
}
h1, h2, h3, h4 {
  font-family: "Rubik", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.1rem;
}
/* Nagłówki bloków z kropką */

.block-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.block-title__dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #F08A24; /* pomarańcz z logotypu */
    flex-shrink: 0;
}

.block-title h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
}
/* Nagłówki bloków z animowaną kropką i linią */

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

/* Kropka – domyślnie szarawa, trochę mniejsza i przygaszona */
.block-title__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d0d0d0;
  flex-shrink: 0;
  transform: scale(0.6);
  opacity: 0.5;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    background-color 0.35s ease;
}

/* Sam tytuł */
.block-title h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #111111;
  position: relative;
  transition: color 0.35s ease;
}

/* Linia za tytułem – pojawia się jako pseudo-element, jest flex-itemem */
.block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 10px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18),
    rgba(0, 0, 0, 0)
  );
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: left center;
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* STAN AKTYWNY BLOKU – kiedy sekcja jest w viewport */

.block--active .block-title__dot {
  background: #F08A24;       /* pomarańcz jak w menu */
  transform: scale(1);
  opacity: 1;
}

.block--active .block-title h2 {
  color: #24355A;            /* granat z logo Elverre */
}

.block--active .block-title::after {
  opacity: 1;
  transform: scaleX(1);
}



/* Nakładka z tekstem na wideo */
.hero-overlay {
  position: absolute;
  inset: 0;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.0) 100%
  );
  color: #ffffff;
  pointer-events: none; /* kliknięcia wideo, nie overlay */
}

.hero-overlay h2 {
  margin: 0 0 4px;
  font-size: 1.4rem;
  font-weight: 600;
}

.hero-overlay p {
  margin: 0;
  font-size: 0.95rem;
  max-width: 80%;
}

/* TEKST – scrollowany panel */

.block-hero__text {
  display: flex;
  flex-direction: column;
  max-height: 420px;
}

.hero-text-scroll {
  margin-top: 8px;
  padding-right: 6px;
  max-height: 800px;
  min-height: 600px;
  overflow-y: auto;
  font-size: 0.95rem;
}

/* ładniejszy scroll w nowszych przeglądarkach */
.hero-text-scroll::-webkit-scrollbar {
  width: 6px;
}

.hero-text-scroll::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 3px;
}

.hero-lead {
  margin-top: 0;
  margin-bottom: 10px;
}

/* separatory między „blokami” tekstu */

.hero-separator {
  height: 1px;
  margin: 8px 0 12px;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0)
  );
}

/* ikony–kółka przed nagłówkami „bulletów” */

.hero-bullet {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.hero-bullet__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #0b8cbf;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 4px;
}

.hero-bullet__body h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.hero-bullet__body p {
  margin: 0 0 4px;
}

.hero-footnote {
  font-size: 0.9rem;
  margin-top: 4px;
}
/* --- MOBILE HEADER ANIMACJA LOGO --- */

@media (max-width: 768px) {

  /* układ pionowy zamiast absolutnego */
  .logo-title__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4%;
  }

  .logo-title__logo,
  .logo-title__pro {
    position: static;
    transform: none;
  }

  .logo-title__logo .logo {
    max-width: 70vw;
    height: auto;
  }

  .logo-title__pro .logo-pro {
    max-width: 65vw;
    height: auto;
  }

  /* startowa przeźroczystość PRO (będzie w animacji) */
  .logo-title__pro {
    opacity: 0;
  }

  /* ANIMACJE – uruchamiane dzięki klasie .logo-title--animated */

  .logo-title--animated .logo-title__logo {
    animation: elverreMobileIntro 1.1s ease-out forwards;
  }

  .logo-title--animated .logo-title__pro {
    animation: proMobileIntro 1.1s ease-out 0.6s forwards;
  }
}

/* Elverre: z centrum -> w lewo + zmniejszenie */
@keyframes elverreMobileIntro {
  0% {
    transform: translateX(0) scale(1);
  }
  100% {
    transform: translateX(-30%) scale(0.4); /* ~15–30% szerokości ekranu */
  }
}

/* Pro Partners: pojawia się, rośnie, lekko „pulsuje” */
@keyframes proMobileIntro {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.7);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- TELEFON W POZIOMIE: logo Pro na prawo z animacją --- */
/* celujemy w telefony: niska wysokość + landscape */
@media (max-height: 500px) and (orientation: landscape) {

  /* układ w jednym rzędzie */
  .logo-title__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4%;
  }

  /* wyłączamy mobilną animację „z góry” */
  .logo-title--animated .logo-title__logo,
  .logo-title--animated .logo-title__pro {
    
  }

  .logo-title__logo {
    position: relative;
    z-index: 2;
  }

  .logo-title__logo .logo {
    max-width: 26vw;   /* mniejsze, żeby nie walczyło z Pro */
    height: auto;
  }

  /* PRO: ustawiamy jako zwykły element po prawej, nie absolutny */
  .logo-title__pro {
    position: relative;
    left: auto;
    transform: none;
    margin-left: auto;
    opacity: 0;              /* start do animacji */
  }

  .logo-title__pro .logo-pro {
    max-width: 40vw;
    height: auto;
  }

  /* animacja przesunięcia logo Pro do prawej krawędzi */
  .logo-title--animated .logo-title__pro {
    animation: proLandscapeSlide 0.8s ease-out 0.1s forwards;
  }
}

/* Logo Pro: lekkie „wpłynięcie” z prawej z pojawieniem */
@keyframes proLandscapeSlide {
  0% {
    opacity: 0;
    transform: translateX(40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
/* BLOK 8 – formularz zgłoszeniowy */

.block-apply {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  max-width: 900px;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;

  /* stan początkowy (ukryty) */
  opacity: 0;
  transform: scale(0.9);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s ease,
    transform 0.45s ease,
    max-height 0.9s ease;
}

/* Po aktywacji przez JS */
.block-apply.block-apply--visible {
  opacity: 1;
  transform: scale(1);
  max-height: 1200px; /* wystarczająco dużo dla treści */
  pointer-events: auto;
}

.apply-inner {
  padding: 14px 18px 18px;
}

.apply-intro {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.apply-course-summary {
  color: #24355A;
}

/* siatka pól */
.apply-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  border: 1px solid #d4d7e2;
  border-radius: 8px;
  padding: 7px 9px;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: #0b8cbf;
  box-shadow: 0 0 0 2px rgba(11,140,191,0.18);
}

/* RODO / checkbox */

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
}

/* dół formularza */

.apply-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.apply-rodo {
  flex: 1;
}

/* Mobile – jedna kolumna */

@media (max-width: 720px) {
  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .block-apply {
    margin-left: 0;
    margin-right: 0;
  }
}
/* --- BLOK 8: Zgłoszenie indywidualnego szkolenia --- */

/* Sekcja ukryta / rozwijana animacją */
.block-apply {
  max-height: 0;
  opacity: 0;
  transform: scale(0.96);
  transform-origin: top center;
  overflow: hidden;
  transition:
    max-height 0.7s ease,
    opacity 0.5s ease,
    transform 0.7s ease;
}

/* Po kliknięciu przycisku dostaje klasę block-apply--open */
.block-apply--open {
  max-height: 1200px;   /* wystarczająco dużo na całą sekcję */
  opacity: 1;
  transform: scale(1);
}

.apply-intro {
  font-size: 0.95rem;
  margin-bottom: 12px;
}

/* „Karta” formularza na środku */
.apply-form-shell {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.apply-form {
  margin: 0;
}

.apply-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.form-field label {
  font-weight: 500;
}

.form-field input[type="text"],
.form-field input[type="tel"],
.form-field input[type="email"],
.form-field input[type="number"] {
  border-radius: 6px;
  border: 1px solid #d0d7e2;
  padding: 6px 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field input:focus {
  outline: none;
  border-color: #0b8cbf;
  box-shadow: 0 0 0 1px rgba(11,140,191,0.2);
}

.form-field--wide {
  margin-top: 10px;
  grid-column: 1 / -1;
  font-size: 0.85rem;
}

.apply-submit {
  margin-top: 12px;
}

/* Mobile: jedna kolumna */
@media (max-width: 720px) {
  .apply-form-grid {
    grid-template-columns: 1fr;
  }

  .block-apply--open {
    max-height: 1600px;
  }
}

/* --- POPRAWKA WYSOKOŚCI BLOKU 2 NA MOBILE --- */
@media (max-width: 900px) {
  .block-hero__text {
    max-height: none;          /* brak limitu wysokości */
  }

  .hero-text-scroll {
    max-height: none;
    min-height: 0;
    overflow-y: visible;       /* bez wewnętrznego scrolla */
  }
}
