:root {
  --brand-blue: #4964DF;
  --mist: #EAEEF5;
  --ink: #111626;
  --paper: #f8faff;
  --card: #ffffff;
  --line: #d8e0f0;
  --accent: #2a3e9d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(17, 22, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(73, 100, 223, 0.12), transparent 30%),
    radial-gradient(circle at 85% 15%, rgba(73, 100, 223, 0.16), transparent 38%),
    linear-gradient(180deg, #f4f7fe 0%, #ffffff 65%);
  min-height: 100vh;
}

main {
  background: rgba(248, 250, 255, 0.9);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(248, 250, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

/* logo ukryte do czasu przewinięcia – desktop i mobile */
.index-page .brand {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  pointer-events: none;
}

.index-page.header-logo-visible .brand {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 901px) {
  .index-page .header-inner {
    position: relative;
    justify-content: center;
  }

  .index-page .brand {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .index-page .main-nav {
    margin: 0 auto;
  }

  .index-page .header-social {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0;
}

.brand-logo {
  height: 62px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
}

.main-nav .nav-disabled {
  display: inline-block;
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 600;
  color: #5f6a84;
  background: rgba(216, 224, 240, 0.45);
  cursor: not-allowed;
  opacity: 0.92;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--mist);
  color: var(--accent);
}

.main-nav a.nav-konkurs {
  color: var(--brand-blue);
  font-weight: 700;
  border: 1.5px solid var(--brand-blue);
}

.main-nav a.nav-konkurs:hover {
  background: rgba(73, 100, 223, 0.1);
  color: var(--brand-blue);
}

.header-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero {
  padding: 68px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 26px;
  align-items: center;
}

.hero-grid-home {
  align-items: stretch;
}

.hero-brand-panel {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-topline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-date {
  margin-top: 40px;
}

.hero-logo {
  width: min(100%, 540px);
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(17, 22, 38, 0.12));
}

.eyebrow-tight {
  margin-bottom: 4px;
}

.hero-schedule-card {
  display: grid;
  gap: 18px;
  align-content: start;
}

.hero-schedule-list {
  display: grid;
  gap: 14px;
}

.hero-schedule-item {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-schedule-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.hero-schedule-time {
  display: inline-block;
  margin-bottom: 6px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hero-schedule-item p {
  margin: 0;
  color: rgba(248, 250, 255, 0.92);
}

.eyebrow {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 1px;
}

.lead {
  font-size: 1.1rem;
  max-width: 62ch;
  color: #2e364f;
}

.contact-page {
  display: flex;
  align-items: center;
  min-height: calc(100vh - 160px);
}

.contact-landing {
  width: min(760px, 100%);
  padding: clamp(24px, 5vw, 56px) 0;
}

.contact-lead {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.18;
  font-weight: 500;
  color: #1a2440;
}

.contact-meta {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-meta p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #33405f;
}

.contact-mail {
  color: var(--accent);
  font-weight: 700;
}

.contact-mail:hover {
  color: var(--brand-blue);
}

.hero-card {
  background: linear-gradient(145deg, #4f69e4 0%, #3d55c6 100%);
  color: #f8faff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.5rem;
}

.hero-card p {
  margin-bottom: 18px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button-row-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand-blue);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border-color: #c7d5f7;
}

.btn-cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 30px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.8px;
  background: transparent;
  border-color: transparent;
  color: var(--ink);
}

.btn-cta-top {
  font-size: clamp(0.9rem, 1.75vw, 1.08rem);
  letter-spacing: 1.2px;
  line-height: 1;
  opacity: 0.9;
}

.btn-cta-main {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  line-height: 1;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.btn-cta-main span {
  line-height: 0.95;
}

.btn-cta strong {
  font-weight: 800;
}

.btn-cta-x {
  font-weight: 100;
}

.leica-cta-logo {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.section {
  padding: 42px 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.legal-page {
  display: grid;
  gap: 20px;
}

.legal-lead {
  margin: 0;
}

.legal-document {
  display: grid;
  gap: 28px;
  padding: 28px;
}

.legal-section {
  display: grid;
  gap: 14px;
}

.legal-section:not(:last-child) {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(73, 100, 223, 0.14);
}

.legal-section h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--accent);
}

.legal-list {
  margin: 0;
  padding-left: 1.4rem;
  display: grid;
  gap: 10px;
}

.legal-list li {
  line-height: 1.65;
  color: #26314d;
}

.legal-list-bulleted {
  margin-top: 10px;
  padding-left: 1.2rem;
  gap: 8px;
  list-style: disc;
}

.legal-list-bulleted li::marker {
  color: var(--brand-blue);
}

.form-note-link {
  margin-top: 0;
}

.form-note-link a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-note-link a:hover {
  color: var(--brand-blue);
}

.card h3 {
  margin-bottom: 10px;
}

.schedule-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.schedule-teaser-note {
  margin: 10px 0 0;
  max-width: 66ch;
  color: #334064;
}

.schedule-lock {
  position: relative;
  margin-top: 22px;
}

.schedule-lock .schedule-grid {
  margin-top: 0;
  transform: scale(1);
  transform-origin: center;
  user-select: auto;
  pointer-events: auto;
}

.index-page .schedule-lock .schedule-grid {
  transform: scale(1);
}

.schedule-lock::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: transparent;
  z-index: 1;
  pointer-events: none;
}

.index-page .schedule-lock::before {
  background: transparent;
}

.schedule-lock-overlay {
  position: absolute;
  inset: 50% 20px auto;
  transform: translateY(-50%);
  z-index: 2;
  display: none;
  justify-items: center;
  gap: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.schedule-lock-overlay strong {
  font-size: 1.04rem;
  letter-spacing: 0.01em;
}

.schedule-lock-overlay span {
  color: #334064;
  font-size: 0.95rem;
}

.schedule-day {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.schedule-day::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--brand-blue), #7b8ef0);
}

.schedule-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 8px;
  margin-bottom: 18px;
}

.schedule-day-label {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 1px;
  font-size: 1.9rem;
  color: var(--accent);
}

.schedule-day-date {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--accent);
  font-weight: 700;
}

.schedule-track {
  display: grid;
  gap: 12px;
  padding-left: 8px;
}

.schedule-entry {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: start;
  position: relative;
  padding: 14px 0 14px 18px;
}

.schedule-entry:not(:last-child) {
  border-bottom: 1px solid rgba(73, 100, 223, 0.12);
}

.schedule-entry::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 5px rgba(73, 100, 223, 0.12);
}

.schedule-time {
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.2px;
}

.schedule-body h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.schedule-body p {
  margin: 0;
  color: #33405f;
}

.schedule-body p + p {
  margin-top: 6px;
}

.schedule-entry-emphasis {
  background: rgba(73, 100, 223, 0.06);
  border-radius: 14px;
  padding-left: 18px;
  padding-right: 12px;
}

.schedule-entry-emphasis::before {
  background: #1f2f6d;
}

.guest-grid {
  display: grid;
  gap: 20px;
  margin-top: 22px;
}

.guest-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.guest-portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.guest-card-body {
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.guest-card-body p {
  margin: 0;
  color: #33405f;
}

.guest-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #c7d5f7;
  background: #ffffff;
  color: #2a3e9d;
}

.guest-instagram-link:hover {
  background: var(--mist);
}

.guest-detail-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-tight {
  padding: 24px 0 0;
}

.guest-gallery-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
}

.guest-gallery-trigger img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d6dff5;
  transition: transform 0.2s ease;
}

.guest-gallery-trigger:hover img {
  transform: scale(1.02);
}

.guest-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 80;
}

.guest-lightbox.open {
  display: block;
}

.guest-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 16, 34, 0.74);
}

.guest-lightbox-panel {
  position: relative;
  width: min(980px, 94vw);
  max-height: 88vh;
  overflow: auto;
  margin: 6vh auto;
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 30px 50px rgba(5, 12, 33, 0.35);
}

.guest-lightbox-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #1f2f6d;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.guest-lightbox-panel-full {
  width: min(1280px, 96vw);
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.guest-lightbox-panel-full .guest-lightbox-close {
  color: #f5f8ff;
  top: -6px;
  right: 4px;
}

.guest-lightbox-full-image {
  display: block;
  max-width: 100%;
  max-height: 88vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 30px 50px rgba(5, 12, 33, 0.45);
}

.guest-meet {
  margin: 0 0 16px;
  color: #1f2f6d;
  font-weight: 700;
}

.guest-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.guest-gallery-grid img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d6dff5;
}

.no-scroll {
  overflow: hidden;
}

.rules-list,
.info-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.submit-section {
  margin-top: 26px;
}

.submit-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.contest-form {
  margin-top: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: #25305b;
}

.field-full {
  grid-column: 1 / -1;
}

.field input,
.field textarea {
  border: 1px solid #cbd8f7;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #ffffff;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(73, 100, 223, 0.35);
  border-color: var(--brand-blue);
}

.form-note {
  margin: 10px 0 0;
  color: #4b5779;
  font-size: 0.95rem;
}

.form-feedback {
  min-height: 22px;
  margin: 8px 0 14px;
  color: #1f2f6d;
  font-weight: 600;
}

.form-feedback.error {
  color: #b02828;
}

.partners-strip {
  padding: 34px 0;
  border-top: 1px solid rgba(73, 100, 223, 0.16);
}

.partners-layout {
  display: grid;
  gap: 20px;
}

.partners-group {
  display: grid;
  gap: 10px;
}

.partners-group-title {
  margin: 0;
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.8px;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  color: var(--accent);
}

.partners-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
  margin: 20px 0;
}

.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.partner-logo-card.large {
  height: 86px;
}
.partner-logo-card.small {
  height: 56px;
}

.partner-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.site-footer {
  margin-top: 36px;
  border-top: 1px solid var(--line);
  background: #f5f8ff;
}

.footer-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #404a67;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #c7d5f7;
  background: #ffffff;
  color: #2a3e9d;
  font-weight: 700;
}

.social-link i {
  font-size: 1rem;
}

.social-link-icon {
  min-width: 40px;
  padding: 8px 10px;
}

.social-link:hover {
  background: var(--mist);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s ease forwards;
}

.reveal.delay-1 {
  animation-delay: 0.12s;
}

.reveal.delay-2 {
  animation-delay: 0.24s;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .cards {
    grid-template-columns: 1fr;
  }

  .hero-brand-panel {
    min-height: auto;
  }

  .hero-topline {
    align-items: flex-start;
    gap: 10px;
  }

  .hero-date {
    text-align: center;
    width: 100%;
    margin-top: 40px;
  }

  .hero-logo {
    max-height: 140px;
  }

  .btn-cta {
    padding: 14px 18px;
    gap: 8px;
  }

  .btn-cta-main {
    gap: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .schedule-entry {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guest-card {
    grid-template-columns: 1fr;
  }

  .guest-detail-card {
    grid-template-columns: 1fr;
  }

  .guest-portrait {
    min-height: 220px;
  }

  .guest-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-day {
    padding: 18px 16px;
  }

  .schedule-day-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    position: absolute;
    right: 4%;
    top: 70px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    width: min(320px, 90vw);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-toggle {
    display: inline-block;
  }

  .header-social {
    margin-left: auto;
  }

  .footer-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .partners-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-logo-card {
    height: 72px;
  }
}
