/* ============================================================
   OLOMOUCKÉ STATISTICKÉ DNY 2026
   style.css — moderní design, tmavomodrá + zlatá
   ============================================================ */

/* --- Custom Properties --- */
:root {
  --navy:        #0d1b3e;
  --navy-mid:    #162347;
  --navy-light:  #1e2f5c;
  --gold:        #c8a951;
  --gold-light:  #e0c270;
  --gold-pale:   #f5edd6;
  --white:       #ffffff;
  --off-white:   #f8f6f1;
  --text:        #1a1a2e;
  --text-muted:  #555e7a;
  --border:      #ddd6c4;
  --red:         #b5292b;

  --font-display: 'IBM Plex Serif', Georgia, serif;
  --font-body:    'IBM Plex Sans', Helvetica, Arial, sans-serif;
  --font-ui:      'IBM Plex Sans', Helvetica, Arial, sans-serif;

  --max-width: 1080px;
  --nav-height: 64px;
  --section-pad: 5rem 1.5rem;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(13,27,62,0.10);
  --shadow-md: 0 6px 24px rgba(13,27,62,0.16);
  --shadow-lg: 0 16px 48px rgba(13,27,62,0.22);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
strong, b { font-weight: 700; }
em { font-style: italic; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(13, 27, 62, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-lg);
}

.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav__brand {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold) !important;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav__brand:hover { color: var(--gold-light) !important; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8) !important;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 0.85rem; right: 0.85rem;
  height: 2px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold) !important;
  background: rgba(255,255,255,0.06);
}

.nav__links a.active::after,
.nav__links a:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  z-index: 999;
  padding: 1rem 0;
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav__mobile.open { display: block; }

.nav__mobile ul { list-style: none; }
.nav__mobile ul li a {
  display: block;
  padding: 0.85rem 2rem;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all var(--transition);
}
.nav__mobile ul li a:hover,
.nav__mobile ul li a.active {
  color: var(--gold) !important;
  background: rgba(255,255,255,0.06);
  padding-left: 2.5rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 2.5rem;
  border-bottom: 1px solid var(--border);
}

/* ornament removed */

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero__year {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero__year .y-navy { color: var(--navy); }
.hero__year .y-red  { color: #c02702; }

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 1.75rem;
}

.hero__meta-item {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

.hero__meta-item strong {
  color: var(--navy);
  font-weight: 600;
}

.hero__organizer {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: normal;
  margin-bottom: 0.4rem;
}

.hero__partners {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero__partners a {
  color: var(--navy) !important;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  transition: border-color var(--transition), color var(--transition);
}
.hero__partners a:hover {
  color: var(--gold) !important;
  border-color: var(--gold);
}

.hero__cta {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy) !important;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--navy) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,169,81,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold) !important;
  transform: translateY(-2px);
}

/* ============================================================
   SECTIONS — obecné
   ============================================================ */
.section {
  padding: var(--section-pad);
}

.section--light  { background: var(--off-white); }
.section--white  { background: var(--white); }
.section--navy   { background: var(--navy); color: var(--white); }
.section--pale   { background: var(--gold-pale); }

.section__header {
  margin-bottom: 3rem;
  text-align: center;
}

.section__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.section__title {
  font-family: var(--font-ui);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.section--navy .section__title { color: var(--white); }

.section__rule {
  width: 50px;
  height: 3px;
  background: var(--navy);
  margin: 1rem auto 0;
  border-radius: 2px;
}

.section--intro {
  padding: 0;
  background: var(--off-white);
  border-bottom: 1px solid var(--border);
}

.intro__text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
  padding: 2.5rem 1.5rem;
}

.photo-strip {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.photo-strip__item {
  overflow: hidden;
  border-radius: 4px;
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
}

.photo-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.photo-strip__item:hover img {
  transform: scale(1.04);
}

@media (max-width: 700px) {
  .photo-strip { flex-wrap: wrap; }
  .photo-strip__item { width: 100%; }
}

.section__perex {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.section__note {
  max-width: 720px;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
  padding: 1.25rem 1.5rem;
  background: var(--off-white);
  border-radius: 4px;
  border-left: 3px solid var(--navy);
}

/* ============================================================
   TERMÍNY COUNTDOWN STRIP
   ============================================================ */
.deadlines-strip {
  background: var(--navy-light);
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.deadlines-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.deadline-item {
  text-align: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  min-width: 160px;
}

.deadline-item__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.35rem;
}

.deadline-item__date {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-light);
  font-weight: 700;
}

/* ============================================================
   ZAMĚŘENÍ — karty
   ============================================================ */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 1rem 0 2rem;
}

.topic-card {
  background: transparent;
  border: none;
  padding: 0.5rem 1rem 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.topic-card::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  min-width: 8px;
  background: #6b7fa8;
  border-radius: 1px;
  flex-shrink: 0;
}

.topic-card__title {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   REGISTRACE
   ============================================================ */
.registration-box {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.registration-box h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1rem;
}

.registration-box p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* Formulář */
.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,62,0.12);
  background: var(--white);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--red);
}

.form-error {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 0.35rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ============================================================
   VLOŽNÉ
   ============================================================ */
.fee-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

/* 3 varianty vložného — nahoře přes celou šířku */
.fee-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fee-tier {
  background: var(--navy);
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
}

.fee-tier__label {
  font-family: var(--font-ui);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.6rem;
}

.fee-tier__price {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fee-tier__price span {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  margin-left: 0.25rem;
}

.fee-tier__includes {
  list-style: none;
}

.fee-tier__includes li {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fee-tier__includes li:last-child { border-bottom: 0; }

.fee-tier__includes li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.fee-tier__includes li.unavailable {
  color: rgba(255,255,255,0.25);
  text-decoration: line-through;
}

.fee-tier__includes li.unavailable::before {
  content: '–';
  color: rgba(255,255,255,0.2);
}

.fee-tier__qr {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: center;
}

.fee-tier__qr img {
  width: 180px;
  height: 180px;
  display: block;
  border-radius: 4px;
  background: white;
  padding: 6px;
}

/* Platební info — pod kartami, přes celou šířku */
.fee-bank {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-sm);
}

.fee-bank h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--navy);
  font-size: 1.1rem;
}

.fee-bank__rows {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 3rem;
}

.fee-amount {
  background: var(--navy);
  border-radius: 6px;
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.1);
}

.fee-amount__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.5rem;
}

.fee-amount__price {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fee-amount__currency {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

.fee-amount__includes {
  list-style: none;
  text-align: left;
}

.fee-amount__includes li {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fee-amount__includes li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.fee-bank {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.fee-bank h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}

.bank-row:last-child { border-bottom: 0; }

.bank-row__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.bank-row__value {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--navy);
  text-align: right;
}

/* ============================================================
   PROGRAM
   ============================================================ */
.program-placeholder {
  text-align: center;
  padding: 3rem;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: 6px;
  max-width: 600px;
  margin: 0 auto;
}

.program-placeholder p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ============================================================
   UBYTOVÁNÍ
   ============================================================ */
.accommodation-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.accommodation-info p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  text-align: center;
}

.accommodation-info p:last-child { margin-bottom: 0; }

.accommodation-map iframe {
  width: 100%;
  height: 420px;
  border-radius: 6px;
  border: 0;
  display: block;
}

/* ============================================================
   ORGANIZAČNÍ VÝBOR
   ============================================================ */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.committee-member {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  display: block;
  color: inherit;
  text-decoration: none;
}

.committee-member--linked {
  transition: all var(--transition);
  cursor: pointer;
}

.committee-member--linked:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.committee-member__name {
  font-family: var(--font-body);
  font-size: 0.925rem;
  color: var(--navy);
  font-weight: 600;
  margin: 0;
}

.committee-member--linked:hover .committee-member__name {
  color: var(--gold);
}

.committee-member__inst {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.contact-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.contact-card__name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.contact-card__title {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.contact-card__divider {
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.2);
  margin: 0 auto 1.5rem;
}

.contact-card__address {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.contact-card__email a {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--gold) !important;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   GALERIE — lehká inline galerie
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--navy-light);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0.55);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.gallery-item:hover .gallery-item__overlay { opacity: 1; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 1.75rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox__close:hover { background: rgba(200,169,81,0.3); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  font-size: 2rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(200,169,81,0.35); }
.lightbox__prev { left: 1.5rem; }
.lightbox__next { right: 1.5rem; }

/* ============================================================
   KE STAŽENÍ
   ============================================================ */
.downloads-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.download-item:hover {
  border-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.download-item__icon {
  width: 44px; height: 44px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.download-item__name {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy) !important;
  flex: 1;
}

.download-item__meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================================
   GOOGLE FORM EMBED
   ============================================================ */
.gform-wrap {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.gform-wrap iframe {
  display: block;
  width: 100%;
  min-height: 1200px;
  border: 0;
}

/* ============================================================
   QR KÓDY
   ============================================================ */
.qr-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.qr-section__label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.qr-codes {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.qr-canvas {
  padding: 0.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  line-height: 0;
}

.qr-item__amount {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
}

.qr-section__note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.5rem 1.5rem;
}

.footer__logos-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 1.75rem;
}

.footer__logos-bar img {
  height: 90px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer__logos-bar a:hover img { opacity: 1; }

.footer__copy {
  max-width: var(--max-width);
  margin: 0 auto;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  text-align: center;
  color: #888;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* ============================================================
   FADE-IN ANIMACE (IntersectionObserver)
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .fee-block { grid-template-columns: 1fr; }
  .fee-tiers { grid-template-columns: 1fr; }
  .topics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  :root { --section-pad: 3.5rem 1.25rem; }
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: center; }
  .registration-box { padding: 2rem 1.5rem; }
  .contact-card { padding: 2rem 1.5rem; }
  .fee-bank { padding: 1.5rem; }
  .deadlines-strip .container { flex-direction: column; align-items: stretch; }
  .deadline-item { min-width: auto; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .committee-grid { grid-template-columns: 1fr 1fr; }
}