/*
  Tábory Pólo – modernizovaný design ve stylu originálu
  - zelený (olivový) sidebar
  - hero s fotkou
  - bílý obsah
  - samoobslužné, bez závislosti na Zunix CSS
*/

:root {
  --tp-max: 1180px;
  --tp-header-h: 84px;

  /* Kontakty – karta */
  --tp-pill-border-w: 2px;
  --tp-pill-border: var(--tp-tint-border);

  /* Brand logo (autíčko) */
  --tp-logo-size: 60px;
  --tp-logo-radius: 16px;

  /* Hero – jednoduché ladění pozice textů a bg obrázku */
  --tp-hero-text-x: 0px;
  --tp-hero-text-y: 0px;
  --tp-hero-text-align: left;
  --tp-hero-content-align: flex-end;

  /* Desktop hero bg (pevná šířka obrázku) */
  --tp-hero-bg-width: 1500px;
  --tp-hero-bg-pos-y: 15%;
  --tp-hero-h-min-desktop: 320px;
  --tp-hero-h-ideal-desktop: 48vh;
  --tp-hero-h-max-desktop: 560px;

  /* Sidebar / brand */
  --tp-olive: #7f8f2a;
  --tp-olive-dark: #6f7f22;
  --tp-olive-darker: #5e6c1c;
  --tp-olive-text: rgba(255,255,255,0.92);
  --tp-olive-muted: rgba(255,255,255,0.70);
  --tp-olive-border: rgba(255,255,255,0.22);

  /* Content */
  --tp-bg: #ffffff;
  --tp-paper: #ffffff;
  --tp-ink: #121515;
  --tp-ink-muted: rgba(18, 21, 21, 0.72);
  --tp-line: rgba(18, 21, 21, 0.12);

  /* Accent */
  --tp-accent: #6f7f22; /* same family */
  --tp-accent-2: #2f6f45;

  /* Tints (subtle green surfaces across the site) */
  --tp-tint: rgba(127, 143, 42, 0.03);
  --tp-tint-strong: rgba(127, 143, 42, 0.08);
  --tp-tint-border: rgba(111, 127, 34, 0.14);

  /* Hero overlays */
  --tp-hero-overlay-green: rgba(47, 111, 69, 0.12);

  /* Forms: validation */
  --tp-danger: rgba(167, 44, 44, 1);
  --tp-danger-border: rgba(167, 44, 44, 0.38);
  --tp-danger-bg: rgba(167, 44, 44, 0.08);

  --tp-radius-lg: 18px;
  --tp-radius-md: 14px;
  --tp-radius-sm: 12px;
  --tp-shadow: 0 18px 50px rgba(0,0,0,0.18);
  --tp-transition: 220ms cubic-bezier(0.2, 0, 0.2, 1);

  --zunix-bg: #aaaaaa; 
  --zunix-badge-bg: #5a5a5a; 
  --zunix-badge-border: #2a2a2a;
  --zunix-badge-hover: #6a6a6a;
  --zunix-text: rgba(255, 255, 255, 0.6); /* "Powered by" */
  --zunix-accent: #ffffff;                /* "Zunix.eu" */
  --zunix-accent-hover: #ffffff;          /* Barva nápisu při hoveru */
  --zunix-glow: rgba(255, 255, 255, 0.4);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
  background: var(--tp-bg);
  color: var(--tp-ink);
}

/* Zámek scrollování */
html.tp-future-lock,
body.tp-future-lock {
    overflow: hidden !important;
    height: 100% !important;
}

/* Křížek pro zavření - barva změněna na bílou, aby byla vidět na zeleném pozadí */
.tp-future-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 1.5rem; /* Trochu větší, aby se na to lépe klikalo */
    color: rgba(255, 255, 255, 0.8); 
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    transition: all 0.2s ease;
    z-index: 10;
}

.tp-future-close:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Kontejner modalu */
.tp-future-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    padding: clamp(16px, 4vw, 32px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 16% 22%, rgba(106, 133, 62, 0.24) 0%, rgba(106, 133, 62, 0.00) 42%),
        radial-gradient(circle at 84% 78%, rgba(47, 111, 69, 0.22) 0%, rgba(47, 111, 69, 0.00) 44%),
        rgba(11, 13, 23, 0.62);
    backdrop-filter: blur(4px); /* Jemné rozmazání pozadí celého webu */
}

/* Karta modalu */
.tp-future-modal-card {
    position: relative;
    width: min(720px, 100%); /* Zmenšil jsem max-šířku z 920 na 720, aby to nevypadalo moc prázdné */
    border-radius: 26px;
    padding: clamp(32px, 5vw, 52px);
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.24);
    background:
        linear-gradient(180deg, rgba(106, 133, 62, 0.82) 0%, rgba(66, 95, 46, 0.90) 100%),
        rgba(86, 117, 54, 0.86);
    box-shadow: 0 24px 62px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px) saturate(108%);
}

/* Tlačítka v řadě */
.tp-future-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap; /* Pro mobilní zobrazení */
    margin-top: clamp(24px, 4vw, 36px);
}

/* Hlavní tlačítko (Přejít na starý web) */
.tp-future-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    width: min(100%, 280px);
    padding: 12px 24px;
    border-radius: 18px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1f2c16;
    background: linear-gradient(180deg, #e9f3dc 0%, #ccdfb1 100%);
    border: 1px solid rgba(44, 64, 31, 0.2);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Sekundární tlačítko (Jen se porozhlédnout) */
.tp-future-modal-btn--secondary {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tp-future-modal-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Pomocné třídy */
.tp-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.tp-hidden {
  display: none !important;
}

/* --- Header / Navigation --- */
.tp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2000;
  background: rgba(244, 245, 242, 0.76);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--tp-tint-border);
  box-shadow: 0 14px 34px rgba(0,0,0,0.08);
}

.tp-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(127, 143, 42, 0.08) 0%, rgba(255,255,255,0.00) 56%);
}

.tp-header-inner {
  width: min(var(--tp-max), 100%);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tp-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tp-ink);
  min-width: 0;
}

.tp-brand-logo {
  width: var(--tp-logo-size);
  height: var(--tp-logo-size);
  border-radius: var(--tp-logo-radius);
  background-color: rgba(127, 143, 42, 0.12);
  border: 1px solid var(--tp-tint-border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex: 0 0 auto;
}

.tp-brand-text { display: grid; gap: 2px; min-width: 0; }
.tp-brand-title {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-brand-sub {
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--tp-ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tp-burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  opacity: 1;
  border: 1px solid var(--tp-tint-border);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
  color: var(--tp-ink);
}

.tp-burger-lines {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.tp-burger-lines::before,
.tp-burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tp-ink);
  border-radius: 999px;
}

.tp-burger-lines::before { top: 0; box-shadow: 0 5px 0 0 var(--tp-ink); }
.tp-burger-lines::after { bottom: 0; }

.tp-nav {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.tp-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--tp-ink);
  font-weight: 900;
  font-size: 0.92rem;
  transition: background var(--tp-transition), transform var(--tp-transition);
}

.tp-nav-link:hover { background: rgba(127, 143, 42, 0.12); transform: translateY(-1px); }

.tp-nav-link[aria-current="page"] {
  background: rgba(127, 143, 42, 0.12);
}

.tp-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  padding: 10px 12px;
  border-radius: 14px;
  color: rgba(255,255,255,0.92);
  background: linear-gradient(180deg, var(--tp-olive) 0%, var(--tp-olive-dark) 100%);
  border: 1px solid rgba(0,0,0,0.18);
  transition: filter var(--tp-transition), transform var(--tp-transition);
}

.tp-nav-cta:hover { filter: brightness(1.02); transform: translateY(-1px); }

/* --- Main / Hero --- */
.tp-main {
  flex: 1 0 auto;
  padding-top: var(--tp-header-h);
}

.tp-hero,
.tp-section {
  scroll-margin-top: 84px;
}

.tp-hero {
  position: relative;
  height: clamp(240px, 36vh, 420px);
  background: var(--tp-tint);
  overflow: hidden;
}

.tp-hero-media {
  position: absolute;
  inset: 0;
  --tp-hero-image: url('/taborypolo/obrazky/bg_img.png');
  background-color: var(--tp-tint);
  background-image:
    linear-gradient(0deg, rgba(0,0,0,0.22), rgba(0,0,0,0.22)),
    var(--tp-hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(0.95) contrast(1.05);
}

/* Homepage: green-tinted overlay behind the photo */
.tp-hero.tp-hero-home .tp-hero-media {
  background-image:
    linear-gradient(0deg, var(--tp-hero-overlay-green), var(--tp-hero-overlay-green)),
    var(--tp-hero-image);
}

.tp-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: var(--tp-hero-content-align);
  padding: 18px;
}

.tp-hero-inner {
  width: min(var(--tp-max), 100%);
  margin: 0 auto;
  display: grid;
  gap: 10px;
  transform: translate(var(--tp-hero-text-x), var(--tp-hero-text-y));
  text-align: var(--tp-hero-text-align);
}

/* Homepage hero: move text to the right side of the photo */
.tp-hero.tp-hero-home .tp-hero-inner {
  width: min(var(--tp-hero-bg-width), 100%);
  padding: 0 clamp(22px, 4vw, 72px);
  justify-items: end;
}

/* Homepage hero: keep the info panel vertically centered */
.tp-hero.tp-hero-home .tp-hero-overlay {
  align-items: center;
}

.tp-hero-panel {
  position: relative;
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(127,143,42,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 22px 54px rgba(0,0,0,0.26);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
}

.tp-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.00) 56%);
}

.tp-hero-panel > * {
  position: relative;
  z-index: 1;
}

.tp-hero-logo {
  width: 120px;
  height: 120px;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}

.tp-hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.46);
  color: rgba(18, 21, 21, 0.78);
  font-weight: 900;
  font-size: 0.85rem;
}

.tp-hero-title {
  margin: 0;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(2.0rem, 4vw, 3.0rem);
  line-height: 1.05;
  text-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

.tp-hero-lead {
  margin: 0;
  color: rgba(255,255,255,0.90);
  font-weight: 700;
  max-width: 70ch;
  text-shadow: 0 10px 28px rgba(0,0,0,0.55);
}

.tp-page {
  background: var(--tp-paper);
}

.tp-section {
  width: min(var(--tp-max), 100%);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 26px);
}

.tp-h2 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  letter-spacing: -0.02em;
}

.tp-sub-h2 {
  margin: -6px 0 12px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--tp-ink-muted);
}

.tp-h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.tp-divider {
  height: 1px;
  background: rgba(18, 21, 21, 0.12);
  margin: 22px 0;
}

.tp-clubs {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--tp-radius-lg);
  background: linear-gradient(180deg, rgba(127, 143, 42, 0.05) 0%, rgba(255,255,255,0.94) 100%);
  border: 1px solid var(--tp-tint-border);
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.tp-club-h {
  font-size: 1.22rem;
  letter-spacing: -0.015em;
  margin-top: 1.15rem !important;
  margin-bottom: 0.65rem;
}

.tp-text { margin: 0; color: var(--tp-ink); }
.tp-text-muted { color: var(--tp-ink-muted); }

/* --- Tým: "Kdo jsme?" (styl původní stránky) --- */
.tp-story {
  max-width: none;
  margin: 0;
}

.tp-story-title {
  margin: 0 0 16px;
  text-align: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
}

.tp-story .tp-text + .tp-text { margin-top: 12px; }

.tp-a {
  color: var(--tp-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 127, 34, 0.35);
}
.tp-a:hover { border-bottom-color: rgba(111, 127, 34, 0.75); }

.tp-link {
  color: var(--tp-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(111, 127, 34, 0.35);
}
.tp-link:hover { border-bottom-color: rgba(111, 127, 34, 0.75); }

.tp-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.tp-title-link:hover {
  border-bottom-color: rgba(111, 127, 34, 0.55);
}

.tp-center {
  text-align: center;
}

.tp-center .tp-actions {
  justify-content: center;
}

.tp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.tp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
  background: rgba(18, 21, 21, 0.06);
  border: 1px solid rgba(18, 21, 21, 0.12);
  color: rgba(18, 21, 21, 0.92);
  transition: transform var(--tp-transition), background var(--tp-transition), border-color var(--tp-transition);
}

.tp-btn:hover {
  background: rgba(18, 21, 21, 0.09);
  border-color: rgba(18, 21, 21, 0.18);
  transform: translateY(-1px);
}

.tp-btn-primary {
  background: linear-gradient(180deg, var(--tp-olive) 0%, var(--tp-olive-dark) 100%);
  border-color: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);
}

.tp-btn-primary:hover {
  background: linear-gradient(180deg, #8ea233 0%, #6f7f22 100%);
}

/* --- Forms (Přihlášky – lokální šablona) --- */
.tp-form-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--tp-radius-lg);
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(18, 21, 21, 0.12);
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.tp-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(127, 143, 42, 0.10);
  border: 1px solid rgba(111, 127, 34, 0.18);
  color: rgba(18, 21, 21, 0.92);
}

.tp-form {
  display: grid;
  gap: 14px;
}

.tp-field {
  display: grid;
  gap: 6px;
}

.tp-field.tp-invalid .tp-label {
  color: rgba(167, 44, 44, 0.92);
}

.tp-label {
  font-weight: 900;
  letter-spacing: -0.01em;
}

.tp-help {
  margin: 0;
  color: var(--tp-ink-muted);
  font-size: 0.92rem;
}

.tp-input,
.tp-textarea,
.tp-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(18, 21, 21, 0.14);
  background: rgba(255,255,255,0.94);
  color: rgba(18, 21, 21, 0.92);
  font: inherit;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}

.tp-textarea {
  min-height: 96px;
  resize: vertical;
}

.tp-input:focus,
.tp-textarea:focus,
.tp-select:focus {
  outline: none;
  border-color: rgba(111, 127, 34, 0.45);
  box-shadow: 0 0 0 4px rgba(127, 143, 42, 0.18);
}

/* Shared control container (text fields + options). Keep .tp-choice as an alias. */
.tp-control,
.tp-choice {
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(127, 143, 42, 0.06);
  border: 1px solid rgba(111, 127, 34, 0.18);
  display: grid;
  gap: 10px;
}

.tp-field.tp-invalid .tp-control,
.tp-field.tp-invalid .tp-choice {
  border-color: var(--tp-danger-border);
  background: var(--tp-danger-bg);
}

.tp-field.tp-invalid .tp-input,
.tp-field.tp-invalid .tp-textarea,
.tp-field.tp-invalid .tp-select {
  border-color: var(--tp-danger-border);
}

.tp-radio {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.tp-radio input {
  margin-top: 3px;
}

/* --- Date input: desktop mask + native picker --- */
.tp-date-wrap {
  position: relative;
}

.tp-date-text {
  padding-right: 44px;
}

@media (min-width: 981px) {
  .tp-date-text {
    padding-right: 52px;
  }

  .tp-date-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tp-ink-muted);
    cursor: pointer;
    z-index: 3;
  }

  .tp-date-btn:hover {
    background: rgba(18, 21, 21, 0.06);
  }

  .tp-date-btn:active {
    background: rgba(18, 21, 21, 0.09);
  }

  .tp-date-native {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }
}

@media (max-width: 980px) {
  .tp-date-text {
    display: none;
  }

  .tp-date-btn {
    display: none;
  }

  .tp-date-native {
    position: static;
    width: 100%;
    opacity: 1;
    z-index: auto;
    cursor: auto;
  }
}

button.tp-btn {
  cursor: pointer;
}

.tp-btn[disabled],
button.tp-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.tp-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  border-radius: var(--tp-radius-lg);
  background: linear-gradient(180deg, rgba(127, 143, 42, 0.05) 0%, rgba(127, 143, 42, 0.03) 100%);
  border: 1px solid var(--tp-tint-border);
}

.tp-info {
  border-radius: 14px;
  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(18, 21, 21, 0.10);
  padding: 14px;
}

.tp-info-k {
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(18, 21, 21, 0.62);
  margin-bottom: 6px;
}

.tp-info-v {
  font-weight: 900;
  color: rgba(18, 21, 21, 0.92);
}

.tp-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tp-cards.tp-cards-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 981px) {
  .tp-cards.tp-cards-2 > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: 100%;
    max-width: calc((100% - 12px) / 2);
  }
}

.tp-card {
  background: linear-gradient(180deg, rgba(127, 143, 42, 0.04) 0%, rgba(255,255,255,0.97) 66%);
  border: 1px solid var(--tp-tint-border);
  border-radius: var(--tp-radius-lg);
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.tp-sponsor-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(18px, 3vw, 30px);
}

.tp-sponsor-card + .tp-sponsor-card {
  margin-top: 12px;
}

.tp-sponsor-logo {
  display: block;
  width: min(560px, 100%);
  height: auto;
}

.tp-sponsor-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.tp-sponsor-zunix {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -1px;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  text-decoration: none;
  color: #4a6cf7;
  background: linear-gradient(135deg, #4a6cf7 0%, #5a3fa2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tp-sponsor-zunix:focus-visible {
  outline: 2px solid rgba(111, 127, 34, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
}

/* --- Vizitka (medailonek) --- */
.tp-vcard {
  text-align: center;
}

.tp-vcard-avatar {
  width: 104px;
  height: 104px;
  margin: 2px auto 12px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--tp-line);
  background: rgba(18, 21, 21, 0.06);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.tp-vcard-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tp-vcard-initials {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(18, 21, 21, 0.72);
  background: rgba(255,255,255,0.76);
}

.tp-vcard-name {
  margin: 0 0 4px;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.tp-vcard-role {
  margin: 0 0 12px;
  font-weight: 900;
  color: var(--tp-ink-muted);
}

.tp-vcard-bio {
  text-align: left;
}

.tp-vcard-bio .tp-text + .tp-text { margin-top: 10px; }

.tp-card i { color: var(--tp-accent); }

.tp-card-soft {
  background: linear-gradient(180deg, rgba(127, 143, 42, 0.07) 0%, rgba(255,255,255,0.96) 100%);
}

.tp-list {
  margin: 0;
  padding-left: 18px;
  color: rgba(18, 21, 21, 0.82);
}

.tp-list li { margin: 8px 0; }

/* --- Simple slider (Fotogalerie) --- */
.tp-slider { margin-top: 12px; }

.tp-slider-viewport {
  position: relative;
  border-radius: var(--tp-radius-lg);
  overflow: hidden;
  border: 1px solid var(--tp-line);
  background: rgba(18, 21, 21, 0.04);
  height: clamp(220px, 46vh, 520px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  cursor: zoom-in;
}

body.tp-zoom-open { overflow: hidden; }

.tp-slider.is-zoomed .tp-slider-viewport {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: rgba(0,0,0,0.92);
  cursor: zoom-out;
  z-index: 9999;
}

.tp-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.015);
  transition: opacity 560ms cubic-bezier(0.2, 0, 0.2, 1), transform 560ms cubic-bezier(0.2, 0, 0.2, 1);
  z-index: 1;
}

.tp-slide.is-active { opacity: 1; transform: scale(1); }

.tp-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tp-slider.is-zoomed .tp-slide-img { object-fit: contain; }

.tp-slider-caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(18, 21, 21, 0.58);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  letter-spacing: -0.01em;
  backdrop-filter: blur(8px) saturate(140%);
  z-index: 4;
}

.tp-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(18, 21, 21, 0.18);
  background: rgba(255,255,255,0.86);
  color: rgba(18, 21, 21, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--tp-transition), background var(--tp-transition);
  z-index: 4;
}

.tp-slider-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(18, 21, 21, 0.42);
  color: rgba(255,255,255,0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--tp-transition), background var(--tp-transition);
  z-index: 5;
  opacity: 0;
  pointer-events: none;
}

.tp-slider.is-zoomed .tp-slider-close {
  opacity: 1;
  pointer-events: auto;
}

.tp-slider-close:hover {
  background: rgba(18, 21, 21, 0.56);
  transform: scale(1.03);
}

.tp-slider-close:focus-visible {
  outline: 2px solid rgba(111, 127, 34, 0.55);
  outline-offset: 3px;
}

.tp-slider-btn:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-50%) scale(1.03);
}

.tp-slider-btn:focus-visible {
  outline: 2px solid rgba(111, 127, 34, 0.55);
  outline-offset: 3px;
}

.tp-slider-btn-prev { left: 10px; }
.tp-slider-btn-next { right: 10px; }

@media (prefers-reduced-motion: reduce) {
  .tp-slide { transition: none; transform: none; }
}

.tp-contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

.tp-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.tp-pill {
  background: rgba(255,255,255,0.88);
  border: var(--tp-pill-border-w) solid var(--tp-pill-border);
  border-radius: var(--tp-radius-lg);
  padding: 16px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}

.tp-pill .tp-contact-meta {
  font-size: 0.95rem;
  align-items: flex-start;
}

.tp-pill .tp-contact-meta i {
  margin-top: 2px;
}

.tp-contact-email,
.tp-foot-email {
  color: var(--tp-accent);
  border-bottom: 1px solid rgba(111, 127, 34, 0.35);
}

.tp-contact {
  padding: 14px;
  border-radius: var(--tp-radius-md);
  background: rgba(127, 143, 42, 0.04);
  border: 1px solid var(--tp-tint-border);
  margin-bottom: 10px;
}

.tp-contact-title { font-weight: 900; margin-bottom: 6px; }

.tp-contact-meta {
  color: var(--tp-ink-muted);
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
}

.tp-footer {
    flex-shrink: 0;
    width: 100%;
    background-color: #0b0d17; /* Sjednocení barvy pro jistotu */
}

.tp-footer-top {
    background-color: #fff;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.tp-footer-inner {
  width: min(var(--tp-max), 100%);
  margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 26px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-footer-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tp-sep { opacity: 0.55; }
.tp-foot-auth { opacity: 0.85; }

/* --- Admin (login + admin panel) --- */
.tp-admin-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--tp-tint) 0%, var(--tp-bg) 520px);
  color: var(--tp-ink);
}

.tp-admin-auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.tp-admin-auth-card {
  width: min(460px, 100%);
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--tp-radius-lg);
  border: 1px solid var(--tp-tint-border);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--tp-shadow);
}

.tp-admin-btn-full {
  width: 100%;
  justify-content: center;
}

.tp-admin-note-error {
  background: var(--tp-danger-bg);
  border-color: var(--tp-danger-border);
  color: var(--tp-danger);
}

.tp-admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.tp-admin-sidebar {
  background: rgba(255,255,255,0.92);
  border-right: 1px solid var(--tp-tint-border);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}

.tp-admin-nav {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.tp-admin-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--tp-ink);
  font-weight: 800;
  border: 1px solid transparent;
  transition: background var(--tp-transition), border-color var(--tp-transition), transform var(--tp-transition);
}

.tp-admin-nav-link:hover {
  background: rgba(127, 143, 42, 0.12);
  border-color: var(--tp-tint-border);
  transform: translateY(-1px);
}

.tp-admin-nav-link.is-active {
  background: rgba(127, 143, 42, 0.16);
  border-color: var(--tp-tint-border);
}

.tp-admin-nav-link-danger {
  color: #a72c2c;
}

.tp-admin-main {
  padding: clamp(18px, 3vw, 32px);
}

.tp-admin-section {
  margin-bottom: 24px;
}

.tp-admin-table-wrap {
  margin-top: 14px;
  border: 1px solid var(--tp-tint-border);
  border-radius: var(--tp-radius-md);
  overflow: auto;
  background: rgba(255,255,255,0.9);
}

.tp-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.tp-admin-table th,
.tp-admin-table td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid var(--tp-tint-border);
  vertical-align: top;
}

.tp-admin-table th {
  font-weight: 900;
  background: rgba(127, 143, 42, 0.08);
}

.tp-admin-table details > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--tp-tint-border);
  background: rgba(127, 143, 42, 0.08);
  color: var(--tp-ink);
  font-weight: 800;
  user-select: none;
  transition: background var(--tp-transition), border-color var(--tp-transition), transform var(--tp-transition);
}

.tp-admin-table details > summary::-webkit-details-marker {
  display: none;
}

.tp-admin-table details > summary::after {
  content: "▾";
  opacity: 0.72;
  font-size: 0.85rem;
}

.tp-admin-table details[open] > summary {
  background: rgba(127, 143, 42, 0.14);
  border-color: rgba(111, 127, 34, 0.28);
  margin-bottom: 10px;
}

.tp-admin-table details[open] > summary::after {
  content: "▴";
}

.tp-admin-table details > form {
  margin-top: 8px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--tp-tint-border);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.tp-admin-table details > form .tp-input,
.tp-admin-table details > form .tp-select,
.tp-admin-table details > form .tp-textarea {
  margin-bottom: 8px;
}

.tp-admin-table details > form .tp-btn {
  width: 100%;
  justify-content: center;
}

.tp-card > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.tp-card > summary::-webkit-details-marker {
  display: none;
}

.tp-card > summary::after {
  content: "▾";
  opacity: 0.72;
  font-size: 0.9rem;
}

.tp-card[open] > summary::after {
  content: "▴";
}

.tp-admin-status-paid {
  color: #1f7a3f;
  font-weight: 800;
}

.tp-admin-status-pending {
  color: #9a6a00;
  font-weight: 800;
}

.tp-admin-form-card {
  background: rgba(255,255,255,0.94);
}

        .tp-sponsor-link {
            text-decoration: none;
            color: inherit;
            display: block;
            margin-bottom: 20px; /* Mezera mezi řádky */
        }
        .tp-sponsor-card-full {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            width: 100%;
        }
        .tp-sponsor-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            width: 100%;
        }
        .tp-sponsor-logo {
            max-height: 80px; /* Uprav si podle potřeby */
            width: auto;
        }
        .tp-sponsor-desc {
            margin-top: 15px;
            text-align: center;
        }

/* --- Responsive --- */
@media (max-width: 980px) {
  :root {
    --tp-logo-size: 48px;
    --tp-logo-radius: 14px;
  }

  .tp-nav {
    position: fixed;
    top: calc(var(--tp-header-h) - 12px);
    left: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--tp-tint-border);
    border-radius: var(--tp-radius-lg);
    box-shadow: var(--tp-shadow);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
    z-index: 2200;
  }

  body.tp-nav-open .tp-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  body.tp-nav-open { overflow: hidden; }

  .tp-nav-link { padding: 12px 12px; }
  .tp-nav-cta { padding: 12px 12px; }

  .tp-contact-grid { grid-template-columns: 1fr; }
  .tp-pills { grid-template-columns: 1fr; }
  .tp-cards { grid-template-columns: 1fr; }
  .tp-cards.tp-cards-2 { grid-template-columns: 1fr; }
  .tp-info-grid { grid-template-columns: 1fr; }

  .tp-admin-layout {
    grid-template-columns: 1fr;
  }

  .tp-admin-sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--tp-tint-border);
  }

  .tp-admin-main {
    padding: 16px;
  }
}

@media (min-width: 981px) {
  .tp-burger { display: none; }
  .tp-nav { display: flex; }

  /* Desktop hero: vyšší sekce + pevná šířka bg obrázku */
  .tp-hero {
    height: clamp(var(--tp-hero-h-min-desktop), var(--tp-hero-h-ideal-desktop), var(--tp-hero-h-max-desktop));
  }

  .tp-hero-media {
    background-size: var(--tp-hero-bg-width) auto;
    background-repeat: no-repeat;
    background-position: center var(--tp-hero-bg-pos-y);
  }

  /* Homepage hero: distribute texts vertically within the photo */
  .tp-hero.tp-hero-home .tp-hero-inner {
    height: min(260px, 100%);
    align-content: space-between;
    gap: 12px;
  }

  /* Homepage hero: center the whole panel on the right side */
  .tp-hero.tp-hero-home .tp-hero-panel {
    position: absolute;
    top: 50%;
    right: calc(6px + clamp(22px, 4vw, 72px));
    transform: translateY(-50%);
    width: min(360px, calc(100vw - 56px));
  }
}
