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);
  --fs-btn: clamp(1rem, 1.2vw + .5rem, 1.1rem);
}

/* RESET */
* { 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;
}
h3{ margin-bottom: 10px; }

body{
  font-family: 'Montserrat', sans-serif;
  color: white;
  line-height: 1.6;

  /* POZADÍ – pouze svislé opakování */
  background-image: url('obrazky/pozadiwebu2.webp');
  background-color: #050816;
  background-position: center top;
  background-size: contain;
  background-repeat: repeat-y;
}
@media (max-width: 768px){ body{ background-image: none; } }

/* Obrázky obecně */
img{ max-width: 100%; height: auto; display: block; }

/* ============ KONTEJNER ============ */
.container{
  width: min(96vw, 1550px);
  margin: 0 auto;
  background: linear-gradient(135deg,#1730b9,#0f0850,#05071a,#350833,#23043d);
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 155px rgba(46, 60, 255, 0.74);

  /* ať se footer opře dolů i na krátké stránce */
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
@media (max-width: 768px){
  .container{ width: 100vw; box-shadow: none; }
}

/* ============ HLAVIČKA (sticky + bílá linka) ============ */
#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;
  will-change: transform;
}
.header-content{ padding: 0 40px; display: flex; transition: all .6s ease; }
#hero-header.hidden{ transform: translateY(-105%) !important; }

.logo-link{ color:#fff; transition: all .3s ease; padding:3px; display:inline-block; }
.logo-link:hover{ opacity:.7; }

/* ============ NAVIGACE – TEXT-ONLY (sjednoceno s ostatními) ============ */
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;

  /* zrušení „bublin“ */
  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 rgba(255,255,255,1); }

@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 – větší text, jedna řada, bez push efektu */
@media (max-width: 768px){
  :root{ --fs-nav: clamp(0.95rem, 4.6vw, 1.35rem); }
  nav{ padding: 4px 0; }
  nav a{ padding: 8px 0; }
}

/* ============ SEKCE ============ */
.section{
  /* vyplní prostor mezi headerem a footerem */
  padding: 24px 20px 10px;
  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);
}

/* ============ BLOKY SE SÍTĚMI (ponecháno) ============ */
.social-blok.instagram {
  background: linear-gradient(135deg, #0c0d335e, #160a55);
  margin: 21px;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(78, 88, 233, 0.2);
  margin-bottom: 40px;
  color: white;
}
.social-blok.instagram h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 2.5em; font-family: 'Bebas Neue', sans-serif;
  margin-left: 25px;
}
.social-blok.instagram h3 img { width: 40px; height: 40px; }

.instagram-grid{
  display:flex; gap:60px; flex-wrap:wrap;
  margin:10px 0 25px 25px;
}
.ig-profil{ width:110px; }
.ig-profil img{
  width:100%; height:110px; margin:8px; border-radius:10px;
  object-fit:cover; box-shadow:0 0 8px rgba(12,5,105,.2);
  transition: transform .3s ease;
}
.ig-profil img:hover{ transform:scale(1.05); }
.ig-profil span{ display:block; margin-top:8px; font-weight:bold; font-size:.9em; color:#fff; }
.ig-popis{ font-size:1.2em; line-height:1.6; text-align:left; margin:0 auto; }

/* RESPONSIVE pro bloky */
@media (max-width: 1024px){
  .social-blok.instagram{ margin:16px; padding:24px; }
  .social-blok.instagram h3{ font-size:2.2em; gap:10px; margin-left:20px; }
  .instagram-grid{ gap:40px; margin-left:20px; margin-bottom:20px; }
  .ig-profil{ width:90px; }
  .ig-profil img{ height:90px; margin:6px; }
}
@media (max-width: 768px){
  .social-blok.instagram{ margin:12px; padding:20px; }
  .social-blok.instagram h3{ font-size:1.9em; gap:8px; margin-left:16px; }
  .instagram-grid{ gap:30px; margin-left:16px; }
  .ig-profil{ width:80px; }
  .ig-profil img{ height:80px; margin:5px; }
  .ig-profil span{ font-size:.65em; text-align:center; }
  .ig-popis{ font-size:1.1em; padding:0 12px; }
}
@media (max-width: 480px){
  .social-blok.instagram{ margin:8px; padding:16px; box-shadow:none; }
  .social-blok.instagram h3{ font-size:1.6em; gap:6px; margin-left:12px; }
  .instagram-grid{ flex-direction:column; gap:20px; margin:10px auto 0; margin-left:0; }
  .ig-profil{ width:100%; max-width:200px; }
  .ig-profil img{ width:100%; height:auto; margin:4px 0; }
  .ig-profil span{ font-size:.45em; text-align:center; }
  .ig-popis{ font-size:1em; padding:0 8px; }
}

/* ============ TLAČÍTKO V HEADERU ============ */
#tlacitko-header{
  display:flex; align-items:center; gap:8px;
  font-size:clamp(1rem, 1.1vw + .4rem, 1.1rem);
  padding:10px; margin-right:40px; font-weight:bold; color:#fff;
  background:linear-gradient(to right,#4447fdd5,#318affa2,#3634dbb9);
  border:none; border-radius:8px; text-align:center;
  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,.699); }
}
#tlacitko-header img{ width:20px; height:20px; }

/* ============ PATIČKA ============ */
footer{
  background:linear-gradient(135deg,#0b096e,#040333);
  padding:30px 15px; text-align:center;
}
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; }
}
