/* ---------------------------------------
   VARIABLES & DARK MODE
--------------------------------------- */
:root {
  --redcolor: #db1215;
  --bluecolor: #00328b;
  --bg: #f7f8fb;
  --card: #ffffff;
  --muted: #6b7280;
  --text: #0f172a;
  --shadow: 0 8px 28px rgba(12,18,32,0.06);
  --radius: 12px;
  --container: 1100px;
  --header-height: 110px;
  --header-small: 74px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #283440;
    --bluecolor: #0d58de;
    --card: #242c33;
    --muted: #9aa3b2;
    --text: #e6eef8;
    --shadow: 0 8px 28px rgba(0,0,0,0.6);
  }
}

/* ---------------------------------------
   RESET & BASIC
--------------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; line-height: 1.5; font-size: 16px; background: var(--bg); color: var(--text); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.container { max-width: var(--container); margin: 0 auto; padding: 22px; }
html { scroll-padding-top: 80px; }

/* ---------------------------------------
   HEADER
--------------------------------------- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 12px 22px;
  transition: height 260ms ease, padding 260ms ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  height: var(--header-height);
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.35));
  isolation: isolate;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

@media (prefers-color-scheme: dark) {
  .site-header { background: linear-gradient(180deg, rgba(6,17,26,0.72), rgba(6,17,26,0.5)); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  padding: 12px 22px;
  transition: height 260ms ease, padding 260ms ease;
}

.site-header.header--small {
  height: var(--header-small);
}

.site-header.header--small .header-inner {
  height: var(--header-small);
  padding: 6px 18px;
}

/* BRAND */
.brand { display: flex; align-items: center; gap: 12px; }
.logo {
  width: 80px; height: 80px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  transition: width 260ms ease, height 260ms ease;
}
.logo img {width: 90%;}
.site-header.header--small .logo { width:55px; height: 55px; }
.brand-text { line-height: 1; }
.org-full { font-weight: 700; font-size: 15px; }
.org-short { font-size: 13px; color: var(--muted); }

/* NAVIGATION */
.main-nav { position: relative; }
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 20px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;       
  padding: 0 auto;
  align-items: center;
  max-width: var(--container); 
}
.nav-list a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  display: inline-block;
}
.nav-list a:hover { opacity: 0.95; transform: translateY(-2px); transition: transform 160ms ease, opacity 160ms ease; }

/* SUBMENU */
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  width: max-content;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 200px;
  background: var(--card);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 80;
}

.nav-list > li:last-child .submenu {
  left: auto;
  right: 0;
}

.submenu li {
  margin: 0;
  padding: 0;
}
.has-submenu { position: relative; }

.has-submenu.hover > .submenu { display: flex; }

.submenu a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 200ms ease;
}
.submenu a:hover {
  background: rgba(200,200,200,0.2);
}

/* ---------------------------------------
   HERO SECTION
--------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 36px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: #db1215;
  filter: brightness(0.85);
  transform: scale(1.0);
  transition: transform 600ms ease, filter 260ms ease;
}
@media (prefers-color-scheme: dark) {
  .hero-bg { filter: brightness(0.45); }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 22px;
}
.hero-copy { color: #fff; z-index: 2; }
.eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 12px;
}
.hero h1 { font-size: 36px; margin: 0 0 12px; color: #fff; }
.lead { color: rgba(255,255,255,0.9); margin: 0 0 18px; }

/* BUTTONS – všetky typy */
.btn {
  display: inline-block;
  padding: 10px 16px;
  margin-top: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
}
.btn-primary { background: var(--redcolor); color: #fff; }
.btn-secondary { background: var(--bluecolor); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.12); }
.btn-outline-blue { background: transparent; color: var(--bluecolor); border: 2px solid var(--bluecolor); }
.btn-outline-red { background: transparent; color: var(--redcolor); border: 2px solid var(--redcolor); }

.btn:hover {
  transform: translateY(0px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}
.btn-ghost:hover,
.btn-outline-blue:hover,
.btn-outline-red:hover {
  background: rgba(255,255,255,0.15);
}

.link-small {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  background: rgba(128,128,128,0.2);
  color: var(--redcolor);
  text-decoration: none;
  font-weight: 600;
  transition: all 200ms ease;
}

.link-small:hover {
  background: rgba(128,128,128,0.35);
  text-decoration: underline;
  transform: translateY(0px) scale(1.02);
}

.classic-table {
  display: grid;
  margin-top: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.20);
}

/* počet stĺpcov */
.classic-table.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.classic-table.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.classic-table .table-head {
  padding: 10px 14px;
  font-weight: 700;
  background: rgba(219,18,21,0.08);
  border-right: 1px solid rgba(0,0,0,0.20);
  border-bottom: 1px solid rgba(0,0,0,0.20);
}

.classic-table.grouped .row {
  display: contents;
}

.classic-table.grouped .cell {
  padding: 10px 14px;
  font-size: 0.95rem;
  border-right: 1px solid rgba(0,0,0,0.20);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,0.06);
}

.classic-table.grouped .cell.title {
  font-weight: 700;
}

/* odstránenie pravého borderu podľa počtu stĺpcov */
.classic-table.cols-3 .table-head:nth-child(3n),
.classic-table.cols-3 .cell:nth-child(3n) {
  border-right: none;
}

.classic-table.cols-4 .table-head:nth-child(4n),
.classic-table.cols-4 .cell:nth-child(4n) {
  border-right: none;
}

.classic-table.grouped .row:last-child .cell {
  box-shadow: none;
}

@media (prefers-color-scheme: dark) {
  .classic-table {
    border: 1px solid rgba(255,255,255,0.20);
  }
  .classic-table .table-head {
    border-right: 1px solid rgba(255,255,255,0.20);
    border-bottom: 1px solid rgba(255,255,255,0.20);
  }
  .classic-table.grouped .cell {
    border-right: 1px solid rgba(255,255,255,0.20);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06);
  }
}


/* ===============================
   CONTACT FORM
=============================== */
.contact-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-weight: 600;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.2);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  transition: border 160ms ease, box-shadow 160ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--redcolor);
  box-shadow: 0 0 0 3px rgba(219,18,21,0.15);
}

.hp {
  display: none !important;
}

.form-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.4);
  color: #166534;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.gdpr-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.4;
}

@media (prefers-color-scheme: dark) {
  .form-group input,
  .form-group textarea {
    border: 1px solid rgba(255,255,255,0.25);
  }
  .form-success {
    background: rgba(34,197,94,0.18);
    color: #bbf7d0;
  }
}

/* ---------------------------------------
   MAIN GRID & CARDS
--------------------------------------- */
.main-grid {
  max-width: var(--container);
  margin: 26px auto;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.card { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.preview-grid article h3 { margin-top: 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; }

/* EVENTS LIST */
.events-list { list-style: none; padding: 0; margin: 12px 0 0; }
.events-list li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed rgba(15,23,42,0.06); }
.events-list time { font-weight: 700; color: var(--redcolor); }

/* FOOTER */
.site-footer { padding: 24px 22px; background: var(--card); color: var(--muted); border-top: 1px solid rgba(15,23,42,0.06); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner a { color: var(--muted); text-decoration: underline; transition: all 200ms ease}
.footer-inner a:hover { font-size:15px; transition: all 200ms ease; }

/* ---------------------------------------
       RESPONSIVE
--------------------------------------- */
@media (max-width: 1050px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 90px 30px 20px 30px;
  }
  
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 6px 18px;
    z-index: 9999;
  }
  
  .nav-toggle {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0px;
    background: var(--card);
    width: max-content;
    max-width: 100vw;
    justify-content: flex-start;
    align-items: stretch;
    padding: 12px 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-list > li > a {
    display: block !important;
    text-align: left;
    padding: 2px 22px;
    line-height: 1;
    color: var(--text);
    text-decoration: none;
  }
  
  .nav-list a:hover { opacity: 1; transform: translateY(0px);}

  .submenu {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: 22px;
    background: var(--card);
    box-shadow: none;
    position: static;
  }

  .submenu a {
    display: block;
    padding: 5px 22px;
    text-align: left;
    line-height: 1;
    color: var(--text);
    text-decoration: none;
  }
  
  .hero-ctas {
    display: flex;
    flex-direction: column; /* tlačidlá pod sebou */
    gap: 12px;              /* medzera medzi tlačidlami */
    max-width: 200px;
  }
  
  .preview-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  
  .preview-grid article {
    width: 100%;
  }
  
  .site-footer {
    padding: 24px 16px;          /* menej padding na bokoch */
    text-align: center;           /* obsah zarovnaný do stredu */
  }

  .footer-inner {
    flex-direction: column;       /* stĺpcový layout namiesto riadkov */
    gap: 12px;                    /* medzera medzi riadkami */
    align-items: center;          /* zarovnanie obsahu */
  }
  
  .btn:hover {
    transform: translateY(0px) scale(1.00);
  }

  .btn-primary:hover {background: var(--redcolor)};
  .btn-secondary:hover {background: var(--bluecolor);

  .btn-ghost:hover,
  .btn-outline-blue:hover,
  .btn-outline-red:hover {
    background: transparent;
  }

  .link-small:hover {
    background: rgba(128,128,128,0.2);
    text-decoration: none;
    transform: translateY(0px) scale(1.00);
  }
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width:600px) { 
  .carousel-item {
    flex: 0 0 100%; 
  } 
  .classic-table {
    display: block;
    border: none;
  }

  .classic-table .table-head {
    display: none;
  }

  .classic-table.grouped .row {
    display: block;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.20);
  }

  .classic-table.grouped .cell {
    border: none;
    box-shadow: none;
    padding: 4px 0;
    font-size: 0.95rem;
  }

  .classic-table.grouped .cell.title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
  }

  @media (prefers-color-scheme: dark) {
    .classic-table.grouped .row {
      border: 1px solid rgba(255,255,255,0.20);
    }
  }
}

/* ---------------------------------------
   LINKS & TEXT
--------------------------------------- */
.muted { color: var(--muted); font-size: 14px; }