/* =========================================================
   Chytrý Kvíz SK — spoločné štýly
   Statický web, bez externých knižníc.
   ========================================================= */

:root {
  /* základné značkové farby z loga Chytrý Kvíz */
  --blue:        #0b73b9;
  --blue-dark:   #095e97;
  --blue-soft:   #e5f1fa;
  --yellow:      #f7aa14;
  --yellow-dark: #e0930a;
  --red:         #e41e3d;
  --green:       #008e39;
  --ink:         #17202e;
  --muted:       #5b6578;
  --line:        #e7ecf3;
  --bg:          #ffffff;
  --bg-soft:     #f4f8fc;

  /* pastelové doplnkové odtiene odvodené z loga */
  --mint:  #c3f0d5;
  --pink:  #ffd0d8;
  --lilac: #d9ccff;
  --sky:   #d3e9f7;
  --peach: #ffe6c2;

  --radius:   18px;
  --radius-l: 28px;
  --shadow:   0 18px 45px -22px rgba(23, 41, 92, .28);
  --shadow-s: 0 8px 24px -14px rgba(23, 41, 92, .30);
  --maxw:     1120px;

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; }
a  { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--soft { background: var(--bg-soft); }

.eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Tlačidlá ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font: inherit;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--blue   { background: var(--blue); color: #fff; box-shadow: var(--shadow-s); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: var(--shadow-s); }
.btn--yellow:hover { background: var(--yellow-dark); }
.btn--ghost  { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.center .btn-row { justify-content: center; }

/* ---------- Hlavička / navigácia ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 58px; width: auto; display: block; }
.footer-logo { height: 54px; width: auto; background: #fff; padding: 10px 14px; border-radius: 14px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
  padding: 8px 12px;
  border-radius: 10px;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; color: var(--blue); }
/* Hlavné CTA v navigácii – väčšie a výraznejšie (vyššia špecifickosť ako .nav-links a) */
.nav-links a.nav-cta { margin-left: 12px; padding: 15px 32px; font-size: 1.08rem; border-radius: 999px; box-shadow: 0 10px 22px -10px rgba(244,170,20,.75); }
.nav-links a.nav-cta.btn--blue { box-shadow: 0 10px 22px -10px rgba(11,115,185,.7); }

/* Farby textu tlačidiel v navigácii musia prebiť .nav-links a (inak nízky kontrast) */
.nav-links a.btn--yellow { color: var(--ink); }
.nav-links a.btn--blue   { color: #fff; }
.nav-links a.btn--yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.nav-links a.btn--blue:hover   { background: var(--blue-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 44px;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  position: relative;
  transition: .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after  { position: absolute; top:  6px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(50px, 7vw, 92px) 0 clamp(48px, 7vw, 84px); }
.hero-inner { max-width: 820px; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { font-size: 1.28rem; }
.hero .btn-row { margin-top: 30px; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.hero-grid .hero-inner { max-width: none; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-l);
  box-shadow: 0 30px 60px -28px rgba(23,41,92,.5);
}
.hero-badge {
  position: absolute; left: -18px; bottom: 24px;
  background: #fff; border-radius: 16px; padding: 12px 18px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px;
  font-weight: 700;
}
.hero-badge .emoji { font-size: 1.6rem; }
.hero-badge small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }

/* fotky v sekciách */
.media { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media--tall img { aspect-ratio: 4 / 5; }
.media--wide img { aspect-ratio: 16 / 8; }

.blob { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .55; z-index: -1; }
.blob-1 { width: 340px; height: 340px; background: var(--sky);   top: -90px; right: -60px; }
.blob-2 { width: 260px; height: 260px; background: var(--yellow); bottom: -110px; left: -80px; opacity: .35; }
.blob-3 { width: 200px; height: 200px; background: var(--pink);  top: 40px; left: 45%; opacity: .35; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: .95rem;
  box-shadow: var(--shadow-s);
}
.chip .dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Pásik s údajmi ---------- */
.strip { background: var(--ink); color: #fff; }
.strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 40px; padding: 40px 34px; }
.strip-item .num { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; color: var(--yellow); line-height: 1.1; }
.strip-item .lbl { color: #c8d1e4; font-size: .98rem; margin-top: 4px; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

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

.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 14px;
}
.feature h3 { font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .98rem; }

/* dlaždice rozcestníka */
.tile {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 32px;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 26px 55px -24px rgba(23,41,92,.4); }
.tile .ico {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; margin-bottom: 18px;
}
.tile h3 { color: var(--ink); }
.tile p { color: var(--muted); flex: 1; }
.tile .go { color: var(--blue); font-weight: 700; margin-top: 10px; }

/* pastelové pozadia ikon */
.bg-sky   { background: var(--sky); }
.bg-mint  { background: var(--mint); }
.bg-pink  { background: var(--pink); }
.bg-lilac { background: var(--lilac); }
.bg-peach { background: var(--peach); }
.bg-yellow{ background: #fff0b8; }

/* ---------- CTA blok ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--blue), #4d84ff);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(34px, 5vw, 60px);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6ff; max-width: 58ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Zoznam s odrážkami ---------- */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; }
.checklist--2col { grid-template-columns: 1fr 1fr; gap: 14px 30px; }
@media (max-width: 640px) { .checklist--2col { grid-template-columns: 1fr; } }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  font-weight: 800; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* dvojstĺpec text + panel */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 32px;
}
.panel h3 { margin-top: 0; }

/* región – štítky */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: .95rem; }

/* ---------- Kontaktné karty ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.person { display: flex; align-items: center; gap: 16px; }
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--blue); font-size: 1.15rem;
  background: var(--blue-soft); flex: 0 0 auto;
}
.person .role { color: var(--muted); font-size: .92rem; }
.person .name { font-weight: 700; font-size: 1.08rem; }
.contact-lines { margin-top: 16px; display: grid; gap: 9px; }
.contact-lines a { font-weight: 700; font-size: 1.05rem; }

.social-row { display: flex; gap: 12px; flex-wrap: wrap; }
.social {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; color: var(--ink);
  background: #fff;
}
.social:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.site-footer .social { color: var(--ink); }
.site-footer .social:hover { color: var(--blue); }

/* ---------- Pätička ---------- */
.site-footer { background: var(--ink); color: #c8d1e4; padding: 56px 0 30px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .9rem; color: #9aa6be;
}
.footer-brand .brand-text { color: #fff; }
.footer-brand p { color: #9aa6be; max-width: 34ch; }

/* ---------- Sekcia-hlavička na podstránkach ---------- */
.page-head { padding: clamp(48px, 7vw, 82px) 0 clamp(30px, 4vw, 46px); background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .lead { margin-top: 6px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------- Responzívne ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* mobilná navigácia – rozbaľovacie menu (aby sa odkazy nezalamovali) */
  .nav-links {
    position: absolute; left: 0; right: 0; top: 74px;
    flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px; gap: 4px;
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-links a.nav-cta { margin: 6px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: flex; }
}
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .strip .wrap { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Doplnkové komponenty (revízia)
   ========================================================= */

/* ---- Slovné bubliny (Zábava, Kamaráti, …) ---- */
.bubbles { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.bubble {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 22px;
  border-radius: 999px 999px 999px 6px;   /* tvar rečovej bubliny */
  font-weight: 800; font-size: 1.05rem;
  color: var(--ink);
  box-shadow: 0 10px 22px -14px rgba(23,41,92,.5);
  transform: rotate(-1.5deg);
}
.bubble:nth-child(even) { transform: rotate(1.5deg); border-radius: 999px 999px 6px 999px; }
.bubble .emoji { font-size: 1.25rem; }
.bubble.b-yellow { background: #ffe6a8; }
.bubble.b-blue   { background: #c9e4f6; }
.bubble.b-red    { background: #ffd0d4; }
.bubble.b-green  { background: #c3ecd0; }
.bubble.b-lilac  { background: #e0d7ff; }
.bubble.b-peach  { background: #ffe0c2; }

/* ---- Piktogramová mriežka „Ako večer prebieha“ ---- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.how-item {
  display: flex; gap: 15px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}
.how-ico {
  flex: 0 0 auto;
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.how-item h4 { margin: 2px 0 5px; font-size: 1.02rem; }
.how-item p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }

/* ---- Fotogaléria / matrix ---- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 1 / 1; box-shadow: var(--shadow-s); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figure.wide { grid-column: span 2; aspect-ratio: 2 / 1; }

/* ---- Lightbox (zväčšenie fotiek) ---- */
.gallery img, .photo-row img, .hero-media img, .media img { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  background: rgba(9, 14, 24, .93); padding: 28px;
}
.lb.open { display: flex; }
.lb-img {
  max-width: 92vw; max-height: 86vh;
  border-radius: 12px; box-shadow: 0 30px 80px -18px rgba(0,0,0,.7);
  cursor: default;
}
.lb-btn {
  position: absolute; background: rgba(255,255,255,.12); border: none; color: #fff;
  cursor: pointer; width: 54px; height: 54px; border-radius: 50%;
  font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 22px; right: 22px; font-size: 1.7rem; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; top: 30px; left: 28px; color: #dce2ee; font-weight: 700; font-size: .95rem; }
.lb-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #dce2ee; font-size: .95rem; padding: 0 24px; }
@media (max-width: 640px) {
  .lb-btn { width: 44px; height: 44px; font-size: 1.6rem; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-close { top: 12px; right: 12px; }
}

/* ---- Rad fotiek (3 v rade) ---- */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.photo-row img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 18px; box-shadow: var(--shadow); display: block;
}
@media (max-width: 760px) { .photo-row { grid-template-columns: 1fr; gap: 14px; } }

/* ---- Informačná poznámka ---- */
.note {
  display: flex; gap: 16px; align-items: flex-start;
  max-width: 720px; margin: 26px auto 0;
  background: #fff; border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 14px; padding: 18px 22px;
  text-align: left;
}
.note .note-ico { font-size: 1.4rem; line-height: 1.3; }
.note p { margin: 0; color: var(--muted); font-size: .96rem; }
.note strong { color: var(--ink); }

/* ---- Zvýraznenie odmeny v dlaždici ---- */
.reward-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff0b8; color: #7a5b00;
  font-weight: 800; font-size: .9rem;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 4px; align-self: flex-start;
}

@media (max-width: 1000px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .how { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .gallery figure.wide { grid-column: span 2; }
  .how { grid-template-columns: 1fr; }
  .bubble { font-size: .98rem; padding: 10px 18px; }
}
