:root {
  --bg: #05070c;
  --bg-soft: #0b1020;
  --panel: rgba(9, 14, 28, 0.92);
  --panel-strong: rgba(4, 8, 18, 0.98);
  --line: rgba(84, 144, 255, 0.22);
  --line-strong: rgba(84, 144, 255, 0.42);
  --text: #f2f7ff;
  --muted: #9fb8dd;
  --blue: #4ba3ff;
  --blue-strong: #0d6efd;
  --cyan: #6fd8ff;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --radius-sm: 16px;
  --max: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 104, 255, 0.22), transparent 24%),
    radial-gradient(circle at 100% 20%, rgba(16, 164, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #020409 0%, #05070c 28%, #07101f 58%, #04070e 100%);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--blue);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 1000;
}
.skip-link:focus { top: 10px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 24px), var(--max));
  margin: 14px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand img { width: 210px; height: auto; }
.menu-btn {
  display: none;
  border: 1px solid var(--line-strong);
  background: rgba(17, 28, 52, 0.7);
  color: var(--text);
  padding: 12px 16px;
  border-radius: 14px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a,
.cart-button {
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.nav a:hover,
.cart-button:hover,
.cart-button:focus-visible {
  background: rgba(58, 124, 255, 0.12);
}
.cart-button {
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(36, 89, 201, 0.52), rgba(16, 36, 78, 0.88));
}
.cart-button span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  margin-left: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

main {
  width: min(calc(100% - 24px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 30px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 44px 0 22px;
  position: relative;
  overflow: hidden;
}
.hero-copy,
.hero-media,
.section,
.footer,
.topbar,
.cart-drawer,
.order-dialog { position: relative; z-index: 1; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.hero h1 span {
  display: block;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
  color: var(--cyan);
  letter-spacing: 0;
  margin-top: 12px;
}
.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #86b6ff;
  font-size: 0.84rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}
.lead {
  margin: 0;
  max-width: 700px;
  font-size: 1.08rem;
  color: #d6e8ff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.btn {
  border-radius: 999px;
  padding: 14px 20px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover,
.btn:focus-visible { transform: translateY(-1px); }
.btn.primary {
  color: #fff;
  background: linear-gradient(180deg, #2392ff, #0d55f3);
  box-shadow: 0 16px 35px rgba(26, 112, 255, 0.32);
}
.btn.ghost {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(10, 20, 40, 0.66);
}
.info-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.info-chips span,
.promo-points span {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(12, 24, 45, 0.7);
  color: #d7ebff;
  font-size: 0.95rem;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0.65;
  pointer-events: none;
}
.hero-glow-one {
  width: 280px;
  height: 280px;
  left: -60px;
  top: 60px;
  background: rgba(0, 153, 255, 0.22);
}
.hero-glow-two {
  width: 320px;
  height: 320px;
  right: 6%;
  bottom: 40px;
  background: rgba(37, 89, 255, 0.22);
}

.card-frame,
.feature-card,
.contact-card,
.gallery-card,
.product-card,
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(14, 22, 40, 0.88), rgba(7, 11, 23, 0.97));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-media img { width: 100%; height: auto; }

.section {
  padding: 34px 0 22px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.section-head h2,
.promo-copy h2,
.info-card h3 { margin: 0; }
.section-head h2,
.promo-copy h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.1;
}
.section-head p,
.feature-card p,
.promo-copy p,
.info-card p,
.info-card li,
.checkout-note,
.gallery-card figcaption,
.feature-card h3 { color: var(--muted); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card { padding: 22px; }
.feature-card h3 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.22rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.gallery-wide { grid-column: span 2; }
.gallery-card figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020305;
}
.gallery-card:nth-child(2) img { aspect-ratio: 1 / 1; object-fit: contain; }

.promo-section {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 26px;
  align-items: center;
}
.promo-copy,
.info-card {
  padding: 24px;
}
.promo-media {
  display: grid;
  place-items: center;
  padding: 20px;
  min-height: 420px;
}
.promo-media img {
  max-height: 420px;
  width: auto;
}
.promo-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-card .media {
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at center, rgba(42, 119, 255, 0.17), rgba(2, 5, 12, 0.9));
  display: grid;
  place-items: center;
  padding: 18px;
}
.product-card .media img {
  max-height: 100%;
  width: 100%;
  object-fit: contain;
}
.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-title {
  margin: 0;
  font-size: 1.2rem;
}
.product-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}
.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.price {
  font-size: 1.15rem;
  font-weight: 800;
}
.add-btn {
  border: 1px solid var(--line-strong);
  background: rgba(12, 28, 64, 0.9);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
}
.add-btn:hover,
.add-btn:focus-visible { background: rgba(20, 54, 120, 0.95); }

.security-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.security-strip > div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 30, 58, 0.9), rgba(6, 10, 20, 0.95));
}
.security-strip strong {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan);
}
.security-strip span { color: var(--muted); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 18px;
}
.contact-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(84, 144, 255, 0.14);
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list a { color: #b9dbff; }

.footer {
  width: min(calc(100% - 24px), var(--max));
  margin: 20px auto 28px;
  padding: 22px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 22, 0.92);
}
.footer img { margin: 0 auto 12px; }
.footer p { margin: 0; }
.footer .small {
  margin-top: 8px;
  color: var(--muted);
}

.cart-drawer,
.order-dialog {
  width: min(94vw, 540px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: var(--panel-strong);
  color: var(--text);
  padding: 0;
}
.cart-drawer::backdrop,
.order-dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.6rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
#cart-items {
  padding: 10px 18px 0;
  max-height: 46vh;
  overflow: auto;
}
.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(84, 144, 255, 0.12);
}
.cart-item:last-child { border-bottom: 0; }
.cart-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}
.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 32, 68, 0.88);
  color: #fff;
}
.remove-btn {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #a9cffd;
  padding: 0;
}
.cart-summary,
.checkout-note,
#order-summary,
.full { margin: 0 18px 18px; }
.cart-summary {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.full { width: calc(100% - 36px); }
.checkout-note {
  color: var(--muted);
  font-size: 0.92rem;
}
#order-summary {
  white-space: pre-wrap;
  padding: 16px;
  border-radius: 16px;
  background: rgba(10, 18, 34, 0.92);
  border: 1px solid rgba(84, 144, 255, 0.14);
  font-family: Arial, Helvetica, sans-serif;
}
.empty {
  padding: 10px 18px 20px;
  color: var(--muted);
}

@media (max-width: 1060px) {
  .hero,
  .promo-section,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
  }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-grid,
  .security-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-top: 6px;
  }
  .nav.open { display: flex; }
  .nav a,
  .cart-button { width: 100%; text-align: center; }
  .hero {
    min-height: auto;
    padding-top: 30px;
  }
  .hero-actions,
  .info-chips,
  .promo-points { flex-direction: column; align-items: stretch; }
  .feature-grid,
  .gallery-grid,
  .product-grid,
  .security-strip { grid-template-columns: 1fr; }
  .gallery-wide { grid-column: auto; }
  .brand img { width: 170px; }
}

/* ---------- Intro + gateway ---------- */
.gateway-body,
.mcf-body {
  min-height: 100vh;
  overflow-x: hidden;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(19, 111, 255, 0.24), transparent 30%),
    radial-gradient(circle at 25% 70%, rgba(0, 157, 255, 0.13), transparent 24%),
    linear-gradient(180deg, #02050b 0%, #030812 58%, #010307 100%);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.intro-screen::before,
.project-gateway::before,
.mcf-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background-image:
    linear-gradient(rgba(77, 159, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 159, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
}
.intro-hidden {
  opacity: 0;
  visibility: hidden;
}
.intro-content {
  width: min(100%, 960px);
  text-align: center;
}
.intro-logo {
  width: min(100%, 900px);
  max-height: 62vh;
  margin: 0 auto 18px;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(83, 155, 255, 0.28);
  box-shadow: 0 0 38px rgba(23, 107, 255, 0.24), 0 35px 90px rgba(0,0,0,0.7);
}
.intro-label {
  margin: 0 0 14px;
  color: #dcecff;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: clamp(0.75rem, 1.6vw, 1rem);
}
.loading-track {
  width: min(92vw, 540px);
  height: 12px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(104, 178, 255, 0.55);
  border-radius: 999px;
  background: rgba(5, 13, 30, 0.9);
  box-shadow: 0 0 24px rgba(21, 121, 255, 0.26);
}
.loading-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d55f3 0%, #57c8ff 52%, #0d55f3 100%);
  transform-origin: left center;
  animation: intro-load 1.65s cubic-bezier(.2,.7,.2,1) both;
}
.loading-text {
  margin: 10px 0 0;
  color: #8fbfff;
  font-weight: 800;
  letter-spacing: 0.16em;
}
@keyframes intro-load {
  from { transform: scaleX(0.04); }
  to { transform: scaleX(1); }
}

.project-gateway {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 24px), 1260px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0 34px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.gateway-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.gateway-head {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto 32px;
  text-align: center;
}
.gateway-head > img {
  width: min(82vw, 470px);
  margin: 0 auto 8px;
}
.gateway-head h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.gateway-head > p:last-child {
  margin: 14px auto 0;
  max-width: 680px;
  color: var(--muted);
}
.project-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(61, 142, 255, 0.35);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(10, 17, 34, 0.93), rgba(2, 6, 14, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(96, 190, 255, 0.78);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.58), 0 0 32px rgba(26, 112, 255, 0.18);
}
.project-card-media {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 40%, rgba(30, 124, 255, 0.22), transparent 38%),
    #02050b;
  border-bottom: 1px solid rgba(61, 142, 255, 0.25);
}
.project-card-media img {
  width: 100%;
  max-height: 330px;
  object-fit: contain;
}
.project-card-logo img {
  width: min(82%, 330px);
  aspect-ratio: 1;
}
.project-card-copy {
  position: relative;
  padding: 24px;
}
.project-card-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
.project-card-copy p:not(.section-kicker) {
  margin: 0 0 20px;
  color: var(--muted);
}
.project-card-copy strong {
  color: #6fd8ff;
  letter-spacing: 0.06em;
}
.project-number {
  position: absolute;
  right: 22px;
  top: 20px;
  color: rgba(113, 184, 255, 0.16);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
}
.gateway-foot {
  position: relative;
  z-index: 1;
  margin: 24px 0 0;
  text-align: center;
  color: #6d8ebd;
  font-size: 0.92rem;
}
.noscript-fallback {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background: #02050b;
  color: #fff;
}
.noscript-fallback a {
  padding: 12px 18px;
  border: 1px solid #2d75e8;
  border-radius: 14px;
}

/* ---------- Booking / Google Form ---------- */
.booking-spotlight {
  scroll-margin-top: 120px;
}
.booking-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(74, 163, 255, 0.38);
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(10, 31, 67, 0.95), rgba(5, 12, 27, 0.96));
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35), inset 0 0 34px rgba(30, 108, 255, 0.08);
}
.booking-callout strong {
  display: block;
  color: var(--cyan);
  margin-bottom: 4px;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
}
.booking-callout span { color: #d8e9ff; }
.form-frame {
  padding: 8px;
  background: #05070c;
}
.form-frame iframe {
  display: block;
  width: 100%;
  min-height: 1220px;
  border: 0;
  border-radius: 16px;
  background: #fff;
}

/* ---------- Support / Donate ---------- */
.support-section { scroll-margin-top: 120px; }
.support-card {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: stretch;
  min-height: 460px;
}
.support-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.support-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}
.support-copy > p:not(.section-kicker) {
  margin: 0 0 14px;
  color: var(--muted);
}
.support-highlight {
  padding-left: 14px;
  border-left: 3px solid #3aa6ff;
  color: #e7f3ff !important;
}
.support-btn {
  align-self: flex-start;
  margin-top: 8px;
}
.support-media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: radial-gradient(circle at center, rgba(28, 112, 255, 0.2), transparent 46%);
}
.support-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 8, 18, 0.72) 0%, transparent 38%);
  pointer-events: none;
}
.support-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Maków Car Fest landing ---------- */
.mcf-landing {
  position: relative;
  width: min(calc(100% - 24px), 1180px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 40px;
  display: grid;
  align-content: center;
}
.back-link {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: start;
  margin-bottom: 22px;
  color: #9ec8ff;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.mcf-landing-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
}
.mcf-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.02;
}
.mcf-copy > p:not(.section-kicker) {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
}
.mcf-logo-panel {
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 28px;
}
.mcf-logo-panel img {
  width: min(90%, 460px);
}

@media (max-width: 980px) {
  .project-grid,
  .support-card,
  .mcf-landing-grid {
    grid-template-columns: 1fr;
  }
  .project-card-media { min-height: 260px; }
  .support-media { min-height: 360px; }
  .mcf-logo-panel { min-height: 380px; }
}

@media (max-width: 760px) {
  .project-gateway { padding-top: 30px; }
  .project-card-media { min-height: 210px; }
  .project-card-copy { padding: 20px; }
  .booking-callout { align-items: stretch; flex-direction: column; }
  .booking-callout .btn { text-align: center; }
  .form-frame iframe { min-height: 1420px; }
  .support-copy { padding: 24px; }
  .support-btn { width: 100%; text-align: center; }
  .support-media { min-height: 320px; }
  .mcf-logo-panel { min-height: 320px; }
}

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

.error-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.error-page {
  width: min(calc(100% - 24px), 900px);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 8, 18, 0.9);
  box-shadow: var(--shadow);
}
.error-page .hero-copy { max-width: 760px; }

/* ---------- Accessibility / language tools ---------- */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.access-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(84, 144, 255, 0.24);
  border-radius: 14px;
  background: rgba(4, 10, 22, 0.78);
  backdrop-filter: blur(12px);
}
.header-tools { flex: 0 0 auto; }
.gateway-tools {
  position: relative;
  z-index: 3;
  width: fit-content;
  margin: 0 0 20px auto;
}
.mcf-tools {
  position: fixed;
  z-index: 50;
  top: 18px;
  right: 18px;
}
.language-control,
.font-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfe6ff;
  font-size: 0.82rem;
  font-weight: 800;
}
.language-control select {
  color: #fff;
  background: rgba(11, 25, 52, 0.96);
  border: 1px solid rgba(86, 160, 255, 0.48);
  border-radius: 10px;
  padding: 8px 9px;
  outline: none;
}
.language-control select:focus-visible,
.font-control button:focus-visible {
  outline: 2px solid #6fd8ff;
  outline-offset: 2px;
}
.font-control button {
  min-width: 34px;
  height: 34px;
  padding: 0 7px;
  border: 1px solid rgba(86, 160, 255, 0.4);
  border-radius: 9px;
  color: #fff;
  background: rgba(13, 39, 84, 0.78);
  font-weight: 900;
}
.font-control button[aria-pressed="true"] {
  border-color: rgba(111, 216, 255, 0.92);
  background: linear-gradient(180deg, rgba(35, 146, 255, 0.9), rgba(13, 85, 243, 0.82));
  box-shadow: 0 0 18px rgba(35, 146, 255, 0.28);
}
.font-control.compact { gap: 4px; }

/* ---------- Sponsors / Partners ---------- */
.sponsors-section { scroll-margin-top: 120px; }
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.sponsor-grid.two-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sponsor-panel {
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sponsor-panel h3 {
  margin: 8px 0 8px;
  font-size: 1.45rem;
}
.sponsor-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}
.sponsor-icon {
  color: var(--cyan);
  font-size: 1.65rem;
  text-shadow: 0 0 16px rgba(111, 216, 255, 0.46);
}
.logo-placeholder {
  margin-top: auto;
  min-height: 76px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(111, 216, 255, 0.28);
  border-radius: 14px;
  color: rgba(191, 220, 255, 0.46);
  font-weight: 900;
  letter-spacing: 0.12em;
  background: rgba(13, 43, 88, 0.14);
}
.partner-cta {
  background: radial-gradient(circle at 80% 20%, rgba(24, 130, 255, 0.18), transparent 36%), linear-gradient(180deg, rgba(14, 22, 40, 0.92), rgba(7, 11, 23, 0.98));
}
.partner-cta .btn { align-self: flex-start; }
.mcf-sponsors { margin-top: 30px; width: 100%; }

@media (max-width: 1180px) {
  .topbar { flex-wrap: wrap; }
  .nav { width: 100%; justify-content: center; }
}

@media (max-width: 900px) {
  .sponsor-grid,
  .sponsor-grid.two-cols { grid-template-columns: 1fr; }
  .mcf-tools { position: relative; top: auto; right: auto; width: fit-content; margin: 16px 12px 0 auto; }
}

@media (max-width: 760px) {
  .header-tools { order: 2; margin-left: auto; }
  .menu-btn { order: 3; }
  .nav { order: 4; }
  .access-tools { max-width: 100%; }
  .gateway-tools { margin-left: auto; margin-right: auto; flex-wrap: wrap; justify-content: center; }
  .partner-cta .btn { width: 100%; text-align: center; }
}

/* Newsletter */
.newsletter-section { scroll-margin-top: 110px; }
.newsletter-card {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 28px;
  padding: 26px;
  background:
    radial-gradient(circle at 12% 18%, rgba(36, 122, 255, .2), transparent 34%),
    linear-gradient(145deg, rgba(10, 20, 43, .98), rgba(3, 7, 17, .98));
}
.newsletter-copy h2 { margin: 0 0 12px; font-size: clamp(2rem, 3vw, 3.2rem); line-height: 1.06; }
.newsletter-copy > p:not(.section-kicker) { color: var(--muted); max-width: 670px; }
.newsletter-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.newsletter-badges span {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #cfe7ff;
  background: rgba(10, 31, 65, .72);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .05em;
}
.newsletter-form {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(91, 163, 255, .24);
  border-radius: 18px;
  background: rgba(2, 7, 18, .72);
}
.newsletter-email { display: grid; gap: 8px; font-weight: 800; }
.newsletter-email input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(84, 144, 255, .38);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(4, 12, 27, .94);
  outline: none;
}
.newsletter-email input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(67, 169, 255, .14); }
.newsletter-consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .92rem; }
.newsletter-consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue-strong); }
.newsletter-submit { width: 100%; }
.newsletter-privacy { margin: 0; color: #7f9fc7; font-size: .82rem; line-height: 1.45; }
.newsletter-status { margin: 0; min-height: 1.5em; font-weight: 800; color: var(--cyan); }
.newsletter-status[data-state="error"] { color: #ff9f9f; }
.newsletter-status[data-state="success"] { color: #8fe9b0; }
.newsletter-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.mcf-newsletter .newsletter-card { border-color: rgba(255, 75, 75, .28); }
.mcf-newsletter .newsletter-badges span { border-color: rgba(255, 88, 88, .32); background: rgba(74, 9, 15, .45); }

@media (max-width: 900px) {
  .newsletter-card { grid-template-columns: 1fr; }
}

/* Delikatny popup newslettera */
.newsletter-popup {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: min(390px, calc(100vw - 36px));
  padding: 20px;
  border: 1px solid rgba(84, 164, 255, .42);
  border-radius: 20px;
  background:
    radial-gradient(circle at 80% 0%, rgba(40, 145, 255, .20), transparent 38%),
    linear-gradient(150deg, rgba(5, 12, 27, .98), rgba(2, 5, 13, .98));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .5), 0 0 28px rgba(47, 139, 255, .12);
  transform: translateY(18px) scale(.985);
  opacity: 0;
  transition: opacity .24s ease, transform .24s ease;
}
.newsletter-popup[hidden] { display: none; }
.newsletter-popup.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.newsletter-popup-glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(105, 193, 255, .05);
}
.newsletter-popup-kicker {
  margin: 0 34px 6px 0;
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .16em;
}
.newsletter-popup h2 {
  margin: 0 34px 8px 0;
  font-size: 1.28rem;
  line-height: 1.12;
}
.newsletter-popup-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.newsletter-popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #dcebff;
  font-size: 1.35rem;
}
.newsletter-popup-close:hover,
.newsletter-popup-close:focus-visible { background: rgba(77, 155, 255, .18); }
.newsletter-popup-form {
  padding: 0;
  gap: 10px;
  border: 0;
  background: transparent;
}
.newsletter-popup-form .newsletter-email input { min-height: 46px; }
.newsletter-popup-form .newsletter-submit { min-height: 44px; }
.popup-consent { font-size: .76rem; line-height: 1.35; }
.popup-consent input { width: 16px; height: 16px; }
.newsletter-popup-later {
  display: block;
  margin: 8px auto 0;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: #829dbc;
  font-size: .82rem;
}
.newsletter-popup-later:hover,
.newsletter-popup-later:focus-visible { color: #d8ebff; }
.mcf-body .newsletter-popup {
  border-color: rgba(255, 88, 88, .38);
  background:
    radial-gradient(circle at 80% 0%, rgba(255, 59, 76, .16), transparent 38%),
    linear-gradient(150deg, rgba(18, 7, 12, .98), rgba(4, 5, 10, .98));
}

@media (max-width: 600px) {
  .newsletter-popup {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
    padding: 16px;
    max-height: min(70vh, 520px);
    overflow: auto;
  }
  .newsletter-popup h2 { font-size: 1.12rem; }
  .newsletter-popup-desc { font-size: .86rem; }
}

@media (prefers-reduced-motion: reduce) {
  .newsletter-popup { transition: none; }
}

/* FINAL: video intro + dynamic content */
.intro-video-screen { background:#000; overflow:hidden; }
.intro-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; filter:saturate(1.08) contrast(1.05); }
.intro-vignette { position:absolute; inset:0; background:radial-gradient(circle at 50% 40%,rgba(0,58,150,.08),rgba(0,0,0,.48) 62%,rgba(0,0,0,.84) 100%); }
.intro-content-video { position:relative; z-index:2; width:min(92vw,760px); text-align:center; }
.intro-mark { width:min(78vw,640px); margin:0 auto 10px; filter:drop-shadow(0 0 22px rgba(33,135,255,.8)); }
.real-loading { overflow:hidden; }
.real-loading > span { display:block; width:0; height:100%; background:linear-gradient(90deg,#0a67ff,#3cd7ff); box-shadow:0 0 18px #249cff; transition:width .18s ease; }
.loading-row { display:flex; justify-content:space-between; gap:14px; align-items:center; margin-top:10px; color:#c9ddff; }
.loading-row strong { font-size:1.4rem; color:#fff; }
.sound-toggle { margin-top:18px; border:1px solid rgba(84,144,255,.5); background:rgba(3,10,24,.72); color:#dceeff; border-radius:999px; padding:10px 16px; font-weight:800; }
.sound-toggle:hover,.sound-toggle:focus-visible{background:rgba(20,64,135,.75)}
.dynamic-gallery { margin-top:18px; }
.dynamic-sponsors { margin-top:20px; }
.sponsor-logo-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.sponsor-logo-card { min-height:150px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:18px; border:1px solid var(--line); border-radius:18px; background:rgba(7,12,24,.9); }
.sponsor-logo-card img { max-width:100%; max-height:92px; object-fit:contain; }
.sponsor-logo-card span { color:var(--muted); text-align:center; font-size:.92rem; }
.empty-store { grid-column:1/-1; padding:24px; border:1px dashed var(--line-strong); border-radius:18px; color:var(--muted); background:rgba(6,11,22,.72); }
@media (max-width:900px){.sponsor-logo-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.intro-mark{width:min(90vw,620px)}}
@media (max-width:560px){.sponsor-logo-grid{grid-template-columns:1fr}.loading-row{font-size:.88rem}.intro-content-video{width:90vw}}

@keyframes introPulse { 0%,100% { transform:scale(1); filter:drop-shadow(0 0 18px rgba(33,135,255,.62)); } 50% { transform:scale(1.018); filter:drop-shadow(0 0 30px rgba(77,174,255,.92)); } }
.intro-mark { animation:introPulse 2.8s ease-in-out infinite; transform-origin:center; }
@media (prefers-reduced-motion: reduce) { .intro-mark { animation:none; } .intro-video { animation:none; } }

/* ==========================================================
   V4 - uproszczony układ, stabilne logotypy, plakaty, koszyk
   ========================================================== */
.logo-lock img,
img.logo-lock,
.locked-logo,
.brand img,
.footer img,
.sponsor-logo-card img,
.project-card-logo img,
.mcf-logo-panel img {
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  animation: none !important;
  -webkit-user-drag: none;
  user-select: none;
}
.sponsor-logo-card img { width: auto !important; }
.sponsor-logo-card:hover img,
.sponsor-logo-card:focus-visible img { transform: none !important; }

/* mniejszy ekran wyboru projektu */
.gateway-head { margin-bottom: 20px; }
.gateway-head > img { width: min(68vw, 380px); }
.project-grid { gap: 18px; max-width: 1040px; margin-inline: auto; }
.project-card-media { min-height: 235px; padding: 12px; }
.project-card-media img { max-height: 235px; }
.project-card-logo img { width: min(70%, 235px); aspect-ratio: auto; }
.project-card-copy { padding: 19px 21px; }
.project-card-copy h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }

.hero-compact { min-height: auto; padding-top: 38px; padding-bottom: 22px; }
.hero-compact .hero-media { min-height: 300px; }
.hero-compact .hero-media img { width: 100%; height: auto; object-fit: contain; }
.compact-section { padding-top: 20px; padding-bottom: 20px; }
.page-hero { padding-top: 54px; padding-bottom: 8px; }
.page-hero h1 { margin: 0 0 12px; font-size: clamp(2.5rem, 7vw, 5.2rem); line-height: .98; }
.page-hero .lead { max-width: 820px; }
.simple-head { margin-bottom: 14px; }

.link-hub {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hub-btn {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(61,142,255,.28);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,17,34,.9), rgba(3,7,15,.96));
  box-shadow: 0 18px 42px rgba(0,0,0,.25);
  text-decoration: none;
}
.hub-btn strong { color: #eef8ff; letter-spacing: .06em; }
.hub-btn span { color: var(--muted); font-size: .88rem; line-height: 1.35; }
.hub-btn:hover,
.hub-btn:focus-visible { border-color: rgba(102,200,255,.72); transform: translateY(-2px); }
.hub-btn-accent { border-color: rgba(78,164,255,.52); background: linear-gradient(180deg, rgba(13,39,78,.95), rgba(3,11,24,.98)); }

.event-link-card {
  display: grid;
  grid-template-columns: 1fr minmax(160px, 260px) auto;
  align-items: center;
  gap: 26px;
  padding: 26px;
}
.event-link-card h2 { margin: 4px 0 10px; font-size: clamp(2rem, 4vw, 3.5rem); }
.event-link-card p:not(.section-kicker) { color: var(--muted); }
.event-link-card img { width: min(100%, 230px); justify-self: center; }

/* Przewijany pasek plakatów. Pliki są czytane wyłącznie z /posters/ */
.poster-strip-section { overflow: hidden; }
.poster-strip {
  overflow: hidden;
  width: 100%;
  border-top: 1px solid rgba(61,142,255,.22);
  border-bottom: 1px solid rgba(61,142,255,.22);
  padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.poster-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: posterFlow 38s linear infinite;
  will-change: transform;
}
.poster-strip:hover .poster-track { animation-play-state: paused; }
.poster-track-static { animation: none; }
.poster-card {
  width: clamp(150px, 19vw, 245px);
  height: clamp(190px, 25vw, 315px);
  margin: 0;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(61,142,255,.25);
  border-radius: 16px;
  background: #02050b;
}
.poster-card img { width: 100%; height: 100%; object-fit: contain; object-position: center; -webkit-user-drag: none; user-select:none; }
@keyframes posterFlow { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }

/* Pływający koszyk widoczny tylko, gdy coś jest w koszyku */
.floating-cart {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 1400;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(102,200,255,.72);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #247cff, #071329 72%);
  box-shadow: 0 16px 42px rgba(0,0,0,.5), 0 0 24px rgba(41,133,255,.32);
  opacity: 0;
  transform: translateY(20px) scale(.9);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  cursor: pointer;
}
.floating-cart.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.floating-cart img { width: 34px; height: 34px; object-fit: contain; }
.floating-cart-count {
  position: absolute;
  top: -5px;
  right: -3px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: #061127;
  font-weight: 900;
  font-size: .78rem;
  border: 2px solid #1577ff;
}

.support-mini { margin-top: 0; }
.form-frame { display: none !important; }

@media (max-width: 980px) {
  .link-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-link-card { grid-template-columns: 1fr 180px; }
  .event-link-card .btn { grid-column: 1 / -1; justify-self: start; }
  .project-card-media { min-height: 190px; }
  .project-card-media img { max-height: 190px; }
}
@media (max-width: 620px) {
  .link-hub { grid-template-columns: 1fr 1fr; gap: 9px; }
  .hub-btn { min-height: 96px; padding: 14px; }
  .hub-btn span { font-size: .8rem; }
  .event-link-card { grid-template-columns: 1fr; }
  .event-link-card img { width: min(64vw, 220px); }
  .project-card-media { min-height: 145px; }
  .project-card-media img { max-height: 145px; }
  .project-card-copy { padding: 15px; }
  .gateway-head > img { width: min(62vw, 300px); }
  .poster-card { width: 145px; height: 205px; }
  .floating-cart { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .poster-track { animation: none !important; } }
/* stabilizacja logotypów na intro i ekranie wyboru */
.intro-mark,
.gateway-head > img {
  height: auto !important;
  object-fit: contain !important;
  transform: none !important;
  animation: none !important;
  -webkit-user-drag: none;
  user-select: none;
}
.site-toast { position:fixed; top:88px; left:50%; z-index:1600; transform:translateX(-50%); max-width:min(92vw,620px); padding:13px 18px; border:1px solid rgba(102,200,255,.55); border-radius:999px; background:rgba(3,12,27,.96); color:#eaf8ff; box-shadow:0 14px 40px rgba(0,0,0,.45); font-weight:800; text-align:center; }
