/* ---------- horný pás: banner + navigácia ---------- */
.site-top { position: fixed; inset: 0 0 auto; z-index: 50; }

.banner {
  position: relative; height: var(--banner-h); overflow: hidden;
  background: var(--grad); color: #fff; font-weight: 600; font-size: .875rem;
}
.no-banner .banner { display: none; }
.banner-open {
  display: flex; align-items: center; width: 100%; height: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 92%, transparent);
}
.banner-open:hover { opacity: .95; }
.banner-track { display: flex; width: max-content; margin: 0 auto; }
.banner-track.running { margin: 0; animation: marquee 60s linear infinite; }
.banner-seg { display: flex; align-items: center; gap: .6rem; padding: 0 2rem; white-space: nowrap; }
.flame { color: #fcd34d; fill: currentColor; font-size: 18px; transform-origin: center bottom; animation: flicker 1.1s ease-in-out infinite; }
.banner-close {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-sm);
  font-size: 18px; color: #fff; background: hsl(281 100% 22% / .6);
}
.banner-close:hover { background: rgb(255 255 255 / .2); }
@media (min-width: 768px) { .banner { font-size: 1rem; } }

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-3deg); opacity: 1; }
  25% { transform: scale(1.18) rotate(3deg); opacity: .85; }
  50% { transform: scale(.92) rotate(-1deg); opacity: 1; }
  75% { transform: scale(1.12) rotate(2deg); opacity: .9; }
}

.site-head { transition: background-color .3s, box-shadow .3s; }
.scrolled .site-head, .menu-open .site-head {
  background: rgb(255 255 255 / .85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--primary); }
.brand-logo { height: 40px; width: auto; }
.brand-word { font-family: var(--font-word); font-size: 1.25rem; letter-spacing: -.01em; }
@media (min-width: 640px) { .brand-logo { height: 48px; } }
@media (min-width: 768px) { .brand-word { font-size: 1.5rem; } }

.nav { display: none; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  position: relative; font-size: .875rem; font-weight: 500; color: hsl(220 26% 14% / .8); transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--primary);
  transform: scaleX(0); transform-origin: right; transition: transform .3s;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.lang-switch { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch a {
  padding: .25rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; color: var(--muted-fg); transition: color .2s;
}
.lang-switch a:hover { color: var(--fg); }
.lang-switch a[aria-current] { background: var(--grad); color: #fff; }

.burger { display: grid; place-items: center; width: 40px; height: 40px; font-size: 24px; }
.burger .x, .burger[aria-expanded="true"] .bars { display: none; }
.burger[aria-expanded="true"] .x { display: block; }

.mobile-menu {
  position: fixed; inset: var(--top-h) 0 0; z-index: 60; background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  animation: drop .2s ease-out;
}
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 1.6rem; }
.mobile-menu ul a { font: 700 1.5rem var(--font-head); }
.mobile-menu ul a:hover { color: var(--primary); }
.mobile-menu .btn { font-size: 1.125rem; padding: .75rem 2rem; }
.mobile-menu .lang-switch a { padding: .4rem 1rem; font-size: .875rem; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

@media (min-width: 960px) {
  .nav { display: flex; }
  .burger, .mobile-menu { display: none !important; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .nav, .nav-links { gap: 1.25rem; }
}

/* ---------- sekcie ---------- */
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.bg-surface { background: var(--surface); }
.dark { background: var(--dark); color: var(--dark-fg); }

.eyebrow { color: var(--primary); font-weight: 600; font-size: .875rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .75rem; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2, .why h2 { font-weight: 800; font-size: 1.5rem; margin-bottom: 1rem; }
.sec-head > p:last-child { color: var(--muted-fg); max-width: 42rem; margin: 0 auto; }
@media (min-width: 640px) { .sec-head h2, .why h2 { font-size: 1.875rem; } }
@media (min-width: 1024px) { .sec-head h2, .why h2 { font-size: 42px; } }

/* ---------- pätička ---------- */
.foot { background: var(--dark); color: var(--dark-fg); padding: 48px 0; }
@media (min-width: 768px) { .foot { padding: 64px 0; } }
.foot-grid { display: grid; gap: 40px; margin-bottom: 40px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-brand .brand { margin-bottom: 1rem; }
.foot-brand .brand-word { font-size: 1.5rem; }
.foot-brand p, .foot-col li { color: rgb(255 255 255 / .6); font-size: .875rem; }
.foot-brand p { max-width: 24rem; }
.foot-h { font: 700 .875rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: rgb(255 255 255 / .8); margin-bottom: 1rem; }
.foot-col ul { display: grid; gap: .5rem; }
.foot-col a:hover { color: var(--primary); }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .1); padding-top: 24px; text-align: center; font-size: .75rem; color: rgb(255 255 255 / .4); }
.foot-bottom p + p { margin-top: .25rem; }
.foot-bottom a:hover, .foot-link:hover { color: var(--primary); }
.foot-link { font-size: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.social { display: flex; justify-content: center; gap: 1rem; }
.social a {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 18px;
  background: var(--muted); color: var(--muted-fg); transition: all .2s;
}
.social a:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.social-dark { justify-content: flex-start; gap: .75rem; margin-top: 1rem; }
.social-dark a { width: 36px; height: 36px; background: rgb(255 255 255 / .1); color: rgb(255 255 255 / .6); }

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.nf-box { text-align: center; display: grid; justify-items: center; gap: 1rem; max-width: 32rem; }
.nf-code { font: 800 96px/1 var(--font-head); margin-top: 1rem; }
.nf h1 { font-weight: 800; font-size: 1.875rem; }
.nf-box > p:not(.nf-code) { color: var(--muted-fg); margin-bottom: .5rem; }
