/* ---------- Gilroy (lokálny font pre čierny/tmavý text) ---------- */
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-ThinItalic.ttf') format('truetype');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-UltraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-UltraLightItalic.ttf') format('truetype');
  font-weight: 200;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-RegularItalic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-ExtraBoldItalic.ttf') format('truetype');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy';
  src: url('../assets/fonts/Gilroy-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}
/* Heavy je nad Black -- CSS font-weight nemá voľný stupeň nad 900,
   preto je dostupný pod samostatným menom rodiny (voliteľné použitie). */
@font-face {
  font-family: 'Gilroy Heavy';
  src: url('../assets/fonts/Gilroy-Heavy.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gilroy Heavy';
  src: url('../assets/fonts/Gilroy-HeavyItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* ---------- Design tokens (z Figma analýzy) ---------- */
:root {
  --blue: #C5E0FF;
  --blue-soft: #F5F9FE;
  --yellow: #EFFF16;
  --navy: #052F5F;
  --ink: #0E0E0E;
  --white: #FFFFFF;
  --text-muted: #4B5563;

  --font-heading: 'Gilroy', sans-serif;
  --font-body: 'Gilroy', sans-serif;
  --font-script: 'Pacifico', cursive;

  --radius-lg: 28px;
  --radius-pill: 999px;
  --wrap-width: 1040px;

  --space-section: clamp(64px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { margin: 0 0 1em; }

a { color: inherit; }

.wrap {
  max-width: var(--wrap-width);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow { max-width: 640px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--yellow);
  color: var(--ink);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Buttons & stickers ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 rgba(5, 47, 95, 0.15);
}
.btn--primary:hover { transform: translateY(-2px); }
.btn--primary:active { transform: translateY(1px); box-shadow: 0 3px 0 rgba(5,47,95,0.15); }
.btn--block { width: 100%; text-align: center; font-size: 1.15rem; }

.sticker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 14px rgba(5, 47, 95, 0.12);
}
.sticker--rotate1 { transform: rotate(-6deg); }
.sticker--rotate2 { transform: rotate(4deg); }
.sticker--rotate3 { transform: rotate(-3deg); }

.script {
  display: block;
  font-family: var(--font-script);
  font-weight: 400;
  color: var(--yellow);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  text-shadow: 0 0 1px rgba(5,47,95,0.15);
  margin-bottom: 0.2em;
  transform: rotate(-2.5deg);
}
.script--logo { color: var(--yellow); font-size: clamp(1.1rem, 2.5vw, 1.5rem); margin: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  padding: 48px 0 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero .wrap { position: relative; z-index: 2; }
.hero__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero__logo-img {
  height: clamp(56px, 8vw, 78px);
  width: auto;
}
.hero__date {
  display: block;
  width: fit-content;
  margin: 0 8% 14px auto;
  font-size: 1.2rem;
  transform: rotate(6deg);
}
.hero__title { text-align: center; }
.hero__lead {
  max-width: 680px;
  margin: 0 auto 1em;
  text-align: center;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--navy);
}
.hero .btn { display: block; width: fit-content; margin: 32px auto 0; }

.hero__thumb {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  margin: 24px 0 0;
  opacity: 0.9;
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-section) 0;
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.section--alt { background: var(--blue-soft); }
.section__lead {
  max-width: 720px;
  margin: 0 auto 1em;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.section__lead--muted { font-style: italic; opacity: 0.8; }

/* ---------- Steps (Čo ťa čaká) ---------- */
.steps {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: left;
}
.step__icon {
  width: 96px;
  height: 96px;
  margin-bottom: 16px;
  border-radius: 50%;
  overflow: hidden;
}
.step__icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.9rem; }

/* ---------- Tag cloud (K čomu je to dobré) ---------- */
#k-comu { position: relative; }
.tag-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tag-cloud__item { position: absolute; }
.tag-cloud__item--1 { top: 18%; left: 6%; }
.tag-cloud__item--2 { top: 10%; right: 6%; }
.tag-cloud__item--3 { top: 74%; left: 52%; }

@media (max-width: 860px) {
  .tag-cloud {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 40px;
    pointer-events: auto;
  }
  .tag-cloud__item { position: static; }
}

/* ---------- Timeline (Harmonogram) ---------- */
.timeline {
  list-style: none;
  margin: 56px auto 0;
  padding: 0 0 0 28px;
  max-width: 620px;
  text-align: left;
}
.timeline__item {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(5,47,95,0.08);
}
.timeline__item:last-child { border-bottom: none; }
.timeline__num {
  flex: none;
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--yellow);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 4.4rem;
  line-height: 1;
  color: var(--ink);
  z-index: 1;
}
.timeline__item h3 { margin-bottom: 2px; }
.timeline__item p { margin: 0; color: var(--text-muted); }

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  max-width: 720px;
  margin: 48px auto 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.accordion__item {
  background: var(--blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  text-align: left;
  padding: 22px 26px;
  cursor: pointer;
}
.accordion__icon {
  flex: none;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.2s ease;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
  padding: 0 26px;
}
.accordion__panel p { color: var(--navy); opacity: 0.85; margin: 0 0 16px; }
.accordion__list {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--navy);
  opacity: 0.85;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.accordion__list li { line-height: 1.5; }
.accordion__item.is-open .accordion__panel { max-height: 900px; }

/* ---------- Registration form ---------- */
.section--registration { background: var(--white); }
.section--registration h2 {
  white-space: nowrap;
  font-size: clamp(1.3rem, 4.5vw, 3rem);
}
.reg-form {
  margin-top: 40px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.reg-form__honeypot { position: absolute; left: -9999px; }
.reg-form__row { display: flex; flex-direction: column; gap: 6px; }
.reg-form__row[hidden] { display: none; }
.reg-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.reg-form__row--split > div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reg-form label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
}
.reg-form input[type="text"],
.reg-form input[type="email"],
.reg-form input[type="tel"] {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue);
  background: var(--blue-soft);
  outline: none;
  transition: border-color 0.15s ease;
}
.reg-form input:focus { border-color: var(--navy); }
.reg-form input.is-invalid { border-color: #e0433c; }

.reg-form__row--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}
.reg-form__row--checkbox input { margin-top: 4px; }
.reg-form__row--checkbox label { font-weight: 400; font-size: 0.9rem; color: var(--text-muted); }

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.switch-row__label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch__track {
  position: absolute;
  inset: 0;
  background: var(--blue);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}
.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(5, 47, 95, 0.3);
  transition: transform 0.2s ease;
}
.switch input:checked ~ .switch__track {
  background: var(--yellow);
}
.switch input:checked ~ .switch__track .switch__thumb {
  transform: translateX(22px);
}
.switch input:focus-visible ~ .switch__track {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.reg-form__error {
  color: #e0433c;
  font-size: 0.85rem;
  min-height: 1em;
}
.reg-form__fee {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: -4px 0 0;
}
.reg-form__status {
  text-align: center;
  font-weight: 600;
  min-height: 1.4em;
}
.reg-form__status.is-success { color: #1a7f37; }
.reg-form__status.is-error { color: #e0433c; }

/* ---------- Registration dialog ---------- */
.reg-dialog {
  position: fixed;
  margin: auto;
  border: none;
  padding: 40px;
  max-width: 560px;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 60px rgba(5, 47, 95, 0.25);
}
.reg-dialog::backdrop {
  background: rgba(5, 47, 95, 0.55);
  backdrop-filter: blur(2px);
}
.reg-dialog[open] { animation: reg-dialog-in 0.2s ease; }
@keyframes reg-dialog-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.reg-dialog__title {
  text-align: center;
  margin-bottom: 24px;
}
.reg-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.reg-dialog__close:hover { background: var(--blue); }
.reg-dialog .reg-form { margin-top: 0; }

@media (max-width: 640px) {
  .reg-dialog { padding: 28px 20px; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--blue);
  padding-top: 64px;
  text-align: center;
}
.footer__wordmark {
  display: block;
  width: calc(100% + 60px);
  max-width: none;
  margin: 24px -30px 0;
  height: auto;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-size: 0.9rem;
  color: var(--navy);
}
.footer__social { display: flex; gap: 20px; }
.footer__social a { text-decoration: none; font-weight: 600; }
.footer__social a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .reg-form__row--split { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .hero__thumb {
    width: 100%;
    max-width: none;
    opacity: 0.55;
  }
}

/* ---------- Scroll reveal animácie ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
