html { scroll-behavior: smooth; background-color: #050816; width: 100%; overflow-x: hidden; }

/* ========= FLUIDNÍ TYPOGRAFIE ========= */
:root{
  --fs-body: clamp(15px, 0.9vw + 0.6rem, 18px);
  --fs-nav: clamp(2.25rem, 1.8vw, 1.9rem);   /* stejný nav text jako jinde */
  --fs-btn: clamp(1rem, 1.2vw + .5rem, 1.1rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; text-decoration: none; }

h1{ font-family: 'Great Vibes', cursive; }
h2{ font-family: 'Bebas Neue', sans-serif; text-shadow: 7px 0px 10px #3c3fff; }

body{
  font-family: 'Montserrat', sans-serif;
  color: white;
  line-height: 1.6;

  background-image: url('obrazky/pozadiwebu2.webp');
  background-color: #050816;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: contain;   /* výchozí – dobré pro úzké displeje */
}

/* ŠIRŠÍ DISPLEJE: natáhni pozadí přes celou šířku/výšku */
@media (min-width: 1024px){
  body{
    background-size: cover;   /* odstraní černé pruhy po stranách */
    background-position: center center;
  }
}

/* Extra jistota pro ultrawide monitory */
@media (min-aspect-ratio: 16/9){
  body{
    background-size: cover;
    background-position: center center;
  }
}

/* ============ KONTEJNER ============ */
.container{
  width: min(96vw, 1550px);               /* sjednoceno se zbytkem webu */
  margin: 0 auto;
  background: linear-gradient(135deg,#1730b9,#0f0850,#05071a,#23043d);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 155px rgba(46, 60, 255, 0.74);

  /* FIX FOOTERU – vyplň okno a roztáhni obsah mezi header a footer */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px){
  .container{ width: 100vw; box-shadow: none; }
}

/* volitelný úvodní blok */
#uvitani{ position: relative; padding: 10px 20px; overflow: hidden; z-index: 1; color: white; }

/* ============ HLAVIČKA (sticky + tenká linka dole) ============ */
#hero-header{
  background: linear-gradient(to bottom, #7c89ff10, #7c89ff46);
  color: #131628;
  padding: 18px 0;
  transition: transform .3s ease;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 999;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff;
}
.header-content{ padding: 0 40px; display: flex; align-items: center; transition: all .6s ease; }
#hero-header.hidden{ transform: translateY(-100%); }

.logo-link{ color:#fff; transition: all .3s ease; padding:3px; }
.logo-link:hover{ opacity:.7; }

/* ============ NAVIGACE – TEXT ONLY ============ */
nav{
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:nowrap; gap:0; padding: 4px 0 10px; margin-top: 0;
}
nav a{
  flex:1 1 0; min-width:0; text-align:center; padding: 10px 0;
  color:#fff; font-family:'Bebas Neue',sans-serif; font-weight:600; letter-spacing:.02em;
  font-size: var(--fs-nav); line-height:1.1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  background:none !important; box-shadow:none !important; border-radius:0 !important; position:relative;
  transition: flex .25s ease, color .2s ease, letter-spacing .2s ease, text-shadow .2s ease;
}
nav a::before{ display:none !important; }
nav a + a{ border-left: 1px solid #ffffff; }

@media (hover:hover) and (pointer:fine){
  nav:hover a{ flex: .9; }
  nav a:hover{
    flex: 1.8; color:#9bd6ff; text-shadow: 0 0 12px rgba(155,214,255,.35);
    letter-spacing:.03em; font-size: calc(var(--fs-nav) * 1.06);
  }
  nav a:hover::after{
    content:""; position:absolute; left:12%; right:12%; bottom:2px; height:2px;
    background:#9bd6ff; border-radius:2px;
  }
}

/* MOBILE nav */
@media (max-width: 768px){
  :root{ --fs-nav: clamp(0.95rem, 4.6vw, 1.35rem); }
  nav{ padding: 4px 0; }
  nav a{ padding: 8px 0; }
}

/* ============ TEXTOVÉ SEKCE ============ */
.section{
  padding: 16px 20px 8px;

  /* KLÍČ: ať sekce zabere zbytek a posune footer dolů */
  flex: 1 0 auto;
}
.section h2{
  margin:20px; text-align:left;
  font-size: clamp(2.4rem, 6vw, 5rem);
  margin-bottom: 10px;
}
.section p{
  margin:10px 20px; padding:10px 0;
  font-size: clamp(1rem, 1.2vw + .5rem, 1.5rem);
}

/* ============ TLAČÍTKA (pokud jsou) ============ */
.tlacitko{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 28px; margin:20px; margin-top:50px;
  font-size:var(--fs-btn); font-weight:bold; color:#23282c;
  background: linear-gradient(135deg, #00e0ff, #42ccfe);
  border:none; border-radius:8px; text-align:center;
  transition:all .3s ease; box-shadow:0 4px 10px rgba(0,224,255,.3);
}
.tlacitko:hover{ transform:scale(1.05); box-shadow:0 0 15px rgba(0,224,255,.5); }

/* Tlačítko v headeru – fix pro IMG i SVG */
#tlacitko-header{
  display:inline-flex; align-items:center; gap:8px;
  font-size:clamp(1rem, 1.1vw + .4rem, 1.1rem);
  padding:10px 12px; margin-right:40px; font-weight:bold; color:#fff;
  background:linear-gradient(to right,#4447fdd5,#318affa2,#3634dbb9);
  border:none; border-radius:8px; text-align:center; flex-shrink:0;
  transition:all .3s ease; box-shadow:0 4px 10px rgba(3,5,39,.3);
}
@media (hover:hover) and (pointer:fine){
  #tlacitko-header:hover{ transform:scale(1.05); box-shadow:0 0 15px rgba(108,111,255,.7); }
}
#tlacitko-header img,
#tlacitko-header svg{ width:20px; height:20px; display:block; object-fit:contain; flex-shrink:0; }

/* ============ PATIČKA ============ */
footer{
  background:linear-gradient(135deg,#0b096e,#040333);
  padding:30px 15px; text-align:center;
  /* KLÍČ: ať je vždy až dole pod obsahem */
  margin-top: auto;
}
footer h2.footer-title{
  font-size:clamp(1.6rem, 2.4vw, 2.2rem);
  margin-bottom:10px; text-shadow:none;
}
footer p{ font-size:clamp(1rem, 1.2vw + .4rem, 1.3rem); margin:0; }

.social-links{
  display:flex; flex-wrap:wrap; justify-content:center; gap:15px;
  margin:20px auto; width:95%; max-width:900px; overflow:hidden;
}
.social-box{ flex:1 1 70px; max-width:80px; min-width:50px; aspect-ratio:1; perspective:600px; text-decoration:none; }
.social-box .box-inner{ position:relative; width:100%; height:100%; transition:transform .6s; transform-style:preserve-3d; }
@media (hover:hover) and (pointer:fine){
  .social-box:hover .box-inner{ transform:rotateY(180deg); }
}
.social-box .front, .social-box .back{
  position:absolute; inset:0; backface-visibility:hidden;
  display:flex; align-items:center; justify-content:center; border-radius:10px;
}
.social-box .front{ background:linear-gradient(135deg,#1e1d5e,#090799); }
.social-box .front img{ max-width:60%; max-height:60%; }
.social-box .back{ color:#fff; transform:rotateY(180deg); font-size:.7rem; }

@media (max-width: 600px){
  footer{ padding:15px 10px; }
  footer h2.footer-title{ font-size:clamp(1.4rem,5vw,1.8rem); }
  footer p{ font-size:1rem; }
  .social-links{ gap:8px; max-width:100%; }
  .social-box{ width:20vw; min-width:40px; max-width:60px; }
  .social-box .front img{ max-width:50%; max-height:50%; }
  .social-box .back{ font-size:.5rem; }
}
