/* ==========================================================================
   NeksMania — hlavní stylopis
   Obsah:
   01. Design tokeny (CSS proměnné)
   02. Reset a základ
   03. Utility a pomocné třídy
   04. Tlačítka a interaktivní prvky
   05. Navigace
   06. Hero
   07. Obecné sekce
   08. Funkce
   09. Třídy
   10. Svět
   11. Statistiky
   12. Výzva k akci (CTA)
   13. Patička
   14. Animace a reveal
   15. Responzivita
   ========================================================================== */


/* ==========================================================================
   01. DESIGN TOKENY
   ========================================================================== */
:root {
  /* Barvy — základ */
  --c-bg-deep:      #0B0E1A;
  --c-bg-charcoal:  #12141F;
  --c-bg-elevated:  #171A28;

  /* Barvy — primární paleta */
  --c-purple:       #6C3FBF;
  --c-purple-soft:  #8B5CF6;
  --c-blue:         #2C5FBF;
  --c-blue-soft:    #4F8AF0;
  --c-emerald:      #1F9E6B;

  /* Barvy — akcent */
  --c-gold:         #E8B84B;
  --c-gold-bright:  #FFD98A;

  /* Barvy — odebrané přímo z loga NeksMania (vzorkováno z písma znaku) */
  --c-brand-violet:       #942CE9;  /* sytá fialová z písmen */
  --c-brand-violet-light: #C55DF7;  /* světlejší přechod v písmenech */
  --c-brand-lilac:        #EBD6FF;  /* horní světlo na písmenech */
  --c-brand-deep:         #190361;  /* tmavý obrys loga */

  /* Barvy — text */
  --c-text:         #F1EEE4;
  --c-text-muted:   #A8AEC2;
  --c-text-dim:     #6E7590;

  /* Okraje a plochy */
  --c-border:       rgba(255, 255, 255, 0.08);
  --c-border-gold:  rgba(232, 184, 75, 0.45);
  --c-surface:      rgba(255, 255, 255, 0.03);
  --c-surface-hi:   rgba(255, 255, 255, 0.06);

  /* Gradienty */
  --grad-royal:     linear-gradient(135deg, var(--c-purple) 0%, var(--c-blue) 100%);
  --grad-gold:      linear-gradient(135deg, var(--c-gold-bright) 0%, var(--c-gold) 100%);
  --grad-surface:   linear-gradient(160deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.01) 100%);
  /* Přechod pro nadpisy — kopíruje světlo v písmenech loga.
     Končí u světlejší fialové (5,75:1 na tmavém pozadí); sytá --c-brand-violet
     má jen 3,48:1 a na menších displejích by nesplnila WCAG AA. */
  --grad-heading:   linear-gradient(115deg, var(--c-brand-lilac) 10%, #D89BFF 52%, var(--c-brand-violet-light) 100%);

  /* Typografie */
  --font-display:   'Cinzel', 'Georgia', 'Times New Roman', serif;
  --font-body:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs:    0.8125rem;
  --fs-sm:    0.9375rem;
  --fs-base:  1rem;
  --fs-lg:    clamp(1.0625rem, 0.4vw + 0.95rem, 1.1875rem);
  --fs-xl:    clamp(1.25rem, 0.8vw + 1.05rem, 1.5rem);
  --fs-h3:    clamp(1.25rem, 1vw + 1rem, 1.5rem);
  --fs-h2:    clamp(1.875rem, 2.6vw + 1.1rem, 3.25rem);
  --fs-h1:    clamp(3rem, 7vw + 1rem, 6.5rem);

  /* Odstupy */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.5rem;
  --sp-6:   2rem;
  --sp-7:   3rem;
  --sp-8:   4rem;
  --sp-9:   6rem;
  --sp-10:  8rem;

  --section-py: clamp(4.5rem, 9vw, 8rem);

  /* Rádiusy */
  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 999px;

  /* Stíny */
  --sh-sm:    0 2px 8px rgba(0, 0, 0, .35);
  --sh-md:    0 12px 32px rgba(0, 0, 0, .45);
  --sh-lg:    0 24px 60px rgba(0, 0, 0, .55);
  --sh-gold:  0 0 32px rgba(232, 184, 75, .35);
  --sh-royal: 0 0 48px rgba(108, 63, 191, .35);

  /* Rozměry */
  --container:  1240px;
  --header-h:   76px;

  /* Přechody */
  --ease:       cubic-bezier(.22, .61, .36, 1);
  --t-fast:     160ms var(--ease);
  --t-base:     280ms var(--ease);
  --t-slow:     520ms var(--ease);
}


/* ==========================================================================
   02. RESET A ZÁKLAD
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg-deep);
  background-image:
    radial-gradient(900px 620px at 12% -8%,  rgba(108, 63, 191, .22), transparent 65%),
    radial-gradient(820px 560px at 92% 4%,   rgba(44, 95, 191, .20),  transparent 65%),
    radial-gradient(760px 520px at 50% 108%, rgba(31, 158, 107, .12), transparent 65%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Jemný runový/šumový vzor přes celé pozadí */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0);
  background-size: 34px 34px;
}

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast);
}

ul, ol { list-style: none; padding: 0; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .01em;
}

:focus-visible {
  outline: 2px solid var(--c-gold);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}


/* ==========================================================================
   03. UTILITY A POMOCNÉ TŘÍDY
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-gold);
  color: var(--c-bg-deep);
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-4); }

/* Zlatý dělící vlas — sdílený dekorativní prvek */
.rule-gold {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--c-border-gold), transparent);
}


/* ==========================================================================
   04. TLAČÍTKA A INTERAKTIVNÍ PRVKY
   ========================================================================== */
.btn {
  --btn-py: 0.875rem;
  --btn-px: 2rem;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--btn-py) var(--btn-px);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  white-space: nowrap;
  transition: transform var(--t-base), box-shadow var(--t-base),
              background-color var(--t-base), color var(--t-base),
              border-color var(--t-base);
}

.btn--lg {
  --btn-py: 1.0625rem;
  --btn-px: 2.75rem;
  font-size: var(--fs-base);
}

.btn--primary {
  background: var(--grad-gold);
  color: #17130A;
  box-shadow: 0 6px 24px rgba(232, 184, 75, .28);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--grad-gold);
  filter: blur(14px);
  opacity: .45;
  z-index: -1;
  transition: opacity var(--t-base);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 34px rgba(232, 184, 75, .45);
}
.btn--primary:hover::after { opacity: .85; }

.btn--ghost {
  color: var(--c-text);
  border: 1px solid var(--c-border-gold);
  background: rgba(255, 255, 255, .03);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c-gold);
  background: rgba(232, 184, 75, .1);
  color: var(--c-gold-bright);
}

.btn:active { transform: translateY(0); }

/* Tlačítko pro zkopírování IP adresy */
.copy-ip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--c-gold);
  letter-spacing: .02em;
  border-bottom: 1px dashed var(--c-border-gold);
  transition: color var(--t-fast), border-color var(--t-fast);
}
.copy-ip::after {
  content: '';
  width: 13px;
  height: 13px;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  box-shadow: 3px -3px 0 -1.5px transparent, 3px -3px 0 0 currentColor;
  opacity: .7;
}
.copy-ip:hover { color: var(--c-gold-bright); border-color: var(--c-gold-bright); }

.copy-ip--lg {
  font-size: var(--fs-lg);
  padding: var(--sp-3) var(--sp-5);
  border: 1px solid var(--c-border-gold);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .03);
}
.copy-ip--lg:hover { background: rgba(232, 184, 75, .1); }

/* Vyskakovací potvrzení */
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-6);
  z-index: 200;
  transform: translate(-50%, 24px);
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--c-bg-deep);
  background: var(--grad-gold);
  border-radius: var(--r-full);
  box-shadow: var(--sh-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }


/* ==========================================================================
   05. NAVIGACE
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: background-color var(--t-base), border-color var(--t-base),
              backdrop-filter var(--t-base), box-shadow var(--t-base);
}

.site-header.is-scrolled {
  background: rgba(11, 14, 26, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--c-border);
  box-shadow: var(--sh-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
/* Rozměr řídí CSS, ne atributy v HTML — ty slouží jen k rezervaci místa */
.brand__mark {
  width: auto;
  height: 42px;
  filter: drop-shadow(0 0 12px rgba(148, 44, 233, .55));
  transition: transform var(--t-base);
}
.brand:hover .brand__mark { transform: rotate(-6deg) scale(1.06); }
/* Ladí s fialovým znakem hned vedle */
.brand__name-accent { color: var(--c-brand-violet-light); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.nav__link {
  position: relative;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: .03em;
  color: var(--c-text-muted);
  padding-block: var(--sp-2);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--grad-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}
.nav__link:hover,
.nav__link:focus-visible,
.nav__link.is-active { color: var(--c-text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__link--accent {
  color: var(--c-gold);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--c-border-gold);
  border-radius: var(--r-full);
}
.nav__link--accent::after { display: none; }
.nav__link--accent:hover {
  background: rgba(232, 184, 75, .12);
  color: var(--c-gold-bright);
}

/* Přepínač mobilního menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: var(--sp-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ==========================================================================
   06. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + var(--sp-6));
  padding-bottom: var(--sp-9);
  overflow: hidden;
  isolation: isolate;
}

.hero__particles {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero__aura {
  position: absolute;
  z-index: -3;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__aura--purple {
  width: 46vw; height: 46vw;
  top: -12%; left: -10%;
  background: radial-gradient(circle, rgba(108, 63, 191, .55), transparent 70%);
}
.hero__aura--blue {
  width: 40vw; height: 40vw;
  bottom: -14%; right: -8%;
  background: radial-gradient(circle, rgba(44, 95, 191, .5), transparent 70%);
  animation-delay: -8s;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--sp-4);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid var(--c-border-gold);
  border-radius: var(--r-full);
  background: rgba(232, 184, 75, .06);
}

/* Nadpis nese logo jako obrázek — název pro čtečky je v atributu alt */
.hero__title {
  margin-top: var(--sp-2);
  line-height: 0;
}

.hero__logo {
  width: min(100%, 34rem);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .55))
          drop-shadow(0 0 46px rgba(148, 44, 233, .45));
}

.hero__subtitle {
  margin-top: var(--sp-4);
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__description {
  max-width: 52ch;
  margin-top: var(--sp-5);
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
}
.hero__meta-item dt {
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.hero__meta-item dd {
  margin: var(--sp-1) 0 0;
  font-weight: 600;
  color: var(--c-text);
}

/* Vizuální blok — rám pro render */
.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__frame {
  position: relative;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--c-border-gold);
  background: var(--grad-surface);
  box-shadow: var(--sh-lg), var(--sh-royal);
  animation: float 7s ease-in-out infinite;
}
.hero__render { width: 100%; }

.hero__glow {
  position: absolute;
  inset: 8% 6%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 75, .28), transparent 68%);
  filter: blur(60px);
  animation: pulse 6s ease-in-out infinite;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-5);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, transparent, var(--c-gold));
  animation: scrollHint 2.4s ease-in-out infinite;
}
.hero__scroll:hover { color: var(--c-gold); }


/* ==========================================================================
   07. OBECNÉ SEKCE
   ========================================================================== */
.section {
  position: relative;
  z-index: 1;
  padding-block: var(--section-py);
}

.section--alt {
  background: linear-gradient(180deg, transparent, rgba(18, 20, 31, .6) 18%, rgba(18, 20, 31, .6) 82%, transparent);
}

.section__head {
  max-width: 62ch;
  margin: 0 auto var(--sp-8);
  text-align: center;
}

.section__eyebrow {
  margin-bottom: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.section__title {
  font-size: var(--fs-h2);
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}


/* ==========================================================================
   08. FUNKCE
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.feature-card {
  position: relative;
  padding: var(--sp-6);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  background: var(--grad-surface);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
/* Jemná záře uvnitř karty při najetí */
.feature-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 184, 75, .22), transparent 70%);
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-gold);
  box-shadow: var(--sh-md), 0 0 30px rgba(232, 184, 75, .12);
}
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: var(--sp-5);
  border-radius: var(--r-md);
  color: var(--c-gold);
  background: rgba(232, 184, 75, .08);
  border: 1px solid var(--c-border-gold);
  transition: transform var(--t-base), background-color var(--t-base);
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card:hover .feature-card__icon {
  transform: scale(1.08) rotate(-4deg);
  background: rgba(232, 184, 75, .16);
}

.feature-card__title {
  font-size: var(--fs-h3);
  margin-bottom: var(--sp-3);
}

.feature-card__text {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}


/* ==========================================================================
   09. TŘÍDY
   ========================================================================== */
.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.class-card {
  position: relative;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-bg-elevated);
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.class-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-gold);
  box-shadow: var(--sh-md), var(--sh-royal);
}

.class-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(108, 63, 191, .3), rgba(44, 95, 191, .18));
}
.class-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.class-card:hover .class-card__media img { transform: scale(1.06); }
.class-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(11, 14, 26, .92) 100%);
}

.class-card__body {
  position: relative;
  padding: var(--sp-5);
  margin-top: -3.5rem;
  z-index: 1;
}

.class-card__title { font-size: var(--fs-h3); }

.class-card__role {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.class-card__text {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}


/* ==========================================================================
   10. SVĚT
   ========================================================================== */
.world-grid {
  display: grid;
  /* Dvanáct regionů — mřížka se sama přizpůsobí šířce displeje */
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.world-card {
  position: relative;
  min-height: 290px;
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  isolation: isolate;
  color: inherit;
  text-decoration: none;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}

.world-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-border-gold);
  box-shadow: var(--sh-lg);
}

.world-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.world-card:hover .world-card__img { transform: scale(1.07); }

.world-card__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 14, 26, .15) 0%, rgba(11, 14, 26, .55) 45%, rgba(11, 14, 26, .95) 100%);
  transition: background var(--t-base);
}
.world-card:hover .world-card__overlay {
  background: linear-gradient(180deg, rgba(108, 63, 191, .2) 0%, rgba(11, 14, 26, .6) 45%, rgba(11, 14, 26, .96) 100%);
}

.world-card__body {
  display: block;
  padding: var(--sp-6);
}

/* Názvy regionů zůstávají světlé — nesou kontrast proti tmavému snímku */
.world-card__title {
  font-size: var(--fs-h3);
  color: var(--c-text);
}
.world-card__title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  margin-top: var(--sp-3);
  background: var(--grad-gold);
  transition: width var(--t-base);
}
.world-card:hover .world-card__title::after { width: 72px; }

.world-card__text {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  max-width: 46ch;
}

/* Výzva k prokliku — naznačí, že karta vede na podstránku regionu */
.world-card__cue {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-gold);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--t-base), transform var(--t-base);
}
.world-card__cue::after {
  content: '→';
  transition: transform var(--t-base);
}
.world-card:hover .world-card__cue,
.world-card:focus-visible .world-card__cue {
  opacity: 1;
  transform: translateY(0);
}
.world-card:hover .world-card__cue::after { transform: translateX(4px); }

/* Dotyková zařízení hover neumí — výzvu zobrazíme rovnou */
@media (hover: none) {
  .world-card__cue { opacity: 1; transform: none; }
}


/* ==========================================================================
   11. STATISTIKY
   ========================================================================== */
.section--stats {
  padding-block: clamp(3rem, 6vw, 5rem);
}

/* Flex se zalamováním drží poslední řádek vycentrovaný — mřížka by nechala osiřelou položku vlevo */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-6) clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 3rem);
  border: 1px solid var(--c-border-gold);
  border-radius: var(--r-xl);
  background:
    linear-gradient(140deg, rgba(108, 63, 191, .16), rgba(44, 95, 191, .1)),
    rgba(18, 20, 31, .6);
  backdrop-filter: blur(10px);
  box-shadow: var(--sh-md);
}

.stat {
  position: relative;
  flex: 0 1 140px;
  text-align: center;
}

/* Oddělovače dávají smysl jen tehdy, když se všech pět položek vejde na jeden řádek */
@media (min-width: 1000px) {
  .stat + .stat::before {
    content: '';
    position: absolute;
    left: calc(clamp(1.5rem, 4vw, 3.5rem) / -2);
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--c-border-gold), transparent);
  }
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}


/* ==========================================================================
   12. VÝZVA K AKCI (CTA)
   ========================================================================== */
.cta {
  position: relative;
  z-index: 1;
  padding-block: var(--section-py);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.cta__aura {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: min(900px, 90vw);
  height: min(900px, 90vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 63, 191, .32), rgba(44, 95, 191, .12) 45%, transparent 68%);
  filter: blur(60px);
  animation: pulse 8s ease-in-out infinite;
}

.cta__inner { max-width: 60ch; margin-inline: auto; }

.cta__title {
  font-size: var(--fs-h2);
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta__text {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin-top: var(--sp-7);
}


/* ==========================================================================
   13. PATIČKA
   ========================================================================== */
.site-footer {
  position: relative;
  z-index: 1;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--c-border);
  background: rgba(11, 14, 26, .7);
  backdrop-filter: blur(10px);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr auto;
  gap: clamp(2rem, 4vw, 4rem);
  padding-bottom: var(--sp-7);
}

.site-footer__tagline {
  margin-top: var(--sp-4);
  max-width: 34ch;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-5);
}

.site-footer__heading {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: var(--sp-4);
}

.site-footer__col li + li { margin-top: var(--sp-2); }
.site-footer__col a {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}
.site-footer__col a:hover { color: var(--c-text); }

.social-list { display: flex; gap: var(--sp-3); }

.social-link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text-muted);
  transition: color var(--t-base), border-color var(--t-base),
              transform var(--t-base), background-color var(--t-base);
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover {
  color: var(--c-gold);
  border-color: var(--c-border-gold);
  background: rgba(232, 184, 75, .08);
  transform: translateY(-3px);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-xs);
  color: var(--c-text-dim);
}


/* ==========================================================================
   14. ANIMACE A REVEAL
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(6%, 8%) scale(1.12); }
}

@keyframes pulse {
  0%, 100% { opacity: .55; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: .9;  transform: translate(-50%, -50%) scale(1.08); }
}

/* Hero záře používá jiný transform-origin než .cta__aura */
.hero__glow { animation-name: pulseSimple; }
@keyframes pulseSimple {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .9;  transform: scale(1.06); }
}

@keyframes scrollHint {
  0%, 100% { opacity: .3;  transform: scaleY(.6); }
  50%      { opacity: 1;   transform: scaleY(1); }
}


/* ==========================================================================
   15. PODSTRÁNKA REGIONU
   ========================================================================== */

/* --- hlavička regionu --- */
.region-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(22rem, 52vh, 34rem);
  padding-top: var(--header-h);
  overflow: hidden;
  isolation: isolate;
}

.region-hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Na úzkých displejích ořízne cover velkou část snímku — držíme se terénu, ne prázdné oblohy */
  object-position: center 62%;
}

.region-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 60% at 20% 40%, rgba(148, 44, 233, .28) 0%, transparent 70%),
    linear-gradient(180deg, rgba(11, 14, 26, .72) 0%, rgba(11, 14, 26, .58) 40%, rgba(11, 14, 26, .97) 100%);
}

.region-hero__inner {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.region-hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.region-hero__title {
  margin-top: var(--sp-3);
  font-size: var(--fs-h1);
  line-height: 1.05;
  /* Název regionu zůstává světlý kvůli kontrastu proti snímku */
  color: var(--c-text);
  text-shadow: 0 4px 30px rgba(0, 0, 0, .6);
}

.region-hero__text {
  margin-top: var(--sp-4);
  max-width: 62ch;
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
}

.region-hero__count {
  margin-top: var(--sp-5);
  display: inline-flex;
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-brand-lilac);
  background: rgba(148, 44, 233, .18);
  border: 1px solid rgba(197, 93, 247, .35);
  border-radius: var(--r-full);
}
/* Bez počtu lokací (např. chybový stav) by zbyla prázdná pilulka */
.region-hero__count:empty { display: none; }

.region-hero--chyba .region-hero__img { display: none; }

/* --- drobečková navigace --- */
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: var(--fs-sm);
  list-style: none;
}
.breadcrumb li + li::before {
  content: '/';
  margin-right: var(--sp-2);
  color: var(--c-text-muted);
  opacity: .6;
}
.breadcrumb a {
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color var(--t-fast);
}
.breadcrumb a:hover { color: var(--c-brand-violet-light); }
.breadcrumb span { color: var(--c-text); }

/* --- karty lokací --- */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.location-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--grad-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.location-card:hover,
.location-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--c-border-gold);
  box-shadow: var(--sh-lg);
}

.location-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.location-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.location-card:hover .location-card__img { transform: scale(1.07); }

/* Lupa se objeví při najetí — naznačí, že karta otevře detail */
.location-card__zoom {
  position: absolute;
  inset-block-start: var(--sp-3);
  inset-inline-end: var(--sp-3);
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--c-bg-deep);
  background: var(--grad-gold);
  border-radius: var(--r-full);
  opacity: 0;
  transform: scale(.8);
  transition: opacity var(--t-base), transform var(--t-base);
}
.location-card__zoom svg { width: 1.1rem; height: 1.1rem; }
.location-card:hover .location-card__zoom,
.location-card:focus-visible .location-card__zoom {
  opacity: 1;
  transform: scale(1);
}

.location-card__body {
  display: block;
  padding: var(--sp-5);
}

.location-card__title {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  /* Světlý název kvůli kontrastu, shodně s kartami regionů */
  color: var(--c-text);
}

.location-card__text {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
}

.region-fallback {
  padding: var(--sp-6);
  text-align: center;
  color: var(--c-text-muted);
  border: 1px dashed var(--c-border);
  border-radius: var(--r-lg);
}

/* --- přepínač regionů --- */
.region-switch {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
  gap: var(--sp-4);
}

.region-chip {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 7.5rem;
  padding: var(--sp-4);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
  transition: transform var(--t-base), border-color var(--t-base), box-shadow var(--t-base);
}
.region-chip::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 14, 26, .35) 0%, rgba(11, 14, 26, .9) 100%);
  transition: background var(--t-base);
}
.region-chip:hover,
.region-chip:focus-visible {
  transform: translateY(-4px);
  border-color: var(--c-border-gold);
  box-shadow: var(--sh-md);
}
.region-chip:hover::after {
  background: linear-gradient(180deg, rgba(108, 63, 191, .3) 0%, rgba(11, 14, 26, .9) 100%);
}

.region-chip__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.region-chip:hover .region-chip__img { transform: scale(1.08); }

.region-chip__name {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-text);
}

/* --- lightbox --- */
body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  transition: opacity var(--t-base);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 16, .86);
  backdrop-filter: blur(10px);
}

.lightbox__panel {
  position: relative;
  width: min(100%, 56rem);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--c-bg-charcoal);
  border: 1px solid var(--c-border-gold);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  transform: translateY(14px) scale(.98);
  transition: transform var(--t-base);
}
.lightbox.is-open .lightbox__panel { transform: none; }

.lightbox__close {
  position: absolute;
  inset-block-start: var(--sp-4);
  inset-inline-end: var(--sp-4);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--c-text);
  background: rgba(11, 14, 26, .7);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.lightbox__close svg { width: 1.15rem; height: 1.15rem; }
.lightbox__close:hover {
  background: rgba(148, 44, 233, .35);
  border-color: var(--c-border-gold);
}

.lightbox__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.lightbox__body { padding: var(--sp-6); }

.lightbox__region {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.lightbox__title {
  margin-top: var(--sp-2);
  font-size: var(--fs-h3);
  color: var(--c-text);
}

.lightbox__text {
  margin-top: var(--sp-3);
  color: var(--c-text-muted);
}

.lightbox__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  border-top: 1px solid var(--c-border);
}

.lightbox__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--c-text);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--c-border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.lightbox__arrow svg { width: 1.25rem; height: 1.25rem; }
.lightbox__arrow:hover {
  background: rgba(148, 44, 233, .3);
  border-color: var(--c-border-gold);
  transform: scale(1.06);
}

.lightbox__counter {
  font-size: var(--fs-sm);
  letter-spacing: .1em;
  color: var(--c-text-muted);
}


/* ==========================================================================
   16. RESPONZIVITA
   ========================================================================== */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .hero__description { margin-inline: auto; }
  .hero__actions,
  .hero__meta { justify-content: center; }
  /* Na úzkých displejích jde logo (nadpis) první, render až za ním */
  .hero__visual { max-width: 460px; }
  .hero { min-height: auto; }

  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .site-footer__social { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(11, 14, 26, .96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--c-border);
    transition: max-height var(--t-base);
  }
  .nav.is-open { max-height: 70vh; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) clamp(1.25rem, 4vw, 2.5rem) var(--sp-6);
  }
  .nav__list li + li { border-top: 1px solid var(--c-border); }
  .nav__link {
    display: block;
    padding-block: var(--sp-4);
    font-size: var(--fs-lg);
  }
  .nav__link::after { display: none; }
  .nav__link--accent {
    margin-top: var(--sp-4);
    text-align: center;
    border-radius: var(--r-full);
  }
  .nav__list li:has(.nav__link--accent) { border-top: 0; }
}

@media (max-width: 640px) {
  .world-card { min-height: 250px; }

  .site-footer__inner { grid-template-columns: 1fr; }

  .hero__meta { gap: var(--sp-5); }

  .btn { width: 100%; }
  .hero__actions,
  .cta__actions { width: 100%; flex-direction: column; }
  .copy-ip--lg { width: 100%; justify-content: center; }
}

/* Respekt k nastavení omezeného pohybu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .hero__particles { display: none; }
}
