/* =========
   Szkolenia – podstrona
   ========= */
:root {
  --line: #e5e7eb;
  --muted: #6b7280;
  --muted2: #374151;
  --shadow: 0 8px 24px rgba(17, 17, 17, .06);
}

/* Hero */
.train-hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
}

.train-hero .breadcrumb {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: .5rem;
}

.train-hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.12;
  margin: 0 0 .5rem;
}

.train-hero .lead {
  max-width: 720px;
  color: var(--muted2);
  margin: 0;
}

.eyebrow {
  font-size: .6rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 .5rem
}

/* Offers */

/* Products -------------------------------------------- */
.offers {
  padding: 2rem 0 2rem;
  margin-bottom: 50px;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  max-width: 900px;
  margin: 0 auto;
}

.offer {
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 1.5rem 2rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.offer:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

/* Ikona na górze */
.offer::before {
  content: '';
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  background: #f5f5f5;
  border-radius: 8px;
  display: block;
}

.offer h2 {
  font-size: 1.5rem;
  text-align: center;
  height: 30px;
  font-weight: 400;
  margin: 0 0 1rem;
  font-family: 'Source Serif 4', serif;
}

.offer>p {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1rem;
  min-height: 3em;
}

/* Sekcja z danymi (Użytkownicy, Kraje UE, Wyszukiwarki) */
.kv {
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}

.kv li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.kv .k {
  color: var(--muted2);
  font-weight: 400;
}

.kv .v {
  font-weight: 600;
  color: #111;
}

/* Funkcje podstawowe */
.offer__body h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin: 0 0 1rem;
  font-weight: 600;
}

/* Styl ceny w ofercie */
.offer-price {
  font-size: 1.7rem;
  font-weight: 700;
  color: #111;
  /* var(--text) is not defined in this file's root, using #111 */
  margin: 0.25rem 0;
  letter-spacing: -0.02em;
}

.bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--muted2);
  line-height: 1.5;
}

.bullets li::before {
  content: '✓';
  color: #22c55e;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Przyciski na dole */
.offer__cta {
  margin-top: auto;
  padding-top: 1.5rem;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn:first-child {
  background: #111;
  color: #fff;
  border-color: #111;
}

.btn:hover {
  background: #333;
  border-color: #333;
}

.btn--ghost:hover {
  background: #f9f9f9;
  border-color: #ccc;
}

/* Wyróżnienie środkowej karty (opcjonalne) */
.offer:nth-child(2) {
  position: relative;
  border-color: #111;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}

.offer:nth-child(2) .btn:first-child {
  background: #111;
}

/* Note pod ofertami */
.note {
  color: var(--muted);
  font-size: .9rem;
  margin-top: .75rem;
}

/* CTA banner */
.cta-banner {
  margin: 3rem 0 4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(to bottom right, #FFFDE7, #FFECB3, #FFCC80);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-banner h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cta-actions {
  display: flex;
  gap: .75rem;
}

/* Ikona usługi - zastępuje ::before */
.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all 0.3s ease;
}

.service-icon2 {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  background: linear-gradient(to bottom right, #FFFDE7, #FFECB3, #FFCC80);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: all 0.3s ease;
}

.service-icon svg,
.service-icon2 svg {
  width: 100%;
  height: 100%;
  display: block;
  stroke: #000 !important;
}

.offer .service-icon svg circle,
.offer .service-icon svg path,
.offer .service-icon svg line {
  stroke: #bebebe;
  transition: stroke 0.3s ease;
}

.offer .service-icon2 svg circle,
.offer .service-icon2 svg path,
.offer .service-icon2 svg line {
  stroke: #000;
  transition: stroke 0.3s ease;
}

/* Skalowanie ikon przy hover - bez zmiany kolorów */
.offer:hover .service-icon,
.offer:hover .service-icon2 {
  transform: scale(1.05);
}

.offer:nth-child(2):hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

/* Usuń stare ::before */
.offer::before {
  display: none;
}

/* ===== FAQ: wyśrodkowane FAQ + lewy CTA na środku wysokości ===== */
:root {
  --faq-width: 720px;
  /* szerokość kolumny FAQ */
  --faq-gap-left: 240px;
}

/* Sekcja */
.faq {
  position: relative;
  display: flex;
  justify-content: center;
  /* FAQ na środku */
  padding: 40px 0 140px;
  background: #fff;
  color: #111;
}

/* Główna kolumna FAQ */
.faq-main {
  width: var(--faq-width);
  max-width: 550px;
  z-index: 1;
}

/* Lewy box – po lewej stronie, wyśrodkowany pionowo */
.faq-cta-floating {
  position: absolute;
  top: 50%;
  /* środek sekcji */
  left: calc(50% - (var(--faq-width) / 2) - var(--faq-gap-left));
  transform: translateY(-50%);
  width: 280px;
  text-align: left;
}

.faq-cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e5e7eb;

  padding: 24px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

/* Tekst i przycisk CTA */
.faq-note {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 0.95rem;
}

.faq-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-weight: 500;
  border: 1px solid #000;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.faq-cta:hover {
  background: #eeeeee;
  transform: translateY(-1px);
}

/* --- FAQ styl właściwy --- */
.faq-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 8px;
}

.faq-sub {
  color: #6b7280;
  margin-bottom: 24px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details.faq-item {
  border: 1px solid #e5e7eb;

  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, .06);
}

summary.faq-q {
  padding: 18px 56px 18px 20px;
  list-style: none;
  cursor: pointer;
  position: relative;
  user-select: none;
}

summary.faq-q::-webkit-details-marker {
  display: none;
}

.faq-q__text {
  font-weight: 500;
  color: #000;
  font-size: 0.85rem;
}

.chev {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.chev svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

details[open] .chev svg {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 20px 18px 20px;
  color: #111827;
}

/* Dots */
.dots {
  position: absolute;
  inset: auto 0 -120px 0;
  height: 360px;
  background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
  background-size: 16px 16px;
  opacity: 0.45;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0));
}

/* --- Responsywność --- */
@media (max-width: 1100px) {
  :root {
    --faq-gap-left: 260px;
  }
}

@media (max-width: 960px) {
  .faq {
    flex-direction: column;
    align-items: center;
    padding: 60px 20px 100px;
  }

  .faq-cta-floating {
    position: static;
    transform: none;
    width: 100%;
    max-width: 400px;
    margin-bottom: 40px;
  }

  .faq-cta-box {
    align-items: flex-start;
    width: 100%;
  }

  .faq-main {
    width: 100%;
    max-width: 700px;
  }
}

/* Mobile optimizations for Szkolenia page */
@media (max-width: 768px) {
  .offers-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .offer {
    padding: 1.5rem;
    width: 100%;
    margin: 0 auto;
  }

  .cta-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .cta-banner h3 {
    margin-bottom: 1rem;
  }

  .cta-actions {
    justify-content: center;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .train-hero {
    padding: 3rem 0 1rem;
  }

  .faq-a {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}