:root{
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b667a;

  --primary: #0b2f6b;
  --primary-2: #103a83;
  --accent: #f2c14e;

  --border: rgba(15, 23, 42, 0.10);
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.10);

  --radius-lg: 18px;
  --container: 1180px;

  /* LOGO */
  --logo-size-top: 170px;
  --logo-img-top: 160px;
  --logo-overlap: 40px;
  --logo-size-scroll: 90px;
  --logo-img-scroll: 80px;

  --header-pad-top: 14px;
  --header-pad-bot: 14px;
  --header-pad-top-scroll: 10px;
  --header-pad-bot-scroll: 10px;

  /* NAV */
  --nav-height-top: 62px;
  --nav-height-scroll: 54px;
  --nav-radius: 999px;
  --nav-gap: 8px;
  --nav-pad-x: 14px;

  --nav-font-top: 18px;
  --nav-font-scroll: 16px;

  --nav-drop-top: 34px;

  /* mobile overlay menu */
  --mobile-menu-top: 84px;

  /* SPONZOŘI */
  --sponsor-logo-h: 44px;
  --sponsor-logo-maxw: 170px;

  /* HERO */
  --hero-h: 410px;
  --hero-pad: 34px;
  --hero-pos-x: 70%;
  --hero-pos-y: 18%;

  /* FOOTER */
  --footer-alt-logo-h: 64px;
  --footer-alt-logo-maxh: 80px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color: var(--text);
  background: var(--bg);
  line-height: 1.45;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform .06s ease, background .2s ease, border-color .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{ background: var(--primary); color:#fff; }
.btn-primary:hover{ background: var(--primary-2); }

.btn-accent{
  background: var(--accent);
  color:#1b1b1b;
  box-shadow: 0 10px 22px rgba(15,23,42,0.14);
}
.btn-accent:hover{ filter: brightness(0.97); }

.btn-ghost{
  background: #fff;
  border-color: var(--border);
  color: var(--primary);
}
.btn-ghost:hover{ background:#fff; }

.btn-block{ width: 100%; }
.btn-sm{ height: 38px; padding: 0 14px; border-radius: 10px; }

/* ===== Header ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: none;
}
.site-header.is-scrolled{
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  column-gap: 18px;
  padding: var(--header-pad-top) 0 var(--header-pad-bot);
  transition: padding .2s ease;
}

/* Brand */
.brand{
  display:flex;
  align-items:center;
  gap: 14px;
  position: relative;
}
.logo-wrap{
  width: var(--logo-size-top);
  height: var(--logo-size-top);
  border-radius: 999px;
  background: transparent;
  border: 0;
  box-shadow: none;
  display:grid;
  place-items:center;
  overflow: visible;
  transform: translateY(var(--logo-overlap));
  transition: transform .22s ease, width .22s ease, height .22s ease;
}
.logo-img{
  height: auto;
  max-height: var(--logo-img-top);
  max-width: 100%;
  object-fit: contain;
  transition: max-height .22s ease;
}

/* text hidden on top, shown on scroll */
.brand-text{
  display:flex;
  flex-direction: column;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(2px);
  pointer-events: none;
  max-width: 0;
  overflow: hidden;
  transition: opacity .2s ease, transform .2s ease, max-width .25s ease;
}
.brand-title{ font-weight: 950; letter-spacing: 0.4px; }
.brand-subtitle{ font-size: 13px; color: var(--muted); font-weight: 800; margin-top: 2px; }
@media (max-width: 520px){
  .brand-title{ font-size: 14px; }
  .brand-subtitle{ font-size: 12px; }
}

/* Nav pill */
.nav{
  justify-self: center;
  display:flex;
  align-items:center;
  gap: var(--nav-gap);
  height: var(--nav-height-top);
  padding: 0 var(--nav-pad-x);
  border-radius: var(--nav-radius);
  border: 1px solid var(--border);
  background: #fff;
  transform: translateY(var(--nav-drop-top));
  transition: height .2s ease, transform .2s ease;

  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar{ display:none; }

.nav-link{
  font-weight: 900;
  font-size: var(--nav-font-top);
  color: var(--muted);
  padding: 12px 18px;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, font-size .2s ease, padding .2s ease;
  flex: 0 0 auto;
}
.nav-link:hover{ background: rgba(11,47,107,0.08); color: var(--primary); }
.nav-link.is-active{ color: var(--primary); background: rgba(11,47,107,0.06); }

/* Actions */
.header-actions{
  justify-self: end;
  display:flex;
  align-items:center;
  gap: 10px;
}
.header-actions .btn.btn-primary{
  transform: translateY(-26px);
}
.header-actions .btn.btn-primary:active{
  transform: translateY(-25px);
}

/* Burger */
.burger{
  display:none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor:pointer;
}
.burger span{
  display:block;
  width: 18px;
  height: 2px;
  background: var(--primary);
  margin: 4px auto;
  border-radius: 2px;
}

/* Mobile nav */
.mobile-nav{
  display:none;
  border-top: 1px solid var(--border);
  background: #fff;
}
.mobile-nav.is-open{ display:block; }
.mobile-link{
  display:block;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--primary);
  border-bottom: 1px solid rgba(15,23,42,0.06);
}
.mobile-link.is-active{ background: rgba(11,47,107,0.06); }

/* Scrolled state */
.site-header.is-scrolled .header-inner{
  padding: var(--header-pad-top-scroll) 0 var(--header-pad-bot-scroll);
}
.site-header.is-scrolled .logo-wrap{
  width: var(--logo-size-scroll);
  height: var(--logo-size-scroll);
  transform: translateY(0);
}
.site-header.is-scrolled .logo-img{
  max-height: var(--logo-img-scroll);
}
.site-header.is-scrolled .brand-text{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-width: 260px;
}
.site-header.is-scrolled .nav{
  height: var(--nav-height-scroll);
  transform: translateY(0);
}
.site-header.is-scrolled .nav-link{
  font-size: var(--nav-font-scroll);
  padding: 8px 14px;
}

/* ===== HERO ===== */
.hero{
  padding: calc(18px + (var(--logo-overlap) / 2)) 0 18px;
  background: #fff;
}
.hero-banner{
  position: relative;
  width: 100%;
  height: var(--hero-h);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;

  background:
    linear-gradient(90deg,
      rgba(5, 18, 40, 0.72) 0%,
      rgba(5, 18, 40, 0.35) 38%,
      rgba(5, 18, 40, 0.00) 72%
    ),
    url("../uvod2.png");
  background-size: cover;
  background-position: var(--hero-pos-x) var(--hero-pos-y);
  background-repeat: no-repeat;
}
.hero-copy{
  position: relative;
  z-index: 1;
  height: 100%;
  display:flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--hero-pad);
  max-width: 560px;
  gap: 12px;
}
.hero-eyebrow{
  margin:0;
  font-weight: 1000;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: #fff;
  font-size: 34px;
  line-height: 1.02;
  text-shadow:
    0 2px 8px rgba(0,0,0,0.35),
    0 16px 34px rgba(0,0,0,0.55);
}
.hero-eyebrow small{
  display:block;
  margin-top: 8px;
  font-size: 18px;
  letter-spacing: 1.1px;
  font-weight: 900;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.hero-title{
  display:inline-flex;
  align-items:center;
  width: fit-content;
  margin: 10px 0 0;

  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  font-size: 18px;

  color: var(--accent);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(242,193,78,0.35);
  padding: 10px 12px;
  border-radius: 14px;
}
.hero-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hero-actions .btn.btn-accent{
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.hero-actions .btn.btn-accent::after{
  content: "→";
  font-weight: 1000;
  margin-left: 10px;
  transform: translateY(-1px);
}

/* ===== MAIN GRID ===== */
.main{
  padding: 10px 0 26px;
  background: #fff;
}
.grid-3{
  display:grid;
  grid-template-columns: 240px 1fr 240px;
  gap: 18px;
  align-items: start;
}
.panel{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.panel-head{ padding: 16px 18px 10px; }
.panel-title{ margin:0; font-size:16px; font-weight: 950; }
.panel-divider{ height:1px; background: rgba(15,23,42,0.08); margin: 10px 18px; }

/* ===== EVENTS ===== */
.panel-events{ position: sticky; top: 110px; }
.event-list{
  list-style:none;
  margin:0;
  padding: 0 18px 16px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.event-item{
  text-align: center;
  padding: 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
}
.event-name{
  font-weight: 950;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: -0.15px;
}
.event-meta{
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}
.event-meta i{ font-style: italic; font-weight: 600; }

.panel-events .btn-block{
  display:flex;
  align-items:center;
  justify-content:center;
  width: calc(100% - 36px);
  margin: 0 18px 18px;
  border-radius: 14px;
  text-align:center;
  padding-left: 14px;
  padding-right: 14px;
}

/* ===== NEWS ===== */
.panel-news .panel-head{ padding-bottom: 6px; }

.news-card{
  display:grid;
  gap: 10px;
  padding: 14px 18px 18px;
}
.news-card + .news-card{ border-top: 1px solid rgba(15,23,42,0.08); }

.news-thumb{
  display:block;
  border-radius: 16px;
  overflow:hidden;
  border: 1px solid rgba(15,23,42,0.10);
}
.news-thumb img{
  width:100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}
.news-card--featured .news-thumb img{
  height: 320px;
  object-fit: cover;
  object-position: top center;
}

.news-body{ display:flex; flex-direction: column; gap: 8px; }

.news-title{ margin:0; font-size: 18px; font-weight: 950; letter-spacing: -0.2px; }
.news-card--featured .news-title{ font-size: 21px; }

.news-meta-line{
  display:flex;
  align-items:center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  font-size: 12.5px;
}
.news-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(11,47,107,0.04);
  color: var(--primary);
  font-weight: 950;
  font-size: 12px;
}
.news-excerpt{ margin:0; color: var(--muted); font-weight: 700; }
.news-more{ padding: 0 18px 18px; }

/* ===== SPONSORS ===== */
.panel-sponsors{ position: sticky; top: 110px; }
.sponsor-list{
  list-style:none;
  margin:0;
  padding: 0 18px 18px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.sponsor-item{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
}
.sponsor-item img{
  height: var(--sponsor-logo-h);
  width: 100%;
  max-width: var(--sponsor-logo-maxw);
  object-fit: contain;
  opacity: 0.98;
}
.sponsor-caption{
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer{
  background: #fff;
  padding: 18px 0 28px;
}
.footer-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.footer-top{
  padding: 18px;
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.footer-brand h3{
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 950;
  letter-spacing: 0.2px;
}
.footer-brand p{
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  line-height: 1.45;
  max-width: 520px;
}

.footer-social{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.social-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,0.10);
  background: #fff;
  font-weight: 900;
  color: var(--primary);
  transition: background .2s ease, transform .06s ease, border-color .2s ease;
}
.social-btn:hover{
  background: rgba(11,47,107,0.05);
  border-color: rgba(15,23,42,0.16);
}
.social-btn:active{ transform: translateY(1px); }

.footer-alt-logo{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15,23,42,0.08);
}
.footer-alt-logo img{
  display:block;
  width: 100%;
  height: auto;
  max-height: var(--footer-alt-logo-maxh);
  object-fit: contain;
  opacity: 0.96;
}

.footer-col h4{
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 950;
  color: var(--primary);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.footer-links{
  list-style: none;
  margin: 0;
  padding: 0;
  display:grid;
  gap: 8px;
}
.footer-links a{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(15,23,42,0.06);
  background: rgba(11,47,107,0.03);
  transition: background .2s ease, border-color .2s ease, transform .06s ease;
}
.footer-links a:hover{
  background: rgba(11,47,107,0.06);
  border-color: rgba(15,23,42,0.12);
}
.footer-links a:active{ transform: translateY(1px); }

.footer-contact{
  list-style:none;
  margin: 0;
  padding: 0;
  display:grid;
  gap: 10px;
}
.footer-contact li{
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.08);
  background: #fff;
}
.footer-contact .label{
  display:block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  margin-bottom: 4px;
}
.footer-contact .value{
  display:block;
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
}
.footer-contact a.value{
  color: var(--primary);
}

.footer-divider{
  height: 1px;
  background: rgba(15,23,42,0.08);
  margin: 0 18px;
}
.footer-bottom{
  padding: 14px 18px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-bottom small{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.footer-bottom .bottom-links{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-bottom .bottom-links a{
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.08);
  background: rgba(15,23,42,0.02);
}
.footer-bottom .bottom-links a:hover{
  background: rgba(11,47,107,0.05);
  color: var(--primary);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px){
  .site-header{ border-bottom: 1px solid var(--border); }

  .header-inner{
    padding: var(--header-pad-top-scroll) 0 var(--header-pad-bot-scroll);
    grid-template-columns: auto auto;
  }

  .logo-wrap{
    width: var(--logo-size-scroll);
    height: var(--logo-size-scroll);
    transform: translateY(0);
  }
  .logo-img{ max-height: var(--logo-img-scroll); }

  .brand-text{
    display: flex !important;
    opacity: 1 !important;
    max-width: 260px !important;
    overflow: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .nav{ display:none; transform:none; }
  .burger{ display:inline-grid; place-items:center; }

  .grid-3{ grid-template-columns: 1fr; }
  .panel-events, .panel-sponsors{ position: static; top:auto; }

  :root{
    --logo-overlap: 0px;
    --nav-drop-top: 0px;

    --hero-h: 260px;
    --hero-pad: 18px;
    --hero-pos-x: 65%;
    --hero-pos-y: 22%;
  }

  .mobile-nav.is-open{
    position: fixed;
    left: 0;
    right: 0;
    top: var(--mobile-menu-top);
    max-height: calc(100vh - var(--mobile-menu-top));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    background: #fff;
  }

  body:has(.mobile-nav.is-open){
    overflow: hidden;
    height: 100vh;
    overscroll-behavior: none;
    touch-action: none;
  }

  .footer-top{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .news-thumb img{ height: 200px; object-position: top center; }
  .news-card--featured .news-thumb img{ height: 240px; object-position: top center; }
  :root{ --footer-alt-logo-maxh: 72px; }
}
