:root {
  --navy: #00265a;
  --navy-deep: #001c43;
  --red: #e30613;
  --blue: #1682d4;
  --ink: #12233d;
  --muted: #5b687a;
  --surface: #f5f7fa;
  --white: #fff;
  --border: #dce2ea;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --shadow: 0 12px 30px rgb(0 20 55 / .14);
  --container: 1180px;
  --radius: .3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font: 1rem/1.55 var(--sans); overflow-wrap: anywhere; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #ffbf47; outline-offset: 3px; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.icon, .guest-icon, .registration__icon, .gallery__control svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; background: var(--white); color: var(--navy); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 20; background: var(--white); box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.header-inner { min-height: 74px; display: flex; align-items: center; gap: 1rem; }
.brand { width: 184px; height: 58px; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto; }
.brand img { width: 184px; max-width: none; margin-block: -33px; }
.menu-toggle { margin-left: auto; min-width: 48px; min-height: 48px; border: 0; background: transparent; color: var(--navy); cursor: pointer; }
.menu-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.menu-toggle__icon, .menu-toggle__icon::before, .menu-toggle__icon::after { display: block; width: 26px; height: 2px; margin: auto; background: currentColor; content: ""; transition: transform .2s ease; }
.menu-toggle__icon::before { transform: translateY(-8px); }
.menu-toggle__icon::after { transform: translateY(6px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { transform: translateY(1px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { transform: translateY(-1px) rotate(-45deg); }
.main-nav { position: absolute; inset: 76px 0 auto; display: none; padding: .75rem 1rem 1.25rem; background: var(--white); box-shadow: var(--shadow); }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a { display: flex; min-height: 48px; align-items: center; text-decoration: none; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.main-nav a:hover { color: var(--red); }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .75rem; padding: .8rem 1.25rem; border: 2px solid var(--red); border-radius: var(--radius); background: var(--red); color: var(--white); font-size: .82rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; box-shadow: 0 8px 20px rgb(227 6 19 / .2); transition: background .2s ease, transform .2s ease; }
.button:hover { background: #bd0010; border-color: #bd0010; transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button--header { display: none; }

.hero { position: relative; isolation: isolate; min-height: min(690px, calc(100svh - 74px)); color: var(--white); background: var(--navy-deep); overflow: hidden; }
.hero::after { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(180deg, rgb(0 22 55 / .72) 0%, rgb(0 22 55 / .12) 58%, rgb(0 22 55 / .45) 100%); }
.hero__media, .hero__media img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: center; }
.hero__inner { padding-block: clamp(3.2rem, 10vw, 6.2rem); }
.eyebrow, .section-label { margin: 0 0 .9rem; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow span { color: var(--red); padding-inline: .3rem; }
.hero h1 { max-width: 780px; margin: 0; font: 400 clamp(2rem, 8vw, 4.35rem)/1.02 var(--serif); letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.event-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.2rem; list-style: none; margin: 1.35rem 0 0; padding: 0; font-family: var(--serif); font-size: clamp(1rem, 3vw, 1.4rem); font-weight: 700; }
.event-meta li { display: flex; align-items: center; gap: .55rem; }
.event-meta .icon { width: 1.45em; height: 1.45em; }
.event-meta li + li::before { width: 2px; height: 1.4em; margin-right: .5rem; background: var(--red); content: ""; }
.hero__lead { max-width: 30rem; margin: 1rem 0 1.5rem; font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 600; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.section { padding-block: clamp(2.8rem, 5.4vw, 4.8rem); }
.section--muted { background: var(--surface); }
.section h2 { margin: 0 0 1.25rem; color: var(--navy); font: 400 clamp(2rem, 5vw, 3.5rem)/1.05 var(--serif); letter-spacing: -.02em; }
.section p { max-width: 65ch; }
.about__grid { display: grid; gap: 2.5rem; align-items: center; }
.connection { position: relative; min-height: 310px; display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); align-items: center; gap: .75rem; padding: 1.25rem; background: #fff url("../assets/images/world-map.svg") center/95% auto no-repeat; }
.connection__city { position: relative; z-index: 1; margin: 0; text-align: center; }
.connection__city img { aspect-ratio: 1; width: min(100%, 175px); margin-inline: auto; border: 5px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 17px rgb(0 30 70 / .2); }
.connection__city figcaption { margin-top: .8rem; color: var(--navy); font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.connection__line { display: grid; gap: 7px; color: var(--red); }
.connection__line i { position: relative; display: block; height: 2px; background: currentColor; }
.connection__line i::after { position: absolute; top: -4px; right: 0; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; content: ""; transform: rotate(45deg); }
.connection__line i:last-child { color: var(--blue); transform: scaleX(-1); }
.guest-grid { display: grid; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); background: var(--white); }
.guest-grid li { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; text-align: center; border: 1px solid var(--border); }
.guest-icon { width: 2.35rem; height: 2.35rem; color: var(--navy); }
.guest-grid strong { color: var(--navy); font-size: .82rem; text-transform: uppercase; }
.guest-grid small { color: var(--muted); }
.program-grid { display: grid; gap: 2rem; align-items: center; }
.timeline { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 4.5rem 1fr; gap: .75rem; padding: .45rem 0 .8rem 1.35rem; border-left: 2px solid #d6dfeb; }
.timeline li::before { position: absolute; top: .75rem; left: -.42rem; width: .7rem; height: .7rem; border: 2px solid var(--red); border-radius: 50%; background: var(--white); content: ""; }
.timeline time { color: var(--navy); font-weight: 800; }
.registration { position: relative; isolation: isolate; align-self: center; overflow: hidden; padding: clamp(2rem, 5vw, 3.3rem); color: var(--white); background: var(--navy); text-align: center; box-shadow: var(--shadow); }
.registration::before, .registration::after { position: absolute; z-index: -1; width: 280px; height: 130px; border: 2px solid #0d66a7; border-radius: 50%; content: ""; }
.registration::before { bottom: -95px; left: -70px; box-shadow: 0 -11px 0 -9px #e30613, 0 -21px 0 -19px #4aa4df; }
.registration::after { top: -105px; right: -90px; border-color: #e30613; }
.registration h2 { color: var(--white); font-size: clamp(1.7rem, 4vw, 2.6rem); }
.registration p { margin-inline: auto; }
.registration__icon { width: 2.5rem; height: 2.5rem; margin-inline: auto; }
.gallery-section { padding-top: 1.3rem; }
.section-heading-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.gallery-all { min-height: 44px; display: inline-flex; align-items: center; color: var(--navy); font-size: .78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; }
.gallery-all:hover { color: var(--red); }
.gallery { position: relative; padding-inline: 2.7rem; }
.gallery__viewport { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(76%, 1fr); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__item { min-width: 0; margin: 0; scroll-snap-align: center; }
.gallery__item img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.gallery__item figcaption { margin-top: .45rem; color: var(--muted); font-size: .75rem; }
.gallery__control { position: absolute; z-index: 2; top: 38%; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: #fff; color: var(--navy); cursor: pointer; box-shadow: 0 3px 12px rgb(0 20 50 / .16); }
.gallery__control:hover { color: var(--red); }
.gallery__control:disabled { color: #9da7b4; cursor: not-allowed; }
.gallery__control svg { width: 1.5rem; height: 1.5rem; }
.gallery__control--prev { left: 0; }
.gallery__control--next { right: 0; }
.gallery__status { margin: 1rem 0 0; color: var(--navy); font-size: .78rem; font-weight: 800; text-align: center; }
.organizer { display: grid; gap: 1.5rem; align-items: center; }
.organizer__portrait { width: 100%; max-width: 300px; aspect-ratio: 11 / 9; object-fit: cover; }
.organizer__mark { width: 120px; margin-inline: auto; }
.organizer__role { color: var(--navy); font-weight: 700; }
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); border: 0px solid var(--border); }
.partner-list span { min-height: 90px; display: grid; place-items: center; color: var(--muted); border: 0px solid var(--border); font-size: .8rem; text-transform: uppercase; }
.organizator2-list { display: grid; grid-template-columns: repeat(2, 1fr); border: 0px solid var(--border); }
.organizator2-list span { min-height: 90px; display: grid; place-items: center; color: var(--muted); border: 0px solid var(--border); font-size: .8rem; text-transform: uppercase; }
.site-footer { padding-block: 2.6rem 1.5rem; color: #dce6f4; background: #022245; }
.footer-grid { display: grid; gap: 1.5rem; }
.site-footer strong { color: var(--white); }
.site-footer p { margin: .4rem 0 0; }
.site-footer a:hover { color: var(--white); }
.footer-brand { overflow: hidden; }
.footer-brand img { width: 225px; max-width: none; margin-block: 0px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .18); }

@media (min-width: 600px) {
  .guest-grid { grid-template-columns: repeat(3, 1fr); }
  .guest-grid li:last-child { grid-column: span 2; }
  .organizer { grid-template-columns: minmax(190px, .7fr) 1.3fr; }
  .organizer__mark { grid-column: 2; }
  .partner-list { grid-template-columns: repeat(5, 1fr); }
  .organizator-list { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .hero { min-height: 560px; }
  .hero::after { background: linear-gradient(90deg, rgb(0 22 55 / .62) 0%, rgb(0 22 55 / .36) 45%, rgb(0 22 55 / .02) 78%); }
  .hero__media img { object-position: center; }
  .hero__inner { padding-block: 5rem; }
  .about__grid { grid-template-columns: 1.05fr .95fr; }
  .program-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr .8fr; }
  .gallery__viewport { grid-auto-columns: 31%; }
  .gallery__item--featured { grid-column: span 2; }
}

@media (min-width: 1024px) {
  .header-inner { min-height: 82px; }
  .brand { width: 224px; height: 68px; }
  .brand img { width: 224px; margin-block: -40px; }
  .menu-toggle { display: none; }
  .main-nav { position: static; display: block; margin-left: auto; padding: 0; box-shadow: none; }
  .main-nav ul { display: flex; align-items: center; gap: clamp(.4rem, 1.2vw, 1.5rem); }
  .main-nav a { min-height: 48px; border: 0; font-size: .75rem; text-transform: uppercase; }
  .button--header { display: inline-flex; margin-left: .5rem; white-space: nowrap; }
  .hero { min-height: 555px; }
  .guest-grid { grid-template-columns: repeat(5, 1fr); }
  .guest-grid li:last-child { grid-column: auto; }
  .organizer { grid-template-columns: 260px 1fr 170px; }
  .organizer__mark { grid-column: auto; width: 145px; }
}

@media (min-width: 1200px) {
  .hero { min-height: min(590px, calc(100svh - 82px)); }
  .hero__inner { padding-top: 4.5rem; }
  .hero__media img { object-position: center; }
}

@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .timeline li::before { forced-color-adjust: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto; transition-duration: .01ms; animation-duration: .01ms; animation-iteration-count: 1; }
}
/* Mniejsze sekcje z logotypami */
.section.partners {
  padding-block: 2rem;
}

/* Odstęp od końca partnerów do etykiety współorganizatora:
   32 px paddingu poprzedniej sekcji + 8 px tej sekcji */
.section.partners + .section.coorganizers {
  padding-top: .5rem;
}

/* Ograniczenie wielkości logotypów partnerów */
.partner-list {
  gap: 1rem 1.5rem;
}

.partner-list > span {
  min-width: 0;
  min-height: 0;
}

.partner-list img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100px;
}

/* Współorganizator: na telefonie obrazy jeden pod drugim */
.organizator-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.organizator-list > img {
  width: 100%;
  height: auto;
}

/* Na dużych ekranach oba paski obok siebie.
   Proporcje kolumn odpowiadają proporcjom obrazów,
   dzięki czemu ich wysokości będą zbliżone. */
@media (min-width: 1024px) {
  .organizator-list {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    gap: 2rem;
  }
}


/* Uzupełnienie stylu na telefony */

/* Telefony i mniejsze tablety */
@media (max-width: 767px) {
  body {
    font-size: 18px;
    line-height: 1.65;
  }

  .container {
    width: calc(100% - 2rem);
  }

  /* Większe logo i wyższy nagłówek */
  .header-inner {
    min-height: 94px;
  }

  .brand {
    width: min(250px, calc(100% - 64px));
    height: 80px;
  }

  .brand img {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
  }

  /* Menu musi zaczynać się pod wyższym nagłówkiem */
  .main-nav {
    top: 100%;
  }

  .main-nav a {
    font-size: 1rem;
  }

  /* Czytelniejsze opisy i etykiety */
  .section-label,
  .eyebrow {
    font-size: .85rem;
  }

  .hero__lead {
    font-size: 1.1rem;
  }

  .button,
  .gallery-all {
    font-size: .9rem;
  }

  /* Więcej miejsca na treść pierwszego ekranu */
  .hero__inner {
    padding-block: 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.5vw, 3.5rem);
    line-height: 1.08;
  }

  .event-meta {
    flex-direction: column;
    align-items: flex-start;
    font-size: 1.15rem;
  }

  .event-meta li + li::before {
    display: none;
  }

  /* Goście w jednej kolumnie — większy tekst */
  .guest-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guest-grid li,
  .guest-grid li:last-child {
    grid-column: auto;
    min-height: 150px;
    padding: 1.5rem 1rem;
  }

  .guest-grid strong {
    font-size: 1rem;
  }

  .guest-grid small {
    font-size: .95rem;
  }

  .connection__city figcaption,
  .gallery__item figcaption,
  .gallery__status {
    font-size: .85rem;
  }
}

.gallery__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.photo-lightbox {
  width: min(1100px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #071426;
  color: #fff;
}

.photo-lightbox::backdrop {
  background: rgb(0 0 0 / .88);
}

.photo-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.photo-lightbox button {
  min-width: 48px;
  min-height: 48px;
  padding: 8px 14px;
  border: 1px solid #64748b;
  border-radius: 4px;
  background: #14253d;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.photo-lightbox__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65dvh;
  object-fit: contain;
}

.photo-lightbox__caption {
  margin: 12px 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
}

.photo-lightbox__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

@media (min-width: 1024px) {
  .header-inner {
    min-height: 104px;
  }

  .brand {
    width: 280px;
    height: auto;
    overflow: visible;
  }

  .brand img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0;
  }
}

@media (min-width: 1280px) {
  .brand {
    width: 320px;
  }
}