/* ================================================
   ARION ACADEMY — STYLE.CSS
   ================================================ */

/* --- 1. RESET & ZMIENNE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #f47a14;
  --orange-dark: #d96400;
  --black: #111111;
  --text: #444444;
  --white: #ffffff;
  --bg-light: #f6f6f6;
  --radius: 12px;
  --transition: 0.3s ease;
  --shadow: 0 8px 30px rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: min(92%, 1200px);
  margin-inline: auto;
}

/* --- 2. HEADER / NAVBAR --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--bg-light);
  padding: 14px 0;
}

.site-header:not(.site-header--minimal) .container {
  width: min(96%, 1400px);
  padding-left: 20px;
  padding-right: 20px;
}

/* Wariant minimal — tylko logo + social + hamburger zawsze widoczny.
   Apple-style: półprzezroczyste tło z blur */
.site-header--minimal {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 18px 0;
}

.site-header--minimal .container {
  width: min(96%, 1400px);
  padding-left: 20px;
  padding-right: 20px;
}

.site-header--minimal .nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.site-header--minimal .logo-box {
  justify-self: start;
}

.site-header--minimal .header-nav {
  justify-self: center;
  display: flex;
  gap: 4px;
}

.site-header--minimal .header-nav a {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}

.site-header--minimal .header-nav a:hover,
.site-header--minimal .header-nav a.active {
  background: var(--orange);
  color: var(--white);
}

.site-header--minimal .nav-toggle {
  justify-self: end;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-box img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--orange); }

/* Wariant mono — całe czarne (używany na podstronach poza index) */
.logo-text--mono span { color: var(--black); }

.main-nav ul {
  display: flex;
  gap: 6px;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--orange);
  color: var(--white);
}

.nav-cta {
  background: var(--black);
  color: var(--white) !important;
  border-radius: 8px;
  padding: 8px 18px !important;
}

.nav-cta:hover {
  background: var(--orange) !important;
  color: var(--white) !important;
}

.social-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}

.social-icons a:hover {
  background: var(--orange);
  color: var(--white);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

/* W minimalnym headerze hamburger zawsze widoczny + chowamy menu */
.site-header--minimal .nav-toggle {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}
.site-header--minimal .nav-toggle:hover { background: var(--bg-light); }
.site-header--minimal .main-nav { display: none; }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: var(--transition);
}

/* Drawer overlay — apple-style fullscreen menu po kliknięciu hamburgera */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0);
  z-index: 998;
  pointer-events: none;
  transition: background 0.4s ease;
}
.drawer-overlay.open {
  background: rgba(0,0,0,0.4);
  pointer-events: auto;
}

.drawer-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  background: var(--white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 28px 36px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  overflow-y: auto;
}
.drawer-menu.open { transform: translateX(0); }

.drawer-close {
  align-self: flex-end;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.drawer-close:hover { background: var(--bg-light); }

.drawer-menu nav { margin-top: 24px; }

.drawer-menu nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.drawer-menu nav ul li a {
  display: block;
  padding: 14px 18px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  border-radius: 10px;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}

.drawer-menu nav ul li a:hover,
.drawer-menu nav ul li a.active {
  background: var(--bg-light);
  color: var(--orange);
  padding-left: 26px;
}

.drawer-langs {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eee;
}

.drawer-langs-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text);
  font-weight: 700;
  padding: 0 18px;
  margin-bottom: 8px;
}

.drawer-langs ul li a {
  font-size: 1rem;
  padding: 10px 18px;
  font-weight: 500;
  color: var(--text);
}

.drawer-langs ul li a:hover {
  color: var(--orange);
  padding-left: 24px;
}

.drawer-footer {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #eee;
  font-size: 0.85rem;
  color: var(--text);
}

.drawer-footer a {
  color: var(--orange);
  font-weight: 600;
}

.drawer-social {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.drawer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--black);
  transition: background var(--transition), color var(--transition);
}

.drawer-social a:hover {
  background: var(--orange);
  color: var(--white);
}

/* --- 3. BUTTONY --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  font-family: inherit;
}

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: #333;
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.btn-orange:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-outline-orange {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}

.btn-outline-orange:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--black);
}

/* --- 4. HERO (STRONA GŁÓWNA) --- */
.hero-section {
  position: relative;
  background: var(--white);
  padding: 110px 0 140px;
  overflow: hidden;
}

.hero-bg-shape {
  position: absolute;
  top: 40px;
  bottom: 40px;
  left: 0;
  right: 12%;
  background: var(--orange);
  border-top-right-radius: 100px;
  border-bottom-right-radius: 100px;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 50px;
}

.hero-content h1 {
  font-size: 4.6rem;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 32px;
  font-weight: 800;
}

.hero-content h1 span {
  color: var(--black);
}

.hero-content p {
  color: rgba(255,255,255,0.92);
  font-size: 1.3rem;
  line-height: 1.65;
  margin-bottom: 44px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Kolaż 4 kart - asymetryczny układ z lekkimi przesunięciami */
.hero-collage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
  justify-self: center;
  width: 100%;
  max-width: 506px;
  padding: 10px 0;
}

.collage-card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: transform var(--transition);
  text-decoration: none;
  aspect-ratio: 1 / 1;
}

.collage-card:hover {
  transform: translateY(-8px) rotate(0deg) !important;
}

.collage-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Asymetryczne pozycjonowanie + delikatne obroty */
.card-en {
  grid-column: 1; grid-row: 1;
  transform: translateY(-18px) rotate(-4deg);
}
.card-fr {
  grid-column: 2; grid-row: 1;
  transform: translateY(14px) rotate(3deg);
}
.card-es {
  grid-column: 1; grid-row: 2;
  transform: translateY(10px) rotate(2.5deg);
}
.card-jp {
  grid-column: 2; grid-row: 2;
  transform: translateY(-12px) rotate(-3deg);
}

/* --- 5. SEKCJA INFORMACJE OGÓLNE --- */
.general-info {
  padding: 120px 0;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 14px;
}

.huge-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 60px;
  letter-spacing: -1px;
  line-height: 1.1;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 90px;
  align-items: start;
}

.orange-heading {
  color: var(--orange);
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 22px;
  font-weight: 700;
}

.info-left p {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.7;
}

.info-left strong { color: var(--black); }

.info-list {
  margin-left: 0;
  margin-bottom: 20px;
  margin-top: 28px;
}

.info-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  color: var(--text);
  font-size: 1.02rem;
  border-bottom: 1px solid #f0f0f0;
}

.info-list li::before {
  content: "→";
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--black);
  color: var(--white);
  padding: 12px 22px;
  border-radius: var(--radius);
  margin-top: 10px;
}

.price-badge .price-big {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}

.price-badge .price-sub {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Accordion (FAQ na stronie głównej) */
.underlined-heading {
  font-size: 1.6rem;
  font-weight: 800;
  border-bottom: 3px solid var(--black);
  display: inline-block;
  padding-bottom: 6px;
  margin-bottom: 28px;
}

.accordion details {
  border-top: 1px solid #e8e8e8;
}

.accordion details:last-child {
  border-bottom: 1px solid #e8e8e8;
}

.accordion summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  color: var(--black);
  padding: 22px 0;
  gap: 10px;
}

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

.accordion summary .acc-icon {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.accordion details[open] summary .acc-icon {
  transform: rotate(45deg);
}

.details-content {
  padding: 0 0 22px 0;
  color: var(--text);
  font-size: 0.97rem;
  line-height: 1.7;
}

.age-box {
  margin-top: 36px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.age-box h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.age-box h2 {
  font-size: 2.2rem;
  font-weight: 800;
}

.orange-text { color: var(--orange); }
.gray-text { color: #999; font-weight: 600; }

/* --- 6. JĘZYKI — KAFELKI --- */
.languages-section {
  padding: 40px 0 110px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.lang-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: var(--black);
}

.lang-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.lang-card-img {
  height: 220px;
  overflow: hidden;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lang-card-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center top;
  transition: transform 0.4s ease;
}

.lang-card:hover .lang-card-img img {
  transform: scale(1.05);
}

.lang-card-body {
  padding: 24px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--white);
}

.lang-card-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.lang-card-level {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lang-card-body p {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 6px;
  line-height: 1.6;
}

.lang-card-arrow {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- 7. ROK SZKOLNY --- */
.school-year {
  background: var(--black);
  color: var(--white);
  padding: 110px 0;
}

.school-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: center;
}

.school-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.school-image img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
}

.school-text-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.school-text-center .hero-buttons,
.school-text-center .mt-30 {
  display: flex;
  justify-content: center;
}

.orange-title {
  color: var(--orange);
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 22px;
  line-height: 1.2;
}

.school-text p,
.school-text li {
  color: rgba(255,255,255,0.82);
  font-size: 1.02rem;
  margin-bottom: 10px;
}

.school-text strong { color: var(--white); }

.school-text ul {
  list-style: none;
  margin-top: 14px;
  margin-bottom: 24px;
  padding: 0;
}

.school-text-center ul li {
  text-align: center;
}

/* --- 8. LOKALIZACJA --- */
.location-section { padding: 110px 0; }

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.location-text {
  text-align: center;
}

.location-text h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.location-text p { font-size: 1.05rem; color: var(--text); margin-bottom: 10px; }
.location-text strong { color: var(--orange); }

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 480px;
  justify-self: start;
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* --- 9. PODSTRONY JĘZYKOWE — SQUARESPACE + APPLE VIBE --- */

/* Pół-przezroczyste pomarańczowe bombelki w tle (dekoracje) */
.bubbles-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: var(--orange);
  pointer-events: none;
}

.bubble-1 { width: 220px; height: 220px; opacity: 0.08; top: 8%; left: -80px; }
.bubble-2 { width: 140px; height: 140px; opacity: 0.10; top: 50%; right: 6%; }
.bubble-3 { width: 320px; height: 320px; opacity: 0.05; bottom: 5%; left: 28%; }
.bubble-4 { width: 90px; height: 90px; opacity: 0.12; top: 22%; right: 32%; }
.bubble-5 { width: 180px; height: 180px; opacity: 0.07; bottom: 30%; right: -50px; }
.bubble-6 { width: 110px; height: 110px; opacity: 0.09; top: 70%; left: 8%; }

/* === HERO PODSTRONY JĘZYKOWEJ === */
.page-hero {
  position: relative;
  background: var(--white);
  padding: 90px 0 110px;
  overflow: hidden;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

/* Wariant z obrazem PO LEWEJ */
.page-hero-grid--reverse {
  grid-template-columns: 1.15fr 1fr;
}
.page-hero-grid--reverse .page-hero-text { order: 2; }
.page-hero-grid--reverse .page-hero-frame { order: 1; }

.page-hero-eyebrow {
  display: flex;
  align-items: baseline;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.page-hero h1 {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--orange);
  letter-spacing: -2px;
  margin: 0;
}

.page-hero-subtitle {
  font-size: 1.4rem;
  color: var(--black);
  font-weight: 500;
  letter-spacing: -0.3px;
}

.page-hero-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 18px;
  max-width: 540px;
}

.page-hero-text p strong { color: var(--black); font-weight: 700; }

.page-hero-text .btn {
  margin-top: 18px;
}

/* Frame z obrazem — pomarańczowy kwadrat za, jasny kwadrat ze zdjęciem na wierzchu */
.page-hero-frame {
  position: relative;
  width: 100%;
  max-width: 621px;
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.page-hero-frame::before {
  content: "";
  position: absolute;
  top: -28px;
  left: 28px;
  right: -28px;
  bottom: 28px;
  background: var(--orange);
  border-radius: 4px;
  z-index: 0;
  transition: transform 0.4s ease;
}

/* W wariancie reverse rama po drugiej stronie */
.page-hero-grid--reverse .page-hero-frame::before {
  left: -28px;
  right: 28px;
}

.page-hero-frame-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: transform 0.4s ease;
}

.page-hero-frame:hover .page-hero-frame-inner {
  transform: translate(-6px, -6px);
}
.page-hero-grid--reverse .page-hero-frame:hover .page-hero-frame-inner {
  transform: translate(6px, -6px);
}

.page-hero-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* === SEKCJE TREŚCI === */
.page-section {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
}
.page-section.bg-light { background: var(--bg-light); }
.page-section .container { position: relative; z-index: 1; }

/* Pierwsza sekcja po hero — proza wyrównana do lewej (jak hero powyżej) */
.prose-section {
  max-width: 620px;
  margin: 0;
}

/* Wariant z info-card po prawej — grid 2-kolumnowy zapełnia pustą przestrzeń */
.prose-section--with-aside {
  max-width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 380px);
  gap: 80px;
  align-items: start;
}

.prose-section--with-aside > .prose-text {
  min-width: 0;
}

.prose-aside {
  position: sticky;
  top: 110px;
}

.prose-aside .info-card {
  margin: 0;
}

.prose-section h2 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 28px;
  line-height: 1.15;
  letter-spacing: -1px;
}
.prose-section h2 span { color: var(--orange); }

.prose-section h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  margin: 44px 0 18px;
  letter-spacing: -0.3px;
}

.prose-section p {
  font-size: 1.08rem;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 18px;
}

.prose-section p strong { color: var(--black); font-weight: 700; }
.prose-section em { color: var(--black); font-style: italic; }

/* === SEKCJA POZIOMY & TERMINY (jak w projekcie Squarespace) === */
.poziomy-section {
  position: relative;
  padding: 100px 0 120px;
  overflow: hidden;
  background: var(--white);
}
.poziomy-section .container { position: relative; z-index: 1; }

.poziomy-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 70px;
  align-items: start;
}

.poziomy-grid--reverse {
  grid-template-columns: 1.5fr 1fr;
}
.poziomy-grid--reverse .poziomy-frame { order: 2; }
.poziomy-grid--reverse .poziomy-content { order: 1; }

.poziomy-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  justify-self: center;
}

.poziomy-frame::before {
  content: "";
  position: absolute;
  top: 28px;
  left: -28px;
  right: 28px;
  bottom: -28px;
  background: var(--orange);
  border-radius: 4px;
  z-index: 0;
}

.poziomy-grid--reverse .poziomy-frame::before {
  left: 28px;
  right: -28px;
}

.poziomy-frame-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.4s ease;
}

.poziomy-frame:hover .poziomy-frame-inner {
  transform: translate(6px, -6px);
}
.poziomy-grid--reverse .poziomy-frame:hover .poziomy-frame-inner {
  transform: translate(-6px, -6px);
}

.poziomy-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.poziomy-content h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 36px;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.poziomy-cols {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.poziomy-times-label {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 18px;
}

.poziomy-level {
  margin-bottom: 26px;
}

.poziomy-level h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 10px;
}

.poziomy-level ul {
  list-style: none;
  padding: 0;
}

.poziomy-level ul li {
  font-size: 0.97rem;
  color: var(--text);
  padding: 6px 0;
  line-height: 1.5;
  display: flex;
  gap: 8px;
}

.poziomy-level ul li::before {
  content: "·";
  color: var(--orange);
  font-weight: 800;
}

.poziomy-level ul li strong {
  color: var(--black);
  font-weight: 700;
}

.poziomy-text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.85;
  font-style: italic;
}

/* === SEKCJA ZAPISY (na końcu, minimalistyczna) === */
.zapisy-section {
  position: relative;
  padding: 80px 0 110px;
  overflow: hidden;
  background: var(--bg-light);
}
.zapisy-section .container { position: relative; z-index: 1; }

.zapisy-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.zapisy-wrap h2 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 28px;
  letter-spacing: -1px;
}
.zapisy-wrap h2 span { color: var(--orange); }

.zapisy-wrap ol {
  list-style: none;
  padding: 0;
  margin: 0 0 36px 0;
  counter-reset: zapis-step;
}

.zapisy-wrap ol li {
  counter-increment: zapis-step;
  position: relative;
  padding: 18px 0 18px 60px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-size: 1.02rem;
  color: var(--text);
  line-height: 1.6;
}

.zapisy-wrap ol li:last-child { border-bottom: none; }

.zapisy-wrap ol li::before {
  content: counter(zapis-step);
  position: absolute;
  left: 0;
  top: 14px;
  width: 38px;
  height: 38px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.zapisy-wrap ol li strong { color: var(--black); }

.zapisy-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.zapisy-note {
  font-size: 0.92rem;
  color: var(--text);
  font-style: italic;
}

/* INFO CARD — używana do ostrzeżeń (np. wymóg hiraganay) */
.info-card {
  background: var(--white);
  border-left: 4px solid var(--orange);
  border-radius: 4px;
  padding: 24px 30px;
  margin: 30px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.info-card-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}

.info-card p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.info-card strong { color: var(--black); }

/* SZCZEGÓŁY KURSU — mini-grid */
.kurs-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 30px;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.kurs-meta-item .label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}

.kurs-meta-item .value {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--black);
}

.kurs-meta-item .value.accent { color: var(--orange); }

/* --- 10. ABOUT --- */
.about-hero {
  position: relative;
  background: var(--white);
  color: var(--black);
  padding: 110px 0 80px;
  overflow: hidden;
  text-align: center;
}
.about-hero .container { position: relative; z-index: 1; }

.about-hero .section-label {
  display: block;
  text-align: center;
}

.about-hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 24px;
  letter-spacing: -2px;
  text-align: center;
}

.about-hero h1 span { color: var(--orange); }

.about-hero p {
  font-size: 1.15rem;
  color: var(--text);
  max-width: 640px;
  line-height: 1.7;
  margin: 0 auto;
  text-align: center;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: 70px 0;
}

.about-text p {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.pro-tip {
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
}

.pro-tip .tip-label {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  opacity: 0.8;
}

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

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.value-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.value-item h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.value-item p {
  font-size: 0.92rem;
  color: var(--text);
}

/* --- 11. FAQ PODSTRONA --- */
.faq-hero {
  position: relative;
  background: var(--white);
  padding: 110px 0 70px;
  color: var(--black);
  overflow: hidden;
}
.faq-hero .container { position: relative; z-index: 1; }

.faq-hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.faq-hero p {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 580px;
}

.faq-section { padding: 70px 0; }

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  display: grid;
  grid-template-columns: 48px 1fr 1fr;
  gap: 24px;
  border-bottom: 1px solid #eee;
  padding: 28px 0;
  align-items: start;
}

.faq-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
}

.faq-q {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
}

.faq-a {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.6;
}

/* --- 12. KONTAKT --- */
.contact-hero {
  position: relative;
  background: var(--white);
  color: var(--black);
  padding: 80px 0 30px;
  overflow: hidden;
}
.contact-hero .container { position: relative; z-index: 1; }

.contact-hero h1 {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.05;
}

.contact-hero h1 span { color: var(--orange); }

.contact-hero p {
  color: var(--text);
  font-size: 1.1rem;
  max-width: 580px;
}

/* Hero + formularz w 2 kolumnach - formularz na wysokości tekstu pod h1 */
.contact-hero-with-form {
  position: relative;
  background: var(--white);
  padding: 80px 0 100px;
  overflow: hidden;
}
.contact-hero-with-form .container { position: relative; z-index: 1; }

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

.contact-hero-text h1 {
  font-size: 4.2rem;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 24px;
  line-height: 1.15;
  color: var(--black);
}

.contact-hero-text h1 span { color: var(--orange); }

.contact-hero-text p {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Info kontaktowe pod opisem w lewej kolumnie */
.contact-info-inline {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.contact-info-inline h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: -0.3px;
}

.contact-info-inline .contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.contact-info-inline .contact-detail:last-child { margin-bottom: 0; }

.contact-info-inline .contact-detail i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.9rem;
  margin-top: 2px;
}

.contact-info-inline .contact-detail strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}

.contact-info-inline .contact-detail p {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
  margin: 0;
}

/* Sekcja z info pod spodem - "Jak się z nami skontaktować" w grid 2x2 lub 4 kolumnach */
.contact-info-wide h3 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 50px;
}

.contact-section { padding: 50px 0 80px; }

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

.contact-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-detail i {
  font-size: 1.2rem;
  color: var(--orange);
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-detail p { color: var(--text); font-size: 1rem; }
.contact-detail strong { color: var(--black); display: block; font-size: 0.85rem; margin-bottom: 2px; }

.contact-form {
  background: var(--bg-light);
  padding: 36px;
  border-radius: var(--radius);
}

.contact-form h3 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--black);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* --- 13. POLITYKA PRYWATNOŚCI --- */
.privacy-hero {
  position: relative;
  background: var(--white);
  padding: 100px 0 60px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}
.privacy-hero .container { position: relative; z-index: 1; }

.privacy-hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
}

.privacy-hero p { color: var(--text); }

.privacy-section { padding: 70px 0; }

.privacy-content {
  max-width: 820px;
}

.privacy-content h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 36px 0 12px;
  color: var(--black);
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}

.privacy-content h2:first-child { margin-top: 0; }

.privacy-content p {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 12px;
  line-height: 1.7;
}

.privacy-content ul {
  margin: 10px 0 16px 20px;
}

.privacy-content ul li {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px;
  list-style: disc;
}

.privacy-content strong { color: var(--black); }

.privacy-content a { color: var(--orange); text-decoration: underline; }

/* --- 14. COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--black);
  color: var(--white);
  padding: 20px 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.25);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--orange);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.btn-cookie-all {
  background: var(--orange);
  color: var(--white);
  border: 2px solid var(--orange);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-cookie-all:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

.btn-cookie-req {
  background: transparent;
  color: rgba(255,255,255,0.75);
  border: 2px solid rgba(255,255,255,0.3);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-cookie-req:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

/* --- 15. FOOTER --- */
.site-footer {
  background: var(--black);
  color: var(--white);
  padding: 50px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-text {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 12px;
  display: block;
}

.footer-brand .logo-text span { color: var(--orange); }

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col ul li a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--orange); }

.footer-col p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.footer-col .footer-email {
  color: var(--orange);
  font-weight: 600;
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  transition: background var(--transition), color var(--transition);
}

.footer-social a:hover {
  background: var(--orange);
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-bottom a:hover { color: var(--orange); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

/* --- 16. UTILITIES --- */
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.text-orange { color: var(--orange); }
.text-center { text-align: center; }

/* Divider */
.divider {
  height: 3px;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin: 0;
}

/* --- 17. RWD --- */

/* ================================================
   POPRAWKI / ROZSZERZENIA (v2)
   ================================================ */

/* Nagłówek: logo bardziej w lewo, menu wycentrowane (tylko pełna wersja) */
.site-header:not(.site-header--minimal) .nav-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}
.site-header:not(.site-header--minimal) .logo-box {
  justify-self: start;
  margin-left: -4px;
}
.site-header:not(.site-header--minimal) .main-nav {
  justify-self: center;
}
.site-header:not(.site-header--minimal) .social-icons {
  justify-self: end;
}

/* Kolaż 4 zdjęć — powiększenie o ~15% */
.hero-collage {
  max-width: 530px;
}

/* Sekcja "Informacje ogólne" — wyśrodkowanie + jeden wiersz */
.general-info {
  text-align: center;
}
.general-info .section-label {
  display: block;
  text-align: center;
}
.general-info .huge-title {
  text-align: center;
  white-space: nowrap;
  margin-bottom: 50px;
}
.general-info .info-grid {
  text-align: left;
}

/* Bombelki w index — globalna warstwa tła */
.index-bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.index-bubbles .bubble {
  position: absolute;
}
.index-bubbles .ib-1 { width: 280px; height: 280px; opacity: 0.07; top: 8%; left: -110px; }
.index-bubbles .ib-2 { width: 180px; height: 180px; opacity: 0.09; top: 28%; right: -60px; }
.index-bubbles .ib-3 { width: 220px; height: 220px; opacity: 0.06; top: 58%; left: -80px; }
.index-bubbles .ib-4 { width: 140px; height: 140px; opacity: 0.10; top: 78%; right: 8%; }
.index-bubbles .ib-5 { width: 320px; height: 320px; opacity: 0.05; bottom: -120px; left: 32%; }

/* Sekcje powyżej, by stały nad warstwą tła */
.hero-section,
.general-info,
.languages-section,
.school-year,
.location-section,
.site-footer { position: relative; z-index: 1; }
.site-header { z-index: 100; }

/* FAQ — duży obraz po prawej stronie nagłówka, bez zepsucia układu */
.faq-hero .container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.faq-hero-img {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.faq-hero-img img {
  width: 100%;
  max-width: 340px;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.10));
}

/* About — zdjęcie onas (gdyby było potrzebne) */
.about-onas-img {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}
.about-onas-img img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: 16px;
}

/* Mocniejsze okienko "Ważne" we francuskim */
.info-card.info-card--alert {
  background: linear-gradient(135deg, #fff4ec 0%, #ffe8d4 100%);
  border-left: 5px solid var(--orange);
  box-shadow: 0 10px 30px rgba(244, 122, 20, 0.15);
}
.info-card.info-card--alert .info-card-label {
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0.5px;
}
.info-card.info-card--alert p {
  font-size: 1.02rem;
  color: var(--black);
  font-weight: 500;
}

/* Rozszerzona rozpiska B1/B2 (francuski) — wyróżniona */
.b12-detail {
  margin-top: 18px;
  padding: 18px 20px;
  background: #fff7f0;
  border: 1px solid #ffd9b8;
  border-radius: 14px;
}
.b12-detail h5 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.b12-detail ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}
.b12-detail li {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.b12-detail li strong { color: var(--black); }

/* Responsive FAQ z obrazkiem */

.languages-section { text-align: center; }
.languages-section .section-label { display: block; text-align: center; }
.languages-section .huge-title { text-align: center; }
.languages-section .lang-grid { text-align: left; }

.school-image img { max-width: 524px; }

.alphabet-marquee {
  position: relative;
  background: var(--orange);
  color: var(--white);
  padding: 22px 0;
  overflow: hidden;
  margin-top: 30px;
  margin-bottom: 30px;
  box-shadow: 0 14px 40px rgba(244, 122, 20, 0.22);
  transform: rotate(0deg);
  z-index: 5;
}

.alphabet-marquee::before,
.alphabet-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.alphabet-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--orange), rgba(244, 122, 20, 0));
}
.alphabet-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--orange), rgba(244, 122, 20, 0));
}

.alphabet-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
  gap: 0;
}

.alphabet-marquee:hover .alphabet-marquee-track {
  animation-play-state: paused;
}

.alphabet-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 32px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: var(--white);
}

.alphabet-marquee-item .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.alphabet-marquee-item .tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.75;
  margin-left: 6px;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.fra-page .poziomy-section {
  background: linear-gradient(180deg, var(--white) 0%, #fafafa 100%);
}

.fra-page .b12-detail {
  margin-top: 22px;
  padding: 24px 26px;
  background: var(--white);
  border: 1px solid #ffd9b8;
  border-left: 5px solid var(--orange);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(244, 122, 20, 0.08);
}

.fra-page .b12-detail h5 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ffe2cc;
}

.fra-page .b12-detail > p {
  font-size: 0.97rem;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.65;
}

.fra-page .b12-detail ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fra-page .b12-detail li {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0;
  line-height: 1.55;
  padding: 12px 16px;
  background: #fff7f0;
  border-radius: 8px;
  border-left: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fra-page .b12-detail li strong {
  color: var(--orange);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.fra-page .b12-detail li span {
  color: var(--text);
  display: block;
}

/* Zagnieżdżona lista — każdy tydzień / info w osobnej linii */
.fra-page .b12-detail .b12-sublist {
  list-style: disc;
  padding-left: 22px;
  margin: 2px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
}

.fra-page .b12-detail .b12-sublist li {
  font-size: 0.92rem;
  color: var(--text);
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  display: list-item;
  line-height: 1.5;
}

.fra-page .poziomy-cols {
  grid-template-columns: 1fr;
  gap: 28px;
}

.fra-page .poziomy-text {
  background: var(--bg-light);
  padding: 22px 26px;
  border-radius: 14px;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.7;
  border-left: 3px solid var(--orange);
}

/* === Nowy układ Poziomy & Terminy (fra) === */
.fra-page .poziomy-heading {
  text-align: center;
  margin-bottom: 60px;
}

.fra-page .poziomy-heading h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.05;
  margin: 0 0 14px;
}

.fra-page .poziomy-heading .poziomy-times-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0;
}

.fra-page .poziomy-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: start;
}

.fra-page .poziomy-row + .poziomy-row {
  margin-top: 70px;
  padding-top: 70px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

/* Wiersz B1/B2 — kolumny równej szerokości, mniejszy gap */
.fra-page .poziomy-row--b12 {
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.fra-page .poziomy-row-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.fra-page .poziomy-row-info .poziomy-level {
  margin: 0;
}

/* Większe nagłówki "poziom A1/A2" i "poziom B1/B2" — czytelniej */
.fra-page .poziomy-level h4 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 14px;
}

.fra-page .poziomy-row-info .kurs-meta {
  margin: 0;
}

.fra-page .poziomy-row-info .poziomy-text {
  margin: 0;
}

/* Zdjęcie po prawej (wiersz A1/A2) */
.fra-page .poziomy-row-media {
  position: relative;
  width: 100%;
  max-width: 400px;
  justify-self: center;
  align-self: start;
  margin-top: 8px;
}

.fra-page .poziomy-row-media .poziomy-frame-inner {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--bg-light);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  transition: transform 0.4s ease;
}

.fra-page .poziomy-row-media .poziomy-frame-inner::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: -22px;
  bottom: -22px;
  background: var(--orange);
  border-radius: 4px;
  z-index: -1;
}

.fra-page .poziomy-row-media:hover .poziomy-frame-inner {
  transform: translate(-6px, -6px);
}

.fra-page .poziomy-row-media .poziomy-frame-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Aside z późniejszym startem (wiersz B1/B2) */
.fra-page .poziomy-row-aside {
  align-self: stretch;
}

.fra-page .poziomy-row-aside .b12-detail {
  margin-top: 0;
  height: 100%;
}

.fra-page .zapisy-section {
  padding: 70px 0 100px !important;
  background: var(--bg-light) !important;
}

.fra-page .zapisy-section .container {
  display: flex !important;
  justify-content: center !important;
}

.fra-page .zapisy-wrap {
  max-width: 720px !important;
  width: 100% !important;
  margin: 0 auto !important;
  background: var(--white) !important;
  padding: 50px 60px !important;
  border-radius: 20px !important;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(244, 122, 20, 0.12) !important;
  text-align: center !important;
}

.fra-page .zapisy-wrap h2 {
  margin-bottom: 14px !important;
  font-size: 2.8rem !important;
  text-align: center !important;
}

.fra-page .zapisy-wrap > p,
.fra-page .zapisy-wrap .zapisy-lead {
  color: var(--text);
  margin: 0 auto 28px !important;
  font-size: 1rem;
  max-width: 480px;
  text-align: center;
}

.fra-page .zapisy-wrap ol {
  margin: 32px auto 36px !important;
  text-align: left !important;
  max-width: 520px !important;
  display: block !important;
}

.fra-page .zapisy-wrap ol li {
  padding: 16px 0 16px 56px !important;
  font-size: 0.98rem !important;
}

.fra-page .zapisy-wrap ol li::before {
  width: 36px !important;
  height: 36px !important;
  top: 12px !important;
  font-size: 0.9rem !important;
  box-shadow: 0 3px 10px rgba(244, 122, 20, 0.35) !important;
}

.fra-page .zapisy-cta {
  justify-content: center !important;
  margin-top: 10px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 14px !important;
}

.fra-page .zapisy-note {
  width: 100% !important;
  text-align: center !important;
  margin-top: 8px !important;
  font-size: 0.88rem !important;
  color: #666 !important;
  flex-basis: 100% !important;
}


/* ================================================
   18. RESPONSIVE (Mobile-first refactor — v3)
   ================================================
   Breakpointy:
   • 1024px — tablet (landscape) + mały laptop
   • 900px  — tablet (portrait)
   • 640px  — duży telefon / mały tablet
   • 380px  — małe telefony (iPhone SE itp.)
   ================================================ */

/* --- 1024px: TABLET --- */
@media (max-width: 1024px) {
  .container { width: min(94%, 1200px); }

  /* Grids dwukolumnowe */
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .poziomy-cols { grid-template-columns: 1fr; gap: 30px; }

  /* Hero typography lekko mniejsze */
  .hero-content h1 { font-size: 3.8rem; }
  .hero-content p { font-size: 1.15rem; }
  .huge-title { font-size: 3.2rem; }
  .page-hero h1 { font-size: 4rem; }
}

/* --- 900px: TABLET PORTRAIT --- */
@media (max-width: 900px) {
  /* Nawigacja: ukryj inline-nav z minimal headera */
  .site-header--minimal .nav-wrap {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }
  .site-header--minimal .header-nav { display: none; }

  /* Stary header (gdyby gdzieś jeszcze został) */
  .site-header:not(.site-header--minimal) .nav-wrap {
    grid-template-columns: auto 1fr auto;
  }

  /* FAQ hero — kolumna single */
  .faq-hero .container { grid-template-columns: 1fr; }
  .faq-hero-img { justify-content: center; margin-top: 20px; }
  .faq-hero-img img { max-width: 240px; }

  /* Tytuł "Informacje ogólne" — pozwól się zawijać */
  .general-info .huge-title { white-space: normal; }

  /* FRA — kolumny pojedyncze */
  .fra-page .poziomy-heading { margin-bottom: 40px; }
  .fra-page .poziomy-heading h2 { font-size: 2.2rem; }
  .fra-page .poziomy-row,
  .fra-page .poziomy-row--b12 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .fra-page .poziomy-row + .poziomy-row {
    margin-top: 50px;
    padding-top: 50px;
  }
  .fra-page .poziomy-row--a12 .poziomy-row-info { order: 2; }
  .fra-page .poziomy-row--a12 .poziomy-row-media { order: 1; max-width: 320px; }
  .fra-page .poziomy-frame { margin-top: 0; }
  .fra-page .poziomy-content { margin-top: 0; }
  .fra-page .zapisy-wrap { padding: 36px 28px !important; }
  .fra-page .zapisy-wrap h2 { font-size: 2rem !important; }
}

/* --- 768px: STANDARD MOBILE BREAKPOINT --- */
@media (max-width: 768px) {
  /* === KONTENER === */
  .container { width: min(92%, 1200px); }

  /* === HERO STRONA GŁÓWNA === */
  .hero-section { padding: 70px 0 90px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content { display: flex; flex-direction: column; align-items: center; }
  .hero-content h1 { font-size: 3rem; }
  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-bg-shape {
    right: 0;
    border-radius: 0;
    top: 0;
    bottom: 0;
  }

  /* Kolaż 4 kart */
  .hero-collage {
    justify-self: center;
    max-width: 360px;
    gap: 16px;
  }
  .card-en, .card-fr, .card-es, .card-jp {
    transform: none;
  }
  .collage-card { border-radius: 18px; }

  /* === HEADER NA MOBILE === */
  .site-header { padding: 12px 0; }
  .logo-box img { height: 38px; }
  .logo-text { font-size: 1.15rem; }
  .nav-toggle { display: flex; }

  /* Drawer pełnoekranowy */
  .drawer-menu { width: 100vw; padding: 22px 24px; }

  /* === SEKCJE — pojedyncze kolumny === */
  .info-grid,
  .school-grid,
  .location-grid,
  .contact-grid,
  .contact-hero-grid,
  .contact-info-grid,
  .page-grid,
  .about-grid,
  .page-hero-grid,
  .page-hero-grid--reverse,
  .poziomy-grid,
  .poziomy-grid--reverse {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Na mobile nie odwracamy kolejności — obraz zawsze pod tytułem */
  .page-hero-grid--reverse .page-hero-text,
  .page-hero-grid--reverse .page-hero-frame,
  .poziomy-grid--reverse .poziomy-frame,
  .poziomy-grid--reverse .poziomy-content { order: unset; }

  /* === TYPOGRAFIA — TYTUŁY === */
  .huge-title { font-size: 2.4rem; margin-bottom: 36px; }
  .page-hero h1 { font-size: 2.8rem; letter-spacing: -1px; }
  .page-hero-subtitle { font-size: 1.05rem; }
  .prose-section h2 { font-size: 2rem; }
  .poziomy-content h2 { font-size: 2rem; }
  .zapisy-wrap h2 { font-size: 1.9rem; }
  .about-hero h1, .faq-hero h1, .contact-hero h1 { font-size: 2.4rem; }
  .privacy-hero h1 { font-size: 2.2rem; }
  .orange-title { font-size: 2rem; }
  .location-text h2 { font-size: 1.75rem; }

  /* === PADDINGI SEKCJI === */
  .general-info { padding: 70px 0; }
  .languages-section { padding: 30px 0 80px; }
  .school-year { padding: 70px 0; }
  .location-section { padding: 70px 0; }
  .page-hero { padding: 60px 0 70px; }
  .page-section { padding: 70px 0; }
  .poziomy-section { padding: 70px 0 80px; }
  .zapisy-section { padding: 60px 0 80px; }
  .about-hero, .faq-hero, .contact-hero, .privacy-hero { padding: 80px 0 50px; }

  /* === SEKCJA "INFORMACJE OGÓLNE" — wycentrowanie === */
  .general-info .info-grid { text-align: left; gap: 40px; }
  .info-left, .info-right { max-width: 100%; }

  /* === HERO PODSTRONY — ramka === */
  .page-hero-frame { max-width: 432px; margin-inline: auto; }
  .page-hero-frame::before { top: -16px; left: 16px; right: -16px; bottom: 16px; }
  .page-hero-grid--reverse .page-hero-frame::before { left: -16px; right: 16px; }

  /* === POZIOMY (podstrony językowe) === */
  .poziomy-frame { max-width: 320px; margin-inline: auto; }
  .poziomy-frame::before { top: 16px; left: -16px; right: 16px; bottom: -16px; }
  .poziomy-grid--reverse .poziomy-frame::before { left: 16px; right: -16px; }

  /* === PROSE Z ASIDE === */
  .prose-section--with-aside { grid-template-columns: 1fr; gap: 30px; }
  .prose-aside { position: static; }

  /* === MAPA === */
  .map-wrap {
    justify-self: stretch;
    max-width: 100%;
    aspect-ratio: 16 / 12;
  }
  .map-wrap iframe { width: 100%; height: 100%; min-height: 280px; }

  /* === LOCATION === */
  .location-text { text-align: center; }
  .location-text .btn { display: inline-flex !important; margin-inline: auto; }

  /* === SCHOOL YEAR === */
  .school-image img { max-width: 320px; margin-inline: auto; }
  .school-text-center { text-align: center; }

  /* === LANGUAGES GRID === */
  .lang-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .lang-card-img { height: 180px; padding: 16px; }
  .lang-card-body { padding: 20px 20px 22px; }

  /* === FAQ === */
  .faq-item { grid-template-columns: 36px 1fr; }
  .faq-a { grid-column: 2; }

  /* === FOOTER === */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-brand,
  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer-col ul { align-items: center; }
  .footer-social { justify-content: center; }

  /* === COOKIE BANNER === */
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 16px; }
  .cookie-buttons { width: 100%; justify-content: stretch; }
  .btn-cookie-all, .btn-cookie-req { flex: 1; min-height: 44px; }

  /* === BOMBELKI / DECORATIONS === */
  .bubble-1, .bubble-3 { width: 160px; height: 160px; }
  .bubble-2, .bubble-5 { width: 100px; height: 100px; }
  .index-bubbles .ib-1,
  .index-bubbles .ib-3,
  .index-bubbles .ib-5 { width: 180px; height: 180px; }
  .index-bubbles .ib-2,
  .index-bubbles .ib-4 { width: 120px; height: 120px; }

  /* === MARQUEE === */
  .alphabet-marquee { padding: 16px 0; margin: 24px 0; }
  .alphabet-marquee-item { font-size: 1.15rem; padding: 0 22px; }
  .alphabet-marquee-track { animation-duration: 28s; }

  /* === TOUCH TARGETS (min 44×44px wg WCAG/HIG) === */
  .social-icons a,
  .footer-social a,
  .drawer-close,
  .nav-toggle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .btn { min-height: 44px; padding: 12px 24px; }
  .main-nav a,
  .header-nav a,
  .footer-col ul li a { padding: 10px 14px; }

  /* === FRA-PAGE szczegóły === */
  .fra-page .b12-detail { padding: 18px 18px; }
  .fra-page .b12-detail li { font-size: 0.9rem; padding: 9px 12px; }
}

/* --- 640px: DUŻY TELEFON --- */
@media (max-width: 640px) {
  .hero-content h1 { font-size: 2.5rem; line-height: 1.05; }
  .hero-content p { font-size: 1rem; }
  .hero-section { padding: 50px 0 70px; }

  .huge-title { font-size: 2rem; margin-bottom: 28px; }
  .page-hero h1 { font-size: 2.4rem; }
  .orange-title { font-size: 1.75rem; }
  .about-hero h1, .faq-hero h1, .contact-hero h1 { font-size: 2rem; }

  /* Kolaż mniejszy */
  .hero-collage { max-width: 320px; gap: 14px; }

  /* Sekcje */
  .general-info,
  .school-year,
  .location-section,
  .page-section { padding: 56px 0; }

  /* Akordeon (FAQ) — mniejszy padding */
  .accordion summary { padding: 18px 0; font-size: 0.95rem; }

  /* Languages: zostaje 2 kolumny, ale mniejsze tile'y */
  .lang-card-img { height: 160px; }
  .lang-card-title { font-size: 1.1rem; }
  .lang-card-body { padding: 16px 16px 18px; }

  /* Buttons — szerokie na mobile */
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-inline: auto;
  }
  .hero-buttons .btn { width: 100%; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer bottom — pojedyncza kolumna */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }
  .footer-bottom-links { justify-content: center; }

  /* Kurs meta */
  .kurs-meta { grid-template-columns: 1fr; }
}

/* --- 380px: MAŁE TELEFONY (iPhone SE itp.) --- */
@media (max-width: 380px) {
  .container { width: 94%; }

  .hero-content h1 { font-size: 2.1rem; }
  .hero-section { padding: 40px 0 60px; }
  .huge-title { font-size: 1.75rem; }
  .page-hero h1 { font-size: 2rem; }
  .about-hero h1, .faq-hero h1, .contact-hero h1 { font-size: 1.75rem; }

  /* Languages: 1 kolumna */
  .lang-grid { grid-template-columns: 1fr; }
  .lang-card-img { height: 200px; }

  /* Kolaż */
  .hero-collage { max-width: 280px; gap: 12px; }

  /* Logo mniejsze */
  .logo-text { font-size: 1rem; }
  .logo-box img { height: 34px; }

  /* Footer bottom links wrap */
  .footer-bottom-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* --- REDUCE MOTION (accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* override kafelki */
.lang-grid { align-items: stretch; }
.lang-card { display: flex; flex-direction: column; height: 100%; }
.lang-card-body { display: flex; flex-direction: column; flex: 1; }
.lang-card-arrow { margin-top: auto !important; align-self: center !important; justify-content: center; padding-top: 16px; }
