/* =========================
   THEME TOKENS
========================= */
:root{
  --font-head: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --nav-height: 76px;
}

/* Naprzemienne tła dla sekcji (banded layout) */
:root{
  --section-bg-a: #ffffff;
  --section-bg-b: rgba(13,110,253,.035); /* delikatny niebieski */
  --section-bg-c: rgba(25,135,84,.035);  /* delikatny zielony (opcjonalnie) */
  --section-border: rgba(31,41,55,.08);
}

/* Domyślnie: sekcje na przemian */
main > section{
  background: var(--section-bg-a);
  border-top: 1px solid transparent;
}

/* Alternacja co drugą sekcję */
main > section:nth-of-type(even){
  background: var(--section-bg-b);
  border-top: 1px solid var(--section-border);
  border-bottom: 1px solid var(--section-border);
}

/* Opcjonalnie: co trzecią sekcję lekko zielony akcent */
main > section:nth-of-type(3n){
  background: var(--section-bg-c);
}

/* Sekcje z własnym tłem (override) */
.section-bg-a{ background: var(--section-bg-a) !important; }
.section-bg-b{ background: var(--section-bg-b) !important; }
.section-bg-c{ background: var(--section-bg-c) !important; }

/* Łagodniejsze przejście w odbiorze */
main > section{
  transition: background-color .2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  padding-top: var(--nav-height);
  background: #fff;
  color: #1f2937;
}

/* Skip link (a11y) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #0d6efd;
  color: #fff;
  padding: .5rem .75rem;
  border-radius: .5rem;
  z-index: 1100;
}
.skip-link:focus { left: .75rem; top: .75rem; }

/* Anchor offset for fixed navbar */
.anchor-offset { scroll-margin-top: calc(var(--nav-height) + 16px); }

/* Navbar brand */
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-right: .5rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 3.25rem 0 2.5rem;
  background: linear-gradient(180deg, rgba(13,110,253,.06), rgba(255,255,255,1));
  border-bottom: 1px solid rgba(31,41,55,.08);
}
.hero-title{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(1.6rem, 2.2vw + 1rem, 2.6rem);
  margin-bottom: 1rem;
}
.hero-subtitle{
  color: rgba(31,41,55,.75);
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}
.hero-badge span{
  display: inline-block;
  font-weight: 600;
  font-size: .9rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
}
.hero-meta{
  display: grid;
  gap: .75rem;
  margin-top: .75rem;
  margin-bottom: .75rem;
}
.hero-meta-item{
  display:flex;
  gap:.75rem;
  align-items:flex-start;
  padding: .75rem 1rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(31,41,55,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.hero-meta-label{
  font-size: .85rem;
  color: rgba(31,41,55,.65);
  font-weight: 600;
  margin-bottom: .1rem;
}
.hero-meta-value{
  font-weight: 700;
  font-family: var(--font-head);
}

/* HERO – większa typografia meta */
.hero-meta-label{
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: rgba(31,41,55,.7);
  font-size: clamp(.85rem, .5vw + .7rem, 1.05rem);
  margin-bottom: .15rem;
}

.hero-meta-value{
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: #111827;
  font-size: clamp(1.15rem, 1vw + .9rem, 1.55rem);
}

.small-muted{
  color: rgba(31,41,55,.65);
}

/* Cards */
.c{
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(31,41,55,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.04);
}
.c--hero{ padding: 1.1rem 1.25rem; }
.hero-card-title{
  font-family: var(--font-head);
  font-weight: 700;
  color: rgba(31,41,55,.9);
  margin-bottom: .75rem;
}

/* Sections */
section { padding: 3rem 0; }
.section-title{
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-subtitle{
  color: rgba(31,41,55,.8);
  text-align: justify;
}

/* Program */
.program-day{ margin-top: 1.5rem; }
.program-day h3{
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: .25rem;
}
.program-day h4{
  font-size: 1rem;
  color: rgba(31,41,55,.7);
  margin-bottom: .75rem;
}
.c--table{ padding: 0; overflow: hidden; }
.c--table .table { margin-bottom: 0; }
.program-figure{
  margin: 0;
  padding: 1rem 1rem 1.25rem;
  border-top: 1px solid rgba(31,41,55,.08);
  background: rgba(13,110,253,.02);
}
.program-figure img{
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: .75rem;
  border: 1px solid rgba(31,41,55,.08);
}
.program-figure figcaption{
  margin-top: .5rem;
  font-size: .9rem;
  color: rgba(31,41,55,.65);
}

/* Speakers */
.c--speaker .speaker-name{
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: .15rem;
}
.c--speaker .speaker-role{
  color: rgba(31,41,55,.75);
  font-weight: 600;
}

/* Footer */
footer{
  padding: 1.25rem 0;
  border-top: 1px solid rgba(31,41,55,.08);
  background: #fff;
}

/* Improve nav active */
.navbar .nav-link.active{
  font-weight: 700;
}

/* Koszty */
.costs {
  background: linear-gradient(180deg, rgba(13,110,253,.05), rgba(255,255,255,1));
  border-top: 1px solid rgba(31,41,55,.08);
  border-bottom: 1px solid rgba(31,41,55,.08);
}

.cost-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(31,41,55,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  background: #fff;
  overflow: hidden;
}

.cost-hero {
  padding: 1.5rem 1.5rem 1.25rem;
  background: radial-gradient(1200px 400px at 0% 0%, rgba(13,110,253,.18), transparent 55%),
              radial-gradient(900px 360px at 100% 0%, rgba(25,135,84,.10), transparent 55%),
              linear-gradient(180deg, rgba(13,110,253,.06), rgba(255,255,255,1));
  border-bottom: 1px solid rgba(31,41,55,.08);
}

.price-badge {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  padding: .6rem .9rem;
  border-radius: 999px;
  background: rgba(13,110,253,.10);
  color: #0d6efd;
  font-weight: 700;
}

.price-amount {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.2rem);
  color: #111827;
  margin: .5rem 0 .25rem;
}

.price-note {
  color: rgba(31,41,55,.72);
  margin: 0;
}

.cost-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
}

.feature-item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .85rem .95rem;
  border-radius: 1rem;
  background: rgba(13,110,253,.03);
  border: 1px solid rgba(31,41,55,.06);
}

.feature-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: .05rem;
  color: #0d6efd;
}

.feature-text strong { font-weight: 800; }

.pay-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(31,41,55,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.06);
  background: #fff;
  padding: 1.25rem 1.5rem;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  letter-spacing: .02em;
}

.copy-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  align-items: center;
}

.copy-box {
  flex: 1 1 auto;
  min-width: 260px;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: rgba(31,41,55,.03);
  border: 1px solid rgba(31,41,55,.08);
}

.badge-soft {
  background: rgba(25,135,84,.10);
  color: #198754;
  font-weight: 700;
  border-radius: 999px;
  padding: .35rem .7rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}

.small-help {
  color: rgba(31,41,55,.65);
  margin: .35rem 0 0;
  font-size: .95rem;
}

/* =======================================================
   GALERIA / PASEK ZDJĘĆ + HERO TYTUŁ + LIGHTBOX
   (dopasowane stylistycznie do powyższego motywu)
======================================================= */

/* Kontener z tytułem i wierszem zdjęć
   – w pionie centrowany w obszarze poniżej nawigacji */
.center-wrap{
  min-height: calc(100vh - var(--nav-height));
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2.5rem 1rem;
  background:
    radial-gradient(900px 360px at 0% 0%, rgba(13,110,253,.06), transparent 60%),
    radial-gradient(900px 360px at 100% 0%, rgba(25,135,84,.05), transparent 60%),
    #ffffff;
}

/* Hero na stronie galerii – logika jak na stronie konferencji,
   ale uproszczona do kicker + H1 */
.hero-title{
  width:min(1100px, calc(100vw - 48px));
  margin:0 0 34px 0;
}

.hero-kicker{
  display:inline-block;
  font-family: var(--font-head);
  font-size:.9rem;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  opacity:.85;
  padding:.45rem .9rem;
  border-radius:999px;
  border:1px solid rgba(13,110,253,.28);
  background:rgba(13,110,253,.08);
  color:#0d6efd;
}

.hero-h1{
  margin:14px auto 0;
  font-family: var(--font-head);
  font-weight:800;
  letter-spacing:-0.02em;
  line-height:1.12;
  font-size:clamp(1.9rem, 3.1vw + 1rem, 3rem);
  color:#0b1120;
  text-shadow:0 10px 30px rgba(15,23,42,.18);
}

.hero-title::after{
  content:"";
  display:block;
  width:120px;
  height:2px;
  margin:18px auto 0;
  background:rgba(13,110,253,.35);
  border-radius:999px;
}

/* Pasek miniatur – jasny, „card-like”, w stylu motywu */
.row{
  display:flex;
  align-items:center;
  gap:14px;
  height:30vh;
  max-width:100vw;
  padding:14px;
  overflow-x:auto;
  overflow-y:hidden;

  scroll-behavior:smooth;
  scrollbar-width:thin;

  border-radius:1.25rem;
  background:#ffffff;
  border:1px solid rgba(31,41,55,.08);
  box-shadow:0 12px 32px rgba(15,23,42,.08);

  scroll-snap-type:x mandatory;
  scroll-padding:14px;
  scroll-snap-stop:always;
  -webkit-overflow-scrolling:touch;
}

.row::-webkit-scrollbar{
  height:10px;
}
.row::-webkit-scrollbar-thumb{
  background:rgba(13,110,253,.32);
  border-radius:999px;
}

/* Miniatury */
.thumb{
  flex:0 0 auto;
  height:100%;
  border-radius:1rem;
  overflow:hidden;
  background:#f3f4f6;
  border:1px solid rgba(31,41,55,.12);
  scroll-snap-align:start;
  padding:0;
  cursor:pointer;
  transition:transform .16s ease-out, box-shadow .16s ease-out, border-color .16s ease-out, background-color .16s ease-out;
}
.thumb img{
  height:100%;
  width:auto;
  display:block;
  object-fit:cover;
}

/* Hover/active zgodne ze stylem cards */
.thumb:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(15,23,42,.16);
  border-color:rgba(13,110,253,.6);
  background:#e5f1ff;
}
.thumb:active{
  transform:translateY(0);
  box-shadow:0 8px 20px rgba(15,23,42,.14);
}
.thumb:focus-visible{
  outline:2px solid #0d6efd;
  outline-offset:3px;
}

/* Lightbox – ciemny overlay, ale w kolorystyce motywu */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.9);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:1000;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease-out;
}
.lightbox.is-visible{
  opacity:1;
  pointer-events:auto;
}

.lightbox-inner{
  position:relative;
  max-width:96vw;
  max-height:92vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.lightbox-img{
  max-width:96vw;
  max-height:92vh;
  object-fit:contain;
  border-radius:1rem;
  background:#020617;
  box-shadow:0 24px 60px rgba(0,0,0,.7);
}

/* Przyciski nawigacji lightboxa */
.lightbox-close,
.lightbox-arrow{
  border:0;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family: var(--font-head);
}

/* Zamknięcie */
.lightbox-close{
  position:absolute;
  top:-10px;
  right:-10px;
  width:32px;
  height:32px;
  border-radius:999px;
  background:rgba(15,23,42,.9);
  color:#f9fafb;
  font-size:18px;
  box-shadow:0 10px 25px rgba(0,0,0,.5);
}

/* Strzałki */
.lightbox-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  background:rgba(15,23,42,.8);
  color:#e5e7eb;
  font-size:22px;
  box-shadow:0 12px 30px rgba(0,0,0,.55);
  user-select:none;
}
.lightbox-prev{ left:-56px; }
.lightbox-next{ right:-56px; }

.lightbox-close:hover,
.lightbox-arrow:hover{
  background:#0f172a;
}

.lightbox-close:focus-visible,
.lightbox-arrow:focus-visible{
  outline:2px solid #0d6efd;
  outline-offset:3px;
}

@media(max-width:768px){
  .lightbox-prev{ left:8px; }
  .lightbox-next{ right:8px; }
  .center-wrap{
    padding:2rem 1rem;
  }
  .row{
    height:26vh;
  }
}

