/* Centrum zlepšenia života — štýly
   Paleta: sýta červená (hlavná) + teplá zlatá (doplnková) na krémovom podklade. */

:root {
  --bg:          #FBF7F3;
  --bg-alt:      #F4EBE3;
  --card:        #FFFFFF;

  --ink:         #1D1A18;
  --muted:       #6B625C;

  --brand:       #C8102E;
  --brand-dark:  #97091F;
  --brand-soft:  #FCEDEF;

  --accent:      #D89B2C;
  --accent-soft: #FBF1DC;

  --border:      #E8DED4;
  --shadow:      0 1px 2px rgba(29,26,24,.04), 0 12px 32px rgba(29,26,24,.07);
  --shadow-lg:   0 2px 4px rgba(29,26,24,.05), 0 24px 56px rgba(29,26,24,.12);

  --radius:      18px;
  --radius-sm:   10px;
  --max-width:   1120px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
/* height: auto je dôležité — inak sa uplatní rozmer z atribútu height v HTML
   a obrázok sa zdeformuje. Atribúty tam nechávame kvôli rezervovaniu miesta. */
img { max-width: 100%; display: block; height: auto; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.lead { font-size: 1.12rem; color: var(--muted); }
.muted { color: var(--muted); }
/* .desktop-only sa prepína v médiových dotazoch na konci súboru */

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ------------------------------------------------------------- tlačidlá */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 18px rgba(200,16,46,.28);
}
.btn-primary:hover { background: var(--brand-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-alt); }

.btn-small { padding: 10px 18px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* -------------------------------------------------------------- hlavička */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,247,243,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
}
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; }
.logo span { color: var(--brand); }
.logo small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav .nav-cta { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

/* ------------------------------------------------------------------ hero */

.hero {
  padding: 64px 0 56px;
  background:
    radial-gradient(900px 420px at 88% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 400px at 5% 0%, var(--brand-soft), transparent 62%);
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 56ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-fakty {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .95rem;
}
.hero-fakty li { display: flex; align-items: center; gap: 8px; }
.hero-fakty svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.hero-art img,
.hero-art .obrazok-miesto {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 60vh;
  object-fit: cover;
}

/* Zástupné miesto pre fotku — nahradí sa <img src="assets/fotky/...">  */
.obrazok-miesto {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, var(--brand-soft), var(--accent-soft));
  border: 1px dashed var(--border);
  color: var(--muted);
  font-size: .9rem;
  text-align: center;
  padding: 24px;
}

/* --------------------------------------------------------------- sekcie */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }

.section-hlavicka { max-width: 62ch; margin-bottom: 40px; }
.section-hlavicka.center { margin-inline: auto; text-align: center; }

.mriezka {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.karta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.karta h3 { margin-bottom: .4em; }
.karta p:last-child { margin-bottom: 0; }

.karta-ikona {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
}
.karta-ikona svg { width: 24px; height: 24px; }
.karta:nth-child(even) .karta-ikona { background: var(--accent-soft); color: var(--accent); }

/* Číslovaný priebeh prednášky */
.kroky { counter-reset: krok; display: grid; gap: 18px; }
.krok {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: start;
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.krok::before {
  counter-increment: krok;
  content: counter(krok);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}
.krok h3 { margin-bottom: .25em; }
.krok p { margin: 0; color: var(--muted); }

/* Lektor */
.lektor {
  display: grid;
  gap: 32px;
  align-items: center;
}
.lektor-foto {
  max-width: 340px;   /* aby portrét na mobile nezabral celú obrazovku */
  margin-inline: auto;
}
.lektor-foto img,
.lektor-foto .obrazok-miesto {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.citat {
  margin: 0 0 20px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 1.22rem;
  line-height: 1.45;
}

/* Galéria fotiek */
.galeria {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.galeria img,
.galeria .obrazok-miesto {
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: var(--shadow);
}

/* ---------------------------------------------------------- registrácia */

.registracia { background: var(--bg-alt); }

.registracia-obal {
  display: grid;
  gap: 32px;
  align-items: start;
}

.formular {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}

.pole { margin-bottom: 18px; }
.pole label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: .92rem;
}
.pole .napoveda { font-size: .84rem; color: var(--muted); font-weight: 400; }

.pole input[type="text"],
.pole input[type="email"],
.pole input[type="tel"],
.pole input[type="number"],
.pole select,
.pole textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pole textarea { min-height: 92px; resize: vertical; }

.pole input:focus,
.pole select:focus,
.pole textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.pole-dvojica {
  display: grid;
  gap: 0 16px;
  grid-template-columns: 1fr 1fr;
}

.chyba {
  display: none;
  margin-top: 6px;
  color: var(--brand-dark);
  font-size: .86rem;
  font-weight: 500;
}
.pole.ma-chybu .chyba { display: block; }
.pole.ma-chybu input,
.pole.ma-chybu select,
.pole.ma-chybu textarea { border-color: var(--brand); }

/* Výber termínu */
.terminy { display: grid; gap: 12px; margin-bottom: 8px; }

.termin {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.termin:hover { border-color: var(--brand); }
.termin input { margin-top: 4px; accent-color: var(--brand); flex: none; }
.termin:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.termin-datum { font-weight: 600; display: block; }
.termin-detail { font-size: .88rem; color: var(--muted); }
.termin.plny { opacity: .55; cursor: not-allowed; }

.znacka-volne {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7A5411;
  font-size: .78rem;
  font-weight: 600;
}
.znacka-volne.malo { background: var(--brand-soft); color: var(--brand-dark); }

/* Súhlasy */
.suhlas {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: .9rem;
  color: var(--muted);
}
.suhlas input { margin-top: 4px; accent-color: var(--brand); flex: none; }

/* Stav po odoslaní */
.stav-formulara {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .94rem;
}
.stav-formulara.vidno { display: block; }
.stav-formulara.chybny { background: var(--brand-soft); color: var(--brand-dark); }

.hotovo {
  text-align: center;
  padding: 18px 8px;
}
.hotovo .znak {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
}
.hotovo .znak svg { width: 30px; height: 30px; }
.hotovo .zhrnutie {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 14px 20px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  text-align: left;
}

/* ---------------------------------------------------------------- ohlasy */

/* Pás nad ukážkovými ohlasmi — zmazať spolu s vymyslenými textami. */
.ukazka-pas {
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 12px 18px;
  background: var(--brand-soft);
  border: 1px dashed var(--brand);
  border-radius: var(--radius-sm);
  color: var(--brand-dark);
  font-size: .9rem;
  text-align: center;
}

.ohlasy {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ohlas {
  position: relative;
  margin: 0;
  padding: 30px 26px 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.ohlas::before {
  content: '”';
  position: absolute;
  top: 8px;
  left: 20px;
  font-family: 'Poppins', serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--brand);
  opacity: .22;
}
.ohlas blockquote {
  margin: 0 0 18px;
  font-size: 1rem;
  line-height: 1.65;
}
.ohlas figcaption {
  font-weight: 600;
  font-size: .94rem;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.ohlas figcaption span {
  display: block;
  font-weight: 400;
  font-size: .86rem;
  color: var(--muted);
}

/* ------------------------------------------------------------------- FAQ */

.faq { max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--brand);
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* --------------------------------------------------------------- pätička */

.site-footer {
  padding: 56px 0 32px;
  background: var(--ink);
  color: #E8E1DA;
}
.site-footer a { color: #fff; }
.footer-mriezka {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 32px;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.site-footer p, .site-footer li { color: #B8AEA6; font-size: .93rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-spodok {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .86rem;
  color: #9B918A;
}

/* ------------------------------------------------ lišta so súhlasom */

/* Bez tohto by display:flex nižšie prebil atribút hidden a lišta by sa
   nedala skryť ani po kliknutí na Súhlasím. */
.suhlas-lista[hidden] { display: none; }

.suhlas-lista {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--ink);
  color: #F2ECE6;
  box-shadow: 0 -8px 28px rgba(29,26,24,.22);
}
.suhlas-lista p {
  margin: 0;
  max-width: 62ch;
  font-size: .9rem;
  line-height: 1.5;
  color: #CFC5BD;
}
.suhlas-lista a { color: #fff; }

.btn-tiche {
  background: transparent;
  color: #F2ECE6;
  border-color: rgba(255,255,255,.32);
}
.btn-tiche:hover { background: rgba(255,255,255,.08); }

/* --------------------------------------- stránka potvrdenia / odhlásenia */

.stranka-odkaz {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}
.odkaz-karta {
  max-width: 520px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow);
}
.odkaz-karta p { color: var(--muted); margin-bottom: 24px; }

/* ------------------------------------------------------------ responzíva */

@media (max-width: 860px) {
  .desktop-only { display: none; }
  .logo { font-size: .98rem; }
  .logo small { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.otvorene { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { display: inline-flex; margin-top: 16px; border: none; justify-content: center; }
  .nav-toggle { display: flex; }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .pole-dvojica { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 44px 0 40px; }
}

@media (min-width: 861px) {
  .desktop-only { display: inline-flex; }
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .registracia-obal { grid-template-columns: .85fr 1.15fr; gap: 48px; }
  .lektor { grid-template-columns: 340px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Adresa s odkazom na mapu pri prihláške */
.kde-sme {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 20px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
}
.kde-sme svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 3px; }
.kde-sme a { font-weight: 600; }

/* Mapa — načíta sa až po kliknutí */
.mapa {
  margin-bottom: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 16 / 10;
}
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

.mapa-spustac {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(200,16,46,.05) 18px 19px),
    repeating-linear-gradient(-45deg, transparent 0 18px, rgba(216,155,44,.06) 18px 19px),
    var(--bg-alt);
  transition: background-color .15s ease;
}
.mapa-spustac:hover { background-color: var(--brand-soft); }
.mapa-spustac svg { width: 30px; height: 30px; color: var(--brand); }
.mapa-spustac strong { font-family: 'Poppins', sans-serif; font-size: 1rem; }
.mapa-spustac small { color: var(--muted); font-size: .84rem; max-width: 28ch; }

/* Dlaždica s mapou v pätičke */
.mapa-nahlad {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-sm);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(255,255,255,.04) 14px 15px),
    rgba(255,255,255,.06);
  color: #F2ECE6;
  font: inherit;
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}
.mapa-nahlad:hover { background-color: rgba(255,255,255,.14); }
.mapa-nahlad svg { width: 22px; height: 22px; color: #fff; flex: none; }

/* Okno s veľkou mapou */
.mapa-okno {
  width: min(900px, 92vw);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background: var(--card);
  color: var(--ink);
  overflow: hidden;
}
.mapa-okno::backdrop { background: rgba(29,26,24,.62); }
.mapa-okno-hlavicka {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-family: 'Poppins', sans-serif;
}
.mapa-okno-hlavicka button {
  background: none;
  border: 0;
  font-size: 1.1rem;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--muted);
}
.mapa-okno-hlavicka button:hover { background: var(--bg-alt); color: var(--ink); }
.mapa-okno-telo { aspect-ratio: 16 / 10; background: var(--bg-alt); }
.mapa-okno-telo iframe { width: 100%; height: 100%; border: 0; display: block; }
.mapa-okno-pata { margin: 0; padding: 14px 18px; font-size: .9rem; }
