/* =========================================================
   JUMP INTO ENGLISH — style.css
   Design system derived from the brand logo:
   navy / orange / gold, Poppins + Inter.
   Mobile-first. Shared across every page on the site.
   ========================================================= */

:root {
  /* --- Brand colour tokens --- */
  --navy-950: #071A3D;
  --navy-900: #0A2450;
  --navy-700: #1F3E72;
  --navy-500: #2E5296;

  --orange-500: #F87508;
  --orange-700: #A84F04;

  --gold-500: #FCB405;
  --gold-600: #E0A000;

  --cream-50: #FBF7EF;
  --cream-100: #F3EDDF;
  --white: #FFFFFF;

  --slate-600: #45527A;
  --slate-400: #7C88A8;
  --line: #E3DCC9;

  /* --- Type --- */
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* --- Layout --- */
  --header-h: 72px;
  --header-h-lg: 88px;
  --container: 1180px;

  /* --- Border Radius --- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  /* --- Shadows --- */
  --shadow-sm: 0 2px 12px rgba(10, 36, 80, 0.07);
  --shadow-md: 0 14px 34px rgba(10, 36, 80, 0.12);
  --shadow-lg: 0 26px 60px rgba(10, 36, 80, 0.18);

  /* --- Animations --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & GLOBAL
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  background: var(--cream-50);
  color: var(--slate-600);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

ul {
  list-style: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
}

h3 {
  font-family: var(--font-body);
  font-weight: 800;
}

p {
  line-height: 1.7;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-bottom: 0.9rem;
  color: var(--orange-700);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.section-lead {
  max-width: 62ch;
  color: var(--slate-600);
  font-size: clamp(1.02rem, 1.6vw, 1.15rem);
}

.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/* =========================================================
   LAYOUT HELPERS
   ========================================================= */
.section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-alt {
  background: var(--cream-100);
}

.section-navy {
  background: var(--navy-900);
  color: var(--cream-100);
}

.divider {
  max-width: var(--container);
  margin: 0 auto;
  border: none;
  border-top: 2px dashed var(--line);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.mt-0 {
  margin-top: 0 !important;
}

/* =========================================================
   BUTTONS & BADGES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.95em 2.15em;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.22s var(--ease), 
              background-color 0.22s var(--ease), 
              color 0.22s var(--ease), 
              box-shadow 0.22s var(--ease), 
              border-color 0.22s var(--ease);
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--navy-900);
  color: var(--gold-500);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.btn-outline-cream {
  background: transparent;
  border-color: rgba(251, 247, 239, 0.55);
  color: var(--cream-50);
}

.btn-outline-cream:hover {
  background: rgba(251, 247, 239, 0.12);
  border-color: var(--cream-50);
  transform: translateY(-3px);
}

.btn-ghost-navy {
  background: transparent;
  border-color: var(--navy-900);
  color: var(--navy-900);
}

.btn-ghost-navy:hover {
  background: var(--navy-900);
  color: var(--cream-50);
  transform: translateY(-3px);
}

.btn-block {
  width: 100%;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 1em;
  background: var(--gold-500);
  color: var(--navy-900);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: rgba(251, 247, 239, 0.88);
  border-bottom: 1px solid rgba(10, 36, 80, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.3s var(--ease), 
              border-color 0.3s var(--ease), 
              backdrop-filter 0.3s var(--ease);
}

@media (min-width: 900px) {
  .site-header {
    height: var(--header-h-lg);
  }
}


.hero h1 {
  /* Dodaj ten cień do istniejącej klasy .hero h1 */
  text-shadow: 0 4px 24px rgba(7, 26, 61, 0.8), 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero h1 .text-accent {
  color: var(--gold-500);
  text-shadow: 0 0 10px rgba(255, 189, 22, 0.35);
}
.site-header.has-hero {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.site-header.has-hero .nav-links a,
.site-header.has-hero .hamburger-btn {
  color: var(--cream-50);
}

.site-header.has-hero .nav-links a.active {
  color: var(--gold-500);
}

/* Ukrywamy obrazek, pokazujemy czysty biały tekst */
.site-header.has-hero .brand img {
  display: none;
}

/* --- STAN 2: Po przescrollowaniu w dół (widoczne logo) --- */
.site-header.has-hero.is-scrolled {
  background: rgba(251, 247, 239, 0.94);
  border-bottom: 1px solid rgba(10, 36, 80, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.has-hero.is-scrolled .nav-links a,
.site-header.has-hero.is-scrolled .hamburger-btn {
  color: var(--navy-900);
}

.site-header.has-hero.is-scrolled .nav-links a.active {
  color: var(--orange-700);
}

/* Pokazujemy z powrotem oryginalne logo i ukrywamy tekst */
.site-header.has-hero.is-scrolled .brand img {
  display: block;
  filter: none;
}
.site-header.has-hero .brand .brand-text {
  display: inline-block;
}
.site-header.has-hero.is-scrolled .brand .brand-text {
  display: none;
}

.brand img,
.nav-links a,
.hamburger-btn {
  transition: color 0.3s var(--ease), filter 0.3s var(--ease);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem; /* Wymusza odstęp między logiem a resztą (nigdy na siebie nie najdą) */
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0; /* Logo nie będzie się zgniatać */
}

.brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem); /* Płynnie zmniejsza się na mniejszych ekranach */
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  white-space: nowrap;
  /* Delikatny cień poprawiający czytelność na tle zdjęcia */
  text-shadow: 0 2px 8px rgba(7, 26, 61, 0.6); 
  transition: color 0.3s var(--ease);
}
.brand-text .text-gold {
  color: var(--gold-500);
  font-weight: 800; /* Mocniejsze zaakcentowanie słowa English */
}

.brand img {
  width: auto;
  height: 38px;
}
#site-logo {
  width: auto;
  height: clamp(50px, 5.5vw, 64px);
  object-fit: contain;
  border-radius: 40px;
}

@media (min-width: 900px) {
  .brand img {
    height: 50px;
  }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  position: relative;
  padding: 0.3rem 0.05rem;
  color: var(--navy-900);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 100%;
  bottom: -3px;
  left: 0;
  height: 2px;
  background: var(--gold-500);
  transition: right 0.25s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  right: 0;
}

.nav-links a.active {
  color: var(--orange-700);
}

.nav-cta {
  display: none;
}

@media (min-width: 860px) {
  .nav-cta {
    display: inline-flex;
    padding: 0.7em 1.6em;
    font-size: 0.95rem;
  }
}

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  background: none;
  border: none;
  color: var(--navy-900);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 860px) {
  .hamburger-btn {
    display: none;
  }
}

/* Mobile full-screen menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
  background: var(--navy-900);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 0.35s var(--ease), 
              transform 0.35s var(--ease), 
              visibility 0.35s;
}

.mobile-menu.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.8rem;
}

.mobile-menu a {
  color: var(--cream-50);
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold-500);
}

@media (min-width: 860px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================================================
   PAGE BANNER
   ========================================================= */
.page-banner {
  position: relative;
  padding: calc(var(--header-h) + 3.2rem) 1.25rem 3.5rem;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--cream-50);
  text-align: center;
  overflow: hidden;
}

@media (min-width: 900px) {
  .page-banner {
    padding-top: calc(var(--header-h-lg) + 3.6rem);
  }
}

.page-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(252, 180, 5, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

.page-banner h1 {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: clamp(2rem, 5vw, 2.9rem);
}

.page-banner p {
  position: relative;
  z-index: 1;
  max-width: 60ch;
  margin: 0.85rem auto 0;
  color: var(--cream-100);
  font-size: 1.05rem;
}

.page-banner .eyebrow {
  justify-content: center;
  width: 100%;
  color: var(--gold-500);
}

/* =========================================================
   HERO (Home page)
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 88vh;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
  color: var(--cream-50);
  overflow: hidden;
}

@media (min-width: 900px) {
  .hero {
    min-height: 100vh;
    margin-top: calc(-1 * var(--header-h-lg));
    padding-top: var(--header-h-lg);
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('bigben.jpg');
  background-position: center 30%;
  background-size: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(7, 26, 61, 0.58) 0%, rgba(7, 26, 61, 0.82) 55%, rgba(7, 26, 61, 0.94) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 40px;
  margin-bottom: 1.6rem;
  padding: 0.55em 1.1em;
  background: rgba(252, 180, 5, 0.15);
  border: 1px solid rgba(252, 180, 5, 0.55);
  border-radius: var(--radius-pill);
  color: var(--gold-500);
  font-size: 0.85rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 15ch;
  margin-bottom: 1.15rem;
  color: var(--white);
  font-size: clamp(2.15rem, 6vw, 3.65rem);
  font-weight: 600;
  line-height: 1.16;
  text-wrap: balance;
}

.hero .lead {
  max-width: 44ch;
  margin-bottom: 2.2rem;
  color: var(--cream-100);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* =========================================================
   CREDENTIAL SECTION
   ========================================================= */
.why-grid {
  display: grid;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 980px) {
  .why-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.why-text p {
  margin-bottom: 1.1rem;
}

.why-text p:last-of-type {
  margin-bottom: 1.8rem;
}

.credential-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.credential-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.credential-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credential-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 26, 61, 0.88) 0%, rgba(7, 26, 61, 0.05) 55%);
}

.credential-card figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: 1.1rem;
  color: var(--white);
}

.credential-card .name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.credential-card .tag {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.3em 0.7em;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  color: var(--navy-900);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* =========================================================
   TEAM CAROUSEL
   ========================================================= */
.team-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.3rem;
}

.team-container {
  position: relative;
}

.team-track {
  display: grid;
  grid-auto-columns: 82%;
  grid-auto-flow: column;
  gap: 1.25rem;
  padding-bottom: 0.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.team-track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .team-track {
    grid-auto-columns: 46%;
  }
}

@media (min-width: 1080px) {
  .team-track {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Automatycznie i idealnie wyśrodkuje 2 karty w dolnym rzędzie */
    gap: 1.25rem;
    overflow: visible;
    max-width: 1050px; /* Zmniejsza całkowity obszar na karty. Możesz to zmienić np. na 800px (jeszcze mniejsze) lub 1000px (nieco większe) */
    margin: 0 auto;
  }

  .team-card {
    /* 100% szerokości minus dwa odstępy między trzema kartami (2 * 1.25rem = 2.5rem) podzielone przez 3 */
    width: calc((100% - 2.5rem) / 3); 
    
    /* Zatrzymujemy właściwości "scroll-snap" z urządzeń mobilnych */
    scroll-snap-align: none;
  }

  /* Resetujemy dawne, specyficzne style dla karty szefowej na desktopie. 
     Teraz wkomponuje się elegancko z resztą zespołu jako pierwsza w rzędzie */
  .team-card.team-boss {
    width: calc((100% - 2.5rem) / 3);
    grid-column: auto;
    justify-self: auto;
  }
}
/*podglad zwinietego tekstu*/
.team-desc summary {
  color: var(--orange-700);
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  user-select: none;
}

.team-desc summary:hover {
  text-decoration: underline;
}

.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  scroll-snap-align: start;
}

.team-card img {
  width: 100%;
  margin-bottom: 1.1rem;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.team-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.2rem;
}

.team-role {
  margin-bottom: 0.7rem;
  color: var(--orange-700);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.team-desc {
  color: var(--slate-600);
  font-size: 0.93rem;
}

.scroll-btns {
  display: flex;
  gap: 0.6rem;
}

.scroll-btns button,
.courses-scroll-btns button {
  width: 42px;
  height: 42px;
  background: var(--navy-900);
  border: none;
  border-radius: 50%;
  color: var(--gold-500);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s var(--ease);
  touch-action: manipulation;
}

.scroll-btns button:hover,
.courses-scroll-btns button:hover {
  background: var(--orange-700);
}

@media (min-width: 1080px) {
  .scroll-btns {
    display: none;
  }
}

/* =========================================================
   OPINIONS
   ========================================================= */
.opinion-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  scroll-snap-align: start;
}

.opinion-card .stars {
  margin-bottom: 1rem;
  color: var(--gold-500);
  font-size: 1.05rem;
  letter-spacing: 0.15em;
}

.opinion-card .opinion-text {
  flex: 1;
  margin-bottom: 1.5rem;
  color: var(--slate-600);
  font-size: 0.98rem;
  font-style: italic;
}

.opinion-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.opinion-author .avatar {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy-900);
  border-radius: 50%;
  color: var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.opinion-author .name {
  color: var(--navy-900);
  font-size: 0.95rem;
  font-weight: 700;
}

.opinion-author .role {
  color: var(--slate-400);
  font-size: 0.82rem;
}

/* =========================================================
   LEVEL PATH
   ========================================================= */
.level-path {
  position: relative;
  max-width: 780px;
  margin: 2.4rem auto 0;
  padding: 0 1rem;
}

.level-path ol {
  position: relative;
  display: flex;
  justify-content: space-between;
}

.level-path ol::before {
  content: '';
  position: absolute;
  top: 15px;
  right: 6%;
  left: 6%;
  z-index: 0;
  border-top: 2.5px dashed var(--gold-500);
}

.level-node {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.level-node .dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--white);
  border: 2.5px solid var(--navy-900);
  border-radius: 50%;
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 800;
}

.level-node:last-child .dot {
  background: var(--navy-900);
  color: var(--gold-500);
}

.level-node .lvl-label {
  color: var(--slate-400);
  font-size: 0.72rem;
  font-weight: 600;
}

.level-plane {
  position: absolute;
  top: -14px;
  right: -6px;
  width: 30px;
  height: 30px;
  color: var(--orange-500);
  transform: rotate(35deg);
}

/* =========================================================
   COURSES
   ========================================================= */
.courses-intro {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.courses-intro p {
  margin-top: 0.5rem;
  color: var(--cream-100);
}

.courses-grid {
  display: grid;
  grid-auto-columns: 82%;
  grid-auto-flow: column;
  gap: 1.4rem;
  padding: 0.5rem 0.1rem 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.courses-grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 640px) {
  .courses-grid {
    grid-auto-columns: 47%;
  }
}

@media (min-width: 1080px) {
  .courses-grid {
    display: grid;
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}

@media (min-width: 1350px) {
  .courses-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.course-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  scroll-snap-align: start;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.course-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
}

.course-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.course-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.course-card h3 {
  min-height: 2.6em;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
}

.course-card p {
  flex: 1;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
}

.course-card .price-badge {
  align-self: flex-start;
  margin-bottom: 1.1rem;
}

.course-card .btn {
  width: 100%;
}

.courses-scroll-btns {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

@media (min-width: 1080px) {
  .courses-scroll-btns {
    display: none;
  }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3.5rem;
  }
}

.contact-info h2 {
  margin-bottom: 0.8rem;
}

.contact-info p {
  margin-bottom: 1.4rem;
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 1.4rem;
  color: var(--navy-900);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-phone:hover {
  color: var(--orange-700);
}

.contact-socials {
  display: flex;
  gap: 0.9rem;
}

.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy-900);
  border-radius: 50%;
  color: var(--gold-500);
  font-size: 1.05rem;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.contact-socials a:hover {
  background: var(--orange-700);
  transform: translateY(-2px);
}

/* =========================================================
   FORMS (TUTAJ ROZWIĄZANO PROBLEM Z KURSOREM)
   ========================================================= */
.form-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .form-card {
    padding: 2.6rem;
  }
}

form {
  display: flex;
  flex-direction: column;
}

.field-row {
  display: flex;
  gap: 1rem;
}

@media (max-width: 520px) {
  .field-row {
    flex-direction: column;
    gap: 0;
  }
}

.field-row > div {
  display: flex;
  flex: 1;
  flex-direction: column;
}

label {
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 700;
}

label span {
  color: var(--slate-400);
  font-size: 0.78rem;
  font-weight: 400;
}

.field-row label small {
  display: block;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
  color: var(--navy-900);
  font-size: 0.8rem;
  font-weight: 700;
}

.field-row label span {
  display: block;
}

input, textarea, select {
  padding: 0.8em 1em;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  
  /* Poniższe 2 linijki wymuszają widoczność kursora */
  caret-color: var(--navy-900);
  cursor: text;

  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

input:hover, textarea:hover, select:hover {
  border-color: var(--slate-400);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(252, 180, 5, 0.18);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='10'%3E%3Cpath fill='none' stroke='%2345527A' stroke-width='2' d='M1 1l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 1em center;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

form button[type="submit"] {
  align-self: flex-start;
  margin-top: 1.6rem;
}

/* =========================================================
   SIGNUP PAGE
   ========================================================= */
.signup-section {
  display: grid;
  min-height: 100vh;
}

@media (min-width: 940px) {
  .signup-section {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.signup-media {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-950) 100%);
}

@media (min-width: 940px) {
  .signup-media {
    display: flex;
  }
}

.signup-media img {
  width: 100%;
  max-width: 360px;
  border: 6px solid var(--gold-500);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.signup-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2.5rem) 1.4rem 3rem;
}

@media (min-width: 640px) {
  .signup-panel {
    padding-right: 3rem;
    padding-left: 3rem;
  }
}

@media (min-width: 900px) {
  .signup-panel {
    padding-top: calc(var(--header-h-lg) + 3rem);
  }
}

@media (min-width: 940px) {
  .signup-panel {
    max-width: 720px;
    padding-right: 4.5rem;
    padding-left: 4.5rem;
  }
}

.signup-panel h1 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.signup-panel > p {
  margin-bottom: 1.8rem;
  font-size: 1.05rem;
}

.signup-panel > p u {
  color: var(--orange-700);
}

.signup-note {
  margin-top: 1rem;
  color: var(--slate-400);
  font-size: 0.85rem;
}

/* =========================================================
   ABOUT (O nas)
   ========================================================= */
.story-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 980px) {
  .story-grid {
    align-items: start;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.story-text p {
  margin-bottom: 1.4rem;
}

.story-text b {
  color: var(--navy-900);
}

.story-block {
  margin-bottom: 1.6rem;
  padding: 1.4rem 1.6rem;
  background: var(--white);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  box-shadow: var(--shadow-sm);
}

.story-block h4 {
  margin-bottom: 0.5rem;
  color: var(--orange-700);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-block p {
  margin: 0;
}

.story-block p + p {
  margin-top: 0.8rem;
}

.story-founder {
  background: var(--navy-900);
  border-left-color: var(--gold-500);
  color: var(--cream-100);
}

.story-founder h4 {
  color: var(--gold-500);
}

.story-founder b {
  color: var(--white);
}

.story-image {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.story-image img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

@media (max-width: 900px) {
  .story-image img {
    display: none;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 3.5rem 1.25rem 1.5rem;
  background: var(--navy-950);
  color: var(--cream-100);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-logo-link img {
  display: block;
  height: 40px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer-logo-link:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.footer-brand p {
  max-width: 32ch;
  color: var(--slate-400);
  font-size: 0.92rem;
}

.footer-col h3 {
  margin-bottom: 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin-bottom: 0.7rem;
  color: var(--cream-100);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--gold-500);
}

.footer-col a.footer-phone {
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.3rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: 0;
  background: rgba(251, 247, 239, 0.08);
  border-radius: 50%;
}

.footer-socials a:hover {
  background: var(--gold-500);
  color: var(--navy-950);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(251, 247, 239, 0.12);
  color: var(--slate-400);
  font-size: 0.82rem;
}
/* =========================================================
   COOKIE BANNER
   ========================================================= */
.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 130;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 640px;
  margin: 0 auto;
  padding: 1.3rem 1.4rem;
  background: var(--navy-950);
  border-radius: var(--radius-md);
  color: var(--cream-100);
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 0.5s var(--ease);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner a {
  color: var(--gold-500);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.cookie-buttons button {
  padding: 0.55em 1.3em;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

#accept-cookies {
  background: var(--gold-500);
  color: var(--navy-900);
}

#accept-cookies:hover {
  background: var(--gold-600);
}

#close-cookies {
  padding: 0.3em 0.6em;
  background: transparent;
  color: var(--cream-100);
  font-size: 1.1rem;
}

#close-cookies:hover {
  color: var(--white);
}

/* =========================================================
   FLOATING CALL BUTTON
   ========================================================= */
.call-fab {
  position: fixed;
  bottom: 1.1rem;
  left: 50%;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  background: var(--gold-500);
  border-radius: var(--radius-pill);
  color: var(--navy-900);
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}

.call-fab:hover {
  background: var(--navy-900);
  color: var(--gold-500);
  transform: translateX(-50%) translateY(-3px);
}

@media (min-width: 860px) {
  .call-fab {
    right: 1.6rem;
    bottom: 1.6rem;
    left: auto;
    transform: none;
  }
  .call-fab:hover {
    transform: translateY(-3px);
  }
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.2rem 1.6rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .prose {
    padding: 3rem 3.5rem;
  }
}

.prose h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 0.4rem;
  color: var(--slate-600);
}

.prose li {
  margin-bottom: 0.3rem;
  margin-left: 1.3rem;
  color: var(--slate-600);
  list-style: disc;
}

.prose a {
  color: var(--orange-700);
  text-decoration: underline;
}

.prose b {
  color: var(--navy-900);
}