/* ==========================================================================
   MSE 2027 – szablon Joomli (wariant B4)
   ========================================================================== */

:root {
  --navy: #0A1F44;
  --blue: #0D3B8C;
  --blue-2: #1565C0;
  --sky: #1AA3E8;
  --red: #D7262E;
  --yellow: #FFE11A;
  --ice: #EEF5FC;
  --ink-2: #23345A;
  --muted: #3C4C70;
  --line: #C9D6E8;
  --line-2: #B8C4D6;
  --line-3: #D5DEEA;
  --on-dark: #D9E6FA;
  --def-bg: #16213A;
  --def-gold: #C9A24A;
  --def-gold-2: #E3C87F;
  --def-text: #D5DCEA;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Sora, Inter, system-ui, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --gutter: 40px;
  --section-y: 110px;
  --max: 1320px;
}

/* --- Podstawy ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--navy); font: 400 16px/1.5 var(--font); min-width: 0; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #FFB800; outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--font-head); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--yellow); color: var(--navy); font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.h2 { margin: 0; font-weight: 700; font-size: 48px; line-height: 1.1; letter-spacing: -0.01em; }
.eyebrow { font-weight: 600; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-2); }
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); }
.meta { font-size: 14px; font-weight: 700; color: var(--red); }
.link-arrow { align-self: flex-start; font-weight: 700; }
.link-arrow--lg { font-size: 16px; }

/* --- Przyciski ----------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: 15px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #b81e25; color: #fff; }
.btn--yellow { background: var(--yellow); color: var(--navy); }
.btn--yellow:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: #fff; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--navy); }
.btn--gold { background: var(--def-gold); color: var(--def-bg); min-height: 52px; padding: 0 26px; }
.btn--gold:hover { background: var(--def-gold-2); color: var(--def-bg); }

/* --- Nagłówek ------------------------------------------------------------ */
/* Przypięty do góry ekranu. Na górze strony przezroczysty (na filmie / granatowym pasie),
   po przewinięciu (.is-scrolled z template.js) – granatowe tło i niższy. Miejsce na niego:
   padding-top hero i pasa podstron = --header-h. */
:root { --header-h: 104px; }
html { scroll-padding-top: 88px; } /* kotwice nie chowają się pod nagłówkiem */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background-color .25s ease, box-shadow .25s ease; }
.site-header.is-scrolled, .site-header.is-menu-open { background: rgba(10, 31, 68, .94); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45); }
@supports (backdrop-filter: blur(1px)) {
  .site-header.is-scrolled { background: rgba(10, 31, 68, .82); backdrop-filter: saturate(140%) blur(12px); }
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; padding-bottom: 26px; transition: padding .25s ease; }
.site-header.is-scrolled .site-header__inner { padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand__mark { height: 52px; padding: 0 12px; background: var(--red); display: flex; align-items: center; }
.brand__mark img { height: 24px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.brand__sub { font-size: 13px; color: #F2F2F2; }
.site-header__menu { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; }
.nav a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--yellow); }
.nav-toggle { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; background: transparent; color: #fff; font: 600 15px var(--font); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* --- Hero ---------------------------------------------------------------- */
.hero { position: relative; min-height: 820px; padding-top: var(--header-h); color: #fff; display: flex; flex-direction: column; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
/* 1. mikro-placeholder (data URI w HTML) – widoczny od pierwszej klatki renderowania */
.hero__media::before { content: ""; position: absolute; inset: -40px; background: var(--lqip, none) center / cover no-repeat; filter: blur(24px); transform: scale(1.05); }
/* 2. poster (pierwsza klatka filmu) – przenika się z placeholderem po wczytaniu */
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { opacity: 0; transition: opacity .6s ease; }
.hero__poster.is-loaded { opacity: 1; }
/* 3. film – pokazuje się dopiero, gdy faktycznie gra (bez czarnego mignięcia) */
.hero__video { opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 24%), linear-gradient(90deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.5) 50%, rgba(0,0,0,.14) 82%, rgba(0,0,0,0) 100%); }
.hero__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-top: 60px; padding-bottom: 48px; }
.hero__badge { align-self: flex-start; padding: 8px 14px; border: 1px solid var(--yellow); color: var(--yellow); border-radius: 999px; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.hero__title { margin: 0; font-weight: 800; font-size: clamp(48px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -0.02em; max-width: 1060px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero__title span { color: var(--yellow); }
.hero__facts { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; font-family: var(--font-head); font-size: 26px; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__controls { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.video-toggle { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #fff; background: rgba(0,0,0,.15); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.video-toggle:hover { background: rgba(255,255,255,.15); }
.video-toggle .icon-play { display: block; }
.video-toggle .icon-pause { display: none; }
.video-toggle.is-playing .icon-play { display: none; }
.video-toggle.is-playing .icon-pause { display: block; }

.patron-strip { position: relative; background: #fff; border-bottom: 1px solid var(--line-3); color: var(--navy); }
.patron-strip__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.patron-strip__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.patron-strip__list { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; margin: 0; padding: 0; list-style: none; }
.patron-strip__list img { height: 44px; width: auto; max-width: 200px; object-fit: contain; }

/* --- Odliczanie ---------------------------------------------------------- */
.countdown { background: var(--sky); color: var(--navy); }
.countdown__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 34px; }
.countdown__title { margin: 0; font-weight: 700; font-size: 26px; }
.countdown__grid { display: flex; flex-wrap: wrap; gap: 14px; }
.countdown__cell { min-width: 116px; background: #fff; color: var(--blue); padding: 14px 18px; display: flex; flex-direction: column; align-items: center; }
.countdown__num { font-family: var(--font-head); font-weight: 800; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__unit { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* --- O Salonie ----------------------------------------------------------- */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: var(--section-y); padding-bottom: 80px; }
.about__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about__photos { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.about__photos > img, .about__slides { width: 100%; height: 300px; border-radius: 18px; }
.about__photos > img { object-fit: cover; }
.about__photos > :nth-child(2) { margin-top: 48px; }
/* pokaz zdjęć: wszystkie w jednym kadrze, widoczne to z .is-active (przenikanie) */
.about__slides { position: relative; overflow: hidden; background: var(--ice); }
.about__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.about__slides img.is-active { opacity: 1; }

/* --- Liczby -------------------------------------------------------------- */
.stats { background: var(--blue); color: #fff; }
.stats__inner { display: flex; flex-direction: column; gap: 36px; padding-top: 64px; padding-bottom: 64px; }
.stats__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.stats__title { margin: 0; font-weight: 700; font-size: 36px; }
.stats__note { font-size: 15px; color: var(--on-dark); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0; }
.stats__item { padding: 8px 24px; border-right: 1px solid #3A64AE; display: flex; flex-direction: column; gap: 8px; }
.stats__item:first-child { padding-left: 0; }
.stats__item:last-child { border-right: 0; }
.stats__value { font-family: var(--font-head); font-weight: 800; font-size: 56px; line-height: 1; }
.stats__value.is-accent { color: var(--yellow); }
.stats__label { margin: 0; color: var(--on-dark); }

/* --- Profile ------------------------------------------------------------- */
.profiles__title { margin-bottom: 44px; }
.profiles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 20px; }
.profile-card { background: var(--ice); border-radius: 22px; padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.profile-card__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.profile-card__title { margin: 0; font-weight: 700; font-size: 30px; }
.profile-card__list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--ink-2); }
.profile-card__list a { color: var(--blue); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.profile-card__more { margin-top: auto; }

/* --- Program ------------------------------------------------------------- */
.program { background: var(--ice); }
.program > .section { padding-bottom: 0; }
.program__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.program__heading { display: flex; flex-direction: column; gap: 12px; }
.tabs { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; }
.tabs__tab { min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: transparent; color: var(--navy); font: 600 15px var(--font); cursor: pointer; }
.tabs__tab[aria-selected="true"] { background: var(--blue); color: #fff; font-weight: 700; }
.program__list { border-top: 1px solid var(--line); }
.program__day:focus-visible { outline-offset: 6px; }
.program__row { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.program__time { flex: 0 0 150px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--red); }
.program__name { flex: 1 1 420px; font-size: 19px; font-weight: 600; line-height: 1.4; }
.program__tag { flex: 0 0 auto; font-size: 14px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; }
.program__more { display: flex; justify-content: flex-end; padding-top: 22px; }
.program__banner { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; background: var(--yellow); color: var(--navy); border-radius: 18px; padding: 22px 28px; }
.program__banner-text { font-family: var(--font-head); font-weight: 700; font-size: 22px; }
.program__banner-link { color: var(--navy); font-weight: 700; }

/* --- Wydarzenia ---------------------------------------------------------- */
.events { background: var(--ice); }
.events__inner { display: flex; flex-direction: column; gap: 24px; }
.events__title { margin-bottom: 16px; }
.feature { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-wrap: wrap; }
.feature__img { flex: 1 1 460px; min-width: 0; min-height: 380px; object-fit: cover; }
.feature__body { flex: 1 1 560px; min-width: 0; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.feature__title { margin: 0; font-weight: 800; font-size: 38px; line-height: 1.08; letter-spacing: -0.01em; }
.feature__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
/* Dreams into Jobs: sześć galaktyk Big Bank of Skills + pas o programie */
.galaxies { flex: 1 1 100%; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px 40px; padding: 40px 44px 44px; border-top: 1px solid var(--line-3); }
.galaxies__title { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.15; color: var(--navy); }
.galaxies__intro { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.galaxies__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.galaxy { display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 4px; align-items: start; padding: 18px 18px 20px; border-radius: 16px; background: var(--ice); }
.galaxy__orb { grid-row: 1 / 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 30%, #7FD3FF 0%, var(--sky) 28%, var(--blue-2) 62%, var(--navy) 100%); box-shadow: 0 0 0 5px rgba(26, 163, 232, .14); color: #fff; font: 700 16px/1 var(--font-head); }
.galaxy__name { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--navy); }
.galaxy__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
.platform { flex: 1 1 100%; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px 40px; align-items: center; padding: 32px 44px; background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; }
.platform__title { margin: 0 0 8px; font-family: var(--font-head); font-weight: 700; font-size: 20px; }
.platform__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--on-dark); }
.platform__side { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.platform__note { margin: 0; padding: 14px 16px; border-left: 3px solid var(--yellow); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .08); font-size: 13.5px; line-height: 1.55; color: var(--on-dark); }
@media (max-width: 1180px) {
  .galaxies { grid-template-columns: minmax(0, 1fr); }
  .galaxies__intro { max-width: 720px; }
}
@media (max-width: 960px) {
  .galaxies__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .galaxies { padding: 28px; }
  .galaxies__title { font-size: 22px; }
  .galaxies__list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .galaxy { padding: 14px 16px 16px; }
  .platform { padding: 28px; }
}
/* Chipy – wspólne dla „Dreams into Jobs”, rankingu i Genius Universitatis */
.tags { display: flex; flex-direction: column; gap: 10px; }
.tags__label { font-size: 14px; font-weight: 700; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--ice); color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.3; }
.chip--primary { background: var(--blue); color: #fff; }

.defense { background: var(--def-bg); color: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-wrap: wrap; }
.defense__body { flex: 1 1 560px; min-width: 0; padding: 44px; display: flex; flex-direction: column; gap: 18px; }
.defense__meta { font-size: 14px; font-weight: 700; color: var(--def-gold-2); }
.defense__title { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: 46px; line-height: 1; text-transform: uppercase; letter-spacing: .01em; }
.defense__title span { color: var(--def-gold); }
.defense__text { margin: 0; font-size: 17px; line-height: 1.6; color: var(--def-text); }
.defense__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.defense__list li { display: flex; gap: 12px; align-items: baseline; }
.defense__list li::before { content: ""; flex: 0 0 10px; height: 10px; background: var(--def-gold); }
.defense .btn { align-self: flex-start; margin-top: 8px; }
.defense__photos { flex: 1 1 480px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(200px, 1fr)); gap: 4px; min-height: 440px; }
.defense__photos img { width: 100%; height: 100%; object-fit: cover; }
.defense__photos img:first-child { grid-row: span 2; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; }
.card { background: #fff; border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; }
.card__img { width: 100%; height: 230px; object-fit: cover; }
.card__body { padding: 30px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card__title { margin: 0; font-weight: 700; font-size: 26px; line-height: 1.15; }
.card__text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.card__note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.card__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.card__footnote { font-size: 13px; color: var(--muted); }
.badge { align-self: flex-start; padding: 7px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 14px; font-weight: 700; }

/* --- Wystawcy ------------------------------------------------------------ */
.exhibitors__box { background: var(--red); color: #fff; border-radius: 28px; padding: 56px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.exhibitors__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 14px; }
.exhibitors__text p { margin: 0; font-size: 17px; line-height: 1.55; }
.exhibitors__eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.exhibitors__title { margin: 0; font-weight: 800; font-size: 44px; line-height: 1.1; letter-spacing: -0.01em; }
.exhibitors__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Partnerzy ----------------------------------------------------------- */
.partners { border-top: 1px solid #E3E8F0; }
.partners__inner { padding-top: 80px; padding-bottom: 80px; }
.partners__filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.filter { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); font: 600 14px var(--font); cursor: pointer; }
.filter:hover { border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.partners__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.partner { min-height: 112px; border-radius: 14px; background: #fff; border: 1px solid #E3E8F0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.partner img { max-height: 72px; max-width: 100%; width: auto; object-fit: contain; }

/* --- Stopka -------------------------------------------------------------- */
.site-footer { background: var(--navy); color: #fff; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 72px; padding-bottom: 40px; }
.site-footer__venue { flex: 2 1 420px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.site-footer__title { margin: 0; font-weight: 700; font-size: 30px; }
.site-footer__lead { margin: 0; font-size: 17px; color: var(--on-dark); }
.site-footer__org { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--on-dark); }
.site-footer__org p { margin: 0; line-height: 1.7; }
.site-footer__subtitle { margin: 0; font-family: var(--font); font-size: 15px; font-weight: 700; color: #fff; }
.site-footer__link { margin-top: 6px; font-weight: 700; color: var(--yellow) !important; }
.map { position: relative; height: 260px; border-radius: 18px; overflow: hidden; border: 1px dashed #5A73A0; background: #0f2a57; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; text-align: center; color: var(--on-dark); font-size: 14px;
  background: radial-gradient(circle at 50% 45%, rgba(26,163,232,.25), transparent 60%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.05) 39px 40px); }
.map.is-loaded { border-style: solid; }
.map.is-loaded .map__facade { display: none; }
.map__link { font-weight: 600; }
.map--side { height: 240px; }
.map--side .map__facade { padding: 16px; }
.map--side .map__link, .map--side .map__note { color: #fff; }
.map--side .map__link:hover { color: var(--yellow); }
.side-card__body .map--side iframe { height: 100%; border-radius: 0; }

.site-footer__network { border-top: 1px solid var(--ink-2); padding: 40px 0; font-size: 14px; }
.site-footer__network .wrapper { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; }
.site-footer__network .widget-title { margin: 0 0 10px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.site-footer__network ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.site-footer__network a { color: #A9B8D3; text-decoration: none; }
.site-footer__network a:hover { color: #fff; text-decoration: underline; }
.site-footer__network p { margin: 0; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 20px; padding-bottom: 32px; border-top: 1px solid var(--ink-2); font-size: 13px; color: #A9B8D3; }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__bottom a { color: #A9B8D3; text-decoration: none; }
.site-footer__bottom a:hover { color: #fff; }
.site-footer__bottom .moduletable h3 { display: none; }

/* --- Podstrony ----------------------------------------------------------- */
.page-hero { padding-top: var(--header-h); background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 100%); color: #fff; }
.page-hero__body { padding-top: 32px; padding-bottom: 48px; }
.page-hero__title { margin: 0; font-weight: 800; font-size: clamp(32px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.02em; max-width: 1000px; }
.page-tabs { background: rgba(0,0,0,.18); }
.page-tabs ul { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0; padding: 0; list-style: none; }
.page-tabs a { display: block; padding: 16px 18px; color: #D9E6FA; font-size: 14px; font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; }
.page-tabs a:hover { color: #fff; }
.page-tabs .current > a, .page-tabs .active > a, .page-tabs a[aria-current] { color: #fff; border-bottom-color: var(--yellow); }

.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 96px; }
.page--with-sidebar { grid-template-columns: minmax(0, 1fr) 320px; }
.page__content { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.page__modules:empty { display: none; }
.page__sidebar { display: flex; flex-direction: column; gap: 20px; }

.prose { font-size: 17px; line-height: 1.7; color: var(--ink-2); max-width: 860px; }
.prose .page-header, .prose .com-content-article__header { display: none; } /* tytuł jest w pasie u góry */
.prose h1, .prose h2, .prose h3 { color: var(--navy); line-height: 1.2; }
.prose h2 { font-size: 26px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 21px; margin: 1.4em 0 .4em; }
.prose > :first-child, .prose .com-content-article__body > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.prose img { height: auto; border-radius: 12px; }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; }
.prose iframe[src*="youtube"] { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.prose a { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .MsoNormal { margin: 0 0 1em; }
.prose dl.article-info, .prose .article-info { display: none; }

/* Elementy podstron Strefy Przyszłości i Salonu Kadr (treść: _build/package/content/*.html) */
.prose .mse-event-meta { display: inline-block; margin-bottom: 20px; padding: 8px 14px; border-radius: 12px; background: var(--ice); color: var(--muted); font-size: 14px; line-height: 1.5; }
.prose .mse-event-meta strong { color: var(--red); }
.prose .mse-gallery-note { margin-bottom: 4px; color: var(--muted); font-size: 14px; }
.prose .mse-lead { font-size: 20px; line-height: 1.6; color: var(--navy); }
.prose .mse-figure { margin: 0 0 24px; }
.prose .mse-figure img, .prose .mse-photos img { width: 100%; object-fit: cover; border-radius: 18px; }
.prose .mse-figure img { aspect-ratio: 16 / 8; }
.prose .mse-photos { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin: 0 0 24px; }
.prose .mse-photos img { height: 220px; }
.prose .mse-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; counter-reset: tile; }
.prose .mse-tiles--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .mse-tiles li { position: relative; margin: 0; padding: 18px 20px; border-radius: 16px; background: var(--ice); font-size: 15px; line-height: 1.5; color: var(--muted); }
.prose .mse-tiles li strong { display: block; margin-bottom: 4px; font-family: var(--font-head); font-size: 17px; line-height: 1.25; color: var(--navy); }
.prose .mse-tiles--galaxies li { padding-left: 76px; counter-increment: tile; }
.prose .mse-tiles--galaxies li::before { content: counter(tile); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 32% 30%, #7FD3FF 0%, var(--sky) 28%, var(--blue-2) 62%, var(--navy) 100%); box-shadow: 0 0 0 5px rgba(26, 163, 232, .14); color: #fff; font: 700 15px/1 var(--font-head); }
.prose .mse-note { padding: 14px 18px; border-left: 3px solid var(--yellow); border-radius: 0 12px 12px 0; background: #FFFBE0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.prose .mse-note--info { border-left-color: var(--blue-2); background: var(--ice); }
.prose .mse-badge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: var(--navy); color: #fff; font: 600 11px/1.6 var(--font); letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.prose .mse-table { margin: 0 0 1.6em; font-size: 15px; line-height: 1.55; border: 1px solid var(--line-3); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.prose .mse-table th { padding: 12px 16px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 0; }
.prose .mse-table td { padding: 14px 16px; vertical-align: top; border-bottom: 1px solid var(--line-3); color: var(--muted); }
.prose .mse-table tr:last-child td { border-bottom: 0; }
.prose .mse-table tbody tr:nth-child(even) td { background: #F7FAFE; }
.prose .mse-table td:first-child { width: 36%; color: var(--ink-2); }
.prose .mse-table td:first-child strong { color: var(--navy); font-family: var(--font-head); font-size: 16px; line-height: 1.3; }
.prose .mse-table td:last-child { width: 22%; color: var(--navy); font-weight: 600; }
.prose .mse-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 1.4em; }
.prose .mse-pillar { padding: 22px 22px 18px; border-radius: 18px; background: var(--def-bg); color: var(--def-text); font-size: 15px; line-height: 1.55; }
.prose .mse-pillar__num { margin: 0 0 4px; color: var(--def-gold); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.prose .mse-pillar h3 { margin: 0 0 10px; color: #fff; font-size: 20px; }
.prose .mse-pillar p { margin: 0 0 10px; }
.prose .mse-pillar ul { margin: 0; padding-left: 18px; }
.prose .mse-pillar li { margin-bottom: 6px; }
.prose .mse-pillar li::marker { color: var(--def-gold); }
@media (max-width: 1180px) {
  .prose .mse-pillars { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .prose .mse-lead { font-size: 18px; }
  .prose .mse-tiles, .prose .mse-tiles--two { grid-template-columns: minmax(0, 1fr); }
  .prose .mse-photos { grid-template-columns: 1fr 1fr; }
  .prose .mse-photos img { height: 150px; }
  .prose .mse-photos img:first-child { grid-column: 1 / -1; height: 200px; }
  /* tabela programu → karty */
  .prose .mse-table, .prose .mse-table tbody, .prose .mse-table tr, .prose .mse-table td { display: block; width: auto !important; }
  .prose .mse-table { border: 0; border-radius: 0; overflow: visible; }
  .prose .mse-table thead { display: none; }
  .prose .mse-table tr { margin-bottom: 12px; border: 1px solid var(--line-3); border-radius: 16px; overflow: hidden; background: #fff; }
  .prose .mse-table tbody tr:nth-child(even) td { background: none; }
  .prose .mse-table td { padding: 10px 16px; border-bottom: 1px solid var(--line-3); }
  .prose .mse-table td:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .prose .mse-table td:first-child { padding-top: 14px; }
}

.side-card { background: var(--ice); border-radius: 18px; padding: 24px; }
.side-card__title { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-family: var(--font); }
.side-card__body { font-size: 15px; color: var(--ink-2); }
.side-card__body p { margin: 0 0 .8em; }
.side-card__body address { font-style: normal; margin-bottom: 12px; }
.side-card__body iframe { width: 100%; height: 240px; border: 0; border-radius: 12px; }
.side-card__body img { height: auto; }
/* moduł „Patronat honorowy” (custom_modules/sidebar/patronat.php) */
/* Układ: duże zdjęcie | nazwisko + stanowisko (wyśrodkowane w pionie), pod spodem kafelek instytucji
   na całą szerokość. HTML: .patron-item > div.w-24 (zdjęcie) + div > p.text-sm, p.text-xs, img –
   wewnętrzny div ma display: contents, żeby jego dzieci ułożyć w siatce. */
.patronat__list { display: flex; flex-direction: column; }
.patron-item { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; row-gap: 3px; align-items: center; padding: 18px 0; }
.patron-item:first-child { padding-top: 4px; }
.patron-item:last-child { padding-bottom: 0; }
.patron-item + .patron-item { border-top: 1px solid var(--line-3); }
.patron-item .w-24 { grid-column: 1; grid-row: 1 / span 2; width: 84px; height: 84px; border-radius: 999px; background-position: center 20%; box-shadow: 0 0 0 3px #fff, 0 6px 16px -8px rgba(10, 31, 68, .45); }
.patron-item > div:last-child { display: contents; }
.patron-item p { margin: 0; }
.patron-item .text-sm { grid-column: 2; grid-row: 1; align-self: end; font-size: 15px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.patron-item .text-xs { grid-column: 2; grid-row: 2; align-self: start; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
/* logotypy instytucji: jednakowe białe kafelki, logo wpasowane i wyśrodkowane (każde ma inne proporcje i tło) */
.patron-item img { grid-column: 1 / -1; grid-row: 3; display: block; box-sizing: border-box; width: 100%; height: 46px; max-height: none !important; margin-top: 12px; padding: 6px 12px; background: #fff; border: 1px solid var(--line-3); border-radius: 10px; object-fit: contain; object-position: center; }

/* Galeria {gallery} (gallery.js ze starego szablonu) i strona „Galeria” */
/* gallery.js renderuje .sig-gallery > ul.sig-thumbs > li.sig-thumb > a > img i dokleja własne style
   na końcu <head> – stąd podwójne klasy, żeby wygrać specyficznością (i z .prose ul/li). */
.sig-gallery { margin: 16px 0 28px; }
.sig-gallery .sig-thumbs, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; list-style: none; padding: 0; margin: 0; }
.gallery-grid { margin: 16px 0 28px; }
.sig-gallery .sig-thumb { display: block; margin: 0; }
.sig-gallery .sig-thumb a { display: block; overflow: hidden; border-radius: 10px; line-height: 0; }
.sig-gallery .sig-thumb img, .gallery-thumb img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 10px; cursor: zoom-in; transition: transform .3s ease, opacity .2s; }
.sig-gallery .sig-thumb a:hover img { transform: scale(1.04); opacity: 1; }
.gallery-thumb { position: relative; overflow: hidden; border-radius: 10px; }
.gallery-thumb img { transition: transform .3s ease; }
.gallery-thumb:hover img { transform: scale(1.04); }
.gallery-section { margin-bottom: 40px; }
.gallery-section-title { font-size: 26px; margin: 0 0 6px; }
.gallery-section-subtitle { margin: 0 0 6px; color: var(--muted); }
.gallery-page-credit { color: var(--muted); font-size: 14px; }
#sig-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; }
.sig-lb-backdrop { position: absolute; inset: 0; background: rgba(5, 14, 33, .92); }
.sig-lb-content { position: relative; max-width: 92vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.sig-lb-img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.sig-lb-close, .sig-lb-prev, .sig-lb-next { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.sig-lb-close:hover, .sig-lb-prev:hover, .sig-lb-next:hover { background: rgba(255,255,255,.3); }
.sig-lb-close { top: -56px; right: 0; }
.sig-lb-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.sig-lb-next { right: -60px; top: 50%; transform: translateY(-50%); }
.sig-lb-counter { position: absolute; bottom: -36px; left: 0; right: 0; text-align: center; color: #D9E6FA; font-size: 14px; }

/* Komunikaty Joomli */
#system-message-container joomla-alert, .alert { display: block; padding: 14px 18px; border-radius: 12px; background: var(--ice); border-left: 4px solid var(--blue); margin-bottom: 20px; }

/* ==========================================================================
   Responsywność
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .site-header__menu { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 18px; border-radius: 18px; background: rgba(10, 31, 68, .97); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
  .site-header__menu.is-open { display: flex; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; margin-bottom: 4px; }
  .nav { flex-direction: column; gap: 0; font-size: 17px; }
  .nav a { display: block; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav a:hover, .nav a[aria-current="page"] { border-bottom-color: rgba(255,255,255,.12); color: var(--yellow); }
  .site-header__menu .btn { align-self: flex-start; }
}

@media (max-width: 960px) {
  .page--with-sidebar { grid-template-columns: minmax(0, 1fr); }
  .stats__item { padding: 16px 20px 16px 0; border-right: 0; border-bottom: 1px solid #3A64AE; }
  .stats__item:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 20px; --section-y: 72px; --header-h: 98px; }
  .h2 { font-size: 36px; }
  .hero { min-height: 720px; }
  .hero__title { font-size: clamp(30px, 8.6vw, 48px); overflow-wrap: break-word; }
  .hero__facts { font-size: 20px; gap: 6px 24px; }
  .hero__badge { font-size: 12px; }
  .brand__mark { height: 46px; }
  .brand__mark img { height: 20px; }
  .countdown__title { font-size: 22px; }
  .countdown__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .countdown__cell { min-width: 0; padding: 12px 6px; }
  .countdown__num { font-size: 32px; }
  .about__text, .about__photos, .feature__img, .feature__body, .defense__body, .defense__photos, .exhibitors__text { flex-basis: 100%; }
  .about__photos > img, .about__slides { height: 220px; }
  .stats__value { font-size: 44px; }
  .profiles__grid, .cards { grid-template-columns: minmax(0, 1fr); }
  .profile-card { padding: 26px; }
  .program__time { flex-basis: 100%; font-size: 18px; }
  .program__name { flex-basis: auto; font-size: 17px; }
  .feature__img { min-height: 260px; }
  .feature__body, .defense__body { padding: 28px; }
  .feature__title { font-size: 30px; }
  .defense__title { font-size: 34px; }
  .defense__photos { min-height: 320px; grid-template-rows: repeat(2, minmax(150px, 1fr)); }
  .exhibitors__box { padding: 28px; }
  .exhibitors__title { font-size: 32px; }
  .partners__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner { min-height: 96px; }
  .partner img { max-height: 56px; }
  .site-footer__top { padding-top: 56px; }
  .page { padding-top: 40px; padding-bottom: 64px; }
  .page-tabs .container { padding-left: 0; padding-right: 0; }
  .page-tabs ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 12px; -webkit-overflow-scrolling: touch; }
  .page-tabs li { flex: 0 0 auto; }
  .page-tabs a { white-space: nowrap; padding: 14px 12px; }
  .sig-lb-prev { left: 4px; } .sig-lb-next { right: 4px; }
}

@media (max-width: 420px) {
  .tabs { width: 100%; }
  .tabs__tab { flex: 1; padding: 0 10px; }
  .btn { width: 100%; }
  .hero__actions .btn, .exhibitors__actions .btn { width: 100%; }
  .brand__text { display: none; }
}

/* Strona błędu (error.php) */
.is-error .error-code { margin: 0 0 10px; color: var(--yellow); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.is-error .error-links li { padding: 0; }
.is-error .error-links a { display: block; padding: 18px 20px; color: var(--navy); text-decoration: none; }
.is-error .error-links a:hover { color: var(--red); }
.is-error .error-links a strong::after { content: " →"; }
.error-foot { padding: 28px 0; background: var(--navy); color: var(--on-dark); font-size: 14px; }
.error-foot a { color: #fff; }
