/* ============================================
   KURSY – kursy.css (wspólny dla wszystkich kursów)
   ============================================ */

/* ---------- PAGE HERO ---------- */
.page-hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero--teal  { background: #0091CD; color: #fff; border-bottom: none; padding: 64px 0; }
.page-hero--coral { background: #1E69B3; color: #fff; border-bottom: none; padding: 64px 0; }
.page-hero--navy  { background: #27324A; color: #fff; border-bottom: none; padding: 64px 0; }

.page-hero--teal  .section-label,
.page-hero--coral .section-label,
.page-hero--navy  .section-label { color: rgba(255,255,255,0.7); }

.page-hero--teal  h1,
.page-hero--coral h1,
.page-hero--navy  h1 { color: #fff; margin-bottom: 10px; }

.page-hero--teal  p,
.page-hero--coral p,
.page-hero--navy  p { color: rgba(255,255,255,0.8); font-size: 18px; }

.course-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ---------- ACTIVE NAV ---------- */
.navbar-links a.active { color: var(--teal); font-weight: 600; }

/* ---------- SECTION BG ---------- */
.section-bg { background: var(--gray-50); }

/* ---------- COURSE INTRO ---------- */
.course-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: stretch;
}

.course-intro-aside .package-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.course-intro-text .lead {
  font-size: 17px;
  color: var(--gray-900);
  line-height: 1.7;
  margin-bottom: 16px;
  font-weight: 500;
}

.course-intro-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 12px;
}

.course-intro-text em {
  font-style: normal;
  color: var(--teal);
  font-weight: 600;
}

.img-placeholder {
  background: var(--gray-100);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-400);
  letter-spacing: 0.04em;
  text-align: center;
  margin-bottom: 16px;
}
.img-placeholder.large { height: 280px; }
.img-placeholder.medium { height: 200px; }

.eltons-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--teal-light);
  border-radius: 10px;
  padding: 14px 16px;
}

.eltons-icon {
  font-size: 24px;
  color: var(--teal);
}

.eltons-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-900);
}

.eltons-sub {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

/* ---------- STATS BAR ---------- */
.stats-bar {
  background: var(--teal);
  padding: 40px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* ---------- GRUPY ---------- */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.group-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
}

.group-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.group-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 3px;
}

.group-age {
  font-size: 13px;
  color: var(--gray-400);
}

/* ---------- METODA ---------- */
.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.method-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.2s, transform 0.2s;
}

.method-item:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.method-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-icon svg { width: 22px; height: 22px; }

.method-icon--teal   { background: #e0f4f5; }
.method-icon--teal svg   { stroke: #1d919a; }
.method-icon--orange { background: #fff0e0; }
.method-icon--orange svg { stroke: #e07b20; }
.method-icon--purple { background: #f0e8f8; }
.method-icon--purple svg { stroke: #7c3aed; }
.method-icon--gold   { background: #fef9e0; }
.method-icon--gold svg   { stroke: #c49a00; }
.method-icon--rose   { background: #fde8f0; }
.method-icon--rose svg   { stroke: #db2777; }
.method-icon--blue   { background: #e0eeff; }
.method-icon--blue svg   { stroke: #2563eb; }

/* stary system kolorów - zachowany dla kompatybilności */
.method-icon.teal  { background: #e0f4f5; }
.method-icon.teal svg  { stroke: #1d919a; }
.method-icon.coral { background: #fff0e0; }
.method-icon.coral svg { stroke: #e07b20; }
.method-icon.navy  { background: #e0eeff; }
.method-icon.navy svg  { stroke: #2563eb; }

.method-item h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: var(--gray-900);
}

.method-item p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ---------- ETAPY / STAGES ---------- */
.stages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.stage-card {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  position: relative;
}

.stage-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.stage-card h3 {
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.stage-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---------- WIDEO ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.video-placeholder {
  background: var(--gray-900);
  border-radius: 12px;
  height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  position: relative;
}

.video-play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
}

.video-label {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 0 20px;
}

/* ---------- GALERIA ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 220px 220px;
  gap: 12px;
}

.gallery-item {
  background: var(--gray-100);
  border-radius: 10px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
  overflow: hidden;
}

.gallery-item.tall {
  grid-row: span 2;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}

/* ---------- MATERIAŁY (Savvy Ed) ---------- */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.material-card {
  border: 2px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.material-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.material-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.material-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ---------- POZIOMY (Edward's League) ---------- */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.level-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}

.level-img {
  height: 160px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--navy);
  font-weight: 500;
}

.level-body {
  padding: 16px;
}

.level-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.level-desc {
  font-size: 12px;
  color: var(--gray-600);
}

/* ---------- PAKIET EDUKACYJNY ---------- */
.package-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.package-list li {
  display: block;
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.package-list li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  position: absolute;
  left: 0;
  top: 0;
}

.package-list--desc li div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pkg-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ---------- SEKCJA APLIKACJI ---------- */
.app-section { padding: 60px 0 80px; }
.app-section .package-section-grid { align-items: center; }
.app-section .package-photo { display: flex; align-items: center; justify-content: center; }
.app-section .app-img { max-width: 300px; width: 100%; }
.app-section .section-label { color: rgba(255,255,255,0.7); }
.app-section .section-title { color: #fff; }
.app-section .app-text { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.7; }


/* ---------- HERO SPLIT (logo obok tekstu) ---------- */
.hero-split {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.hero-split-logo img {
  height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
}

@media (max-width: 700px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split-logo { display: none; }
}

/* ---------- HERO BUTTONS ---------- */
.hero-btns {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- SECTION DESC ---------- */
.section-desc {
  font-size: 15px;
  color: var(--gray-600);
  max-width: 560px;
  margin: 8px auto 0;
  line-height: 1.7;
}

/* ---------- QUICK FACTS BAR ---------- */
.quick-facts-bar {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}

.quick-facts-grid {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.quick-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 32px;
  border-right: 1px solid var(--gray-200);
  text-align: center;
}

.quick-fact:last-child { border-right: none; }

.qf-icon {
  width: 28px;
  height: 28px;
  color: var(--teal);
  margin-bottom: 4px;
}
.qf-icon svg { width: 100%; height: 100%; }

.qf-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  font-weight: 600;
}

.qf-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
}

.qf-value--green { color: #16a34a; }

/* ---------- BENEFITS ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.benefit-card {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
}

.benefit-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 12px;
}

.benefit-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.benefit-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ---------- TE LEVELS ---------- */
/* ---------- LEVELS SECTION ---------- */
.te-levels-section {
  background: #0091CD;
  padding: 60px 0 80px;
}

.te-levels-header .section-label { color: rgba(255,255,255,0.7); }
.te-levels-header .section-title { color: #fff; }
.te-levels-header .section-desc  { color: rgba(255,255,255,0.85); }

.te-levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 120px;
  align-items: stretch;
}

.te-level-card {
  overflow: visible;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.te-level-card:hover .te-level-body {
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

.te-level-card:hover .te-level-mascot img {
  transform: scale(1.08) translateY(-6px);
}

.te-level-mascot {
  text-align: center;
  margin-top: -110px;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}

.te-level-mascot img {
  height: 170px;
  transition: transform 0.25s ease;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2));
}

.te-level-body {
  padding: 12px 20px 20px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  transition: box-shadow 0.25s ease;
  flex: 1;
}

.te-level-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.te-level-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.te-level-age {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
}

.te-start    { background: #f59e0b; }
.te-standard { background: #22c55e; }
.te-abc      { background: #3b82f6; }
.te-superhero { background: #ef4444; }

.te-level-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
}

.te-level-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.te-level-details span {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.te-level-details span::before {
  content: '· ';
  color: var(--gray-300);
}

.te-level-cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.te-level-cta:hover {
  opacity: 0.75;
}

.te-level-bar {
  height: 8px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

/* ---------- EDWARD'S LEAGUE POZIOMY ---------- */
.el-levels-section { background: #27324A; padding: 60px 0 80px; }
.el-levels-header .section-label { color: rgba(255,255,255,0.7); }
.el-levels-header .section-title { color: #fff; }
.el-levels-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; padding-top: 120px; align-items: stretch; }
.el-level-card { overflow: visible; background: transparent; position: relative; display: flex; flex-direction: column; cursor: default; }
.el-level-card:hover .el-level-body { box-shadow: 0 16px 48px rgba(0,0,0,0.28); }
.el-level-mascot { text-align: center; margin-top: -110px; position: relative; z-index: 2; padding: 0 8px; }
.el-level-mascot img { height: 170px; width: auto; object-fit: contain; transition: transform 0.25s ease; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2)); }
.el-level-card:hover .el-level-mascot img { transform: scale(1.08) translateY(-6px); }
.el-level-body { padding: 12px 20px 20px; background: #fff; border-radius: 16px 16px 0 0; box-shadow: 0 8px 30px rgba(0,0,0,0.18); transition: box-shadow 0.25s ease; flex: 1; }
.el-level-title-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.el-level-name { font-size: 18px; font-weight: 700; color: var(--gray-900); }
.el-level-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #fff; padding: 2px 8px; border-radius: 20px; }
.el-badge--1 { background: #2d7a4f; }
.el-badge--2 { background: #9b2335; }
.el-badge--3 { background: #3d4f6b; }
.el-level-body p { font-size: 13px; color: var(--gray-600); line-height: 1.6; margin-bottom: 14px; }
.el-level-details span { font-size: 12px; color: var(--gray-400); font-weight: 500; }
.el-level-details span::before { content: '· '; }
.el-level-bar { height: 8px; border-radius: 0 0 16px 16px; box-shadow: 0 8px 30px rgba(0,0,0,0.18); }
.el-bar--1 { background: #2d7a4f; }
.el-bar--2 { background: #9b2335; }
.el-bar--3 { background: #3d4f6b; }

@media (max-width: 900px) { .el-levels-grid { grid-template-columns: repeat(2,1fr); padding-top: 100px; row-gap: 130px; } }
@media (max-width: 600px)  { .el-levels-grid { grid-template-columns: 1fr; padding-top: 90px; gap: 130px; } }

/* ---------- SAVVY ED POZIOMY ---------- */
.se-levels-section {
  background: #1E69B3;
  padding: 60px 0 80px;
}

.se-levels-header .section-label { color: rgba(255,255,255,0.7); }
.se-levels-header .section-title { color: #fff; }
.se-levels-header .section-desc  { color: rgba(255,255,255,0.85); }

.se-levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 120px;
  align-items: stretch;
}

.se-level-card {
  overflow: visible;
  background: transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: default;
}

.se-level-card:hover .se-level-body {
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

.se-level-card:hover .se-level-mascot img {
  transform: scale(1.08) translateY(-6px);
}

.se-level-mascot {
  text-align: center;
  margin-top: -110px;
  position: relative;
  z-index: 2;
  padding: 0 8px;
}

.se-level-mascot img {
  height: 170px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.2));
}

.se-level-body {
  padding: 12px 20px 20px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  transition: box-shadow 0.25s ease;
  flex: 1;
}

.se-level-title-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.se-level-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
}

.se-level-age {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
}

.se-age--gold { background: #f59e0b; }
.se-age--red  { background: #ef4444; }
.se-age--blue { background: #3b82f6; }

.se-level-body p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
}

.se-level-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.se-level-details span {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}

.se-level-details span::before {
  content: '· ';
  color: var(--gray-300);
}

.se-level-bar {
  height: 8px;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
}

.se-bar--gold { background: #f59e0b; }
.se-bar--red  { background: #ef4444; }
.se-bar--blue { background: #3b82f6; }

/* ---------- METHOD ATTRIBUTION ---------- */
.hero-split-logo .hero-method-note {
  margin-top: 8px;
  font-size: 10px !important;
  color: rgba(255,255,255,0.6) !important;
  text-align: center;
  letter-spacing: 0.01em;
  line-height: 1.4;
}
.hero-split-logo .hero-method-note a {
  color: rgba(255,255,255,0.65) !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.35);
}
.hero-split-logo .hero-method-note a:hover { color: rgba(255,255,255,0.9) !important; }

/* ---------- SAVVY QUEST ---------- */
.sq-section {
  background: #1E69B3;
}
.sq-section .section-label { color: rgba(255,255,255,0.7); }
.sq-section .section-title { color: #fff; }
.sq-section .lead { color: rgba(255,255,255,0.9) !important; }
.sq-section p { color: rgba(255,255,255,0.75) !important; }

.sq-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: center;
}
.sq-mascot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12));
}
.sq-content .lead {
  font-size: 17px;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 16px;
}
.sq-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}
@media (max-width: 700px) {
  .sq-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sq-mascot {
    text-align: center;
  }
  .sq-mascot img {
    height: 180px;
    width: auto;
  }
}

/* ---------- COURSE INTRO IMAGE ---------- */
.course-intro-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.14), 0 6px 20px rgba(0,0,0,0.08);
  display: block;
}

@media (max-width: 900px) {
  .course-intro-img { height: 320px; border-radius: 18px; object-position: center center !important; }
}

@media (max-width: 600px) {
  .course-intro-img { height: 240px; border-radius: 14px; }
}

/* ---------- PACKAGE SECTION ---------- */
.package-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.package-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 14px;
}

/* ---------- TE PRICING ---------- */
.te-price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.te-price-grid.te-price-grid--centered {
  grid-template-columns: repeat(2, minmax(0, 300px));
  justify-content: center;
}

.te-price-card {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #fff;
  text-align: center;
}

.te-price-top {
  padding: 16px 12px;
}

.te-price-name {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 2px;
}

.te-price-age {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

.te-price-body {
  padding: 16px 12px 20px;
}

.te-price-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1;
  margin-bottom: 8px;
}

.te-price-amount span {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-500);
}

.te-price-amount small {
  font-size: 13px;
  color: var(--gray-400);
  font-weight: 400;
}

.te-price-detail {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

.te-price-package {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.te-price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  border-top: 1px solid var(--gray-100);
  padding-top: 14px;
}

.te-price-features li {
  font-size: 13px;
  color: var(--gray-700);
  padding: 5px 0;
  padding-left: 22px;
  position: relative;
  line-height: 1.4;
}

.te-price-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- DISCOUNTS ---------- */
.discount-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.discount-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: 14px;
  border: 2px solid;
}

.discount-early   { border-color: #fbbf24; background: #fffbeb; }
.discount-referral { border-color: #34d399; background: #ecfdf5; }

.discount-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--gray-600);
}
.discount-icon svg { width: 100%; height: 100%; }

.discount-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.discount-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  margin-bottom: 8px;
}

.discount-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 6px;
}

.discount-note {
  font-size: 11px;
  color: var(--gray-400);
  font-style: italic;
}

/* ---------- PATH STRIP ---------- */
.path-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 32px 0 8px;
}

.path-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.path-step-logo {
  height: 90px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
  transition: transform 0.2s;
}

.path-step-logo--el {
  height: 80px;
}

.path-step--active .path-step-logo {
  filter: drop-shadow(0 4px 10px rgba(0,164,153,0.3));
}

.path-step-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
}

.path-step-age {
  font-size: 12px;
  color: var(--gray-400);
}

.path-arrow {
  font-size: 0;
  color: var(--gray-300);
  display: flex;
  align-items: center;
  padding-bottom: 24px;
}

/* ---------- TE ABOUT SECTION ---------- */
.te-about-section { background: #fff; }

.te-about-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

.te-about-cards-wrap { position: relative; }

.te-about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.te-about-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.te-about-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.te-about-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.te-about-card p {
  font-size: 14px;
  color: var(--gray-600);
  margin: 0;
  line-height: 1.65;
}

.te-about-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.te-about-icon svg {
  width: 22px;
  height: 22px;
}

.te-about-icon--teal  { background: #e0f4f5; }
.te-about-icon--teal svg  { stroke: #1d919a; }

.te-about-icon--orange { background: #fff0e0; }
.te-about-icon--orange svg { stroke: #e07b20; }

.te-about-icon--purple { background: #f0e8f8; }
.te-about-icon--purple svg { stroke: #7c3aed; }

.te-about-icon--gold   { background: #fef9e0; }
.te-about-icon--gold svg   { stroke: #c49a00; }

.te-about-text .section-label {
  margin-bottom: 16px;
}

.te-about-text p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}

.te-about-nav { display: none; }
.gallery-nav { display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .course-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: 1fr; gap: 24px; }
  .groups-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .stages-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .gallery-slider-wrap { overflow: hidden; }
  .gallery-grid {
    display: flex;
    transition: transform 0.35s ease;
  }
  .gallery-item,
  .gallery-item.tall {
    flex: 0 0 100%;
    height: 420px;
    min-height: unset;
    grid-row: unset;
  }
  .gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
  }
  .gallery-prev,
  .gallery-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
  }
  .gallery-prev:hover,
  .gallery-next:hover { background: var(--teal-dark, #167a82); }
  .gallery-prev svg,
  .gallery-next svg { width: 18px; height: 18px; stroke: #fff; }
  .gallery-dots { display: flex; gap: 8px; align-items: center; }
  .gallery-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #bbb; border: none; padding: 0;
    cursor: pointer; transition: background 0.2s, transform 0.2s;
  }
  .gallery-dot.active { background: var(--teal); transform: scale(1.25); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .levels-grid { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; }
  .te-levels-grid { grid-template-columns: repeat(2, 1fr); padding-top: 100px; row-gap: 130px; }
  .te-levels-grid .te-level-card { margin-bottom: 0; }
  .se-levels-grid { grid-template-columns: repeat(2, 1fr); padding-top: 100px; row-gap: 130px; }
  .te-price-grid { grid-template-columns: repeat(2, 1fr); }
  .te-price-grid.te-price-grid--centered { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .package-section-grid { grid-template-columns: 1fr; gap: 32px; }
  .discount-grid { grid-template-columns: 1fr; }
  .quick-fact { padding: 10px 20px; }
  .te-about-grid { grid-template-columns: 1fr; gap: 32px; }
  .te-about-text { order: 1; }
  .te-about-cards-wrap { order: 2; }
}

@media (max-width: 600px) {
  .page-hero--teal,
  .page-hero--coral,
  .page-hero--navy { padding: 56px 0 64px; }
  .materials-grid { grid-template-columns: 1fr; }
  .gallery-item,
  .gallery-item.tall { height: 260px; }
  .te-levels-grid { grid-template-columns: 1fr; padding-top: 90px; gap: 130px; }
  .se-levels-grid { grid-template-columns: 1fr; padding-top: 90px; gap: 130px; }
  .te-price-grid { grid-template-columns: 1fr; }
  .te-price-grid.te-price-grid--centered { grid-template-columns: 1fr; }
  .quick-facts-grid { gap: 0; }
  .quick-fact { border-right: none; border-bottom: 1px solid var(--gray-200); width: 100%; }
  .quick-fact:last-child { border-bottom: none; }
  .path-strip { gap: 12px; }
  .path-arrow { display: none; }
}


/* ---------- INFO BAR ---------- */
.course-info-bar {
  padding: 18px 0 0;
  background: #fff;
}

.course-info-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #eaf6fd;
  border: 1px solid #c9e4f2;
  border-radius: 18px;
  padding: 14px 22px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-info-bar__inner:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 145, 205, 0.08);
}

.course-info-bar__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #d7edf8;
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.course-info-bar__icon svg {
  width: 24px;
  height: 24px;
}

.course-info-bar__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.course-info-bar__text strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--gray-900);
}

.course-info-bar__text span {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 500;
  color: #2c9fd0;
}

.course-info-bar__arrow {
  color: #2c9fd0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.course-info-bar__arrow svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 600px) {
  .course-info-bar__inner {
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
  }

  .course-info-bar__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .course-info-bar__icon svg {
    width: 20px;
    height: 20px;
  }

  .course-info-bar__text strong {
    font-size: 16px;
  }

  .course-info-bar__text span {
    font-size: 14px;
  }

  .course-info-bar__arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* ---------- TE ABOUT – MOBILE SLIDER ---------- */
@media (max-width: 700px) {
  .te-about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* tekst najpierw, karty pod spodem */
  .te-about-text      { order: 1; }
  .te-about-cards-wrap { order: 2; }

  .te-about-cards-wrap {
    overflow: hidden; /* klipuje karty */
  }

  .te-about-cards {
    display: flex;
    gap: 0;
    will-change: transform;
    transition: transform 0.35s ease;
  }

  .te-about-card {
    flex: 0 0 auto;
    width: 100%; /* 100% wrappera, nie tracka */
    min-width: 0;
    box-sizing: border-box;
  }

  .te-about-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
  }

  .te-about-prev,
  .te-about-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
  }

  .te-about-prev:hover,
  .te-about-next:hover {
    background: var(--teal-dark, #167a82);
  }

  .te-about-prev svg,
  .te-about-next svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
  }

  .te-about-dots {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .te-about-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #bbb;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
  }

  .te-about-dot.active {
    background: var(--teal);
    transform: scale(1.25);
  }
}