/* =============================================================
   NAGODZICE THEME — jasny styl, Roboto, wzorowany na oryginale
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* ── Zmienne ─────────────────────────────────────────────────── */
:root {
  --red:        #e30000;
  --red-dark:   #c20000;
  --gray-header: #636363;
  --gray-text:  #767676;
  --gray-dark:  #454545;
  --gray-light: #f4f4f4;
  --border:     #e0e0e0;
  --white:      #ffffff;
  --font:       'Roboto', sans-serif;
  --header-h:   70px;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.68;
  color: var(--gray-text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.2;
  color: var(--gray-dark);
}

p { margin-bottom: 1em; }
strong { font-weight: 500; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }

/* ── HEADER ──────────────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(2px);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  gap: 0;
}

/* ── Logo ────────────────────────────────────────────────────── */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  color: var(--white);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  background-image: url('../images/logo-white-small-header.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  width: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-line1 {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}

.logo-line2 {
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.8);
}

/* ── Nawigacja ───────────────────────────────────────────────── */
#site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  padding: 0 14px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: color .2s;
  white-space: nowrap;
  position: relative;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: #e30000;
  transform: scaleX(0);
  transition: transform .2s;
}

.nav-link:hover { color: var(--red); }
.nav-link:hover::before { transform: scaleX(1); }
.nav-link.active { color: var(--red); font-weight:bold;}
.nav-link.active::before { transform: scaleX(1); }

/* ── Przełącznik języka ──────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  flex-shrink: 0;
}

.lang-btn {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 4px 6px;
  border-radius: 2px;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn img { width: 18px; height: 12px; display: inline-block; vertical-align: middle; }
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--white); background: rgba(255,255,255,0.15); }

/* ── Hamburger ───────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all .25s;
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── PAGE HEADER — baner z obrazkiem ────────────────────────── */
/* Widoczny na podstronach (NIE na home) */
.page-header-image {
  margin-top: 0;
  width: 100%;
  height: 380px;
  overflow: hidden;
  position: relative;
  /* Domyślne zdjęcie z motywu - pierwsze zdjęcie slidera */
  background-image: url('../images/header-bg.jpg');
  background-size: cover;
  background-position: center 40%;
  background-color: #6b8f8f;
}

/* Ciemny overlay jak na oryginale */
.page-header-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.15);
}

.page-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

/* ── Wirowka + tytuł podstrony ───────────────────────────────── */
.page-wirowka-wrap {
  width: 100%;
  background: var(--white);
  padding: 0;
  margin-top:1%;
}

.page-wirowka-img {
  width: 100%;
  display: block;
  height: auto;
  max-height: 60px;
  object-fit: cover;
}

.page-title-wrap {
  background: var(--white);
  padding: 30px 0 10px;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title-wrap h1 {
  font-size: 28px;
  font-weight: 400;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0;
}

/* ── Content area ────────────────────────────────────────────── */
.site-content-wrap {
  background: var(--white);
  padding: 20px 0 60px;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.site-content-wrap h2 { font-size: 22px; margin: 1.5em 0 .5em; color: var(--gray-dark); }
.site-content-wrap h3 { font-size: 18px; margin: 1.2em 0 .4em; color: var(--gray-dark); }

/* ── HOME PAGE — slider ──────────────────────────────────────── */
.home-slider {
  position: relative;
  margin-top: 0;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  background: #222;
}

.home-slider__track {
  position: relative;
  height: 100%;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  overflow: hidden;
}
.home-slider__slide.active {
  opacity: 1;
  z-index: 1;
}

.home-slider__bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  will-change: transform;
  transition: transform 0.1s linear;
}

.home-slider__img-mobile {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback gdy brak zdjęć */
.home-slider__fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a2a2a 0%, #444 100%);
}
.home-slider__logo-wrap { text-align: center; padding: 2rem; }
.home-slider__logo-wrap img { width: 140px; margin: 0 auto 1rem; filter: invert(1); }
.home-slider__logo-title {
  color: rgba(255,255,255,.7);
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  line-height: 1.8;
}

/* Slider nav */
.home-slider__prev, .home-slider__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
  font-size: 2rem;
  width: 44px; height: 44px;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
}
.home-slider__prev { left: 16px; }
.home-slider__next { right: 16px; }
.home-slider__prev:hover, .home-slider__next:hover {
  background: rgba(0,0,0,.6); color: #fff;
}

.home-slider__dots {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.home-slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer; padding: 0;
  transition: background .2s, transform .2s;
}
.home-slider__dot.active { background: #fff; transform: scale(1.25); }

/* ── Home content section (pod sliderem) ─────────────────────── */
.home-content {
  background: var(--white);
  padding: 40px 0 60px;
}
.home-content__inner {
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

/* Wirowka pod sliderem — ta sama grafika */
.home-wirowka {
  width: 100%;
  margin-bottom: 28px;
}
.home-wirowka img {
  width: 100%;
  height: auto;
  display: block;
}

.home-text {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.68;
  margin-bottom: 28px;
}
.home-text p { margin-bottom: 1em; }
.home-text a { color: var(--red); }
.home-text a:hover { color: var(--red-dark); text-decoration: underline; }

.home-cta-btn {
  display: inline-block;
  background: #e30000;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 12px 35px;
  border: 1px solid var(--red);
  border-radius: 0;
  transition: background .2s, border-color .2s;
}
.home-cta-btn:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff !important;
}

/* ── Blog ────────────────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0;
  overflow: hidden;
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }

.blog-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 11px;
  color: #868686;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.blog-card-title {
  font-size: 20px;
  font-weight: 400;
  color: var(--red);
  line-height: 1.25;
  margin-bottom: 10px;
  text-decoration: none;
}
.blog-card-title:hover { color: var(--red-dark); text-decoration: underline; }

.blog-card-excerpt {
  font-size: 14px;
  color: var(--gray-text);
  line-height: 1.6;
  flex: 1;
}

/* ── Pagination ──────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 4px;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--red);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.pagination a:hover { background: #e30000; color: #fff; border-color: var(--red); }
.pagination .active { background: #e30000; color: #fff; border-color: var(--red); }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 1.5rem;
}
.contact-block h3 {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 1rem;
  color: var(--gray-dark);
}
.contact-block p { font-size: 14px; margin-bottom: .5em; }
.contact-block a { color: var(--red); }

/* ── Dodatkowe style ─────────────────────────────────────────── */

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 16px;
  flex-shrink: 0;
}

.lead-text {
  font-size: 15px;
  font-style: italic;
  color: #555;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}

.cta-box {
  margin-top: 2.5rem;
  padding: 20px 25px;
  background: var(--gray-light);
  border-left: 4px solid var(--red);
}
.cta-box h3 {
  font-size: 16px;
  margin-bottom: .5rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.cta-box p { margin-bottom: 0; font-size: 13px; }

/* Poprawki content */
.site-content-wrap ul { margin-bottom: 1em; }
.site-content-wrap li { margin-bottom: .3em; }
.site-content-wrap strong { color: var(--gray-dark); }
.site-content-wrap em { font-style: italic; }
.site-content-wrap blockquote {
  border-left: 3px solid var(--red);
  margin: 1.5em 0;
  padding: 1em 1.5em;
  background: var(--gray-light);
  font-style: italic;
  color: #555;
}

/* ── Logo overlay na sliderze ─────────────────────────────── */
.home-slider__logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.home-slider__overlay-logo {
  width: 100%;
  max-width: 237px;
  height: auto;
  opacity: 0.2;
  filter: brightness(10) saturate(0);  /* białe logo */
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   DROPDOWN NAVIGATION
   ═══════════════════════════════════════════════════════════ */

.nav-item {
  position: relative;
}

.nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-arrow {
  font-size: 15px;
  opacity: 0.7;
  transition: transform .2s;
}

.nav-item:hover .nav-arrow,
.nav-item.open .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #1a1a1a;
  border-top: 2px solid var(--red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}

.nav-item:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown__link {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s, color .15s;
  white-space: nowrap;
}

.nav-dropdown__link:hover {
  background: var(--red);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   VIDEO EMBED
   ═══════════════════════════════════════════════════════════ */

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 2rem 0;
}

.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ═══════════════════════════════════════════════════════════
   TABLE (konta bankowe)
   ═══════════════════════════════════════════════════════════ */

.site-content-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 14px;
}

.site-content-wrap th,
.site-content-wrap td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  text-align: left;
}

.site-content-wrap th {
  background: var(--gray-light);
  font-weight: 500;
  color: var(--gray-dark);
}

.site-content-wrap tr:nth-child(even) td {
  background: #fafafa;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT — dwukolumnowy układ
   ═══════════════════════════════════════════════════════════ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-section-title {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0;
}

.contact-col-left p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 1.2rem;
}

.contact-col-left a { color: var(--red); }
.contact-col-left a:hover { text-decoration: underline; }

/* Bank accounts */
.bank-account {
  display: flex;
  gap: 20px;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.bank-icon {
  flex-shrink: 0;
  /*width: 60px;
  height: 60px;
  background: #888;
  border-radius: 50%;*/
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bank-icon img {
  width: 73px;
  height: 73px;
  object-fit: contain;
  /*filter: invert(1);*/
}

.bank-details { flex: 1; }

.bank-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  margin-bottom: .5rem;
}

.bank-label em {
  font-style: italic;
  font-weight: 400;
  color: var(--gray-text);
  font-size: 14px;
}

.bank-details p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: .5rem;
}

.bank-details strong { color: var(--gray-dark); font-weight: 500; }
.bank-branch { font-size: 14px; color: #999; }

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* ═══════════════════════════════════════════════════════════
   OŚRODEK — układ z mapą po prawej
   ═══════════════════════════════════════════════════════════ */

.osrodek-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}

.osrodek-content p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-text);
  margin-bottom: 1em;
}

.osrodek-content a { color: var(--red); }
.osrodek-content blockquote {
  border-left: 3px solid var(--red);
  margin: 1.5em 0;
  padding: .8em 1.5em;
  background: #f8f8f8;
  font-style: italic;
  color: #555;
}

.osrodek-map {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.osrodek-map img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .osrodek-layout {
    grid-template-columns: 1fr;
  }
  .osrodek-map {
    position: static;
    max-width: 400px;
    margin: 0 auto;
    order: -1;
  }
}

/* ═══════════════════════════════════════════════════════════
   TEACHERS — 4 kolumny / 2 / 1
   ═══════════════════════════════════════════════════════════ */

.teachers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.teacher-card {
  padding: 0 20px 30px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.teacher-card:last-child { border-right: none; }

.teacher-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--gray-light);
  margin-bottom: 16px;
  overflow: hidden;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.teacher-name {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .08em;
  color: var(--gray-dark);
  margin-bottom: 8px;
  text-align: center;
}

.teacher-divider {
  width: 40px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 12px;
}

.teacher-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--gray-text);
  text-align: center;
  margin-bottom: 12px;
}

.teacher-more {
  font-size: 14px;
  color: var(--red);
  font-style: italic;
  text-decoration: none;
}
.teacher-more:hover { text-decoration: underline; }

/* Tablet: 2 kolumny */
@media (max-width: 900px) {
  .teachers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .teacher-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 30px;
    margin-bottom: 10px;
  }
  .teacher-card:nth-child(odd) { border-right: 1px solid var(--border); }
  .teacher-card:last-child,
  .teacher-card:nth-last-child(2):nth-child(odd) { border-bottom: none; }
}

/* Mobile: 1 kolumna */
@media (max-width: 560px) {
  .teachers-grid { grid-template-columns: 1fr; }
  .teacher-card { border-right: none !important; }
  .teacher-photo { aspect-ratio: 16/9; }
}

/* ── Mapa placeholder ─────────────────────────────────────── */
.osrodek-map-placeholder {
  width: 100%;
  height: auto;
  display: block;
}

.osrodek-map-hint {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}

.osrodek-map-hint code {
  background: #f0f0f0;
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 11px;
  color: #888;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER — 3 kolumny
   ═══════════════════════════════════════════════════════════ */

#site-footer {
  background: #1c1c1c;
  color: rgba(255,255,255,.65);
  padding: 50px 0 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 50px;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.9);
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.55);
  margin-bottom: 0;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: .5rem;
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact-item strong {
  color: rgba(255,255,255,.8);
  min-width: 48px;
  flex-shrink: 0;
}

.footer-contact-item a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
}
.footer-contact-item a:hover { color: #fff; }

.footer-note {
  font-size: 13px;
  color: rgba(255,255,255,.35);
  line-height: 1.5;
  margin-top: .8rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: .5rem;
}

.footer-nav a {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.footer-nav a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 16px 0;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: rgba(255,255,255,.3);
}

/* ═══════════════════════════════════════════════════════════
   BLOG ITEM — wpis blogowy
   ═══════════════════════════════════════════════════════════ */

.item-date {
  font-size: 12px;
  color: #868686;
  letter-spacing: .05em;
  margin-top: 6px;
}

.item-hero-img {
  margin-bottom: 2rem;
}
.item-hero-img img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.item-content {
  font-size: 14px;
  line-height: 1.75;
  color: var(--gray-text);
}
.item-content h2 { font-size: 20px; margin: 1.5em 0 .5em; color: var(--gray-dark); }
.item-content h3 { font-size: 17px; margin: 1.2em 0 .4em; color: var(--gray-dark); }
.item-content p { margin-bottom: 1em; }
.item-content img { max-width: 100%; margin: 1rem 0; }
.item-content a { color: var(--red); }
.item-content blockquote {
  border-left: 3px solid var(--red);
  margin: 1.5em 0;
  padding: .8em 1.5em;
  background: #f8f8f8;
  font-style: italic;
}

.item-back {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.item-back a {
  font-size: 13px;
  color: #767676;
  text-decoration: none;
}
.item-back a:hover { color: var(--red); }

/* ── Teacher photo placeholder ───────────────────────────── */
.teacher-photo-placeholder {
  width: 100%;
  height: 100%;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #ccc;
}

.teacher-photo-placeholder span {
  font-size: 12px;
  color: #999;
  text-align: center;
  line-height: 1.5;
  padding: 10px;
}

/* ── Language Switcher Mobile Fix ────────────────────── */
@media (max-width: 860px) {
  .lang-switcher {
    display: flex;
    gap: 0;
  }
  /* Ukryj aktywny język (z flagą PL/EN) na mobile */
  .lang-btn.active.lang-btn-desktop {
    display: none;
  }
  /* Ukryj tekst, pokaż tylko flagę */
  .lang-btn .lang-text {
    display: none;
  }
  .lang-btn {
    padding: 6px 8px;
    min-width: auto;
  }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-link { padding: 0 10px; font-size: 12px; }
}

@media (max-width: 860px) {
  .menu-toggle { display: flex; }

  #site-nav {
    display: none;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: rgba(99,99,99,0.95);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0 20px;
    gap: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
  }
  #site-nav.open { display: flex; }
  .nav-link {
    width: 100%;
    height: 48px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }

  /* ── Mobile dropdown ─────────────────── */
  .nav-item { width: 100%; }
  .nav-item.has-dropdown > .nav-link { justify-content: space-between; }

  .nav-dropdown {
    position: static;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: opacity .2s, max-height .3s, visibility .2s;
    background: rgba(0,0,0,.3);
    border-top: none;
    border-left: 3px solid var(--red);
  }

  .nav-item.open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    max-height: 400px;
  }

  .nav-dropdown__link {
    padding: 10px 32px;
    font-size: 12px;
  }

  .home-slider { 
    height: 70vh; 
    min-height: 400px; 
  }
  .home-slider__slide { background-image: none !important; }
  .home-slider__bg { display: none; }
  .home-slider__img-mobile { 
    display: block; 
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-header-image { height: 220px; background-position: center 40%; }

  .site-content-wrap,
  .home-content__inner,
  .page-title-wrap { width: 92%; }

  .contact-grid { grid-template-columns: 1fr; gap: 20px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 92%;
  }
  .footer-bottom {
    width: 92%;
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }

  #site-footer { padding: 18px 20px; }
}
